100+ results for 'php reset'

Not the results you expected?

DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines

1 <?php

2

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 {

51

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 );

316

317 if ( is_null( $s ) || 'null' === $s ) {

328 } else {

329 if ( 1 === $count ) {

330 $d = reset( $in );

331

332 if ( is_null( $d ) || 'null' === $d ) {

452

453 if ( is_array( $column ) ) {

454 $column = reset( $column );

455 }

456

pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines

1 <?php

2

3 return [

35 'new_password' => 'New Password',

36 'agree_to_terms' => 'I Agree to Terms',

37 'forgot_email_message' => 'Please Enter Your Sign Up E-mail. Reset Link Will Sent Your E-mail.',

38 'email_address' => 'E-mail Adress',

39 'video_add_progress' => 'Video Add Progress',

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

57 public function _test_as_admin( $comment, $action ) {

58

59 // Reset request

60 $this->_clear_post_action();

61

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines

1 <?php

2

3 // Require Rediska

4 require_once dirname(__FILE__) . '/../../Rediska.php';

5

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);

176

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();

66

67 $tokens = $this->tokenize( $searchQuery );

81

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

223 } finally {

224 /*

225 * Java expects the digest context to be reset completely after sign

226 * calls.

227 */

245 } finally {

246 /*

247 * Java expects the digest context to be reset completely after

248 * verify calls.

249 */

FingersCrossedHandlerTest.php (https://gitlab.com/techniconline/kmc) PHP · 255 lines

1 <?php

2

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.

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

1 <?php

2

3 /**

5 */

6

7 w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');

8

9 /**

181

182 /**

183 * Reloads/compiles a PHP file.

184 * @param string $filename

185 * @return mixed

190

191 /**

192 * Reloads/compiles a PHP file.

193 * @param string[] $filenames

194 * @return mixed

AdapterChainTest.php (https://gitlab.com/my-application.bjoernbartels.earth/ZfcUser) PHP · 311 lines

1 <?php

2

3 namespace ZfcUserTest\Authentication\Adapter;

7 use ZfcUser\Authentication\Adapter\AdapterChainEvent;

8

9 class AdapterChainTest extends \PHPUnit_Framework_TestCase

10 {

11 /**

81

82 /**

83 * @covers ZfcUser\Authentication\Adapter\AdapterChain::resetAdapters

84 */

85 public function testResetAdapters()

110 ->will($this->returnValue($listeners));

111

112 $result = $this->adapterChain->resetAdapters();

113

114 $this->assertInstanceOf('ZfcUser\Authentication\Adapter\AdapterChain', $result);

provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

36 */

37 public function setUp(): void {

38 $this->resetAfterTest();

39 $this->setAdminUser();

40 }

TopologyEdgePointPtrVector.cs (https://github.com/wrobell/adaptagrams.git) C# · 290 lines

176 }

177

178 public void Reset() {

179 currentIndex = -1;

180 currentObject = null;

LessonsManagementImpl.java (https://github.com/dyreschlock/schlock-website.git) Java · 361 lines

240 }

241

242 public void resetPostCache()

243 {

244 cachedPosts = new HashMap<String, LessonPost>();

UrlAutoConverterTwigExtensionTest.php (https://github.com/liip/LiipUrlAutoConverterBundle.git) PHP · 158 lines

1 <?php

2

3 namespace Liip\UrlAutoConverterBundle\Tests\Extension;

5 use Liip\UrlAutoConverterBundle\Extension\UrlAutoConverterTwigExtension;

6

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

454 /**********************************/

455

456 // Reset Password

457 this.resetPassword = function ( ) {

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 */

22

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';

31

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

250 cdr >> frame.endian_mark_;

251 if ( frame.endian_mark_ == 0xfeff )

252 static_cast<ACE_InputCDR&>(cdr).reset_byte_order( ACE_CDR_BYTE_ORDER == 1 ? 0 : 1 );

253 cdr >> frame.proto_version_;

254 cdr >> frame.ctrl_;

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 /**

27

28 /**

29 * @var ItemFactory |\PHPUnit_Framework_MockObject_MockObject

30 */

31 protected $quoteItemFactoryMock;

32

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

222

223 /**

224 * Test reset.

225 *

226 * @return void

RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines

1 <?php

2

3 namespace Guzzle\Tests\Plugin\Redirect;

235 }

236

237 public function testResetsHistoryEachSend()

238 {

239 // Flush the server and queue up a redirect followed by a successful response

SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines

1 <?php

2

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 */

11

12 require_once 'tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php';

13

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

1 <?php

2

3 /*

215 }

216

217 public function reset()

218 {

219 $this->called = array();

translated-object.php (https://gitlab.com/hop23typhu/bryepoxy) PHP · 272 lines

1 <?php

2

3 /**

65 }

66 else {

67 $term = reset( $term );

68 }

69

110 if ( $this->keep_translation_group( $translations ) ) {

111 $terms = wp_get_object_terms( $translations, $this->tax_translations );

112 $term = reset( $terms );

113

114 // create a new term if necessary

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

408

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

42

43 @Test

44 public void testReset()

45 {

46 testThis.addPlayer("Player");

48

49 assertTrue(names.hasNext());

50 testThis.reset();

51

52 names = testThis.iterator();

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 */

11

135 * @return void

136 */

137 public function testPresetForm() {

138 $this->Controller->presetVars = array(

158 ClassRegistry::addObject('view', new View($this->Controller));

159

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.

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

127 // is a super-fast way to populate an object with array-like properties

128 this.length = 0;

WebPlatformStrategies.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 159 lines

61 // WebCore::LocalizationStrategy

62 virtual WTF::String inputElementAltText();

63 virtual WTF::String resetButtonDefaultLabel();

64 virtual WTF::String searchableIndexIntroduction();

65 virtual WTF::String submitButtonDefaultLabel();

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.

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();

242

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*);

137

138 void reset();

139

140 void createImageBuffer() const;

151 bool m_rendererIsCanvas;

152

153 bool m_ignoreReset;

154 FloatRect m_dirtyRect;

155

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.

355 this.pending = {};

356 this.invalid = {};

357 this.reset();

358

359 var groups = (this.groups = {});

466 },

467

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" />

476

477 if ( $.fn.resetForm )

478 $( this.currentForm ).resetForm();

mediaobject.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 686 lines

330 m_paused = false;

331 seek(0);

332 if (!(waveOutReset(m_hWaveOut) == MMSYSERR_NOERROR))

333 setError(Phonon::NormalError, QLatin1String("cannot stop (system error)"));

334 }

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.

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

95

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.

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.

161 CopyFile,

162 GotSymlink,

163 Reset

164 } state, next_state;

165

258 }

259

260 static int __init do_reset(void)

261 {

262 while(count && *victim == '\0')

372 [CopyFile] = do_copy,

373 [GotSymlink] = do_symlink,

374 [Reset] = do_reset,

375 };

376

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.

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 } //}}}

171

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.

514 }

515

516 static inline int lance_reset (struct net_device *dev)

517 {

518 struct lance_private *lp = netdev_priv(dev);

542 volatile struct lance_regs *ll = lp->ll;

543

544 printk(KERN_ERR "%s: transmit timed out, status %04x, reset\n",

545 dev->name, ll->rdp);

546 lance_reset(dev);

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.

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">&Chi;</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

65

66 CollectionCache* info() const { return m_info; }

67 void resetCollectionInfo() const;

68

69 mutable bool m_idsDone; // for nextNamedItem()

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.

27 /// Signaled when all of the WorkItemsGroup's work item completed.

28 /// </summary>

29 private readonly ManualResetEvent _isIdleWaitHandle = new ManualResetEvent(true);

30

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.

829

830 StreamTokenizer st = new StreamTokenizer(new StringReader(command));

831 st.resetSyntax();

832 st.wordChars('!', 255);

833 st.whitespaceChars(0, ' ');

powershell.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 574 lines

363 <KEYWORD3>Rename-Item</KEYWORD3>

364 <KEYWORD3>Rename-ItemProperty</KEYWORD3>

365 <KEYWORD3>Reset-ComputerMachinePassword</KEYWORD3>

366 <KEYWORD3>Resolve-Path</KEYWORD3>

367 <KEYWORD3>Restart-Computer</KEYWORD3>

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.

116 addCallback("css", css);

117 // return;

118 addCallback("reset", reset);

119 addCallback("fadeIn", fadeIn);

120 addCallback("fadeOut", fadeOut);

text-edit.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1246 lines

329

330 <para>By default, the last 100 edits is retained; older edits cannot be

331 undone. The maximum number of undos and whether undos are reset when a

332 buffer is saved can be changed in the <guibutton>Editing</guibutton>

333 pane of the <guimenu>Utilities</guimenu>&gt;<guimenuitem>Global

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.

137

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.

159

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.

21 // private boolean mChanegd = false;

22 //

23 // public void resetMetaState()

24 // {

25 // mPhysicalShiftState = MetaKeyState.Off;

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.

92 /**

93 * Returns false. REFilterReader does not support mark() and

94 * reset() methods.

95 */

96 public boolean markSupported() {

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.

63 // so that Home <mouse click> Home is not the same

64 // as pressing Home twice in a row

65 textArea.getInputHandler().resetLastActionCount();

66

67 quickCopyDrag = (textArea.isQuickCopyEnabled() &&

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.

94 attribute(aname, value);

95 }

96 // reset String contents

97 lastValue = new StringBuilder();

98

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.

120

121 void setupPreemption() { setSPLimit(stackEnd()); } // set up for preemption

122 void clearPreemption() { setSPLimit(spLimit()); } // reset

123 bool preemptionPending();

124

129 // sets SPLimit & frame patch if necessary

130 bool isSingleStepping() { return stepping; }

131 void resetSingleStepping();

132

133 void setUncommon(char* pc) { _uncommonPC = pc; }

134 char* uncommonPC() { return _uncommonPC; }

135 bool isUncommon() { return _uncommonPC != NULL; }

136 void resetUncommon() { _uncommonPC = NULL; }

137

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.

540 finally

541 {

542 get_jjtree().reset();

543 // reinit the callstack

544 if ( callstack.depth() > 1 ) {

693 + e.getMessage(), node, callstack );

694 } finally {

695 localInterpreter.get_jjtree().reset();

696

697 // reinit the callstack

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.

37 thread_data_base():

38 count(0),thread_handle(detail::win32::invalid_handle_value),

39 interruption_handle(create_anonymous_event(detail::win32::manual_reset_event,detail::win32::event_initially_reset)),

40 thread_exit_callbacks(0),tss_data(0),

41 interruption_enabled(true),

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.

250 } //}}}

251

252 //{{{ resetClearDirty method

253 public void resetClearDirty()

qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines

239 bool jumpToNextFrame();

240 QFrameInfo infoForFrame(int frameNumber);

241 void reset();

242

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 }

642

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.

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.

238 dirty = false;

239

240 // fixes dirty flag not being reset on

241 // save/insert/undo/redo/undo

242 if(!isUndoInProgress())

244 // this ensures that undo can clear the dirty flag properly

245 // when all edits up to a save are undone

246 undoMgr.resetClearDirty();

247 }

248 }

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.

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.

42 virtual void specificInitialize();

43

44 /**Class reset routine.

45 Each class will call its superclass reset() method*/

46 virtual void reset();

47

48 /**Ask for the node's output which ID (number) is output_id

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.

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 }

713

714 /* reset on-disk (metadata page) xtree XAD_NEW bit */

715 xad = &xp->xad[XTENTRYSTART];

716 for (n = XTENTRYSTART;

748 }

749

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.

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()) {

384

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.

234 inputStream = new FileInputStream(filename);

235 PersistenceDelegateCallback callback = new PersistenceCallback();

236 wm.getPersistenceDelegate().merge(inputStream, MergePolicy.RESET, callback);

237 inputStream.close();

238 } catch (FileNotFoundException e) {

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.

58 AR9170_CMD_TALLY_APD = 0x82,

59 AR9170_CMD_CONFIG = 0x83,

60 AR9170_CMD_RESET = 0x90,

61 AR9170_CMD_DKRESET = 0x91,

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.

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.

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 }

431

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.

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.

23 #define CLKFLAG_NOINVERT 0x00000002

24 #define CLKFLAG_NONEST 0x00000004

25 #define CLKFLAG_NORESET 0x00000008

26

27 #define CLK_FIRST_AVAILABLE_FLAG 0x00000100

qgraphicsscene_bsp.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 296 lines

153 findVisitor->onlyTopLevelItems = onlyTopLevelItems;

154 climbTree(findVisitor, rect);

155 // Reset discovery bits.

156 for (int i = 0; i < tmp.size(); ++i)

157 tmp.at(i)->d_ptr->itemDiscovered = 0;

Reset_TextArea.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 9 lines

1 /** Reset_TextArea.bsh

2 A macro that performs a split and an unsplit of the current TextArea.

3 Useful for those occasions when your textarea is corrupt (painting the

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.

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

112 <KEYWORD2>`endif</KEYWORD2>

113 <KEYWORD2>`timescale</KEYWORD2>

114 <KEYWORD2>`resetall</KEYWORD2>

115 <KEYWORD2>`signed</KEYWORD2>

116 <KEYWORD2>`unsigned</KEYWORD2>

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.

855 #endif

856

857 static inline int is_tcp_reset(const struct sk_buff *skb, int nh_len)

858 {

859 struct tcphdr _tcph, *th;

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.

708 ntohs(dest->port));

709 list_del(&dest->n_list);

710 ip_vs_dst_reset(dest);

711 __ip_vs_unbind_svc(dest);

712 kfree(dest);

733 list_for_each_entry_safe(dest, nxt, &ip_vs_dest_trash, n_list) {

734 list_del(&dest->n_list);

735 ip_vs_dst_reset(dest);

736 __ip_vs_unbind_svc(dest);

737 kfree(dest);

CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines

31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).

32

33 - PHP mode now recognizes <script language="PHP">...</script>.

34

35 - Updated Omnimark syntax highlighting (Lionel Fiol).

836 modes.

837

838 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.

839

840 }}}

890 the Find dialog box.

891

892 - Directory search settings were being reset when a search flag was

893 changed.

894

Wincrypt.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 44 lines

39 decryptable if you are logged in with \

40 the same account and only if your password \

41 did NOT get reset by a system administrator. \

42 Optionally the data can be protected with \

43 an additional entropy like a password.

mqsc.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 231 lines

50 <KEYWORD1>ref</KEYWORD1>

51 <KEYWORD1>replace</KEYWORD1><!-- as in DEF Q(X) REPLACE -->

52 <KEYWORD1>reset</KEYWORD1>

53 <KEYWORD1>resolve</KEYWORD1>

54 <KEYWORD1>resume</KEYWORD1>

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.

153 comedi_set_subdevice_runflags(s, ~0, runflags);

154

155 comedi_reset_async_buf(async);

156

157 return s->do_cmd(dev, s);

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.

38 static String ls = System.getProperty("line.separator");

39

40 static void reset() {

41 b = new StringBuilder();

42 outputBuffer = new StringBuilder();

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.

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.

126 PRegBList* exprStack, SplitSig* s) {

127 Node* n = APPEND(new RestartNode(exprStack, s, loopStart));

128 // reset current so that any code generated after the restart will

129 // be ignored in later phases since there is no path reaching it

130

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.

72 }

73

74 virtual void reset()

75 {

76 for (int i=0;i<outputLength;i++)

77 mean[i]=0;

78 init=false;

79 this->FrameOperation::reset();

80 }

81 void calculate(int output_id, int count, Buffer &out)

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.

488 finally

489 {

490 get_jjtree().reset();

491 // reinit the callstack

492 if ( callstack.depth() > 1 ) {

628 + e.getMessage(), node );

629 } finally {

630 localInterpreter.get_jjtree().reset();

631

632 // reinit the callstack

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.

27 #include <asm/mach-types.h>

28

29 #include <mach/reset.h>

30 #include <mach/gpio.h>

31 #include <mach/pxa2xx-gpio.h>

33 #include "generic.h"

34

35 void clear_reset_status(unsigned int mask)

36 {

37 if (cpu_is_pxa2xx())

38 pxa2xx_clear_reset_status(mask);

39

40 if (cpu_is_pxa3xx())

json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines

75 }

76

77 public void resetTokenSource() {

78 token_source.reset();

414 static String ls = System.getProperty("line.separator");

415

416 static void reset() {

417 b = new StringBuilder();

418 outputBuffer = new StringBuilder();

drawpoints.qps (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 101 lines

52 repeat_block points

53

54 resetMatrix

55

56 translate 0 100

67 repeat_block points

68

69 resetMatrix

70

71 translate 0 300

82 repeat_block points

83

84 resetMatrix

85 translate 10 500

86 setPen black 1 solidline flatcap

qxml.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 427 lines

103 void pushContext();

104 void popContext();

105 void reset();

106

107 private:

168 virtual QString data() const;

169 virtual QChar next();

170 virtual void reset();

171

172 static const ushort EndOfData;

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.

433

434 /*

435 * AC97 Reset

436 */

437

438 static int snd_ali_reset_5451(struct snd_ali *codec)

439 {

440 struct pci_dev *pci_dev;

469

470 /* non-fatal if you have a non PM capable codec */

471 /* snd_printk(KERN_WARNING "ali5451: reset time out\n"); */

472 return 0;

473 }

widgetsbase.ui.4 (https://bitbucket.org/ultra_iter/qt-vtl.git) Forth · 1177 lines

315 </property>

316 <property name="text">

317 <string>&amp;Reset colors</string>

318 </property>

319 </widget>

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.

544 EXPORT_SYMBOL_GPL(xprt_set_retrans_timeout_rtt);

545

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.

315 representing a warning will return :const:`None`.

316

317 The recorder object also has a :meth:`reset` method, which clears the

318 warnings list.

319

338 assert str(w.warnings[0].args[0]) == "foo"

339 assert str(w.warnings[1].args[0]) == "bar"

340 w.reset()

341 assert len(w.warnings) == 0

342

Unchained & Rovastar - Luckless.milk (git://github.com/xbmc/xbmc.git) Unknown · 117 lines

1 [preset00]

2 fRating=2.000000

3 fGammaAdj=1.000000

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.

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.

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 }

225

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.

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

606

607 #define M_RESET 0x1E40

608 #define M_MEMRDBK 0x1E44

609

641 #define M_CRTC_INDEX 0x1FD4

642

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.

322 }

323

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 }

346

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.

53 output_binary_int !conn.io_out pos

54

55 let reset_instr pos =

56 output_char !conn.io_out 'i';

57 output_binary_int !conn.io_out pos