100+ results for 'php reset'
Not the results you expected?
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
18 * Helper for specifying and resolving inter-dependent options.
19 *
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
21 * problems related to this approach is however a non-trivial task. Usually,
22 * both classes and subclasses should be able to set default option values.
122 *
123 * Last but not least, you can define options that depend on other options.
124 * For example, depending on the "make" you could preset the country that the
125 * car is registered in.
126 *
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
52 $this->headers .= "MIME-Version: 1.0\r\n";
53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
55 }
89 /*if ($this->attachment != '')
90 {
91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
92 $this->msgBody .= $this->attachment;
93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
120 $this->sendActivatedToCustomer($property);
121 break;
122 case 'sendPasswordResetToCustomer':
123 $this->sendPasswordResetToCustomer($property);
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
313 if ( $field_name === 'date' || $field_name === 'name' ) {
314 if ( 1 === $count ) {
315 $s = reset( $in );
317 if ( is_null( $s ) || 'null' === $s ) {
328 } else {
329 if ( 1 === $count ) {
330 $d = reset( $in );
332 if ( is_null( $d ) || 'null' === $d ) {
453 if ( is_array( $column ) ) {
454 $column = reset( $column );
455 }
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
1 <?php
3 /**
4 * Admin ajax functions to be tested
5 */
6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );
8 /**
57 public function _test_as_admin( $comment, $action ) {
59 // Reset request
60 $this->_clear_post_action();
70 $_POST['_per_page'] = 100;
71 $_POST['_page'] = 1;
72 $_POST['_url'] = admin_url( 'edit-comments.php' );
74 // Make the request
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
173 public function union($setOrSets, $storeKeyName, $aggregation = 'sum')
174 {
175 $sets = $this->_prepareSetsForComapre($setOrSets);
177 return $this->_getRediskaOn()->unionSortedSets($sets, $storeKeyName, $aggregation);
query_builder.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 302 lines
1 <?php
2 /**
3 * File containing the ezcSearchQueryBuilder class.
63 public function parseSearchQuery( ezcSearchQuery $query, $searchQuery, $searchFields )
64 {
65 $this->reset();
67 $tokens = $this->tokenize( $searchQuery );
82 /**
83 * Resets the parser to its initial state.
84 */
85 public function reset()
OpenSSLSignature.java (https://bitbucket.org/aways/android_libcore.git) Java · 303 lines
FingersCrossedHandlerTest.php (https://gitlab.com/techniconline/kmc) PHP · 255 lines
1 <?php
3 /*
54 /**
55 * @covers Monolog\Handler\FingersCrossedHandler::handle
56 * @covers Monolog\Handler\FingersCrossedHandler::reset
57 */
58 public function testHandleRestartBufferingAfterReset()
62 $handler->handle($this->getRecord(Logger::WARNING));
63 $handler->handle($this->getRecord(Logger::DEBUG));
64 $handler->reset();
65 $handler->handle($this->getRecord(Logger::INFO));
66 $handler->close();
FtpClient.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1046 lines
✨ Summary
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
211 * This command terminates a USER, flushing all I/O and account
212 * information, except to allow any transfer in progress to be
213 * completed. All parameters are reset to the default settings
214 * and the control connection is left open. This is identical
215 * to the state in which a user finds himself immediately after
4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines
1 <?php
2 /**
3 * Changes major.minor revisions to single revision numbers.
20 {
21 parent::__construct($connection, $version);
22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';
23 $this->_vfs = $GLOBALS['injector']
24 ->getInstance('Horde_Core_Factory_Vfs')
45 . 'ORDER BY page_id, page_majorversion, page_minorversion');
46 foreach ($history as $entry) {
47 // Next page? Reset version.
48 if ($entry['page_id'] != $id) {
49 $version = 1;
83 . 'attachment_minorversion');
84 foreach ($history as $entry) {
85 // Next page? Reset version.
86 if ($entry['page_id'] != $id ||
87 $entry['attachment_name'] != $name) {
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
AdapterChainTest.php (https://gitlab.com/my-application.bjoernbartels.earth/ZfcUser) PHP · 311 lines
1 <?php
3 namespace ZfcUserTest\Authentication\Adapter;
7 use ZfcUser\Authentication\Adapter\AdapterChainEvent;
9 class AdapterChainTest extends \PHPUnit_Framework_TestCase
10 {
11 /**
82 /**
83 * @covers ZfcUser\Authentication\Adapter\AdapterChain::resetAdapters
84 */
85 public function testResetAdapters()
110 ->will($this->returnValue($listeners));
112 $result = $this->adapterChain->resetAdapters();
114 $this->assertInstanceOf('ZfcUser\Authentication\Adapter\AdapterChain', $result);
provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines
TopologyEdgePointPtrVector.cs (https://github.com/wrobell/adaptagrams.git) C# · 290 lines
LessonsManagementImpl.java (https://github.com/dyreschlock/schlock-website.git) Java · 361 lines
UrlAutoConverterTwigExtensionTest.php (https://github.com/liip/LiipUrlAutoConverterBundle.git) PHP · 158 lines
1 <?php
3 namespace Liip\UrlAutoConverterBundle\Tests\Extension;
5 use Liip\UrlAutoConverterBundle\Extension\UrlAutoConverterTwigExtension;
7 class UrlAutoConverterTwigExtensionTest extends \PHPUnit_Framework_TestCase
8 {
9 public function testGetFilters()
14 $this->assertIsArray($returnArray);
15 $this->assertNotEmpty($returnArray);
16 $filter = reset($returnArray);
17 $this->assertInstanceOf('Twig_SimpleFilter', $filter);
18 $this->assertEquals(array('html'), $filter->getSafe(new \Twig_Node()));
56 ),
57 array(
58 'Lorem ipsum <a href="http://www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd" class="" target="">www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd</a> ad amet, lala aksjdhasd.',
59 'Lorem ipsum www.test.com/kjsdsd/safs.php?dfa=kdjf&sfddf=dsafsd ad amet, lala aksjdhasd.',
SearsAPIs.js (https://github.com/littlelazer/SearsAPIs.git) JavaScript · 501 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');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
startup_gcc.c (https://github.com/hrshygoodness/Luminary-Micro-Library.git) C · 238 lines
28 //
29 //*****************************************************************************
30 void ResetISR(void);
31 static void NmiSR(void);
32 static void FaultISR(void);
67 (void (*)(void))((unsigned long)pulStack + sizeof(pulStack)),
68 // The initial stack pointer
69 ResetISR, // The reset handler
70 NmiSR, // The NMI handler
71 FaultISR, // The hard fault handler
144 //
145 // This is the code that gets called when the processor first starts execution
146 // following a reset event. Only the absolutely necessary set is performed,
147 // after which the application supplied entry() routine is called. Any fancy
148 // actions (such as making decisions based on the reset cause register, and
startup_ewarm.c (https://github.com/hrshygoodness/Luminary-Micro-Library.git) C · 229 lines
36 //
37 //*****************************************************************************
38 void ResetISR(void);
39 static void NmiSR(void);
40 static void FaultISR(void);
91 { .ulPtr = (unsigned long)pulStack + sizeof(pulStack) },
92 // The initial stack pointer
93 ResetISR, // The reset handler
94 NmiSR, // The NMI handler
95 FaultISR, // The hard fault handler
159 //
160 // This is the code that gets called when the processor first starts execution
161 // following a reset event. Only the absolutely necessary set is performed,
162 // after which the application supplied entry() routine is called. Any fancy
163 // actions (such as making decisions based on the reset cause register, and
lifecycle_frame_serializer.cpp (https://github.com/HiroyukiSeki/qtplatz.git) C++ · 310 lines
ProcessorTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 435 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
19 * Tests for Magento\Quote\Model\Service\Quote\Processor
20 */
21 class ProcessorTest extends \PHPUnit_Framework_TestCase
22 {
23 /**
28 /**
29 * @var ItemFactory |\PHPUnit_Framework_MockObject_MockObject
30 */
31 protected $quoteItemFactoryMock;
33 /**
34 * @var StoreManagerInterface |\PHPUnit_Framework_MockObject_MockObject
35 */
36 protected $storeManagerMock;
tabs_helper.php (https://github.com/rickogden/joind.in.git) PHP · 337 lines
1 <?php
2 /**
3 * Helpers for creating Accessible Tabs.
4 *
5 * PHP version 5
6 *
7 * @category Joind.in
138 ob_start();
139 $contentList = array();
140 reset($this->_tabs);
141 if (empty($this->_selectedTab) || !isset($this->_tabs[$this->_selectedTab])) {
142 $tmp_tab = current($this->_tabs);
143 $this->_selectedTab = $tmp_tab->getId();
144 reset($this->_tabs);
145 }
146 ?>
HelperRegistryTest.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 334 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 2.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
223 /**
224 * Test reset.
225 *
226 * @return void
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines
1 <?php
3 /*
4 * $Id: SortableBehaviorTest.php 1356 2009-12-11 16:36:55Z francois $
5 * This file is part of the Propel package.
6 * For the full copyright and license information, please view the LICENSE
10 */
12 require_once 'tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php';
14 /**
267 $res = $t2->removeFromList();
268 $this->assertTrue($res instanceof Table11, 'removeFromList() returns the current object');
269 $this->assertNull($res->getRank(), 'removeFromList() resets the object\'s rank');
270 Table11Peer::clearInstancePool();
271 $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4');
TouchTest.ap_.d (https://gitlab.com/gregtyka/Restaurant-Menu--Ionic) D · 129 lines
106 D:\Programming\TouchPoint\TouchPoint_Ionic\TouchTest\platforms\android\assets\www\lib\ionic\scss\_radio.scss \
107 D:\Programming\TouchPoint\TouchPoint_Ionic\TouchTest\platforms\android\assets\www\lib\ionic\scss\_range.scss \
108 D:\Programming\TouchPoint\TouchPoint_Ionic\TouchTest\platforms\android\assets\www\lib\ionic\scss\_reset.scss \
109 D:\Programming\TouchPoint\TouchPoint_Ionic\TouchTest\platforms\android\assets\www\lib\ionic\scss\_scaffolding.scss \
110 D:\Programming\TouchPoint\TouchPoint_Ionic\TouchTest\platforms\android\assets\www\lib\ionic\scss\_select.scss \
TraceableEventDispatcher.php (https://github.com/deviantintegral/symfony.git) PHP · 335 lines
translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines
DB_result.php (https://gitlab.com/ricoru21/py_incidencia) PHP · 410 lines
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
7 * @package CodeIgniter
182 return $this->row_data[$n];
183 }
184 // reset the $n variable if the result was not achieved
185 $n = 0;
186 }
407 // END DB_result class
409 /* End of file DB_result.php */
410 /* Location: ./system/database/DB_result.php */
TestPlayerManager.java (https://github.com/muadibbm/Hearts.git) Java · 515 lines
prg.test.php (https://github.com/manubamba/cakephp-search-plugin-v1.1.git) PHP · 373 lines
1 <?php
2 /**
3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
135 * @return void
136 */
137 public function testPresetForm() {
138 $this->Controller->presetVars = array(
158 ClassRegistry::addObject('view', new View($this->Controller));
160 $this->Controller->Prg->presetForm('Post');
161 $expected = array(
162 'Post' => array(
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.
WebPlatformStrategies.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 159 lines
BufferLoadRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 395 lines
✨ Summary
This Java code is part of a text editor’s buffer management system. It reads and processes markers from a file, which are used to mark specific positions in a document. The code handles various encoding formats, detects errors, and updates the buffer with the correct content based on the detected encoding. It also logs any errors that occur during this process.
This Java code is part of a text editor’s buffer management system. It reads and processes markers from a file, which are used to mark specific positions in a document. The code handles various encoding formats, detects errors, and updates the buffer with the correct content based on the detected encoding. It also logs any errors that occur during this process.
174 * Returns rewinded contents stream.
175 * This method assumes the marked stream was made by
176 * getMarkedStream() method. The stream may be reopened if reset()
177 * failed.
178 */
182 try
183 {
184 markedStream.reset();
185 return markedStream;
186 }
239 {
240 gzipped = AutoDetection.isGzipped(markedStream);
241 markedStream.reset();
243 encodingProviders.addAll(AutoDetection.getEncodingDetectors());
HTMLCanvasElement.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 169 lines
83 if (newSize == size())
84 return;
85 m_ignoreReset = true;
86 setWidth(newSize.width());
87 setHeight(newSize.height());
88 m_ignoreReset = false;
89 reset();
136 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
138 void reset();
140 void createImageBuffer() const;
151 bool m_rendererIsCanvas;
153 bool m_ignoreReset;
154 FloatRect m_dirtyRect;
jquery.validate-vsdoc.js
(https://hg01.codeplex.com/fsharpmvc3vsix)
JavaScript · 1300 lines
✨ Summary
This JavaScript code provides a set of utility functions and plugins for jQuery, including:
- A validator plugin for form validation
- An AJAX abort function to cancel previous requests
- Cross-browser focusin and focusout event handling
- Event delegation functionality using the
validateDelegate
method.
It appears to be a collection of miscellaneous utilities for working with forms and AJAX requests in jQuery.
This JavaScript code provides a set of utility functions and plugins for jQuery, including:
- A validator plugin for form validation
- An AJAX abort function to cancel previous requests
- Cross-browser focusin and focusout event handling
- Event delegation functionality using the
validateDelegate
method.
It appears to be a collection of miscellaneous utilities for working with forms and AJAX requests in jQuery.
355 this.pending = {};
356 this.invalid = {};
357 this.reset();
359 var groups = (this.groups = {});
466 },
468 // http://docs.jquery.com/Plugins/Validation/Validator/resetForm
469 resetForm: function() {
470 /// <summary>
471 /// Resets the controlled form.
472 /// Resets input fields to their original value (requires form plugin), removes classes
475 /// <returns type="undefined" />
477 if ( $.fn.resetForm )
478 $( this.currentForm ).resetForm();
mediaobject.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 686 lines
WordTypedListener.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 342 lines
✨ Summary
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
This Java class, WordTypedListener
, observes changes to a typed word and notifies observers when the word is modified. It filters out non-word characters from the typed text and provides an interface for customizing the word separator filter. The class also manages the state of the last typed word and resets it when necessary.
35 * only letters are considered to belong to a word.
36 *
37 * It is observable and fires the events AT_START, INSIDE, AT_END, RESET and
38 * TRUNCATED when a word is inserted/ removed, see
39 * {@link net.jakubholy.jedit.autocomplete.WordTypedEvent}. Notice that it
96 //
97 // Set the caret after a reset
98 //
99 if (lastCaret == CARET_UNSET)
115 Log.log(Log.DEBUG, TextAutocompletePlugin.class,
116 "WordTypedListener: IGNORING an insert in the middle "
117 + "of a word after a reset. Offset: "
118 + offset);
119 }
cifsglob.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C Header · 711 lines
✨ Summary
This C header file defines various global variables and data structures for a CIFS (Common Internet File System) implementation, which is a protocol used to access Windows networks from Linux systems. It sets up locks and counters for managing SMB sessions, transactions, and buffers, as well as debug counters and miscellaneous settings.
This C header file defines various global variables and data structures for a CIFS (Common Internet File System) implementation, which is a protocol used to access Windows networks from Linux systems. It sets up locks and counters for managing SMB sessions, transactions, and buffers, as well as debug counters and miscellaneous settings.
226 char *domainName;
227 char *password;
228 bool need_reconnect:1; /* connection reset, uid now invalid */
229 };
230 /* no more than one of the following three session flags may be set */
303 bool local_lease:1; /* check leases (only) on local system not remote */
304 bool broken_posix_open; /* e.g. Samba server versions < 3.3.2, 3.2.9 */
305 bool need_reconnect:1; /* connection reset, tid now invalid */
306 /* BB add field for back pointer to sb struct(s)? */
307 };
initramfs.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 609 lines
✨ Summary
This C code is part of a Linux kernel module that initializes and populates the root file system during boot-up. It decompresses an internal initramfs image, which contains the root file system, and unpacks its contents into the root directory. If the initramfs image is not valid, it falls back to using the internal initramfs as the root file system. The code also handles cases where the initrd region overlaps with crashkernel reserved regions.
This C code is part of a Linux kernel module that initializes and populates the root file system during boot-up. It decompresses an internal initramfs image, which contains the root file system, and unpacks its contents into the root directory. If the initramfs image is not valid, it falls back to using the internal initramfs as the root file system. The code also handles cases where the initrd region overlaps with crashkernel reserved regions.
CompletionPopup.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 491 lines
✨ Summary
This Java code implements a popup window that displays a list of candidates and allows users to navigate through them using keyboard and mouse input. The popup can be triggered by pressing a specific key combination, and its behavior is customizable through various event listeners and handlers. It provides basic functionality for displaying and interacting with a list of items.
This Java code implements a popup window that displays a list of candidates and allows users to navigate through them using keyboard and mouse input. The popup can be triggered by pressing a specific key combination, and its behavior is customizable through various event listeners and handlers. It provides basic functionality for displaying and interacting with a list of items.
98 /**
99 * Create a completion popup.
100 * It is not shown until reset() method is called with valid
101 * candidates. All key events for the view are intercepted by
102 * this popup untill end of completion.
170 } //}}}
172 //{{{ reset() method
173 /**
174 * Start completion.
176 * @param active Set focus to the popup
177 */
178 public void reset(Candidates candidates, boolean active)
179 {
180 if(candidates == null || !candidates.isValid()
a2065.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 809 lines
✨ Summary
This C code implements a Linux driver for an Am7990 Ethernet controller, specifically the A2065 model. It sets up the network interface, registers the device with the kernel, and handles various events such as sending and receiving data, setting multicast addresses, and cleaning up resources when the module is unloaded.
This C code implements a Linux driver for an Am7990 Ethernet controller, specifically the A2065 model. It sets up the network interface, registers the device with the kernel, and handles various events such as sending and receiving data, setting multicast addresses, and cleaning up resources when the module is unloaded.
ValidationTextBox.html
(http://enginey.googlecode.com/svn/trunk/)
HTML · 13 lines
✨ Summary
This HTML code represents a form input field generated by the Dojo JavaScript framework. It includes an icon, text label, and input box for user input. The dojoAttachEvent
attribute is used to attach event listeners to the input field, allowing it to respond to mouse events and keyboard interactions.
This HTML code represents a form input field generated by the Dojo JavaScript framework. It includes an icon, text label, and input box for user input. The dojoAttachEvent
attribute is used to attach event listeners to the input field, allowing it to respond to mouse events and keyboard interactions.
1 <div class="dijit dijitReset dijitInlineTable dijitLeft"
2 id="widget_${id}"
3 dojoAttachEvent="onmouseenter:_onMouse,onmouseleave:_onMouse,onmousedown:_onMouse" waiRole="presentation"
4 ><div style="overflow:hidden;"
5 ><div class="dijitReset dijitValidationIcon"><br></div
6 ><div class="dijitReset dijitValidationIconText">Χ</div
7 ><div class="dijitReset dijitInputField"
8 ><input class="dijitReset" dojoAttachPoint='textbox,focusNode' dojoAttachEvent='onfocus:_update,onkeyup:_update,onblur:_onMouse,onkeypress:_onKeyPress' autocomplete="off"
HTMLCollection.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 87 lines
WorkItemsGroup.cs
(git://github.com/aurora-sim/Aurora-Sim.git)
C# · 510 lines
✨ Summary
This is a C# implementation of a work items group, which manages a pool of tasks to be executed by a thread pool. It provides methods for starting and stopping the group, canceling all tasks, and firing an event when the group is idle. The code uses synchronization mechanisms to ensure thread safety and handles task completion and cancellation.
This is a C# implementation of a work items group, which manages a pool of tasks to be executed by a thread pool. It provides methods for starting and stopping the group, canceling all tasks, and firing an event when the group is idle. The code uses synchronization mechanisms to ensure thread safety and handles task completion and cancellation.
27 /// Signaled when all of the WorkItemsGroup's work item completed.
28 /// </summary>
29 private readonly ManualResetEvent _isIdleWaitHandle = new ManualResetEvent(true);
31 private readonly object _lock = new object();
475 _stp.RegisterWorkItemsGroup(this);
476 Trace.WriteLine("WorkItemsGroup " + Name + " is NOT idle");
477 _isIdleWaitHandle.Reset();
478 }
479 }
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
powershell.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 574 lines
cobol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1002 lines
489 <KEYWORD1>RERUN</KEYWORD1>
490 <KEYWORD1>RESERVE</KEYWORD1>
491 <KEYWORD1>RESET</KEYWORD1>
492 <KEYWORD1>RETURN</KEYWORD1>
493 <KEYWORD1>RETURN-CODE</KEYWORD1>
915 <KEYWORD3>NONE</KEYWORD3>
916 <KEYWORD3>NOORDER</KEYWORD3>
917 <KEYWORD3>NORESETLOGS</KEYWORD3>
918 <KEYWORD3>NORMAL</KEYWORD3>
919 <KEYWORD3>NOSORT</KEYWORD3>
942 <KEYWORD3>REFERENCES</KEYWORD3>
943 <KEYWORD3>REFERENCING</KEYWORD3>
944 <KEYWORD3>RESETLOGS</KEYWORD3>
945 <KEYWORD3>RESTRICTED</KEYWORD3>
946 <KEYWORD3>REUSE</KEYWORD3>
Flowplayer.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 326 lines
✨ Summary
This ActionScript code defines a class that provides an interface to interact with plugins and multimedia elements on a screen, such as fading in/out, invoking methods, and updating clip properties. It also handles events, cue points, and plugin invocation, firing external events when necessary. The class seems to be part of a media player or presentation system.
This ActionScript code defines a class that provides an interface to interact with plugins and multimedia elements on a screen, such as fading in/out, invoking methods, and updating clip properties. It also handles events, cue points, and plugin invocation, firing external events when necessary. The class seems to be part of a media player or presentation system.
text-edit.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1246 lines
HD-Audio.txt (http://omnia2droid.googlecode.com/svn/trunk/) Plain Text · 619 lines
133 The most common problem regarding the HD-audio driver is the
134 unsupported codec features or the mismatched device configuration.
135 Most of codec-specific code has several preset models, either to
136 override the BIOS setup or to provide more comprehensive features.
145 keep your towel. First of all, it's an informational message, no
146 warning, no error. This means that the PCI SSID of your device isn't
147 listed in the known preset model (white-)list. But, this doesn't mean
148 that the driver is broken. Many codec-drivers provide the automatic
149 configuration mechanism based on the BIOS setup.
158 driver.
160 The preset model is provided basically to overcome such a situation.
161 When the matching preset model is found in the white-list, the driver
162 assumes the static configuration of that preset and builds the mixer
163 elements and PCM streams based on the static information. Thus, if
164 you have a newer machine with a slightly different PCI SSID from the
HardKeyboardActionImpl.java
(http://softkeyboard.googlecode.com/svn/)
Java · 171 lines
✨ Summary
This Java class implements a HardKeyboardAction, which tracks the state of physical keyboard keys (shift and alt) during key presses. It uses meta-key states to determine when these keys are pressed or released, and provides methods to access their current state and update the key code if necessary. The class is designed to work with Android’s soft keyboard functionality.
This Java class implements a HardKeyboardAction, which tracks the state of physical keyboard keys (shift and alt) during key presses. It uses meta-key states to determine when these keys are pressed or released, and provides methods to access their current state and update the key code if necessary. The class is designed to work with Android’s soft keyboard functionality.
REFilterReader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java class, REFilterReader
, is a filter reader that replaces occurrences of a given regular expression with replacement text when reading from a stream. It uses a custom CharIndexedReader
to track character positions and matches the input against a specified regular expression, replacing matches with the provided replacement text.
This Java class, REFilterReader
, is a filter reader that replaces occurrences of a given regular expression with replacement text when reading from a stream. It uses a custom CharIndexedReader
to track character positions and matches the input against a specified regular expression, replacing matches with the provided replacement text.
MouseHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 563 lines
✨ Summary
This Java code is part of a text editor’s mouse event handling mechanism. It handles various mouse events such as clicks, drags, and releases to manage selections, insertions, and deletions of text within the editor. The code ensures proper behavior for different mouse button combinations, including drag-and-drop functionality and quick copy/paste operations.
This Java code is part of a text editor’s mouse event handling mechanism. It handles various mouse events such as clicks, drags, and releases to manage selections, insertions, and deletions of text within the editor. The code ensures proper behavior for different mouse button combinations, including drag-and-drop functionality and quick copy/paste operations.
XInsertHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 146 lines
✨ Summary
This Java code is a parser for XML-insert files, specifically designed to handle Jext files. It processes the XML file and extracts data from it, storing it in an XTree object. The parser handles various elements such as MENU, VARIABLE, ITEM, and others, and stores their corresponding values in the XTree object.
This Java code is a parser for XML-insert files, specifically designed to handle Jext files. It processes the XML file and extracts data from it, storing it in an XTree object. The parser handles various elements such as MENU, VARIABLE, ITEM, and others, and stores their corresponding values in the XTree object.
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.
121 void setupPreemption() { setSPLimit(stackEnd()); } // set up for preemption
122 void clearPreemption() { setSPLimit(spLimit()); } // reset
123 bool preemptionPending();
129 // sets SPLimit & frame patch if necessary
130 bool isSingleStepping() { return stepping; }
131 void resetSingleStepping();
133 void setUncommon(char* pc) { _uncommonPC = pc; }
134 char* uncommonPC() { return _uncommonPC; }
135 bool isUncommon() { return _uncommonPC != NULL; }
136 void resetUncommon() { _uncommonPC = NULL; }
138 void setStopPoint(vframeOop stop);
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1205 lines
✨ Summary
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
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.
UndoManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 504 lines
✨ Summary
This Java code implements a Undo/Redo system for a text editor buffer. It manages a stack of undo operations, each consisting of an insert or remove operation on the buffer content. The UndoManager
class handles the creation and management of these operations, including revising a unique undo ID when necessary.
This Java code implements a Undo/Redo system for a text editor buffer. It manages a stack of undo operations, each consisting of an insert or remove operation on the buffer content. The UndoManager
class handles the creation and management of these operations, including revising a unique undo ID when necessary.
qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines
239 bool jumpToNextFrame();
240 QFrameInfo infoForFrame(int frameNumber);
241 void reset();
243 inline void enterState(QMovie::MovieState newState) {
284 /*! \internal
285 */
286 void QMoviePrivate::reset()
287 {
288 nextImageTimer.stop();
638 Q_D(QMovie);
639 d->reader->setDevice(device);
640 d->reset();
641 }
perl_matcher_recursive.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file implements a regular expression engine, providing functions for matching and manipulating strings according to regular expression rules. It includes various match functions (match_recursion
, match_match
, etc.) that handle different aspects of pattern matching, such as recursion, lookahead, and capturing groups. The code is part of the Boost library, a popular C++ framework for functional programming and other utilities.
This C++ header file implements a regular expression engine, providing functions for matching and manipulating strings according to regular expression rules. It includes various match functions (match_recursion
, match_match
, etc.) that handle different aspects of pattern matching, such as recursion, lookahead, and capturing groups. The code is part of the Boost library, a popular C++ framework for functional programming and other utilities.
214 case -5:
215 {
216 // Reset start of $0, since we have a \K escape
217 backup_subex<BidiIterator> sub(*m_presult, 0);
218 m_presult->set_first(position, 0, true);
355 if(match_all_states())
356 return true;
357 // failed repeat, reset posistion and fall through for alternative:
358 position = pos;
359 }
375 if(match_all_states())
376 return true;
377 // failed alternative, reset posistion and fall through for repeat:
378 position = pos;
379 }
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.
NorwegianIME.java
(http://scandinavian-keyboard.googlecode.com/svn/trunk/)
Java · 1713 lines
✨ Summary
This Java code is part of a Norwegian keyboard layout implementation for Android devices. It defines various methods and data structures to handle keyboard input, word frequency calculations, and letter symbol mapping. The code appears to be responsible for processing user input, validating words, and promoting words to the user dictionary based on their frequency.
This Java code is part of a Norwegian keyboard layout implementation for Android devices. It defines various methods and data structures to handle keyboard input, word frequency calculations, and letter symbol mapping. The code appears to be responsible for processing user input, validating words, and promoting words to the user dictionary based on their frequency.
486 mPredicting = false;
487 updateSuggestions();
488 TextEntryState.reset();
489 InputConnection ic = getCurrentInputConnection();
490 if (ic != null) {
493 } else if (!mPredicting && !mJustAccepted
494 && TextEntryState.getState() == TextEntryState.STATE_ACCEPTED_DEFAULT) {
495 TextEntryState.reset();
496 }
497 mJustAccepted = false;
824 mPredicting = true;
825 mComposing.setLength(0);
826 mWord.reset();
827 }
828 }
OutputStream.h
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ Header · 59 lines
✨ Summary
This C++ header file defines a class OutputStream
that inherits from Node
. It provides a way to interact with an output stream, allowing for initialization, resetting, and retrieving output data. The class has protected members for storing the IDs of input and output streams, as well as a reference to the opened stream.
This C++ header file defines a class OutputStream
that inherits from Node
. It provides a way to interact with an output stream, allowing for initialization, resetting, and retrieving output data. The class has protected members for storing the IDs of input and output streams, as well as a reference to the opened stream.
jfs_imap.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 3189 lines
✨ Summary
This C code appears to be part of a JFS (Journaling File System) implementation, specifically handling inode operations. It provides functions for copying data between in-memory and disk-based inode structures, as well as updating inode metadata such as permissions, timestamps, and device numbers. The code seems to be focused on ensuring consistency and accuracy when working with JFS file system data.
This C code appears to be part of a JFS (Journaling File System) implementation, specifically handling inode operations. It provides functions for copying data between in-memory and disk-based inode structures, as well as updating inode metadata such as permissions, timestamps, and device numbers. The code seems to be focused on ensuring consistency and accuracy when working with JFS file system data.
682 * further processing of btree root is based on the copy
683 * in in-memory inode, where txLog() will log from, and,
684 * for xtree root, txUpdateMap() will update map and reset
685 * XAD_NEW bit;
686 */
712 }
714 /* reset on-disk (metadata page) xtree XAD_NEW bit */
715 xad = &xp->xad[XTENTRYSTART];
716 for (n = XTENTRYSTART;
748 }
750 /* reset on-disk (metadata page) xtree XAD_NEW bit */
751 xad = &xp->xad[XTENTRYSTART];
752 for (n = XTENTRYSTART;
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.
369 /**
370 * Sets the current thread's context loader to this classloader, storing
371 * the current loader value for later resetting.
372 */
373 public void setThreadContextLoader() {
374 if (isContextLoaderSaved) {
375 throw new RuntimeException("Context loader has not been reset");
376 }
377 if (LoaderUtils.isContextLoaderAvailable()) {
385 /**
386 * Resets the current thread's context loader to its original value.
387 */
388 public void resetThreadContextLoader() {
MyDoggyWindowManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 605 lines
✨ Summary
This Java code implements a docking area manager for a graphical user interface (GUI). It manages tool windows, which are floating panels that can be docked to specific areas of the GUI. The code provides methods for showing and hiding tool windows, managing their visibility and activation, and updating their properties based on user preferences.
This Java code implements a docking area manager for a graphical user interface (GUI). It manages tool windows, which are floating panels that can be docked to specific areas of the GUI. The code provides methods for showing and hiding tool windows, managing their visibility and activation, and updating their properties based on user preferences.
hw.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 427 lines
✨ Summary
This C++ header file defines a set of constants, structures, and macros for an IEEE 802.11 wireless networking chip (AR9170). It provides definitions for packet formats, status codes, and queue management for transmit and receive operations. The code is likely used in a Linux kernel module or driver to interact with the AR9170 hardware.
This C++ header file defines a set of constants, structures, and macros for an IEEE 802.11 wireless networking chip (AR9170). It provides definitions for packet formats, status codes, and queue management for transmit and receive operations. The code is likely used in a Linux kernel module or driver to interact with the AR9170 hardware.
cnic_defs.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 581 lines
✨ Summary
This C++ header file defines a set of structures and constants for a network protocol, specifically for handling Keyed-Word Queued Encapsulations (KWQE). It provides definitions for various KWQE requests, including updating PG connections, uploading contexts, and others. The structures contain fields that represent the protocol’s parameters, such as flags, operation codes, and data addresses.
This C++ header file defines a set of structures and constants for a network protocol, specifically for handling Keyed-Word Queued Encapsulations (KWQE). It provides definitions for various KWQE requests, including updating PG connections, uploading contexts, and others. The structures contain fields that represent the protocol’s parameters, such as flags, operation codes, and data addresses.
19 #define L4_KWQE_OPCODE_VALUE_CONNECT2 (51)
20 #define L4_KWQE_OPCODE_VALUE_CONNECT3 (52)
21 #define L4_KWQE_OPCODE_VALUE_RESET (53)
22 #define L4_KWQE_OPCODE_VALUE_CLOSE (54)
23 #define L4_KWQE_OPCODE_VALUE_UPDATE_SECRET (60)
37 /* KCQ (kernel completion queue) response op codes */
38 #define L4_KCQE_OPCODE_VALUE_CLOSE_COMP (53)
39 #define L4_KCQE_OPCODE_VALUE_RESET_COMP (54)
40 #define L4_KCQE_OPCODE_VALUE_FW_TCP_UPDATE (55)
41 #define L4_KCQE_OPCODE_VALUE_CONNECT_COMPLETE (56)
42 #define L4_KCQE_OPCODE_VALUE_RESET_RECEIVED (57)
43 #define L4_KCQE_OPCODE_VALUE_CLOSE_RECEIVED (58)
44 #define L4_KCQE_OPCODE_VALUE_INIT_ULP (61)
ChunkCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 919 lines
✨ Summary
This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.
This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.
262 // Workaround for bug in Graphics2D in
263 // JDK1.4 under Windows; calling
264 // setPaintMode() does not reset
265 // graphics mode.
266 Graphics2D xorGfx = (Graphics2D)gfx.create();
427 fontRenderContext,str);
428 width = (float)text.getLogicalBounds().getWidth();
429 positions = text.getGlyphPositions(0,length,null);
430 }
tst_qsslsocket.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 2054 lines
166 void defaultCaCertificates();
167 void defaultCiphers();
168 void resetDefaultCiphers();
169 void setDefaultCaCertificates();
170 void setDefaultCiphers();
183 void disconnectFromHostWhenConnecting();
184 void disconnectFromHostWhenConnected();
185 void resetProxy();
186 void ignoreSslErrorsList_data();
187 void ignoreSslErrorsList();
370 QCOMPARE(socket.readLine(buf, sizeof(buf)), qint64(-1));
371 QTest::ignoreMessage(QtWarningMsg, "QIODevice::seek: The device is not open");
372 QVERIFY(!socket.reset());
373 QTest::ignoreMessage(QtWarningMsg, "QIODevice::seek: The device is not open");
374 QVERIFY(!socket.seek(2));
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.
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
67 * it started cleaning up earlier. In the process it decrements the
clock.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 49 lines
✨ Summary
This C header file defines a structure for clock management on MSM (Qualcomm’s mobile processor) devices. It includes definitions for clock flags, addresses of control registers, and an array of clock structures. The code provides a framework for managing clocks in the MSM device, allowing for configuration and control of clock settings.
This C header file defines a structure for clock management on MSM (Qualcomm’s mobile processor) devices. It includes definitions for clock flags, addresses of control registers, and an array of clock structures. The code provides a framework for managing clocks in the MSM device, allowing for configuration and control of clock settings.
qgraphicsscene_bsp.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 296 lines
Reset_TextArea.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 9 lines
ContentPane.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 236 lines
✨ Summary
This JavaScript code defines a custom widget called dojox.layout.ContentPane
that extends the built-in dijit.layout.ContentPane
. It provides additional features such as support for inline scripts, external script references, and relative path adjustments. The widget also includes error handling and deferred loading capabilities.
This JavaScript code defines a custom widget called dojox.layout.ContentPane
that extends the built-in dijit.layout.ContentPane
. It provides additional features such as support for inline scripts, external script references, and relative path adjustments. The widget also includes error handling and deferred loading capabilities.
138 // summary: cancels a inflight download
139 if(this._xhrDfd && this._xhrDfd.fired == -1){
140 // we are still in flight, which means we should reset our DeferredHandle
141 // otherwise we will trigger onUnLoad chain of the canceled content,
142 // the canceled content have never gotten onLoad so it shouldn't get onUnload
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 219 lines
ip_vs_core.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1543 lines
✨ Summary
This C code implements IP Virtual Server (IPVS), a Linux kernel module that provides advanced network load balancing and traffic management features. It sets up various components, including connection tracking, application helpers, protocols, and control interfaces, to manage incoming network connections and distribute them across multiple servers. The module registers hooks with the netfilter framework to integrate with other networking components.
This C code implements IP Virtual Server (IPVS), a Linux kernel module that provides advanced network load balancing and traffic management features. It sets up various components, including connection tracking, application helpers, protocols, and control interfaces, to manage incoming network connections and distribute them across multiple servers. The module registers hooks with the netfilter framework to integrate with other networking components.
ip_vs_ctl.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 3418 lines
✨ Summary
This C code initializes and cleans up a network traffic management system, specifically for IPVS (Internet Protocol Virtual Server). It sets up a Generic Netlink interface, registers sockopts, creates sysctl paths, and hooks into defense timer mechanisms to manage incoming packets. The cleanup function reverses these actions, ensuring the system is properly shut down.
This C code initializes and cleans up a network traffic management system, specifically for IPVS (Internet Protocol Virtual Server). It sets up a Generic Netlink interface, registers sockopts, creates sysctl paths, and hooks into defense timer mechanisms to manage incoming packets. The cleanup function reverses these actions, ensuring the system is properly shut down.
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines
31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
33 - PHP mode now recognizes <script language="PHP">...</script>.
35 - Updated Omnimark syntax highlighting (Lionel Fiol).
836 modes.
838 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.
840 }}}
890 the Find dialog box.
892 - Directory search settings were being reset when a search flag was
893 changed.
Wincrypt.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 44 lines
mqsc.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 231 lines
QtScript.4.6.0.linux-gcc-ia32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 2811 lines
270 76 QIODevice::seek
271 80 QIODevice::atEnd
272 84 QIODevice::reset
273 88 QIODevice::bytesAvailable
274 92 QIODevice::bytesToWrite
321 76 QFile::seek
322 80 QFile::atEnd
323 84 QIODevice::reset
324 88 QIODevice::bytesAvailable
325 92 QIODevice::bytesToWrite
514 76 QBuffer::seek
515 80 QBuffer::atEnd
516 84 QIODevice::reset
517 88 QIODevice::bytesAvailable
518 92 QIODevice::bytesToWrite
kcomedilib_main.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 561 lines
✨ Summary
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
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.
BrowserOptionPane.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 419 lines
✨ Summary
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
This HTML code is a documentation page for a Java class called BrowserOptionPane
. It displays information about the class, including its purpose, fields, methods, and nested classes. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated by a tool or framework that creates documentation pages from Java source code.
262 </TR>
263 <TR BGCOLOR="white" CLASS="TableRowColor">
264 <TD><CODE>addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update</CODE></TD>
265 </TR>
266 </TABLE>
nodeGen.cpp
(git://github.com/ticking/self.git)
C++ · 469 lines
✨ Summary
This C++ code is part of a compiler implementation, specifically responsible for generating branch instructions (if-else statements) in machine code. It creates nodes and merges them to represent conditional branches, allowing the compiler to decide which path to take based on the program’s logic. The generated code is optimized for performance and minimizes unnecessary operations.
This C++ code is part of a compiler implementation, specifically responsible for generating branch instructions (if-else statements) in machine code. It creates nodes and merges them to represent conditional branches, allowing the compiler to decide which path to take based on the program’s logic. The generated code is optimized for performance and minimizes unnecessary operations.
CMS.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 157 lines
✨ Summary
This C++ code implements a CMS (Constant Mean Subtraction) algorithm, a technique used in audio processing to reduce noise and improve signal quality. It takes input from multiple sources, calculates the mean of past inputs, subtracts it from the current input, and outputs the result. The algorithm is designed for use in digital signal processing applications.
This C++ code implements a CMS (Constant Mean Subtraction) algorithm, a technique used in audio processing to reduce noise and improve signal quality. It takes input from multiple sources, calculates the mean of past inputs, subtracts it from the current input, and outputs the result. The algorithm is designed for use in digital signal processing applications.
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.
generic.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 161 lines
✨ Summary
This C code provides low-level functionality for the PXA (Intel’s PXA2xx and PXA3xx) processor family, which is used in various embedded systems. It handles tasks such as clearing reset status, getting clock tick rates, configuring GPIO pins, and mapping I/O addresses. The code is part of the Linux kernel and serves as a common layer for different PXA-based machines.
This C code provides low-level functionality for the PXA (Intel’s PXA2xx and PXA3xx) processor family, which is used in various embedded systems. It handles tasks such as clearing reset status, getting clock tick rates, configuring GPIO pins, and mapping I/O addresses. The code is part of the Linux kernel and serves as a common layer for different PXA-based machines.
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
drawpoints.qps (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 101 lines
qxml.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 427 lines
ali5451.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2379 lines
✨ Summary
This C code implements a PCI driver for an ALI 5451 sound card. It initializes and configures the sound card, sets up mixer and PCM channels, and registers the device with the ALSA sound system. The code also handles power management and suspend/resume operations. When loaded, it registers the driver with the kernel and provides a way to interact with the sound card.
This C code implements a PCI driver for an ALI 5451 sound card. It initializes and configures the sound card, sets up mixer and PCM channels, and registers the device with the ALSA sound system. The code also handles power management and suspend/resume operations. When loaded, it registers the driver with the kernel and provides a way to interact with the sound card.
widgetsbase.ui.4 (https://bitbucket.org/ultra_iter/qt-vtl.git) Forth · 1177 lines
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.
544 EXPORT_SYMBOL_GPL(xprt_set_retrans_timeout_rtt);
546 static void xprt_reset_majortimeo(struct rpc_rqst *req)
547 {
548 const struct rpc_timeout *to = req->rq_task->tk_client->cl_timeout;
580 req->rq_timeout = to->to_initval;
581 req->rq_retries = 0;
582 xprt_reset_majortimeo(req);
583 /* Reset the RTT counters == "slow start" */
894 list_add_tail(&req->rq_list, &xprt->recv);
895 spin_unlock_bh(&xprt->transport_lock);
896 xprt_reset_majortimeo(req);
897 /* Turn off autodisconnect */
898 del_singleshot_timer_sync(&xprt->timer);
988 req->rq_xid = xprt_alloc_xid(xprt);
989 req->rq_release_snd_buf = NULL;
990 xprt_reset_majortimeo(req);
991 dprintk("RPC: %5u reserved req %p xid %08x\n", task->tk_pid,
992 req, ntohl(req->rq_xid));
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.
Unchained & Rovastar - Luckless.milk (git://github.com/xbmc/xbmc.git) Unknown · 117 lines
dhd_common.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1733 lines
✨ Summary
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
558 {WLC_E_PFN_NET_FOUND, "PNO_NET_FOUND"},
559 {WLC_E_PFN_NET_LOST, "PNO_NET_LOST"},
560 {WLC_E_RESET_COMPLETE, "RESET_COMPLETE"},
561 {WLC_E_JOIN_START, "JOIN_START"},
562 {WLC_E_ROAM_START, "ROAM_START"},
766 "dhd version:%d dongle version:%d]\n",
767 event_name, MSGTRACE_VERSION, hdr.version);
768 /* Reset datalen to avoid display below */
769 datalen = 0;
770 break;
exploretags.js
(https://code.google.com/p/ontowiki/)
JavaScript · 249 lines
✨ Summary
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>
6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}
7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
8 * @version $Id: $
9 *
170 params = { resources: taggedResource };
171 }
172 // reset selectedTags - not working
173 else if (type == 'exploretags' && typeparam == 'reset') {
213 * Deselect tags
214 */
215 function resetSelectedTags() {
216 for(key in filter.filters){
217 if(key.substr(0, 7) == "explore"){
224 }
226 function resetExploreTags() {
227 $.post(urlBase+"service/session?name=cloudproperties&method=unsetArray",
228 function(res){
matroxfb_base.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 734 lines
✨ Summary
This is a C++ header file that provides definitions and macros for interacting with a Matrox Millennium graphics card. It defines various registers, functions, and macros for reading and writing data to the card’s memory, as well as handling interrupts and synchronization. The code appears to be specific to the Matrox Millennium graphics card and is likely used in a Linux driver or firmware implementation.
This is a C++ header file that provides definitions and macros for interacting with a Matrox Millennium graphics card. It defines various registers, functions, and macros for reading and writing data to the card’s memory, as well as handling interrupts and synchronization. The code appears to be specific to the Matrox Millennium graphics card and is likely used in a Linux driver or firmware implementation.
522 struct matrox_switch {
523 int (*preinit)(struct matrox_fb_info *minfo);
524 void (*reset)(struct matrox_fb_info *minfo);
525 int (*init)(struct matrox_fb_info *minfo, struct my_timming*);
526 void (*restore)(struct matrox_fb_info *minfo);
605 #define M_VCOUNT 0x1E20
607 #define M_RESET 0x1E40
608 #define M_MEMRDBK 0x1E44
641 #define M_CRTC_INDEX 0x1FD4
643 #define M_ATTR_RESET 0x1FDA
644 #define M_3DA_WR 0x1FDA
645 #define M_INSTS1 0x1FDA
pm2fb.c
(http://photon-android.googlecode.com/svn/)
C · 1861 lines
✨ Summary
This C code implements a framebuffer device driver for Permedia2 graphics cards, specifically the TVP4020 and 3DLabs PerMedia2 models. It provides options for customizing video modes, horizontal and vertical sync settings, acceleration, and hardware cursor behavior. The driver is designed to work with Linux systems and can be compiled as a module or statically linked into the kernel.
This C code implements a framebuffer device driver for Permedia2 graphics cards, specifically the TVP4020 and 3DLabs PerMedia2 models. It provides options for customizing video modes, horizontal and vertical sync settings, acceleration, and hardware cursor behavior. The driver is designed to work with Linux systems and can be compiled as a module or statically linked into the kernel.
322 }
324 static void reset_card(struct pm2fb_par *p)
325 {
326 if (p->type == PM2_TYPE_PERMEDIA2V)
328 pm2_WR(p, PM2R_RESET_STATUS, 0);
329 mb();
330 while (pm2_RD(p, PM2R_RESET_STATUS) & PM2F_BEING_RESET)
331 cpu_relax();
332 mb();
345 }
347 static void reset_config(struct pm2fb_par *p)
348 {
349 WAIT_FIFO(p, 53);
debugcom.ml
(git://github.com/multani/ocaml-mirror.git)
OCaml · 299 lines
✨ Summary
This OCaml code is a low-level interface for interacting with a remote system, likely a distributed computing environment. It provides functions for sending and receiving data, including values of various types (e.g., integers, strings), as well as remote references to objects. The code also handles marshalling and unmarshalling of data between the local and remote systems.
This OCaml code is a low-level interface for interacting with a remote system, likely a distributed computing environment. It provides functions for sending and receiving data, including values of various types (e.g., integers, strings), as well as remote references to objects. The code also handles marshalling and unmarshalling of data between the local and remote systems.