100+ results for 'php main'
Not the results you expected?
InstallSchema.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 407 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
7 namespace Magento\Widget\Setup;
9 use Magento\Framework\Setup\InstallSchemaInterface;
10 use Magento\Framework\Setup\ModuleContextInterface;
11 use Magento\Framework\Setup\SchemaSetupInterface;
14 * @codeCoverageIgnore
15 */
16 class InstallSchema implements InstallSchemaInterface
17 {
18 /**
19 * {@inheritdoc}
20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
21 */
22 public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
deletion_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code tests various scenarios for removing connections from a signal in Boost.Signals2 library, including removing self-connections, prior connections, after connections, and disconnecting equal connections. It verifies that the output matches the expected values in each test case. The tests cover different edge cases to ensure the library’s functionality is correct.
The code tests various scenarios for removing connections from a signal in Boost.Signals2 library, including removing self-connections, prior connections, after connections, and disconnecting equal connections. It verifies that the output matches the expected values in each test case. The tests cover different edge cases to ensure the library’s functionality is correct.
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
1 <?php
2 // Prevent file from being loaded directly
3 if ( ! defined( 'ABSPATH' ) ) {
25 'et_pb_posts-subheader_letter_spacing' => '0px',
27 'et_pb_posts-main_title_font_size' => '16px',
28 'et_pb_posts-main_title_font_style' => '',
29 'et_pb_posts-main_title_text_color' => 'rgba(0,0,0,0.75)',
30 'et_pb_posts-main_title_line_height' => '1.3em',
31 'et_pb_posts-main_title_letter_spacing' => '0.5px',
33 'et_pb_posts-main_meta_font_size' => '12px',
34 'et_pb_posts-main_meta_font_style' => '',
35 'et_pb_posts-main_meta_text_color' => 'rgba(0, 0, 0, 0.5)',
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
1 <?php
3 /*
15 use Symfony\Component\Security\Acl\Voter\FieldVote;
16 use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
17 use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity;
18 use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
19 use Symfony\Component\Security\Acl\Domain\ObjectIdentity;
20 use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface;
21 use Symfony\Component\Security\Acl\Voter\AclVoter;
23 class AclVoterTest extends \PHPUnit_Framework_TestCase
24 {
25 /**
jquery-1.2.6.js
(http://fatal-error.googlecode.com/svn/trunk/)
JavaScript · 3550 lines
✨ Summary
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
122 // Force the current matched set of elements to become
123 // the specified array of elements (destroying the stack in the process)
124 // You should use pushStack() in order to do this, but maintain the stack
125 setArray: function( elems ) {
126 // Resetting the length to 0, then using the native Array push
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
basic_tests.cpp (https://bitbucket.org/prenaux/boost_1_53.git) C++ · 200 lines
Config.php (https://github.com/justinmc/turkiball.com.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
21 * Include access control config class
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
24 /**
25 * Include resource type config class
26 */
27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
28 /**
29 * Include thumbnails config class
30 */
31 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ThumbnailsConfig.php";
32 /**
33 * Include thumbnails config class
half_float.hpp (https://github.com/Funto/Tohoku-Engine.git) C++ Header · 407 lines
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
25 }
443 }
445 if (PHPUnit_MAIN_METHOD == 'Zend_Measure_TemperatureTest::main') {
446 Zend_Measure_TemperatureTest::main();
SetTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 295 lines
1 <?php
2 /**
3 *
10 use Magento\Eav\Model\ResourceModel\Entity\Attribute\Set;
12 class SetTest extends \PHPUnit_Framework_TestCase
13 {
14 /**
15 * @var \PHPUnit_Framework_MockObject_MockObject|Set
16 */
17 protected $model;
19 /**
20 * @var \PHPUnit_Framework_MockObject_MockObject
21 */
22 protected $eavConfigMock;
occam.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 261 lines
head.S
(http://omnia2droid.googlecode.com/svn/trunk/)
Assembly · 233 lines
✨ Summary
This Assembly code initializes and sets up the kernel for a MIPS-based system. It performs CPU-specific setup, enables interrupts, clears exception flags, and reserves space for exception handlers. The code also handles booting on different platforms, including SMP (Symmetric Multi-Processing) and SMTC (Symmetric Multi-Threading with Cores). It jumps to the kernel entry point and initializes the stack and GP registers before starting the kernel execution.
This Assembly code initializes and sets up the kernel for a MIPS-based system. It performs CPU-specific setup, enables interrupts, clears exception flags, and reserves space for exception handlers. The code also handles booting on different platforms, including SMP (Symmetric Multi-Processing) and SMTC (Symmetric Multi-Threading with Cores). It jumps to the kernel entry point and initializes the stack and GP registers before starting the kernel execution.
find_if.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code finds the first odd number in a vector of integers and prints its value if found. It uses the find_if
algorithm with a lambda function that checks if an integer is odd by using the modulo operator (%
). If an odd number is found, it is printed to the console.
The code finds the first odd number in a vector of integers and prints its value if found. It uses the find_if
algorithm with a lambda function that checks if an integer is odd by using the modulo operator (%
). If an odd number is found, it is printed to the console.
configurablefolding.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 109 lines
✨ Summary
This HTML code outputs a documentation page for a jEdit plugin, “Configurable Fold Handler”. It explains how to enable and configure folding in jEdit, including setting fold strings, using regular expressions, and handling multiple fold strings. The page provides examples of valid and invalid fold strings, as well as instructions on how to use the plugin’s settings.
This HTML code outputs a documentation page for a jEdit plugin, “Configurable Fold Handler”. It explains how to enable and configure folding in jEdit, including setting fold strings, using regular expressions, and handling multiple fold strings. The page provides examples of valid and invalid fold strings, as well as instructions on how to use the plugin’s settings.
statistic_tests.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code runs a series of tests on various random number generators (RNGs) to verify their correctness and statistical properties. It uses a test framework to execute tests for different RNGs, including uniform distributions, normal distribution, triangular distribution, Cauchy distribution, gamma distribution, exponential distribution, and lognormal distribution. The results are printed to the console.
This C++ code runs a series of tests on various random number generators (RNGs) to verify their correctness and statistical properties. It uses a test framework to execute tests for different RNGs, including uniform distributions, normal distribution, triangular distribution, Cauchy distribution, gamma distribution, exponential distribution, and lognormal distribution. The results are printed to the console.
AssemblerX86X64.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 3106 lines
✨ Summary
This C++ code is a part of an x86 instruction emulator, specifically handling instructions related to memory and register operations. It processes various instruction types such as MMU
(Memory Management Unit) instructions, which manage data transfer between registers and memory, and MOV
instructions, which move data between registers or from/to memory. The code generates the necessary assembly code for these instructions based on their operands and operation codes.
This C++ code is a part of an x86 instruction emulator, specifically handling instructions related to memory and register operations. It processes various instruction types such as MMU
(Memory Management Unit) instructions, which manage data transfer between registers and memory, and MOV
instructions, which move data between registers or from/to memory. The code generates the necessary assembly code for these instructions based on their operands and operation codes.
ex_end_of_month_day.xml (http://hadesmem.googlecode.com/svn/trunk/) XML · 0 lines
AnySoftKeyboard.java
(http://softkeyboard.googlecode.com/svn/)
Java · 2062 lines
✨ Summary
This Java code is part of a keyboard application, handling various user interactions such as inputting text, deleting characters, and displaying toast messages. It also manages shared preferences, handles low memory situations, and performs lengthy operations like loading settings and updating dictionaries. The code appears to be designed for an Android application, utilizing various Android APIs and classes.
This Java code is part of a keyboard application, handling various user interactions such as inputting text, deleting characters, and displaying toast messages. It also manages shared preferences, handles low memory situations, and performs lengthy operations like loading settings and updating dictionaries. The code appears to be designed for an Android application, utilizing various Android APIs and classes.
197 private void initSuggest(/* String locale */) {
198 // mLocale = locale;
199 mSuggest = new Suggest(this/* , R.raw.main */);
200 mSuggest.setCorrectionMode(mCorrectionMode);
201 mUserDictionary = DictionaryFactory.createUserDictionary(this);
202 mSuggest.setUserDictionary(mUserDictionary);
203 setMainDictionaryForCurrentKeyboard();
204 // mWordSeparators = getResources().getString(R.string.word_separators);
205 // mSentenceSeparators =
ManualMapper.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 186 lines
✨ Summary
This C++ code is a manual memory mapper for Windows, allowing users to map a DLL into a target process and execute its exports. It takes command-line arguments for the process ID, module path, and optional export name. The program outputs version information, copyright notice, and elapsed time, then maps the specified DLL into the target process and prints the mapped base address.
This C++ code is a manual memory mapper for Windows, allowing users to map a DLL into a target process and execute its exports. It takes command-line arguments for the process ID, module path, and optional export name. The program outputs version information, copyright notice, and elapsed time, then maps the specified DLL into the target process and prints the mapped base address.
36 #ifdef HADES_GCC
37 int wmain(int argc, wchar_t* argv[]);
39 int CALLBACK wWinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/,
45 try
46 {
47 int result = wmain(argc, argv);
48 LocalFree(argv);
49 return result;
60 // Program entry point
61 int wmain(int argc, wchar_t* argv[])
62 {
63 // Program timer
classboost_1_1numeric_1_1ublas_1_1ublas__expression.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::ublas_expression
. It provides information about the class, its members, and its usage, with links to related pages and classes. The page includes a table of public types, a detailed description of the class, and a footer with metadata and copyright information.
This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::ublas_expression
. It provides information about the class, its members, and its usage, with links to related pages and classes. The page includes a table of public types, a detailed description of the class, and a footer with metadata and copyright information.
old_concept_class_fail.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests if concepts written using old syntax still catch errors in class context, specifically with compilers that don’t support SFINAE (Substitution Failure Is Not An Error). It defines a struct foo
and a class class_requires_test
that uses the BOOST_CLASS_REQUIRE
macro to check if foo
satisfies the EqualityComparableConcept
. The code then creates an instance of class_requires_test
and suppresses a warning about an unused variable.
This C++ code tests if concepts written using old syntax still catch errors in class context, specifically with compilers that don’t support SFINAE (Substitution Failure Is Not An Error). It defines a struct foo
and a class class_requires_test
that uses the BOOST_CLASS_REQUIRE
macro to check if foo
satisfies the EqualityComparableConcept
. The code then creates an instance of class_requires_test
and suppresses a warning about an unused variable.
javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 560 lines
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines
208 Typically, error sources will be registered in your plugin's
209 <function>start()</function> method, but that does not have to be the case.
210 The Console plugin, for example, maintains a separate error source for each
211 console window, and registers an unregisters them as consoles are opened
212 and closed.
366 This method reveals a limitation of the
367 <classname>DefaultErrorSource</classname>
368 class; errors cannot be removed selectively. The main reason this hasn't
369 been implemented is lack of demand. If your plugin needs a means of only
370 removing a subset of errors in an error source, feel free to modify the
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 406 lines
uaccess.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 294 lines
✨ Summary
This C header file provides a set of functions for accessing and manipulating memory in user space, ensuring that operations are performed safely and securely. It includes functions for copying data from/to userspace, checking access permissions, and handling errors, providing a way to interact with the operating system’s memory management.
This C header file provides a set of functions for accessing and manipulating memory in user space, ensuring that operations are performed safely and securely. It includes functions for copying data from/to userspace, checking access permissions, and handling errors, providing a way to interact with the operating system’s memory management.
74 *
75 * All the routines below use bits of fixup code that are out of line
76 * with the main instruction path. This means when everything is well,
77 * we don't even have to jump over them. Further, they do not intrude
78 * on our cache or tlb entries.
85 /*
86 * These are the main single-value transfer routines. They automatically
87 * use the right size if we just have the right pointer type.
88 */
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 262 lines
✨ Summary
This HTML code is a documentation page for LaTeX Tools, a plugin for editing LaTeX documents. It provides information on how to use the plugin’s features, such as customizing navigation menus and icons, and explains the syntax of the default navigation file. The page also includes links to release notes and contact information for the plugin maintainer.
This HTML code is a documentation page for LaTeX Tools, a plugin for editing LaTeX documents. It provides information on how to use the plugin’s features, such as customizing navigation menus and icons, and explains the syntax of the default navigation file. The page also includes links to release notes and contact information for the plugin maintainer.
43 <h2>Project Management</h2>
45 <P>A main file can be specified either globally or locally. The global setting is done through the plugin menu, where <em>Set Main File</em> sets the global main file to the current file, and <em>Reset Main File</em> removes the global property. The local setting is achieved by adding somewhere in the first 5 lines of the file the string <CODE>:latex.root=<em>Absolute or relative path to Main file</em>:</CODE>. The menu command <em>Show Main File</em> displays the path to the main file in a pop up box. Note that if present, the locally defined Main file has priority, followed by the globally defined property. If no global property has been set, then the current buffer is deemed to be the Main file.
46 </P>
48 <P>The main file is used by several other commands, such as the two <em>Compile</em> commands, the <em>BiBTex</em> command and the <em>Erase Working Files...</em> command. It is also used by the Label Navigator and the BibTeX Navigator in order to correctly parse information. <em>The project files</em> is a term used in these instructions to refer to the set of files that include the Main file and all files imported by files in the set.
49 </P>
72 <h3>Project Management</h3>
74 These are the commands <em>Set Main File</em>, <em>Reset Main File</em> and <em>Show Main File Path</em>. These are described in <a href="#project">Project Management</a> above.
76 <h3>Text Insertion</h3>
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 470 lines
16 <bookinfo><title>AntFarm Plugin User's Guide</title>
18 <othercredit><contrib>Maintainers</contrib>
19 <firstname>Todd</firstname><surname>Papaioannou</surname>
20 </othercredit>
21 <othercredit><contrib>Maintainers</contrib>
22 <firstname>James</firstname><surname>Wilson</surname>
23 </othercredit>
69 <para>
70 The <application>AntFarm</application> plugin provides quick access to Ant
71 build files from within jEdit. It has five main features:
72 </para>
xfs_filestream.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 137 lines
✨ Summary
This C header file defines a set of functions and macros for managing filestream associations with allocation groups (AGs) on an XFS filesystem. It provides atomic counters to track active filestreams, ensuring that no invalid references exist in the cache. The code also includes prototypes for various filestream-related functions and constants for allocation selection flags.
This C header file defines a set of functions and macros for managing filestream associations with allocation groups (AGs) on an XFS filesystem. It provides atomic counters to track active filestreams, ensuring that no invalid references exist in the cache. The code also includes prototypes for various filestream-related functions and constants for allocation selection flags.
62 * element off the LRU end of the cache for deletion, then gets pre-empted.
63 * - A growfs operation grabs the m_peraglock in write mode, flushes all the
64 * remaining items from the cache and reallocates the mount point's per-ag
65 * array, resetting all the counters to zero.
66 * - The work queue thread resumes and calls the free function for the element
difference_type_of_inte_id496188.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
35 <span class="keyword">struct</span> <a class="link" href="difference_type_of_inte_id496188.html" title="Struct template difference_type_of<interval_traits< Type >>">difference_type_of</a><span class="special"><</span><span class="identifier">interval_traits</span><span class="special"><</span> <span class="identifier">Type</span> <span class="special">></span><span class="special">></span> <span class="special">{</span>
36 <span class="comment">// types</span>
37 <span class="keyword">typedef</span> <a class="link" href="interval_traits.html" title="Struct template interval_traits">interval_traits</a><span class="special"><</span> <span class="identifier">Type</span> <span class="special">></span><span class="special">::</span><span class="identifier">domain_type</span> <a name="boost.icl.difference_type_of_inte_id496188.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span>
38 <span class="keyword">typedef</span> <span class="identifier">difference_type_of</span><span class="special"><</span> <span class="identifier">domain_type</span> <span class="special">></span><span class="special">::</span><span class="identifier">type</span> <a name="boost.icl.difference_type_of_inte_id496188.type"></a><span class="identifier">type</span><span class="special">;</span>
dynamic_interval_traits_id505876.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
34 </span><span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> DomainT<span class="special">,</span> <span class="identifier">ICL_COMPARE</span> Compare<span class="special">></span>
35 <span class="keyword">struct</span> <a class="link" href="dynamic_interval_traits_id505876.html" title="Struct template dynamic_interval_traits<boost::icl::discrete_interval< DomainT, Compare >>">dynamic_interval_traits</a><span class="special"><</span><span class="identifier">boost</span><span class="special">::</span><span class="identifier">icl</span><span class="special">::</span><span class="identifier">discrete_interval</span><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">Compare</span> <span class="special">></span><span class="special">></span> <span class="special">{</span>
36 <span class="comment">// types</span>
37 <span class="keyword">typedef</span> <a class="link" href="dynamic_interval_traits.html" title="Struct template dynamic_interval_traits">dynamic_interval_traits</a> <a name="boost.icl.dynamic_interval_traits_id505876.type"></a><span class="identifier">type</span><span class="special">;</span>
38 <span class="keyword">typedef</span> <a class="link" href="discrete_interval.html" title="Class template discrete_interval">boost::icl::discrete_interval</a><span class="special"><</span> <span class="identifier">DomainT</span><span class="special">,</span> <span class="identifier">Compare</span> <span class="special">></span> <a name="boost.icl.dynamic_interval_traits_id505876.interval_type"></a><span class="identifier">interval_type</span><span class="special">;</span>
39 <span class="keyword">typedef</span> <span class="identifier">DomainT</span> <a name="boost.icl.dynamic_interval_traits_id505876.domain_type"></a><span class="identifier">domain_type</span><span class="special">;</span>
41 <span class="comment">// <a class="link" href="dynamic_interval_traits_id505876.html#id505914-bb">public member functions</a></span>
54 <a name="id1026111"></a><h3>
55 <a name="id505914-bb"></a><code class="computeroutput">dynamic_interval_traits</code> public member functions</h3>
56 <div class="orderedlist"><ol type="1"><li><pre class="literallayout"><span class="keyword">typedef</span> <a name="id505917-bb"></a><span class="identifier">ICL_COMPARE_DOMAIN</span><span class="special">(</span><span class="identifier">Compare</span><span class="special">,</span> <span class="identifier">DomainT</span><span class="special">)</span><span class="special">;</span></pre></li></ol></div>
57 </div>
58 <div class="refsect2" lang="en">
61 <div class="orderedlist"><ol type="1">
62 <li><pre class="literallayout"><span class="keyword">static</span> interval_type
63 <a name="id505935-bb"></a><span class="identifier">construct</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span> lo<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">domain_type</span> <span class="special">&</span> up<span class="special">,</span>
64 <a class="link" href="interval_bounds.html" title="Class interval_bounds">interval_bounds</a> bounds<span class="special">)</span><span class="special">;</span></pre></li>
65 <li><pre class="literallayout"><span class="keyword">static</span> interval_type
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
55 <KEYWORD1>AuthDBMUserFile</KEYWORD1>
56 <KEYWORD1>AuthDigestAlgorithm</KEYWORD1>
57 <KEYWORD1>AuthDigestDomain</KEYWORD1>
58 <KEYWORD1>AuthDigestFile</KEYWORD1>
59 <KEYWORD1>AuthDigestGroupFile</KEYWORD1>
84 <KEYWORD1>CheckSpelling</KEYWORD1>
85 <KEYWORD1>ContentDigest</KEYWORD1>
86 <KEYWORD1>CookieDomain</KEYWORD1>
87 <KEYWORD1>CookieExpires</KEYWORD1>
88 <KEYWORD1>CookieName</KEYWORD1>
238 <KEYWORD2>AuthDBMUserFile</KEYWORD2>
239 <KEYWORD2>AuthDigestAlgorithm</KEYWORD2>
240 <KEYWORD2>AuthDigestDomain</KEYWORD2>
241 <KEYWORD2>AuthDigestFile</KEYWORD2>
242 <KEYWORD2>AuthDigestGroupFile</KEYWORD2>
AntClassLoader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1173 lines
✨ Summary
This Java class is a custom class loader that loads classes from a specified path, including system classes and archives. It searches for classes in the specified path components, closes open archive files during cleanup, and provides methods to load classes from streams and resources. The class loader also handles security exceptions and IOExceptions when reading from streams or accessing resources.
This Java class is a custom class loader that loads classes from a specified path, including system classes and archives. It searches for classes in the specified path components, closes open archive files during cleanup, and provides methods to load classes from streams and resources. The class loader also handles security exceptions and IOExceptions when reading from streams or accessing resources.
203 /**
204 * Reflection method reference for getProtectionDomain;
205 * used to avoid 1.1-compatibility problems.
206 */
207 private static Method getProtectionDomain = null;
209 /**
210 * Reflection method reference for defineClassProtectionDomain;
211 * used to avoid 1.1-compatibility problems.
212 */
facade-and-adaptor.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically the function_output_iterator
class. It provides detailed information about the class’s constructors, operators, and behavior, written in reStructuredText format. The output includes explanations of technical terms and concepts, making it suitable as a reference manual or API documentation.
This HTML code outputs a documentation page for a C++ library, specifically the function_output_iterator
class. It provides detailed information about the class’s constructors, operators, and behavior, written in reStructuredText format. The output includes explanations of technical terms and concepts, making it suitable as a reference manual or API documentation.
389 use a member function of the iterator when a member of the value_type
390 was intended. This has been an issue with smart pointer
391 implementations in the past. The second and main advantage is that
392 library implementers can freely exchange a hand-rolled iterator
393 implementation for one based on <tt class="docutils literal"><span class="pre">iterator_facade</span></tt> without fear of
qscreen_qws.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 392 lines
JEditBuffer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2670 lines
✨ Summary
This Java code is part of a text editor implementation, specifically handling buffer-local properties and indentation rules. It parses property values from a string, stores them in a map, and applies indentation rules based on the current line’s mode and context. The code also manages transactions, undoing, and dirty state for the editor.
This Java code is part of a text editor implementation, specifically handling buffer-local properties and indentation rules. It parses property values from a string, stores them in a map, and applies indentation rules based on the current line’s mode and context. The code also manages transactions, undoing, and dirty state for the editor.
48 /**
49 * A <code>JEditBuffer</code> represents the contents of an open text
50 * file as it is maintained in the computer's memory (as opposed to
51 * how it may be stored on a disk).<p>
52 *
130 properties.put("folding",new PropValue("none",false));
131 tokenMarker = new TokenMarker();
132 tokenMarker.addRuleSet(new ParserRuleSet("text","MAIN"));
133 setTokenMarker(tokenMarker);
faq-use.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 715 lines
411 Paragraph</guimenuitem> command insert <quote>hard</quote>
412 end of line characters. This <quote>hard wrap</quote>
413 feature remains available as an option for buffers and
414 editing modes.</para>
415 </answer>
448 <para>With respect to menu labels, message strings and other
449 GUI elements, the jEdit project team currently does not have
450 the resources to maintain multiple property sets in
451 languages other than English, particularly since the
452 development effort is continuing at a rapid pace. There has
astyle.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 1480 lines
✨ Summary
This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.
This HTML code outputs a manual page for Artistic Style, a source code formatter. It provides information on options and usage, including explanations of various flags and their effects. The output includes acknowledgments to contributors and beta-testers, as well as a call to action to enjoy the program. The text is formatted in a traditional manual page style, with sections and paragraphs that resemble those found in printed documentation.
process.hh
(git://github.com/ticking/self.git)
C++ Header · 368 lines
✨ Summary
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
bootstrap.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 463 lines
✨ Summary
This JavaScript code is a part of the Dojo toolkit, a popular JavaScript library for building web applications. It provides various utility functions and APIs for tasks such as object manipulation, event handling, and debugging. The code defines several functions that can be used to perform common operations in a web application, including eval
, deprecated
, and experimental
markers.
This JavaScript code is a part of the Dojo toolkit, a popular JavaScript library for building web applications. It provides various utility functions and APIs for tasks such as object manipulation, event handling, and debugging. The code defines several functions that can be used to perform common operations in a web application, including eval
, deprecated
, and experimental
markers.
42 // `debugAtAllCosts`, it is strongly recommended that you enable this
43 // flag as a last resort. `debugAtAllCosts` has no effect when loading
44 // resources across domains. For usage information, see the
45 // [Dojo Book](http://dojotoolkit.org/book/book-dojo/part-4-meta-dojo-making-your-dojo-code-run-faster-and-better/debugging-facilities/deb)
46 debugAtAllCosts: false,
FtpPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 169 lines
✨ Summary
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
lextype.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 52 lines
tst_qhttpnetworkreply.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 134 lines
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 992 lines
✨ Summary
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
gu.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1231 lines
216 <l:gentext key="hyphenation-character" text="-"/>
217 <l:gentext key="hyphenation-push-character-count" text="2"/>
218 <l:gentext key="hyphenation-remain-character-count" text="2"/>
219 <l:context name="styles"><l:template name="person-name" text="first-last"/>
220 </l:context>
258 <l:template name="msg" text="%t"/>
259 <l:template name="msgexplan" text="%t"/>
260 <l:template name="msgmain" text="%t"/>
261 <l:template name="msgrel" text="%t"/>
262 <l:template name="msgset" text="%t"/>
400 <l:template name="msg" text="%t"/>
401 <l:template name="msgexplan" text="%t"/>
402 <l:template name="msgmain" text="%t"/>
403 <l:template name="msgrel" text="%t"/>
404 <l:template name="msgset" text="%t"/>
t4243.scala
(git://github.com/greedy/scala-llvm.git)
Scala · 18 lines
✨ Summary
This Scala code defines a set of traits that provide a way to specialize and extend domain types, such as Domain
and IterableDomain
, with additional type parameters. The @specialized
annotation allows for specialization of these traits for specific types, enabling more generic and reusable code. It provides a foundation for building domain-specific languages (DSLs) in Scala.
This Scala code defines a set of traits that provide a way to specialize and extend domain types, such as Domain
and IterableDomain
, with additional type parameters. The @specialized
annotation allows for specialization of these traits for specific types, enabling more generic and reusable code. It provides a foundation for building domain-specific languages (DSLs) in Scala.
5 object wrap {
7 trait DomainLike[@specialized(Int) A, +This <: Domain[A]]
9 trait Domain[@specialized(Int) B]
10 extends DomainLike[B, Domain[B]]
12 trait IterableDomainLike[@specialized(Int) C, +This <: IterableDomain[C]]
13 extends DomainLike[C, This]
15 trait IterableDomain[@specialized(Int) D]
16 extends Domain[D] with IterableDomainLike[D, IterableDomain[D]]
18 }
runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 50 lines
✨ Summary
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
1 <?php
3 # This file illustrates the low-level C++ interface
5 # get converted into function calls.
7 require("example.php");
9 # ----- Object creation -----
36 $s = NULL;
38 print "\nA total of " . Shape::nshapes() . " shapes remain\n";
40 # ----- Delete by the container -----
43 print "Delete the container.";
44 $container = NULL;
45 print "\nA total of " . Shape::nshapes() . " shapes remain\n";
47 print "Goodbye\n";
Blame.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 156 lines
✨ Summary
This Java code is a SVN blame tool, which displays the revision history of a file by showing the author and revision number for each line of code. It takes a LogData object as input, which contains information about the SVN repository, username, password, and paths to analyze. The output is displayed on the console.
This Java code is a SVN blame tool, which displays the revision history of a file by showing the author and revision number for each line of code. It takes a LogData object as input, which contains information about the SVN repository, username, password, and paths to analyze. The output is displayed on the console.
Install.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments, loads configuration properties from a file, and provides methods for copying files to a specified output location with progress tracking. It also includes error handling and usage instructions.
This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments, loads configuration properties from a file, and provides methods for copying files to a specified output location with progress tracking. It also includes error handling and usage instructions.
1 /*
2 * Install.java - Main class of the installer
3 *
4 * Originally written by Slava Pestov for the jEdit installer project. This work
5 * has been placed into the public domain. You may use this work in any way and
6 * for any purpose you wish.
7 *
21 public class Install
22 {
23 public static void main(String[] args)
24 {
25 String javaVersion = System.getProperty("java.version");
dbnotnx.mod (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 98 lines
EntityResolverWrapper.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 145 lines
✨ Summary
This Java class, EntityResolverWrapper
, extends an abstract resolver to handle entity resolution in XML parsing. It wraps an existing entity resolver and provides additional functionality for resolving entities and opening input streams. The class is designed to be used with a specific XML parser library, providing compatibility with different entity resolvers.
This Java class, EntityResolverWrapper
, extends an abstract resolver to handle entity resolution in XML parsing. It wraps an existing entity resolver and provides additional functionality for resolving entities and opening input streams. The class is designed to be used with a specific XML parser library, providing compatibility with different entity resolvers.
messages.css
(http://enginey.googlecode.com/svn/trunk/)
CSS · 153 lines
✨ Summary
This CSS code defines a layout for a messaging system, including margins, padding, and float properties to arrange elements horizontally. It styles various HTML elements, such as input fields, labels, tables, and messages, with colors, fonts, and sizes to create a visually appealing interface. The code also adds styling to indicate unread messages and provides a clear structure for the messaging system’s layout.
This CSS code defines a layout for a messaging system, including margins, padding, and float properties to arrange elements horizontally. It styles various HTML elements, such as input fields, labels, tables, and messages, with colors, fonts, and sizes to create a visually appealing interface. The code also adds styling to indicate unread messages and provides a clear structure for the messaging system’s layout.
AUTHORS.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 5 lines
test10.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code defines a unit test suite for testing string manipulation functions. It reads test cases from an input file, executes each test using a custom test_runner
function, and runs all tests in the “test10” suite. The test suite is initialized with command-line arguments and can be executed to verify the correctness of the string manipulation functions being tested.
This C++ code defines a unit test suite for testing string manipulation functions. It reads test cases from an input file, executes each test using a custom test_runner
function, and runs all tests in the “test10” suite. The test suite is initialized with command-line arguments and can be executed to verify the correctness of the string manipulation functions being tested.
multiple_defs1.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code defines a regular expression pattern using Boost.Xpressive library. It creates two regex objects: srx
which matches one or more of any character (+_
) and drx
which matches one or more of any character (compiled from the string “.+”). The program then calls an external function f()
and returns its result, but does not print anything.
This C++ code defines a regular expression pattern using Boost.Xpressive library. It creates two regex objects: srx
which matches one or more of any character (+_
) and drx
which matches one or more of any character (compiled from the string “.+”). The program then calls an external function f()
and returns its result, but does not print anything.
SM-2Arg.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
board-ap325rxa.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 567 lines
✨ Summary
This C code is a board-specific initialization and configuration for an embedded system, likely a SoC (System-on-Chip) based device. It sets up various peripherals such as GPIO pins, I2C, SPI, and CEU interfaces, and configures the boot mode pin settings. The code also defines a machine vector that identifies the specific hardware configuration of the AP-325RXA board.
This C code is a board-specific initialization and configuration for an embedded system, likely a SoC (System-on-Chip) based device. It sets up various peripherals such as GPIO pins, I2C, SPI, and CEU interfaces, and configures the boot mode pin settings. The code also defines a machine vector that identifies the specific hardware configuration of the AP-325RXA board.
7 *
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file "COPYING" in the main directory of this archive
10 * for more details.
11 */
181 .clock_source = LCDC_CLK_EXTERNAL,
182 .ch[0] = {
183 .chan = LCDC_CHAN_MAINLCD,
184 .bpp = 16,
185 .interface_type = RGB18,
window.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 80 lines
main.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 52 lines
ServerKiller.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 134 lines
✨ Summary
This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.
This Java code checks if a jEdit server is running on the local machine, attempts to shut it down by sending a shutdown command, and then exits with an error code if the shutdown fails. It uses a socket connection to communicate with the server and waits for its closure before continuing execution.
xml.factor (git://github.com/abeaumont/factor.git) Unknown · 13 lines
performance_iterators.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests various Boost library functions for encoding and decoding data, including XML escaping and unescaping, character conversion between wide and narrow characters, and stream iterators. It verifies that these functions produce the expected output for different input data sets. The test cases cover various scenarios, such as encoding and decoding strings with special characters, converting between character encodings, and using stream iterators to read and write data.
This C++ code tests various Boost library functions for encoding and decoding data, including XML escaping and unescaping, character conversion between wide and narrow characters, and stream iterators. It verifies that these functions produce the expected output for different input data sets. The test cases cover various scenarios, such as encoding and decoding strings with special characters, converting between character encodings, and using stream iterators to read and write data.
test_registry_parser.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the functionality of a registry parser for Windows platforms. It creates a test registry key, writes data to it, reads back the data, and compares it with the original data using the boost::property_tree
library. The test also verifies binary translation between string representations and binary data.
This C++ code tests the functionality of a registry parser for Windows platforms. It creates a test registry key, writes data to it, reads back the data, and compares it with the original data using the boost::property_tree
library. The test also verifies binary translation between string representations and binary data.
bind_member_function_tests.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code tests the functionality of Boost.Phoenix, a library for functional programming in C++. It defines several non-copyable structs with member functions and uses Phoenix’s bind function to call these functions on instances of these structs, passing arguments as needed. The results are then verified using BOOST_TEST assertions.
The code tests the functionality of Boost.Phoenix, a library for functional programming in C++. It defines several non-copyable structs with member functions and uses Phoenix’s bind function to call these functions on instances of these structs, passing arguments as needed. The results are then verified using BOOST_TEST assertions.
word_count_functor.flex (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
BSHParserTokenManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2655 lines
✨ Summary
This Java code is part of a lexical analyzer for a programming language, specifically designed to parse strings with various characters such as quotes, parentheses, and special characters. It uses a finite state machine (FSM) approach to recognize patterns in input strings and generate output tokens. The FSM has multiple states and transitions based on the input character.
This Java code is part of a lexical analyzer for a programming language, specifically designed to parse strings with various characters such as quotes, parentheses, and special characters. It uses a finite state machine (FSM) approach to recognize patterns in input strings and generate output tokens. The FSM has multiple states and transitions based on the input character.
304 }
305 else {
306 // whack any remaining characters
307 s = s.replaceAll("[]", "");
308 outputBuffer.append(s);
310 }
311 else {
312 // whack any remaining characters
313 s = s.replaceAll("[]", "");
314 outputBuffer.append(s);
406 outputBuffer.append(line).append(ls);
408 // handle the remaining lines, put stars in front of them.
409 // TODO: this needs work. Need to preserve whitepsace after
410 // the star.
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
108 }
110 public static void main(String args[]) {
111 JsonParser parser;
112 if (args.length == 0) {
668 }
669 else {
670 // whack any remaining \u001c characters
671 s = s.replaceAll("[\u001c]", "");
672 outputBuffer.append(s);
674 }
675 else {
676 // whack any remaining \u001c characters
677 s = s.replaceAll("[\u001c]", "");
678 outputBuffer.append(s);
WordWrap.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 65 lines
✨ Summary
This Java code defines a custom action for a text editor, specifically Log Viewer. When triggered, it toggles word wrapping (line wrapping) on or off in the currently selected log file. It uses a separate class to handle the action and interacts with the main application’s GUI components. The action is part of a larger plugin for the jEdit text editor.
This Java code defines a custom action for a text editor, specifically Log Viewer. When triggered, it toggles word wrapping (line wrapping) on or off in the currently selected log file. It uses a separate class to handle the action and interacts with the main application’s GUI components. The action is part of a larger plugin for the jEdit text editor.
CommandLineReader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 108 lines
✨ Summary
This Java code creates a custom Reader
class called CommandLineReader
that modifies the behavior of the standard input stream when reading from the command line. It treats empty lines as ‘;\n’ to make the interpreter more user-friendly, but ignores this behavior when reading from files non-interactively.
This Java code creates a custom Reader
class called CommandLineReader
that modifies the behavior of the standard input stream when reading from the command line. It treats empty lines as ‘;\n’ to make the interpreter more user-friendly, but ignores this behavior when reading from files non-interactively.
b2_contact_manager_8h_source.html
(http://angel-engine.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This is a Doxygen-generated HTML documentation for a C++ class, specifically the b2ContactManager
class. It provides a detailed description of the class’s methods and variables, including their parameters, return types, and descriptions. The code is written in Markdown format, making it easy to read and understand.
This is a Doxygen-generated HTML documentation for a C++ class, specifically the b2ContactManager
class. It provides a detailed description of the class’s methods and variables, including their parameters, return types, and descriptions. The code is written in Markdown format, making it easy to read and understand.
pdx7.adsr~.pd (git://github.com/pd-projects/pdx7.git) Unknown · 427 lines
strings.xml (http://softkeyboard.googlecode.com/svn/) XML · 139 lines
4 <string name="ime_name">AnySoftKeyboard</string>
6 <string name="main_tab_welcome">Välkommen</string>
7 <string name="main_tab_links">Länkar</string>
8 <string name="main_tab_credits">Credits</string>
9 <!-- welcome tab -->
10 <string name="how_to_pointer_title">Välkommen till AnySoftKeyboard</string>
18 <string name="how_to_pointer_issues">Buggrapportering:</string>
19 <!-- credits tab -->
20 <string name="main_tab_credits_title">Denna applikation skapades med hjälp av följande personer-</string>
21 <string name="main_tab_credits_created_by">Skapad utav:</string>
22 <string name="main_tab_credits_additional_work_by">Bidragande programmering utav:</string>
23 <string name="main_tab_credits_localization_by">Översättningar utav:</string>
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2241 lines
87 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
89 - PHP mode now recognizes <script language="PHP">...</script>.
91 - Updated Omnimark syntax highlighting (Lionel Fiol).
706 - A display manager that is not associated with a visible buffer no
707 longer tries to maintain state; instead everything is recalculated
708 when it becomes visible. This fixes a whole class of bugs that would
709 manifest usually as incorrect scrolling behavior after switching
892 modes.
894 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.
896 }}}
edge.n (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 35 lines
normal_misc.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
54 <span class="keyword">using</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">numeric_limits</span><span class="special">;</span>
56 <span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
57 <span class="special">{</span>
58 <span class="identifier">cout</span> <span class="special"><<</span> <span class="string">"Example: Normal distribution, Miscellaneous Applications."</span><span class="special">;</span>
news.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 240 lines
31 <title> Preface </title>
33 <para> jEdit is a very mature text editor, and has gone through a very interesting phase of development. Left in a "prerelease" stage for about two years, it's had a long time to solifidy. Many of the original developers, including Slava Pestov, have stopped working directly on jEdit. Fortunately, because of the wonderful nature of open source, there are more and more eyeballs on this code than ever! We have received contributions of plugins, bugfixes, refactoring, and enhancements from around the globe, and our host, sourceforge.net <ulink url = "http://sourceforge.net/project/stats/detail.php?group_id=588&ugn=jedit&type=prdownload&mode=year&package_id=0" >reports</ulink> that there are on average at least a half-million downloads per year, and this has been true for the entire millenium.
34 </para>
62 <section id="readded"><title>Re-added Features</title>
63 <para>
64 Soft wrapping to the text area, one of my personal favorite features, is possible again, by setting the wrap width to zero. Thank you Slava! I really missed that feature. It's probably the main reason I started using, testing, and later developing jEdit 4.3.
65 </para>
178 <title> The core 4.3 plugins </title>
180 <para> This chapter showcases the new(er) plugins that were under the most active development during jEdit 4.3. Some of them influenced the development of the jEdit core, and others are good enough to be incorporated into the core, but are left as separate plugins simply because it makes it easier for us to maintain and debug them. </para>
182 <para> Navigator, providing a navigable history, is new and improved - it provides the user with Eclipse-like Navigation to previous locations, for each TextArea of each View. It uses new 4.3 EditBus messages which are now available in the public API, CaretChanging and BufferClosing. </para>
InvalidHeaderException.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 43 lines
✨ Summary
This Java code defines a custom exception class InvalidHeaderException
that extends the built-in IOException
. It provides two constructors: one with no message and another with a specified error message, both of which call the superclass constructor to set the error message. This exception is intended to be used when there’s an issue with a TAR archive header.
This Java code defines a custom exception class InvalidHeaderException
that extends the built-in IOException
. It provides two constructors: one with no message and another with a specified error message, both of which call the superclass constructor to set the error message. This exception is intended to be used when there’s an issue with a TAR archive header.
VariableGridLayout.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 333 lines
✨ Summary
This Java code implements a variable grid layout manager for Swing components. It dynamically adjusts the number of rows and columns based on the component count, and calculates the preferred size of each row and column accordingly. The layout is updated when the container’s component count changes, ensuring that all components are properly laid out within the available space.
This Java code implements a variable grid layout manager for Swing components. It dynamically adjusts the number of rows and columns based on the component count, and calculates the preferred size of each row and column accordingly. The layout is updated when the container’s component count changes, ensuring that all components are properly laid out within the available space.
layout.lisp
(https://bitbucket.org/skypher/weblocks-stable/)
Lisp · 59 lines
✨ Summary
This Lisp code defines a web application framework using Weblocks, a continuations-based web framework. It creates a main page with a flash widget displaying an initial message and navigation widgets for employees and companies pages. The employees and companies pages are defined as composites of gridedit widgets, which display data in tables and allow editing.
This Lisp code defines a web application framework using Weblocks, a continuations-based web framework. It creates a main page with a flash widget displaying an initial message and navigation widgets for employees and companies pages. The employees and companies pages are defined as composites of gridedit widgets, which display data in tables and allow editing.
plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1233 lines
thread_data.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a thread management system for Windows, including thread creation, interruption, and waiting. It defines a thread_data_base
class that manages thread-specific data, such as handles and callbacks. The this_thread
namespace provides functions for yielding control to other threads, interruptible waiting, and sleeping with optional timeouts.
This C++ header file provides a thread management system for Windows, including thread creation, interruption, and waiting. It defines a thread_data_base
class that manages thread-specific data, such as handles and callbacks. The this_thread
namespace provides functions for yielding control to other threads, interruptible waiting, and sleeping with optional timeouts.
93 {}
95 struct remaining_time
96 {
97 bool more;
98 unsigned long milliseconds;
100 remaining_time(uintmax_t remaining):
101 more(remaining>max_non_infinite_wait),
102 milliseconds(more?max_non_infinite_wait:(unsigned long)remaining)
103 {}
104 };
106 remaining_time remaining_milliseconds() const
107 {
108 if(is_sentinel())
set.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
c_file.py
(http://hadesmem.googlecode.com/svn/trunk/)
Python · 0 lines
✨ Summary
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
scheduler.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 123 lines
✨ Summary
This JavaScript code defines two classes: dojox.gfx3d.scheduler
and dojox.gfx3d.drawer
. The scheduler class organizes 3D objects into a hierarchical structure using a binary space partitioning algorithm, while the drawer class optimizes rendering by reordering DOM nodes based on object z-order.
This JavaScript code defines two classes: dojox.gfx3d.scheduler
and dojox.gfx3d.drawer
. The scheduler class organizes 3D objects into a hierarchical structure using a binary space partitioning algorithm, while the drawer class optimizes rendering by reordering DOM nodes based on object z-order.
JCompiler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 454 lines
✨ Summary
This Java code is a compiler for Java programs. It takes a set of .java
files, compiles them into bytecode, and then runs the resulting classes using Sun’s javac
tool. The compiled output is displayed in a GUI window, allowing users to view the compilation process and any errors that occur.
This Java code is a compiler for Java programs. It takes a set of .java
files, compiles them into bytecode, and then runs the resulting classes using Sun’s javac
tool. The compiled output is displayed in a GUI window, allowing users to view the compilation process and any errors that occur.
370 sm.setAllowExit(false);
372 sun.tools.javac.Main.main( arguments );
375 //WARNING: don't put code here as sun.tools.javac.Main.main might throw
376 //an exception
381 } catch (SecurityException donothing) {
383 //don't do anything here because sun.tools.javac.Main.main will
384 //always try and exit.
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
379 <KEYWORD1>LOW</KEYWORD1>
380 <KEYWORD1>MAGENTA</KEYWORD1>
381 <KEYWORD1>MAIN</KEYWORD1>
382 <KEYWORD1>MARGIN</KEYWORD1>
383 <KEYWORD1>MATCHES</KEYWORD1>
472 <KEYWORD1>REGISTER</KEYWORD1>
473 <KEYWORD1>RELATIVE</KEYWORD1>
474 <KEYWORD1>REMAINDER</KEYWORD1>
475 <KEYWORD1>REMOVE</KEYWORD1>
476 <KEYWORD1>RENAME</KEYWORD1>
README.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 126 lines
26 or any later version). See the file COPYING.txt for details.
28 The jEdit installer is released under a public domain license and may be
29 used for any purpose.
120 <http://jakarta.apache.org/avalon/excalibur/bzip2/>.
122 - com.ice.tar, by Tim Endres. This code is in the public domain.
124 The com.ice.tar web site is <http://www.trustice.com/java/tar/>.
libjpeg.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 53 lines
sb1250-mac.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2956 lines
✨ Summary
This C code implements a Linux driver for a specific type of Ethernet controller. It registers platform devices for each available unit, sets their MAC addresses, and provides a way to probe and remove them. The driver is designed to work with various System-on-Chip (SoC) types and can be used in a variety of applications, such as networking or embedded systems.
This C code implements a Linux driver for a specific type of Ethernet controller. It registers platform devices for each available unit, sets their MAC addresses, and provides a way to probe and remove them. The driver is designed to work with various System-on-Chip (SoC) types and can be used in a variety of applications, such as networking or embedded systems.
efivars.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 762 lines
✨ Summary
This C code implements an EFI (Extensible Firmware Interface) variables facility, allowing users to interact with firmware settings through a sysfs interface. It registers a subsystem with the firmware and vars subsystems, creating directories for storing and retrieving variable data. The code also provides functions for creating new variables, deleting existing ones, and exporting attributes to sysfs.
This C code implements an EFI (Extensible Firmware Interface) variables facility, allowing users to interact with firmware settings through a sysfs interface. It registers a subsystem with the firmware and vars subsystems, creating directories for storing and retrieving variable data. The code also provides functions for creating new variables, deleting existing ones, and exporting attributes to sysfs.
d.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 22 lines
soelim.cpp
(https://bitbucket.org/freebsd/freebsd-head/)
C++ · 309 lines
✨ Summary
This C++ code implements a command-line utility called soelim
(short for “source elimination”) that processes input files containing special characters and expands them into equivalent text representations. It is part of the GNU groff package, used to format documentation and other text documents. The program reads input files line by line, replacing special characters with their corresponding text representations.
This C++ code implements a command-line utility called soelim
(short for “source elimination”) that processes input files containing special characters and expands them into equivalent text representations. It is part of the GNU groff package, used to format documentation and other text documents. The program reads input files line by line, replacing special characters with their corresponding text representations.
xprt.c
(http://photon-android.googlecode.com/svn/)
C · 1160 lines
✨ Summary
This C code implements a transport layer for RPC (Remote Procedure Call) communications. It manages a pool of slots to handle incoming requests, prioritizes them based on their priority, and ensures that resources are released when no longer needed. The code also handles creation, destruction, and reference management of the transport instance.
This C code implements a transport layer for RPC (Remote Procedure Call) communications. It manages a pool of slots to handle incoming requests, prioritizes them based on their priority, and ensures that resources are released when no longer needed. The code also handles creation, destruction, and reference management of the transport instance.
test.c
(git://github.com/gmarceau/PLT.git)
C · 127 lines
✨ Summary
The code creates a memory leak by repeatedly allocating and deallocating memory using GC_malloc
and GC_gcollect
. It then tests for memory leaks by creating a cycle of linked lists with varying sizes, checking if the data is correctly allocated and accessed. If a mismatch is found, it prints an error message and exits. The code also sets up roots for garbage collection to track the allocated memory.
The code creates a memory leak by repeatedly allocating and deallocating memory using GC_malloc
and GC_gcollect
. It then tests for memory leaks by creating a cycle of linked lists with varying sizes, checking if the data is correctly allocated and accessed. If a mismatch is found, it prints an error message and exits. The code also sets up roots for garbage collection to track the allocated memory.
UnitTestMessage.resx (https://Silverlight.svn.codeplex.com/svn) Unknown · 214 lines
118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119 </resheader>
120 <data name="CompositeWorkItem_Invoke_NoRemainingWorkItems" xml:space="preserve">
121 <value>There are no remaining test work items</value>
ipsec_barf.8.html (https://bitbucket.org/__wp__/mb-linux-msli.git) HTML · 133 lines
shy_select.hpp
(https://code.google.com/p/smoothernity/)
C++ Header · 0 lines
✨ Summary
This C++ code defines a class _shy_common_logic_main_menu_selection_animation_select
that manages the animation of a main menu selection. It receives messages from a scheduler, updates its state based on these messages, and computes horizontal and vertical scales for the animation. The computed scales are then sent back to the scheduler as a reply message.
This C++ code defines a class _shy_common_logic_main_menu_selection_animation_select
that manages the animation of a main menu selection. It receives messages from a scheduler, updates its state based on these messages, and computes horizontal and vertical scales for the animation. The computed scales are then sent back to the scheduler as a reply message.
88 }
90 void _shy_common_logic_main_menu_selection_animation_select :: receive ( so_called_common_logic_main_menu_selection_animation_select_start_message )
91 {
92 shy_guts :: logic_main_menu_update_state :: select_started = so_called_platform_math_consts :: whole_true ;
94 }
96 void _shy_common_logic_main_menu_selection_animation_select :: receive ( so_called_common_logic_main_menu_selection_animation_select_transform_request_message )
97 {
98 if ( so_called_platform_conditions :: whole_is_true ( shy_guts :: logic_main_menu_update_state :: select_started ) )
106 }
108 void _shy_common_logic_main_menu_selection_animation_select :: receive ( so_called_common_logic_main_menu_update_message )
109 {
110 if ( so_called_platform_conditions :: whole_is_true ( shy_guts :: logic_main_menu_update_state :: select_started ) )
124 shy_guts :: logic_main_menu_update_state :: select_started = so_called_platform_math_consts :: whole_false ;
125 so_called_common_logic_main_menu_selection_animation_select_finished_sender :: send ( so_called_common_logic_main_menu_selection_animation_select_finished_message ( ) ) ;
126 }
Makefile
(https://bitbucket.org/freebsd/freebsd-head/)
Makefile · 40 lines
✨ Summary
This Makefile is for building the SKI boot loader on FreeBSD. It sets various compiler and linker flags, defines the source files to be compiled, and specifies the libraries to link against. The NEWVERSWHAT
variable is used to generate a version number for the boot loader.
This Makefile is for building the SKI boot loader on FreeBSD. It sets various compiler and linker flags, defines the source files to be compiled, and specifies the libraries to link against. The NEWVERSWHAT
variable is used to generate a version number for the boot loader.
special_variables_runme.java
(https://swig.svn.sourceforge.net/svnroot/swig)
Java · 54 lines
✨ Summary
This Java code is a test suite for a C++ library generated by SWIG (Simplified Wrapper and Interface Generator). It verifies that the generated Java classes correctly interface with the native C++ library, checking method signatures, declarations, and behavior. The verify
function checks if the expected output matches the actual output of each test case.
This Java code is a test suite for a C++ library generated by SWIG (Simplified Wrapper and Interface Generator). It verifies that the generated Java classes correctly interface with the native C++ library, checking method signatures, declarations, and behavior. The verify
function checks if the expected output matches the actual output of each test case.
test.rst
(git://github.com/IronLanguages/main.git)
ReStructuredText · 469 lines
✨ Summary
This is a Python module that provides various utility functions for unit testing. It includes functions to capture and check warnings, import modules with specific behaviors, and temporarily set environment variables.
This is a Python module that provides various utility functions for unit testing. It includes functions to capture and check warnings, import modules with specific behaviors, and temporarily set environment variables.
75 ... more test classes ...
77 def test_main():
78 test_support.run_unittest(MyTestCase1,
79 MyTestCase2,
81 )
83 if __name__ == '__main__':
84 test_main()
156 tests in the :mod:`test` package. It does this by finding all modules in the
157 package whose name starts with ``test_``, importing them, and executing the
158 function :func:`test_main` if present. The names of tests to execute may also
159 be passed to the script. Specifying a single regression test (:program:`python
160 regrtest.py` :option:`test_spam.py`) will minimize output and only print
255 Raise :exc:`ResourceDenied` if *resource* is not available. *msg* is the
256 argument to :exc:`ResourceDenied` if it is raised. Always returns
257 :const:`True` if called by a function whose ``__name__`` is ``'__main__'``.
258 Used when tests are executed by :mod:`test.regrtest`.
argcargvtest_runme.py
(https://swig.svn.sourceforge.net/svnroot/swig)
Python · 24 lines
✨ Summary
This Python code tests the mainc
and mainv
functions from the argcargvtest
module to ensure they correctly handle command-line arguments. It checks for correct behavior with different input types, including strings and tuples, and verifies that a TypeError is raised when an invalid argument type is passed. If any of these tests fail, it raises a RuntimeError exception.
This Python code tests the mainc
and mainv
functions from the argcargvtest
module to ensure they correctly handle command-line arguments. It checks for correct behavior with different input types, including strings and tuples, and verifies that a TypeError is raised when an invalid argument type is passed. If any of these tests fail, it raises a RuntimeError exception.
3 largs=['hi','hola','hello']
4 if mainc(largs) != 3:
5 raise RuntimeError, "bad main typemap"
7 targs=('hi','hola')
8 if mainv(targs,1) != 'hola':
9 raise RuntimeError, "bad main typemap"
11 targs=('hi', 'hola')
12 if mainv(targs,1) != 'hola':
13 raise RuntimeError, "bad main typemap"
15 try:
16 error = 0
17 mainv('hello',1)
18 error = 1
19 except TypeError:
pom.xml (http://mycila.googlecode.com/svn/) XML · 340 lines
161 <archive>
162 <manifest>
163 <mainClass>com.mycila.maven.ui.MavenDeployer</mainClass>
164 <addClasspath>false</addClasspath>
165 </manifest>
172 <archive>
173 <manifest>
174 <mainClass>com.mycila.maven.ui.MavenDeployer</mainClass>
175 <addClasspath>false</addClasspath>
176 </manifest>
177 </archive>
178 <descriptors>
179 <descriptor>${basedir}/src/main/assembly/project.xml</descriptor>
180 <descriptor>${basedir}/src/main/assembly/dependencies.xml</descriptor>
181 <descriptor>${basedir}/src/main/assembly/dist.xml</descriptor>
182 </descriptors>
183 </configuration>
populate
(git://github.com/openmelody/melody.git)
Perl · 798 lines
✨ Summary
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
55 cool tech blogging politics interesting video
56 perl python ruby web2.0 sixapart reference link audio
57 php javascript voip news
58 );
118 field(
119 'file_extension',
120 [ '', '', 'html', 'asp', 'jsp', 'php' ]
121 ),
122 field( 'email_new_comments', RAND_BOOL ),
436 You've chosen to clear all existing data in your database and populate
437 it with random, generated data. The system administrator login will be
438 Melody/Nelson. This tool is mainly used for testing MT performance and
439 usability with varying sizes of data.
frame.scrbl
(git://github.com/gmarceau/PLT.git)
Racket · 949 lines
✨ Summary
This Racket code defines a set of classes and interfaces for building text editors, including frame classes such as frame:basic
, frame:text
, and frame:searchable
. It also defines mixin classes that add functionality to these frames, such as frame:editor
and frame:searchable-text
. The code provides a framework for creating customizable text editors with features like searching, pasting, and status lines.
This Racket code defines a set of classes and interfaces for building text editors, including frame classes such as frame:basic
, frame:text
, and frame:searchable
. It also defines mixin classes that add functionality to these frames, such as frame:editor
and frame:searchable-text
. The code provides a framework for creating customizable text editors with features like searching, pasting, and status lines.
18 }
19 @defmethod*[(((get-area-container) (is-a?/c area-container<%>)))]{
20 This returns the main
21 @racket[area-container<%>]
22 in the frame
726 @definterface[frame:delegate<%> (frame:status-line<%> frame:text<%>)]{
727 Frames that implement this interface provide a 20,000 feet overview of the
728 text in the main editor. The term @bold{delegate} in these method
729 descriptions refers to the original editor and the term @bold{delegatee}
730 refers to the editor showing the 20,000 feet overview.
946 @defclass[frame:pasteboard% (frame:pasteboard-mixin frame:open-here%) ()]{}
948 @(include-previously-extracted "main-extracts.rkt" #rx"^frame:")
tas.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 56 lines
✨ Summary
This C header file defines constants and macros for the TAS codec, a digital signal processor used in audio devices. It provides settings for various audio parameters such as volume, treble, bass, and loudness, as well as control registers for managing these settings. The definitions are likely used by an operating system or firmware to interact with the TAS codec.
This C header file defines constants and macros for the TAS codec, a digital signal processor used in audio devices. It provides settings for various audio parameters such as volume, treble, bass, and loudness, as well as control registers for managing these settings. The definitions are likely used by an operating system or firmware to interact with the TAS codec.
company.tpl
(git://github.com/ezsystems/ezpublish.git)
Smarty Template · 31 lines
✨ Summary
This Smarty template displays a company’s information, including its name, logo, contact details, address, and additional information. It uses attributes to display data from an object, such as company_number
and logo
, and includes links to the company’s main page using the url_alias
. The output is presented in a structured format with headings and sections for easy reading.
This Smarty template displays a company’s information, including its name, logo, contact details, address, and additional information. It uses attributes to display data from an object, such as company_number
and logo
, and includes links to the company’s main page using the url_alias
. The output is presented in a structured format with headings and sections for easy reading.
2 <div class="content-view-embed">
3 <div class="class-company">
4 <h2><a href={$object.main_node.url_alias|ezurl}>{$object.name|wash}</a> ( {attribute_view_gui attribute=$object.data_map.company_number} )</h2>
6 <div class="content-body">
8 {if $object.data_map.logo.content}
9 <div class="attribute-image">
10 {attribute_view_gui attribute=$object.data_map.logo.content.data_map.image alignment=right image_class=small href=$object.main_node.url_alias|ezurl}
11 </div>
12 {/if}