100+ results for 'php prev'
Not the results you expected?
PeakShapeEllipsoidTest.h (https://github.com/wdzhou/mantid.git) C Header · 281 lines
heap.c (https://github.com/zick/kashiwa.git) C · 422 lines
381 void heap_gc(thunk_t* thunk) {
382 int finished = 0;
383 unsigned char* prev_heap = NULL;
384 assert(!in_heap_gc);
385 in_heap_gc = 1;
399 heap_size *= 2; /* TODO: calculate safe size */
400 heap = (unsigned char*)malloc(heap_size);
401 if (!heap || prev_heap) {
402 fprintf(stderr, "heap is full.\n");
403 exit(1);
404 }
405 prev_heap = heap_from;
406 heap_to = heap + heap_size / 2;
407 heap_end = heap + heap_size;
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.
96 * new default options!
97 *
98 * In the previous example, it makes sense to restrict the option "gear" to
99 * a set of allowed values:
100 *
153 * closure is executed once resolve() is called.
154 *
155 * The closure also receives a second parameter $previousValue that contains the
156 * value defined by the parent layer of the hierarchy. If the option has not
157 * been defined in any parent layer, the second parameter is NULL.
class-wp-customize-setting.php (https://bitbucket.org/mattsjohnston/tallpixels.git) PHP · 439 lines
1 <?php
2 /**
3 * Customize Setting Class.
64 /**
65 * Handle previewing the setting.
66 *
67 * @since 3.4.0
68 */
69 public function preview() {
70 switch( $this->type ) {
71 case 'theme_mod' :
72 add_filter( 'theme_mod_' . $this->id_data[ 'base' ], array( $this, '_preview_filter' ) );
73 break;
74 case 'option' :
class.splqueue.html (https://bitbucket.org/thncr/manuals.git) HTML · 216 lines
7 </head>
8 <body><div class="manualnavbar" style="text-align: center;">
9 <div class="prev" style="text-align: left; float: left;"><a href="splstack.setiteratormode.html">SplStack::setIteratorMode</a></div>
10 <div class="next" style="text-align: right; float: right;"><a href="splqueue.construct.html">SplQueue::__construct</a></div>
11 <div class="up"><a href="spl.datastructures.html">数据结构</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.splqueue" class="reference">
14 <h1 class="title">The SplQueue class</h1>
133 )</div>
134 <div class="methodsynopsis dc-description">
135 <span class="type">void</span> <span class="methodname"><a href="spldoublylinkedlist.prev.html" class="methodname">SplDoublyLinkedList::prev</a></span>
136 ( <span class="methodparam">void</span>
137 )</div>
DependencyContainer.php (https://gitlab.com/3dplex/3d-plex-main-site) PHP · 448 lines
1 <?php
3 /*
186 /**
187 * Specify the previously registered item as a literal value.
188 *
189 * {@link register()} must be called before this will work.
208 /**
209 * Specify the previously registered item as an alias of another item.
210 *
211 * @param string $lookup
228 /**
229 * Specify the previously registered item as a new instance of $className.
230 *
231 * {@link register()} must be called before this will work.
SimpleHeaderSet.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 387 lines
style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines
47 float: right;
48 position: relative;
49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>
50 }
83 <?php endif; ?>
84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>
85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>
89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>
90 background-color: <?php echo $text_overlay_bgcolor;?>;
97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>
98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>
99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>
100 position: absolute;
101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>
102 }
modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines
DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
59 if ($tiVersion != (int)0xFFFFFFFE /* pre-2.1 format */ &&
60 $tiVersion != (int)0xFFFFFFFD /* 2.1+ format */) {
61 require_once 'Zend/Search/Lucene/Exception.php';
62 throw new Zend_Search_Lucene_Exception('Wrong TermInfoIndexFile file format');
63 }
65 // $indexTermCount = $tiiFile->readLong();
66 if (PHP_INT_SIZE > 4) {
67 $indexTermCount = ord($data[$pos]) << 56 |
68 ord($data[$pos+1]) << 48 |
79 (ord($data[$pos+3]) != 0) ||
80 ((ord($data[$pos+4]) & 0x80) != 0)) {
81 require_once 'Zend/Search/Lucene/Exception.php';
82 throw new Zend_Search_Lucene_Exception('Largest supported segment size (for 32-bit mode) is 2Gb');
83 }
AbstractPaginator.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 487 lines
class.swfshape.html (https://bitbucket.org/stillzhl/manuals.git) HTML · 251 lines
7 </head>
8 <body><div class="manualnavbar" style="text-align: center;">
9 <div class="prev" style="text-align: left; float: left;"><a href="swfprebuiltclip.construct.html">SWFPrebuiltClip::__construct</a></div>
10 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
11 <div class="up"><a href="book.ming.html">Ming</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.swfshape" class="reference">
14 <h1 class="title">The SWFShape class</h1>
245 </div>
246 <hr /><div class="manualnavbar" style="text-align: center;">
247 <div class="prev" style="text-align: left; float: left;"><a href="swfprebuiltclip.construct.html">SWFPrebuiltClip::__construct</a></div>
248 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
249 <div class="up"><a href="book.ming.html">Ming</a></div>
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
1 <?php
2 /**
3 * @package Joomla.Platform
89 *
90 * @since 12.2
91 * @note The interface is only present in PHP 5.4 and up.
92 */
93 public function jsonSerialize()
102 * @param mixed $default An optional value for the parameter.
103 *
104 * @return mixed The value set, or the default if the value was not previously set (or null).
105 *
106 * @since 11.1
Base.php (https://github.com/ewandor/horde.git) PHP · 305 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 /**
225 /**
226 * Test getEvent() when no event has previously been set.
227 *
228 * @covers ZfcUser\Authentication\Adapter\AdapterChain::getEvent
246 /**
247 * Test getEvent() when an event has previously been set.
248 *
249 * @covers ZfcUser\Authentication\Adapter\AdapterChain::setEvent
errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines
ConfigListener.php (https://bitbucket.org/zbahij/eprojets_app.git) PHP · 383 lines
move.php (https://github.com/MarxGames/E-Hobused.git) PHP · 328 lines
1 <?php
2 include_once 'models/game.php';
199 $horse_count = $game->fountains[$this->fountain]->move_count[$this->color];
200 if($this->horse_nr != -1){
201 // needed if we remove in previously placed horse with different number than the last
202 $game->players[$this->color]->score -= $POINTS_FOR_HORSE[$horse_count];
203 $game->players[$this->color]->score += $POINTS_FOR_HORSE[$horse_count-1];
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
83 {
84 $t = Table11Peer::retrieveByRank(3);
85 $this->assertEquals(2, $t->getPrevious()->getRank(), 'getPrevious() returns the previous object in rank');
87 $t = Table11Peer::retrieveByRank(1);
88 $this->assertNull($t->getPrevious(), 'getPrevious() returns null for the first object');
89 }
pixel_iterator_adaptor.hpp (https://bitbucket.org/mihail_rylov/ayuine2c-winrt.git) C++ Header · 208 lines
193 /// \ingroup PixelIteratorModelDerefPtr
194 /// \brief For dereference iterator adaptors, compose the new function object after the old one
195 template <typename Iterator, typename PREV_DEREF, typename Deref>
196 struct iterator_add_deref<dereference_iterator_adaptor<Iterator, PREV_DEREF>,Deref> {
197 // GIL_CLASS_REQUIRE(Deref, boost::gil, PixelDereferenceAdaptorConcept)
199 typedef dereference_iterator_adaptor<Iterator, deref_compose<Deref,PREV_DEREF> > type;
201 static type make(const dereference_iterator_adaptor<Iterator, PREV_DEREF>& it, const Deref& d) {
202 return type(it.base(),deref_compose<Deref,PREV_DEREF>(d,it.deref_fn()));
203 }
204 };
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
234 $instance,
235 $this->Helpers->EventListenerTest,
236 'Instance in registry should be the same as previously loaded'
237 );
238 $this->assertCount(1, $this->Events->listeners('View.beforeRender'));
phony-test.js (https://github.com/neocotic/phony.js.git) JavaScript · 467 lines
PaginatedList.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 420 lines
1 <?php
2 /**
3 * A decorator that wraps around a data list in order to provide pagination.
237 *
238 * Example: 25 pages total, currently on page 6, context of 4 pages
239 * [prev] [1] ... [4] [5] [[6]] [7] [8] ... [25] [next]
240 *
241 * Example template usage:
243 * <% if MyPages.MoreThanOnePage %>
244 * <% if MyPages.NotFirstPage %>
245 * <a class="prev" href="$MyPages.PrevLink">Prev</a>
246 * <% end_if %>
247 * <% loop MyPages.PaginationSummary(4) %>
408 /**
409 * Returns a link to the previous page, if the first page is not currently
410 * active.
411 *
PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines
1 <?php
2 /*
3 * Copyright 2014 Google Inc.
70 * @opt_param string subscriptionId Required. Identifies the subscription
71 * resource on the Partner side. The value is restricted to 63 ASCII characters
72 * at the maximum. If a subscription was previously created with the same
73 * subscription_id, we will directly return that one.
74 * @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
81 }
82 /**
83 * Used by partners to entitle a previously provisioned subscription to the
84 * current end user. The end user identity is inferred from the authorized
85 * credential of the request. This API must be authorized by the end user using
149 * @opt_param string subscriptionId Required. Identifies the subscription
150 * resource on the Partner side. The value is restricted to 63 ASCII characters
151 * at the maximum. If a subscription was previously created with the same
152 * subscription_id, we will directly return that one.
153 * @return GoogleCloudPaymentsResellerSubscriptionV1Subscription
apbasic-widgets.php (https://gitlab.com/pornmongkon.p/wordpress) PHP · 273 lines
1 <?php
2 /**
3 *
222 * @since Accesspress Widget Pack 1.0
223 */
224 require get_template_directory() . '/inc/widgets/widget-fields.php';
226 /**
227 * Register Post Preview Widget
228 *
229 * @since accesspress Widget Pack 1.0
230 */
231 require get_template_directory() . '/inc/widgets/widget-testimonials.php';
233 /**
qwsmanager_qws.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 537 lines
77 QWSManagerPrivate::QWSManagerPrivate()
78 : QObjectPrivate(), activeRegion(QDecoration::None), managed(0), popup(0),
79 previousRegionType(0), previousRegionRepainted(false), entireDecorationNeedsRepaint(false)
80 {
81 cached_region.regionType = 0;
171 d->activeRegion = QApplication::qwsDecoration().regionAt(d->managed, d->mousePos);
172 if(d->cached_region.regionType)
173 d->previousRegionRepainted |= repaintRegion(d->cached_region.regionType, QDecoration::Pressed);
175 if (d->activeRegion == QDecoration::Menu) {
200 Q_D(QWSManager);
201 d->managed->releaseMouse();
202 if (d->cached_region.regionType && d->previousRegionRepainted && QApplication::mouseButtons() == 0) {
203 bool doesHover = repaintRegion(d->cached_region.regionType, QDecoration::Hover);
204 if (!doesHover) {
259 Q_D(QWSManager);
260 if (d->newCachedRegion(e->globalPos())) {
261 if(d->previousRegionType && d->previousRegionRepainted)
262 repaintRegion(d->previousRegionType, QDecoration::Normal);
qdatawidgetmapper.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 128 lines
qnetworkcookiejar.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 320 lines
COPYING.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 340 lines
splus.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 82 lines
AccumulativeRunnable.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 143 lines
✨ Summary
This Java class, AccumulativeRunnable
, allows for accumulating data of a specific type (T
) and then executing a Runnable
with that accumulated data on the Event Dispatch Thread (EDT). It provides a way to accumulate data in a thread-safe manner and execute it when needed, ensuring that only the last update is processed.
This Java class, AccumulativeRunnable
, allows for accumulating data of a specific type (T
) and then executing a Runnable
with that accumulated data on the Event Dispatch Thread (EDT). It provides a way to accumulate data in a thread-safe manner and execute it when needed, ensuring that only the last update is processed.
27 * In the event JLabel.setText is called rapidly many times off the EDT
28 * we will get many updates on the EDT but only the last one is important.
29 * (Every next updates overrides the previous one.)
30 * We might want to implement this {@code setText} in a way that only
31 * the last update is delivered.
Type.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 694 lines
✨ Summary
This Java class appears to be a part of the Java Virtual Machine (JVM) implementation, specifically for handling primitive types and method invocation. It provides methods for computing the size of values of different types, adapting JVM instruction opcodes to these types, and determining the opcode for specific instructions like IALOAD
or IREM
.
This Java class appears to be a part of the Java Virtual Machine (JVM) implementation, specifically for handling primitive types and method invocation. It provides methods for computing the size of values of different types, adapting JVM instruction opcodes to these types, and determining the opcode for specific instructions like IALOAD
or IREM
.
203 *
204 * @param sort the sort of the reference type to be constructed.
205 * @param buf a buffer containing the descriptor of the previous type.
206 * @param off the offset of this descriptor in the previous buffer.
349 *
350 * @param buf a buffer containing a type descriptor.
351 * @param off the offset of this descriptor in the previous buffer.
352 * @return the Java type corresponding to the given type descriptor.
353 */
managed_xsi_shared_memory.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class basic_managed_xsi_shared_memory
that provides a way to create, manage and access shared memory segments using the XSI (System V) interface. It inherits from other classes and provides various constructors, functions for opening, closing, moving and erasing shared memory objects.
This C++ header file defines a class basic_managed_xsi_shared_memory
that provides a way to create, manage and access shared memory segments using the XSI (System V) interface. It inherits from other classes and provides various constructors, functions for opening, closing, moving and erasing shared memory objects.
is_sorted.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for the is_sorted
algorithm from the Boost C++ Libraries. It displays information about the algorithm’s definition, requirements, complexity, and usage, along with copyright and licensing details. The content is presented in a structured format with headings, paragraphs, and links to related resources.
This HTML code outputs a documentation page for the is_sorted
algorithm from the Boost C++ Libraries. It displays information about the algorithm’s definition, requirements, complexity, and usage, along with copyright and licensing details. The content is presented in a structured format with headings, paragraphs, and links to related resources.
7 <link rel="home" href="../../../../index.html" title="Chapter 1. Range 2.0">
8 <link rel="up" href="../new.html" title="New algorithms">
9 <link rel="prev" href="iota.html" title="iota">
10 <link rel="next" href="overwrite.html" title="overwrite">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="iota.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../new.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overwrite.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
103 <hr>
104 <div class="spirit-nav">
105 <a accesskey="p" href="iota.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../new.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="overwrite.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
106 </div>
107 </body>
notes.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 152 lines
141 4 Oct 2008 Diff use cases:
143 1. working file against remote revision - in PV, want to compare the current working file against a revision in the repository. The repository version could be the same file but a previous revision, or a file in a different branch.
145 -- currently can only do against a previous version of the file.
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.
73 this.submit( function( event ) {
74 if ( validator.settings.debug )
75 // prevent form submit to be able to see console output
76 event.preventDefault();
92 }
94 // prevent submit for invalid forms or custom submit handlers
95 if ( validator.cancelSubmit ) {
96 validator.cancelSubmit = false;
841 previousValue: function(element) {
842 return $.data(element, "previousValue") || $.data(element, "previousValue", {
843 old: null,
844 valid: true,
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.
typemap_global_scope.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 216 lines
TemplateSettings.java (https://bitbucket.org/nbargnesi/idea.git) Java · 747 lines
374 public void addTemplate(Template template) {
375 clearPreviouslyRegistered(template);
376 addTemplateImpl(template);
386 }
388 private void clearPreviouslyRegistered(final Template template) {
389 TemplateImpl existing = getTemplate(template.getKey(), ((TemplateImpl) template).getGroupName());
390 if (existing != null) {
569 for (TemplateImpl template : created.values()) {
570 if (registerTemplate) {
571 clearPreviouslyRegistered(template);
572 addTemplateImpl(template);
573 }
adaptors.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code displays a documentation page for the Boost library, specifically its range
module. It shows various adaptor classes and their corresponding header files, along with links to navigate through related pages. The page includes copyright information and navigation buttons to move between sections of the documentation.
This HTML code displays a documentation page for the Boost library, specifically its range
module. It shows various adaptor classes and their corresponding header files, along with links to navigate through related pages. The page includes copyright information and navigation buttons to move between sections of the documentation.
7 <link rel="home" href="../../index.html" title="Chapter 1. Range 2.0">
8 <link rel="up" href="../headers.html" title="Library Headers">
9 <link rel="prev" href="general.html" title="General">
10 <link rel="next" href="algorithm.html" title="Algorithm">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="general.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../headers.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="algorithm.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
227 <hr>
228 <div class="spirit-nav">
229 <a accesskey="p" href="general.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../headers.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="algorithm.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
230 </div>
231 </body>
sh7763rdp_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 1237 lines
Window1.xaml.cs
(https://hg01.codeplex.com/d3future)
C# · 115 lines
✨ Summary
This C# code creates a Windows application that displays a forest of trees with varying sizes and shapes, using a dynamic data display control. The forest is loaded from a CSV file containing tree measurements, and users can adjust the scale of the forest using a slider, causing all trees to change size proportionally.
This C# code creates a Windows application that displays a forest of trees with varying sizes and shapes, using a dynamic data display control. The forest is loaded from a CSV file containing tree measurements, and users can adjust the scale of the forest using a slider, causing all trees to change size proportionally.
svc.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 591 lines
✨ Summary
This C code implements a file locking service for the Network File System (NFS). It provides authentication, authorization, and statistics management for NFS clients and servers. The code defines various data structures, functions, and procedures to handle different aspects of the file locking service, including versioning, program initialization, and termination.
This C code implements a file locking service for the Network File System (NFS). It provides authentication, authorization, and statistics management for NFS clients and servers. The code defines various data structures, functions, and procedures to handle different aspects of the file locking service, including versioning, program initialization, and termination.
121 lockd(void *vrqstp)
122 {
123 int err = 0, preverr = 0;
124 struct svc_rqst *rqstp = vrqstp;
172 err = svc_recv(rqstp, timeout);
173 if (err == -EAGAIN || err == -EINTR) {
174 preverr = err;
175 continue;
176 }
177 if (err < 0) {
178 if (err != preverr) {
179 printk(KERN_WARNING "%s: unexpected error "
180 "from svc_recv (%d)\n", __func__, err);
Handler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 50 lines
✨ Summary
This Java class implements a URL protocol handler for jEdit plugins, specifically the “list” protocol. It extends the URLStreamHandler
class and overrides the openConnection
method to create a new PluginResURLConnection
instance, which connects to the specified URL and returns an open connection.
This Java class implements a URL protocol handler for jEdit plugins, specifically the “list” protocol. It extends the URLStreamHandler
class and overrides the openConnection
method to create a new PluginResURLConnection
instance, which connects to the specified URL and returns an open connection.
27 * One somewhat unconventional requirement of URLStreamHandler classes
28 * is that the class name and even the package name have certain restrictions.
29 * You must name the handler class Handler, as in the previous example.
30 * The package name must include the protocol name as the last dot-separated token.
31 * This way, the Handler is automatically created in a lazy-fashion by the default
inserter-class.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a documentation page for a C++ library, specifically the Boost library. It displays information about the inserter
algorithm, including its usage, complexity, and example usage. The page includes links to related algorithms and documentation, as well as copyright information. The content is presented in a structured format with sections, paragraphs, and code examples.
This HTML code is a documentation page for a C++ library, specifically the Boost library. It displays information about the inserter
algorithm, including its usage, complexity, and example usage. The page includes links to related algorithms and documentation, as well as copyright information. The content is presented in a structured format with sections, paragraphs, and code examples.
9 </head>
10 <body class="docframe refmanual">
11 <table class="header"><tr class="header"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./front-inserter.html" class="navigation-link">Prev</a> <a href="./iteration-algorithms.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./front-inserter.html" class="navigation-link">Back</a> Along</span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./inserters.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
12 <td class="header-group page-location"><a href="../refmanual.html" class="navigation-link">Front Page</a> / <a href="./algorithms.html" class="navigation-link">Algorithms</a> / <a href="./inserters.html" class="navigation-link">Inserters</a> / <a href="./inserter-class.html" class="navigation-link">inserter (class)</a></td>
13 </tr></table><div class="header-separator"></div>
118 <div class="footer-separator"></div>
119 <table class="footer"><tr class="footer"><td class="header-group navigation-bar"><span class="navigation-group"><a href="./front-inserter.html" class="navigation-link">Prev</a> <a href="./iteration-algorithms.html" class="navigation-link">Next</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./front-inserter.html" class="navigation-link">Back</a> Along</span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./inserters.html" class="navigation-link">Up</a> <a href="../refmanual.html" class="navigation-link">Home</a></span><span class="navigation-group-separator"> | </span><span class="navigation-group"><a href="./refmanual_toc.html" class="navigation-link">Full TOC</a></span></td>
120 <td><div class="copyright-footer"><div class="copyright">Copyright © 2001-2009 Aleksey Gurtovoy and David Abrahams</div>
121 Distributed under the Boost Software License, Version 1.0. (See accompanying
execunix.c
(http://hadesmem.googlecode.com/svn/trunk/)
C · 0 lines
✨ Summary
This C code implements a command-line tool for executing shell commands. It manages multiple jobs (commands) and their corresponding input/output streams, handling signals, timeouts, and errors. The code uses a combination of system calls (select
, waitpid
) and custom functions to execute the commands, printing output and handling completion, failure, or timeout conditions.
This C code implements a command-line tool for executing shell commands. It manages multiple jobs (commands) and their corresponding input/output streams, handling signals, timeouts, and errors. The code uses a combination of system calls (select
, waitpid
) and custom functions to execute the commands, printing output and handling completion, failure, or timeout conditions.
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 424 lines
✨ Summary
This HTML code outputs a technical documentation page for a Java compiler plugin. It provides information on how to use and configure the plugin, including command-line options and file compilation details. The content is written in a formal tone, suggesting that it may be part of an open-source project’s documentation.
This HTML code outputs a technical documentation page for a Java compiler plugin. It provides information on how to use and configure the plugin, including command-line options and file compilation details. The content is written in a formal tone, suggesting that it may be part of an open-source project’s documentation.
interval_base_set.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
7 <link rel="home" href="../../index.html" title="Chapter 1. Boost.Icl">
8 <link rel="up" href="../../header/boost/icl/interval_base_set_hpp.html" title="Header <boost/icl/interval_base_set.hpp>">
9 <link rel="prev" href="../../header/boost/icl/interval_base_set_hpp.html" title="Header <boost/icl/interval_base_set.hpp>">
10 <link rel="next" href="is_set_icl_interval_bas_id653687.html" title="Struct template is_set<icl::interval_base_set< SubType, DomainT, Compare, Interval, Alloc >>">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../../header/boost/icl/interval_base_set_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/interval_base_set_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_set_icl_interval_bas_id653687.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry" lang="en">
295 <hr>
296 <div class="spirit-nav">
297 <a accesskey="p" href="../../header/boost/icl/interval_base_set_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/interval_base_set_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="is_set_icl_interval_bas_id653687.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
298 </div>
299 </body>
HelpTOCPanel.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 124 lines
✨ Summary
This HTML code is a generated documentation page for a Java class, specifically HelpTOCPanel
. It displays information about the class, including its usage, package tree, deprecated classes, index, and help documentation. The page includes navigation bars at the top and bottom, with links to related pages and classes.
This HTML code is a generated documentation page for a Java class, specifically HelpTOCPanel
. It displays information about the class, including its usage, package tree, deprecated classes, index, and help documentation. The page includes navigation bars at the top and bottom, with links to related pages and classes.
47 <TR>
48 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
49 PREV
50 NEXT</FONT></TD>
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
101 <TR>
102 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
103 PREV
104 NEXT</FONT></TD>
105 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
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.
306 window, true);
307 tw.addPropertyChangeListener("visible", listener);
308 tw.getRepresentativeAnchorDescriptor().setPreviewEnabled(OptionPane.getEnablePreviewProp());
309 return tw;
310 }
367 dockedDescriptor.addToolWindowAction(new RemoveDockableAction(), 0);
368 setFloatingProperties(tw);
369 tw.getRepresentativeAnchorDescriptor().setPreviewEnabled(OptionPane.getEnablePreviewProp());
370 }
572 for (ToolWindow w: windows) {
573 setFloatingProperties(w);
574 w.getRepresentativeAnchorDescriptor().setPreviewEnabled(OptionPane.getEnablePreviewProp());
575 }
576 }
inno-setup.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 407 lines
76 <!--
77 <MARK_PREVIOUS TYPE="KEYWORD1"
78 AT_LINE_START="TRUE" EXCLUDE_MATCH="TRUE">=</MARK_PREVIOUS>
163 <KEYWORD1>UninstallRestartComputer</KEYWORD1>
164 <KEYWORD1>UpdateUninstallLogAppName</KEYWORD1>
165 <KEYWORD1>UsePreviousAppDir</KEYWORD1>
166 <KEYWORD1>UsePreviousGroup</KEYWORD1>
167 <KEYWORD1>UsePreviousSetupType</KEYWORD1>
168 <KEYWORD1>UsePreviousTasks</KEYWORD1>
169 <KEYWORD1>UsePreviousUserInfo</KEYWORD1>
170 <KEYWORD1>UserInfoPage</KEYWORD1>
171 <!-- installer, cosmetic -->
container.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code displays a table of contents for a documentation page, likely related to the C++ Standard Template Library (STL). The table shows various algorithms and functions available in the STL, along with their descriptions and usage examples. It also includes links to navigate between sections and access additional information.
This HTML code displays a table of contents for a documentation page, likely related to the C++ Standard Template Library (STL). The table shows various algorithms and functions available in the STL, along with their descriptions and usage examples. It also includes links to navigate between sections and access additional information.
7 <link rel="home" href="../../../index.html" title="Chapter 1. Phoenix 3.0">
8 <link rel="up" href="../stl.html" title="STL">
9 <link rel="prev" href="../stl.html" title="STL">
10 <link rel="next" href="algorithm.html" title="Algorithm">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../stl.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stl.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="algorithm.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
596 <hr>
597 <div class="spirit-nav">
598 <a accesskey="p" href="../stl.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../stl.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="algorithm.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
599 </div>
600 </body>
sequence_efficiency.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code compares the performance of two accumulator functions, accumulator
and plain_accumulator
, on different fusion sequences (vectors and lists) with varying sizes. It measures the time taken by each function to accumulate a sum over the sequence elements, and prints the results in scientific notation. The goal is to determine which function performs better for each sequence size.
The code compares the performance of two accumulator functions, accumulator
and plain_accumulator
, on different fusion sequences (vectors and lists) with varying sizes. It measures the time taken by each function to accumulate a sum over the sequence elements, and prints the results in scientific notation. The goal is to determine which function performs better for each sequence size.
xmode.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 122 lines
25 <!-- RULES element -->
26 <!ELEMENT RULES ( ( TERMINATE | WHITESPACE | SPAN | EOL_SPAN | MARK_PREVIOUS
27 | MARK_FOLLOWING | SEQ )*, KEYWORDS? ) >
70 %att-exclude-match; >
72 <!-- MARK_PREVIOUS element -->
73 <!ELEMENT MARK_PREVIOUS ( #PCDATA ) >
75 <!-- MARK_PREVIOUS attributes -->
76 <!ATTLIST MARK_PREVIOUS
vm.rst
(git://github.com/clawpack/clawpack-4.x.git)
ReStructuredText · 251 lines
✨ Summary
This text provides instructions on how to set up and use a virtual machine (VM) for running a Linux environment, specifically XUbuntu 9.10. It covers topics such as installing guest additions, capturing the mouse pointer, resizing the VM window, setting the host key, and troubleshooting issues. The goal is to provide a step-by-step guide for users to set up and use the virtual machine for their needs.
This text provides instructions on how to set up and use a virtual machine (VM) for running a Linux environment, specifically XUbuntu 9.10. It covers topics such as installing guest additions, capturing the mouse pointer, resizing the VM window, setting the host key, and troubleshooting issues. The goal is to provide a step-by-step guide for users to set up and use the virtual machine for their needs.
122 When a Linux VM is moved to a new computer, it sometimes doesn't
123 realize that the previous computer's network adaptor is no longer
124 available. If you find yourself unable to connect to the Internet,
125 open a terminal window and type the following command::
141 The directory containing Clawpack is then clawpack-4.6.0.
143 This approach has been chosen since previous versions of Clawpack are then
144 archived along with an operating system on which everything works. This may
145 be advantageous is archiving codes that are used to produce the results in a
tip96.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 2 lines
faq-use.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 715 lines
605 toggle-line-numbers.shortcut=C+q C+t
606 cut-append.shortcut=C+q C+u
607 paste-previous.shortcut=C+q C+v
608 close-all.shortcut=C+q C+w
609 regexp.shortcut=C+q C+x
618 bottom-docking-area.shortcut=C+q C+DOWN
620 prev-marker.shortcut=C+q C+COMMA
621 next-marker.shortcut=C+q C+PERIOD
622 prev-bracket.shortcut=C+q C+OPEN_BRACKET
631 delete-paragraph.shortcut=C+q d
632 format-paragraph.shortcut=C+q f
633 find-previous.shortcut=C+q g
634 invert-selection.shortcut=C+q i
635 select-line.shortcut=C+q l
signed_int.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for Boost libraries, specifically the numeric generators section. It displays information about various numeric generator functions, including their syntax, parameters, and return types. The page includes links to related sections and a copyright notice at the bottom.
This HTML code outputs a documentation page for Boost libraries, specifically the numeric generators section. It displays information about various numeric generator functions, including their syntax, parameters, and return types. The page includes links to related sections and a copyright notice at the bottom.
7 <link rel="home" href="../../../../index.html" title="Spirit 2.5">
8 <link rel="up" href="../primitive_generators.html" title="Karma Generators">
9 <link rel="prev" href="real_number.html" title="Real Number Generators">
10 <link rel="next" href="unsigned_int.html" title="Unsigned Integer Generators">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="real_number.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="unsigned_int.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
266 <hr>
267 <div class="spirit-nav">
268 <a accesskey="p" href="real_number.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../primitive_generators.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="unsigned_int.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
269 </div>
270 </body>
View.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1671 lines
✨ Summary
This Java code defines a class View
that represents a view in an editor, managing its state and behavior. It handles key events, updates caret positions, and responds to window activation and closure events. The class also provides configuration options for views, such as layout settings and dockable panes.
This Java code defines a class View
that represents a view in an editor, managing its state and behavior. It handles key events, updates caret positions, and responds to window activation and closure events. The class also provides configuration options for views, such as layout settings and dockable panes.
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
BSHTernaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 61 lines
✨ Summary
This Java class represents a ternary expression in BeanShell scripting language. It prevents the right-hand side of boolean logical expressions from being evaluated naively, ensuring that only one branch is executed based on the condition’s truth value. The class uses a call stack and interpreter to evaluate the condition and corresponding true or false branches.
This Java class represents a ternary expression in BeanShell scripting language. It prevents the right-hand side of boolean logical expressions from being evaluated naively, ensuring that only one branch is executed based on the condition’s truth value. The class uses a call stack and interpreter to evaluate the condition and corresponding true or false branches.
InStateReactionTest.vcproj (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
78 .TP
79 \fB\-restore\fR
80 Restore previously open files on startup. This is the default.
81 .TP
82 \fB\-norestore\fR
83 Do not restore previously open files on startup.
84 .TP
85 \fB\-run=script\fR
158 .SH BUGS
159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.
161 .SH WEB
regex.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 122 lines
20 ^ - Match at beginning of string
21 $ - Match at end of string
22 ? - optionally match previous item token
23 * - Match previous token 0 or more times.
24 + - Match previous token 1 or more times.
25 | - Logical OR, allowing the previous token or next token to match
26 {m} - Match previous token exactly m times.
27 {m,} - Match previous token at least m times
28 {m,n} - Match previous token between m and n times, inclusive.
30 ***** Functions
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 406 lines
127 <para>
128 Differently from previous releases, the plugin does not follow the filesystem
129 layout to organize files anymore, except for certain cases; notably, when
130 doing the initial import from the project root or when adding a file that
391 <listitem>
392 <para>
393 ProjectViewer was previously (up to 1.0.2) maintained by Calvin Yu
394 </para>
395 </listitem>
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 39 lines
Jump.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 166 lines
✨ Summary
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
projection.py
(https://bitbucket.org/copelco/django-timepiece/)
Python · 288 lines
✨ Summary
This Python code is a test suite for a project management system, specifically testing various aspects of assignment and allocation logic. It creates assignments with different start and end dates, hours, and priority types, then tests how these are projected, allocated, and tracked over time, including unallocated hours, user allocations, and hour tracking.
This Python code is a test suite for a project management system, specifically testing various aspects of assignment and allocation logic. It creates assignments with different start and end dates, hours, and priority types, then tests how these are projected, allocated, and tracked over time, including unallocated hours, user allocations, and hour tracking.
javafx.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 90 lines
featurereq.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 100 lines
✨ Summary
This HTML code displays a table with feature requests for LaTeX Tools, including descriptions and target features. The table is divided into sections, each representing a request, and includes notes and additional information. The layout is centered on the page, making it easy to read and view the feature requests.
This HTML code displays a table with feature requests for LaTeX Tools, including descriptions and target features. The table is divided into sections, each representing a request, and includes notes and additional information. The layout is centered on the page, making it easy to read and view the feature requests.
string.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 132 lines
✨ Summary
This C code implements a string storage system for WAD files, using a hash table to store and retrieve strings efficiently. It provides functions like wad_string_lookup
to find existing strings in the hash table, wad_string_debug
to display debug information about the stored strings, and custom string copy and concatenation functions (wad_strcpy
, wad_strcat
).
This C code implements a string storage system for WAD files, using a hash table to store and retrieve strings efficiently. It provides functions like wad_string_lookup
to find existing strings in the hash table, wad_string_debug
to display debug information about the stored strings, and custom string copy and concatenation functions (wad_strcpy
, wad_strcat
).
RepositoryComboBox.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 238 lines
✨ Summary
This Java class, RepositoryComboBox
, is a custom JComboBox that allows users to select a repository from a dropdown list. It populates the list from jEdit properties and saves changes back to the properties file. The combo box displays friendly names of repositories and allows users to add, remove, and save repository data.
This Java class, RepositoryComboBox
, is a custom JComboBox that allows users to select a repository from a dropdown list. It populates the list from jEdit properties and saves changes back to the properties file. The combo box displays friendly names of repositories and allows users to add, remove, and save repository data.
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 711 lines
555 <title>Navigation</title>
556 <glosslist>
557 <glossentry><glossterm>Previous:</glossterm>
558 <glossdef>
559 <para>go back to previous misspelled word, rolling back any change.</para>
604 available from jedit repository. The documentation is generated using docbook xsl.
605 </para>
606 <para>Some tests are included. They are based upon <ulink url="http://fest.easytesting.org/swing/wiki/pmwiki.php">FEST-swing</ulink>
607 for GUI testing. Otherwise they are plain <ulink url="http://www.junit.org/">jUnit</ulink> tests.
608 To run the tests, <command>cd</command> to the plugin root directory and type <command>ant test</command>.
642 <listitem><para>user dictionaries</para></listitem>
643 <listitem><para>multiple engines (Hunspell bundled)</para></listitem>
644 <listitem><para>previous and done actions in spell-check dialog</para></listitem>
645 <listitem><para>suggest action in spell-check dialog</para></listitem>
646 <listitem><para>use buffer token types for context-sensitive spellchecking</para></listitem>
MarkerViewer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 283 lines
✨ Summary
This Java code defines a MarkerViewer
class, which is a dockable view of markers in a text editor’s current buffer. It displays a list of markers and provides buttons to add, remove, navigate through, and clear markers. The viewer updates dynamically when the underlying buffer changes. It also handles user interactions such as mouse clicks on the marker list.
This Java code defines a MarkerViewer
class, which is a dockable view of markers in a text editor’s current buffer. It displays a list of markers and provides buttons to add, remove, navigate through, and clear markers. The viewer updates dynamically when the underlying buffer changes. It also handles user interactions such as mouse clicks on the marker list.
60 toolBar.add(addMarker);
62 previous = new RolloverButton(GUIUtilities.loadIcon("ArrowL.png"));
63 previous.setToolTipText(GUIUtilities.prettifyMenuLabel(
64 jEdit.getProperty("prev-marker.label")));
65 previous.addActionListener(this);
66 previous.setActionCommand("prev-marker");
67 toolBar.add(previous);
114 updateSelection();
115 }
116 else if (cmd.equals("prev-marker"))
117 {
118 view.getEditPane().goToPrevMarker(false);
FormatterImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 807 lines
514 if (lineStartOffset >= text.length()) lineStartOffset = text.length() - 1;
515 final int wsStart = whiteSpace.getStartOffset();
516 int prevEnd;
518 if (text.charAt(lineStartOffset) == '\n'
519 && wsStart <= (prevEnd = documentModel.getLineStartOffset(documentModel.getLineNumber(lineStartOffset - 1))) &&
520 documentModel.getText(new TextRange(prevEnd, lineStartOffset)).toString().trim().length() == 0 // ws consists of space only, it is not true for <![CDATA[
ruby.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 139 lines
JEditTextArea.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 6057 lines
✨ Summary
This Java code defines a set of methods for navigating and manipulating text within a text editor, such as scrolling, selecting, and moving the caret (cursor) to specific positions in the document. The methods allow users to move up and down lines, pages, paragraphs, words, and screens, with options for selecting text and handling special cases like blank lines or multiple selections.
This Java code defines a set of methods for navigating and manipulating text within a text editor, such as scrolling, selecting, and moving the caret (cursor) to specific positions in the document. The methods allow users to move up and down lines, pages, paragraphs, words, and screens, with options for selecting text and handling special cases like blank lines or multiple selections.
718 int subregion = chunkCache.getSubregionOfOffset(
719 offset,infos);
720 int prevLine = displayManager.getPrevVisibleLine(getFirstPhysicalLine());
721 int nextLine = displayManager.getNextVisibleLine(getLastPhysicalLine());
722 if(line == getFirstPhysicalLine())
727 - _electricScroll);
728 }
729 else if(line == prevLine)
730 {
731 if(Debug.SCROLL_TO_DEBUG)
732 Log.log(Log.DEBUG,this,line + " == " + prevLine);
733 setFirstPhysicalLine(prevLine,subregion
905 /**
906 * Converts a point to an offset.
907 * Note that unlike in previous jEdit versions, this method now returns
908 * -1 if the y co-ordinate is out of bounds.
909 *
ellint_3.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
7 <link rel="home" href="../../../index.html" title="Math Toolkit">
8 <link rel="up" href="../ellint.html" title="Elliptic Integrals">
9 <link rel="prev" href="ellint_2.html" title="Elliptic Integrals of the Second Kind - Legendre Form">
10 <link rel="next" href="../zetas.html" title="Zeta Functions">
11 </head>
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="ellint_2.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ellint.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../zetas.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section" lang="en">
319 <hr>
320 <div class="spirit-nav">
321 <a accesskey="p" href="ellint_2.html"><img src="../../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../ellint.html"><img src="../../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../zetas.html"><img src="../../../../../../../../doc/src/images/next.png" alt="Next"></a>
322 </div>
323 </body>
GDataServiceGoogleBooks.h
(http://update-engine.googlecode.com/svn/trunk/)
C++ Header · 78 lines
✨ Summary
This is an Objective-C header file for a class called GDataServiceGoogleBooks
. It defines a service for interacting with Google Books data, including feeds for volumes and collections, methods for fetching data, and constants for URLs. The class inherits from GDataServiceGoogle
and provides additional functionality for working with Google Books data.
This is an Objective-C header file for a class called GDataServiceGoogleBooks
. It defines a service for interacting with Google Books data, including feeds for volumes and collections, methods for fetching data, and constants for URLs. The class inherits from GDataServiceGoogle
and provides additional functionality for working with Google Books data.
43 // pass nil as volume ID for the URL to the volumes feed
44 // (previously kGDataGoogleBooksDefaultVolumeFeed)
45 + (NSURL *)booksURLForVolumeID:(NSString *)volumeID;
47 // pass kGDataGoogleBooksLibraryCollection for the default library's volumes
48 // (previously kGDataGoogleBooksDefaultCollectionFeed)
49 + (NSURL *)booksURLForCollectionID:(NSString *)collectionID;
concepts.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class BoostRegexConcept
that provides a test framework for Boost Regex. It includes various functions and classes to test different aspects of Boost Regex, such as pattern matching, replacement, and iteration. The code is designed to be used in conjunction with the Boost Regex library to verify its functionality.
This C++ header file defines a class BoostRegexConcept
that provides a test framework for Boost Regex. It includes various functions and classes to test different aspects of Boost Regex, such as pattern matching, replacement, and iteration. The code is designed to be used in conjunction with the Boost Regex library to verify its functionality.
324 | global_regex_namespace::regex_constants::match_not_null
325 | global_regex_namespace::regex_constants::match_continuous
326 | global_regex_namespace::regex_constants::match_prev_avail
327 | global_regex_namespace::regex_constants::format_default
328 | global_regex_namespace::regex_constants::format_sed
869 | global_regex_namespace::regex_constants::match_continuous
870 | global_regex_namespace::regex_constants::match_partial
871 | global_regex_namespace::regex_constants::match_prev_avail
872 | global_regex_namespace::regex_constants::format_default
873 | global_regex_namespace::regex_constants::format_sed
aclocal.m4
(https://bitbucket.org/freebsd/freebsd-head/)
m4 · 905 lines
✨ Summary
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 219 lines
journal.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2456 lines
✨ Summary
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
266 * since we took the last commit snapshot, we use the frozen copy of
267 * that data for IO. If we end up using the existing buffer_head's data
268 * for the write, then we *have* to lock the buffer to prevent anyone
269 * else from using and possibly modifying it while the IO is in
270 * progress.
Token.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 91 lines
✨ Summary
This Java code defines a Token
class that represents an input token stream in a parser. It stores information about the token’s kind, position, and string image, as well as references to adjacent tokens. The class provides methods for accessing and manipulating this information, including creating new Token
objects based on their kind.
This Java code defines a Token
class that represents an input token stream in a parser. It stores information about the token’s kind, position, and string image, as well as references to adjacent tokens. The class provides methods for accessing and manipulating this information, including creating new Token
objects based on their kind.
52 * When there are more than one such special token, this field refers
53 * to the last of these special tokens, which in turn refers to the next
54 * previous special token through its specialToken field, and so on
55 * until the first special token (whose specialToken field is null).
56 * The next fields of special tokens refer to other special tokens that
ChunkCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 836 lines
✨ Summary
This Java code is part of a text editor’s line management system. It processes lines of text, breaking them into chunks based on wrapping and syntax highlighting. The code updates a list of LineInfo
objects to reflect changes in line length, offset, and chunk assignments, ensuring accurate rendering of the text area.
This Java code is part of a text editor’s line management system. It processes lines of text, breaking them into chunks based on wrapping and syntax highlighting. The code updates a list of LineInfo
objects to reflect changes in line length, offset, and chunk assignments, ensuring accurate rendering of the text area.
463 else
464 {
465 int prevLine = textArea.displayManager
466 .getPrevVisibleLine(physicalLine);
468 if(prevLine == -1)
469 return -1;
470 else
471 {
472 return textArea.getLineStartOffset(prevLine)
473 + xToSubregionOffset(prevLine,-1,
593 else
594 {
595 int prevPhysLine = lineInfo[
596 firstScreenLine - 1]
597 .physicalLine;
python.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 399 lines
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.
80 int caret = undosLast.undo();
81 redosFirst = undosLast;
82 undosLast = undosLast.prev;
83 if(undosLast == null)
84 undosFirst = null;
289 {
290 undosLast.next = edit;
291 edit.prev = undosLast;
292 undosLast = edit;
293 }
305 else
306 {
307 undosFirst.next.prev = null;
308 undosFirst = undosFirst.next;
309 }
assembly-parrot.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 139 lines
gnuplot.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 270 lines
dockables.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 10 lines
✨ Summary
This HTML code outputs a documentation page for “Dockable Windows” in jEdit 4.2. It displays a navigation menu with links to previous and next chapters, as well as an introduction explaining that the syntax of the dockables.xml
file has not changed, but dockable windows can now implement a new interface instead of overriding a deprecated method.
This HTML code outputs a documentation page for “Dockable Windows” in jEdit 4.2. It displays a navigation menu with links to previous and next chapters, as well as an introduction explaining that the syntax of the dockables.xml
file has not changed, but dockable windows can now implement a new interface instead of overriding a deprecated method.
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Dockable Windows</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="What's New in jEdit 4.2"><link rel="up" href="api-changes.html" title="Chapter 2. API Changes"><link rel="previous" href="actions.html" title="Actions"><link rel="next" href="services.html" title="Services"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Dockable Windows</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="actions.html">Prev</a> </td><th width="60%" align="center">Chapter 2. API Changes</th><td width="20%" align="right"> <a accesskey="n" href="services.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="dockables"></a>Dockable Windows</h2></div></div><div></div></div><p>
2 The syntax of the <tt class="filename">dockables.xml</tt> file has not changed.
3 </p><p>
7 interface and its
8 <tt class="function">focusOnDefaultComponent()</tt> method.
9 </p></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="actions.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="api-changes.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="services.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Actions </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Services</td></tr></table></div></body></html>
Mode.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 628 lines
✨ Summary
This HTML code is a documentation page for a Java class, specifically the Mode
class. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes, a summary of the class’s contents, and a detailed view of each section.
This HTML code is a documentation page for a Java class, specifically the Mode
class. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes, a summary of the class’s contents, and a detailed view of each section.
48 <TR>
49 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
50 <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>
51 <A HREF="../../../../org/gjt/sp/jedit/OperatingSystem.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
599 <TR>
600 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
601 <A HREF="../../../../org/gjt/sp/jedit/MiscUtilities.StringICaseCompare.html" title="class in org.gjt.sp.jedit"><B>PREV CLASS</B></A>
602 <A HREF="../../../../org/gjt/sp/jedit/OperatingSystem.html" title="class in org.gjt.sp.jedit"><B>NEXT CLASS</B></A></FONT></TD>
603 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
CommandManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 157 lines
✨ Summary
This Java code implements a command manager for a Perl debugger. It manages a queue of commands to be executed by the debugger, allowing for both immediate execution and queued execution. The CommandManager
class runs in its own thread, waiting for new commands to be added and executing them as they become available.
This Java code implements a command manager for a Perl debugger. It manages a queue of commands to be executed by the debugger, allowing for both immediate execution and queued execution. The CommandManager
class runs in its own thread, waiting for new commands to be added and executing them as they become available.
SM-2Arg.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
29 struct open_close {};
30 struct NextSong {};
31 struct PreviousSong {};
32 struct ThreeSec {};
33 struct TenSec {};
204 // transition actions
205 void start_next_song(NextSong const&) { std::cout << "Playing::start_next_song\n"; }
206 void start_prev_song(PreviousSong const&) { std::cout << "Playing::start_prev_song\n"; }
207 // guard conditions
213 // +---------+-------------+---------+---------------------+----------------------+
214 a_row < Song1 , NextSong , Song2 , &pl::start_next_song >,
215 a_row < Song2 , PreviousSong, Song1 , &pl::start_prev_song >,
216 a_row < Song2 , NextSong , Song3 , &pl::start_next_song >,
217 a_row < Song3 , PreviousSong, Song2 , &pl::start_prev_song >
guidelines.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
384 <div class="section">
385 <h2><a class="toc-backref" href="#id12" id="derive-your-base-class-from-boost-noncopyable" name="derive-your-base-class-from-boost-noncopyable">3. Derive your base class from <tt class="docutils literal docutils literal"><span class="pre">boost::noncopyable</span></tt></a></h2>
386 <p>Having an abstact base class prevents slicing when the base class is involved, but
387 it does not prevent it for classes further down the hierarchy. This is where
PluginManagerOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 377 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It manages a list of mirrors, which are sources of software packages. The code updates the mirror list from a cache or web source and displays it in a GUI. It also allows users to select a specific mirror and download its contents.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It manages a list of mirrors, which are sources of software packages. The code updates the mirror list from a cache or web source and displays it in a GUI. It also allows users to select a specific mirror and download its contents.
JavaCharStream.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 585 lines
✨ Summary
This Java code is a part of a text processing library, specifically designed to parse and manipulate text data. It appears to be responsible for adjusting line and column numbers when a token starts, and also provides methods for getting image representations of the text data, such as a string representation of the current buffer position.
This Java code is a part of a text processing library, specifically designed to parse and manipulate text data. It appears to be responsible for adjusting line and column numbers when a token starts, and also provides methods for getting image representations of the text data, such as a string representation of the current buffer position.
67 protected int line = 1;
69 protected boolean prevCharIsCR = false;
70 protected boolean prevCharIsLF = false;
213 column++;
215 if (prevCharIsLF)
216 {
217 prevCharIsLF = false;
218 line += (column = 1);
219 }
220 else if (prevCharIsCR)
221 {
222 prevCharIsCR = false;
421 nextCharBuf = new char[4096];
422 }
423 prevCharIsLF = prevCharIsCR = false;
424 tokenBegin = inBuf = maxNextCharInd = 0;
425 nextCharInd = bufpos = -1;
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
521 // trims whitespace (\r, \n, space, \t) from the last items in the
522 // accumulator. If the last item is all whitespace, continues on to the
523 // previous until a non-whitespace character is encountered. If the
524 // entire accumulator is whitespace, continues to trim whitespace from the
525 // outputBuffer.
icon.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 199 lines
b2Joint.cpp
(http://angel-engine.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code defines a class b2Joint
that represents a joint in a physics simulation, specifically in the Box2D library. It provides methods for creating and destroying joints of different types (e.g., distance, prismatic, revolute) and checking if they are active. The code uses smart pointers to manage memory allocation and deallocation for each joint type.
This C++ code defines a class b2Joint
that represents a joint in a physics simulation, specifically in the Box2D library. It provides methods for creating and destroying joints of different types (e.g., distance, prismatic, revolute) and checking if they are active. The code uses smart pointers to manage memory allocation and deallocation for each joint type.
macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 921 lines
768 <para>Frequently it will not be necessary to implement all of the
769 methods of a particular interface in order to specify the behavior
770 of a scripted object. To prevent BeanShell from throwing exceptions
771 for missing interface methods, implement the
772 <function>invoke()</function> method, which is called when an
LexErlang.cxx
(https://code.google.com/p/pnotepad/)
C++ · 0 lines
✨ Summary
This C++ code defines a lexer module for Erlang programming language, specifically designed to work with the Emacs editor. It provides functionality for classifying and folding text in Erlang source code, including syntax highlighting, keyword detection, and comment handling. The ColouriseErlangDoc
function is used to format documentation comments, while FoldErlangDoc
folds sections of code based on keywords and comments.
This C++ code defines a lexer module for Erlang programming language, specifically designed to work with the Emacs editor. It provides functionality for classifying and folding text in Erlang source code, including syntax highlighting, keyword detection, and comment handling. The ColouriseErlangDoc
function is used to format documentation comments, while FoldErlangDoc
folds sections of code based on keywords and comments.
225 if ( '@' == sc.ch ){
226 parse_state = NODE_NAME_QUOTED;
227 } else if ('\'' == sc.ch && '\\' != sc.chPrev) {
228 sc.ChangeState(SCE_ERLANG_ATOM);
229 sc.ForwardSetState(SCE_ERLANG_DEFAULT);
249 sc.SetState(SCE_ERLANG_DEFAULT);
250 parse_state = STATE_NULL;
251 } else if ('\'' == sc.ch && '\\' != sc.chPrev) {
252 sc.ChangeState(SCE_ERLANG_NODE_NAME_QUOTED);
253 sc.ForwardSetState(SCE_ERLANG_DEFAULT);
279 case RECORD_QUOTED : {
280 if ('\'' == sc.ch && '\\' != sc.chPrev) {
281 sc.ChangeState(SCE_ERLANG_RECORD_QUOTED);
282 sc.ForwardSetState(SCE_ERLANG_DEFAULT);
ChangeLog-9899 (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 1670 lines
NavigationFilterDemo.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 205 lines
BUGS.256 (git://github.com/AnimatorPro/Animator-Pro.git) Unknown · 315 lines
153 - Turn on Multi-frames, then Reuse and move all the
154 points.
155 - Do a Preview, then a Use from the Multi-Frame menu.
156 - One line of the poly will not be drawn in the first
157 frame of the animation.
179 I'd put it in here.)
180 X- Optics: Negative numbers still creeping to zero after
181 wireframe preview.
182 X- Palette Cycle playback snow at high speed.
183 X- Grid Paste doesn't pick up the cluster range on gradient ink
203 including any change to the screen, such as a new picture.
204 X- Although the default cel center axis now stays with the cel
205 after a move (fix from previous bug), the new graphic axis
206 is left behind.
207 1/15,v199
version.js
(git://github.com/isaacs/npm.git)
JavaScript · 290 lines
✨ Summary
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
init_32.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 536 lines
✨ Summary
This C code initializes and manages memory for a SPARC-based Linux system. It allocates valid address space, maps physical pages to virtual addresses, and tracks available memory. The code also handles memory initialization, freeing unused kernel memory, and flushing pages to RAM. Additionally, it provides functions for managing initrd memory and exporting the sparc_flush_page_to_ram
function.
This C code initializes and manages memory for a SPARC-based Linux system. It allocates valid address space, maps physical pages to virtual addresses, and tracks available memory. The code also handles memory initialization, freeing unused kernel memory, and flushing pages to RAM. Additionally, it provides functions for managing initrd memory and exporting the sparc_flush_page_to_ram
function.
lang.js
(https://bitbucket.org/davcar/bvcms/)
JavaScript · 148 lines
✨ Summary
This JavaScript code initializes the CKEditor language settings, allowing users to select a language for their editor. It loads specific language files based on user input and detects the user’s preferred language if not specified. The detect
function attempts to determine the user’s language by analyzing browser settings, returning a default language if necessary.
This JavaScript code initializes the CKEditor language settings, allowing users to select a language for their editor. It loads specific language files based on user input and detects the user’s preferred language if not specified. The detect
function attempts to determine the user’s language by analyzing browser settings, returning a default language if necessary.
114 * suppose that the user language is "pt-br". If this language is
115 * supported by the editor, it is returned. Otherwise, if only "pt" is
116 * supported, it is returned instead. If none of the previous are
117 * supported, a default language is then returned.
118 * @param {String} defaultLanguage The default language to be returned
ui.theme.css
(git://github.com/bricas/cpanhq.git)
CSS · 245 lines
✨ Summary
This CSS code defines styles for a user interface (UI) component, specifically for jQuery UI widgets. It sets various visual properties such as corner radii, overlay backgrounds, and shadow effects to create a consistent and visually appealing look across different elements of the UI. The styles are designed to work with both Mozilla Firefox and Safari browsers.
This CSS code defines styles for a user interface (UI) component, specifically for jQuery UI widgets. It sets various visual properties such as corner radii, overlay backgrounds, and shadow effects to create a consistent and visually appealing look across different elements of the UI. The styles are designed to work with both Mozilla Firefox and Safari browsers.
185 .ui-icon-pause { background-position: -16px -160px; }
186 .ui-icon-seek-next { background-position: -32px -160px; }
187 .ui-icon-seek-prev { background-position: -48px -160px; }
188 .ui-icon-seek-end { background-position: -64px -160px; }
189 .ui-icon-seek-first { background-position: -80px -160px; }
cs8427.h
(http://photon-android.googlecode.com/svn/)
C++ Header · 202 lines
✨ Summary
This C++ header file defines a driver for the CS8427 audio chip, which is used in some professional audio equipment. It provides functions for interacting with the chip, including creating and configuring the device, reading and writing registers, and building and managing PCM (pulse code modulation) streams. The code is part of the Linux kernel’s sound subsystem.
This C++ header file defines a driver for the CS8427 audio chip, which is used in some professional audio equipment. It provides functions for interacting with the chip, including creating and configuring the device, reading and writing registers, and building and managing PCM (pulse code modulation) streams. The code is part of the Linux kernel’s sound subsystem.
166 /* CS8427_REG_CSDATABUF */
167 #define CS8427_BSEL (1<<5) /* 0 = CS data, 1 = U data */
168 #define CS8427_CBMR (1<<4) /* 0 = overwrite first 5 bytes for CS D to E buffer, 1 = prevent */
169 #define CS8427_DETCI (1<<3) /* D to E CS data buffer transfer inhibit bit, 0 = allow, 1 = inhibit */
170 #define CS8427_EFTCI (1<<2) /* E to F CS data buffer transfer inhibit bit, 0 = allow, 1 = inhibit */
RootInlineBox.h
(git://github.com/CyanogenMod/android_external_webkit.git)
C++ Header · 166 lines
✨ Summary
This is a C++ header file for a RootInlineBox
class, which represents a container box in a layout context. It provides functionality for managing line breaks, ellipsis boxes, and floats within the box. The class also handles rendering, hit testing, and selection state management for its contents.
This is a C++ header file for a RootInlineBox
class, which represents a container box in a layout context. It provides functionality for managing line breaks, ellipsis boxes, and floats within the box. The class also handles rendering, hit testing, and selection state management for its contents.
TwitterAlikeExample.html
(http://redis.googlecode.com/svn/trunk/)
HTML · 253 lines
✨ Summary
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.
17 <div class="index">
18 <!-- This is a (PRE) block. Make sure it's left aligned or your toc title will be off. -->
19 <b>TwitterAlikeExample: Contents</b><br> <a href="#A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a><br> <a href="#Key-value stores basics">Key-value stores basics</a><br> <a href="#Atomic operations">Atomic operations</a><br> <a href="#Beyond key-value stores">Beyond key-value stores</a><br> <a href="#The set data type">The set data type</a><br> <a href="#Prerequisites">Prerequisites</a><br> <a href="#Data layout">Data layout</a><br> <a href="#Following, followers and updates">Following, followers and updates</a><br> <a href="#Authentication">Authentication</a><br> <a href="#Updates">Updates</a><br> <a href="#Paginating updates">Paginating updates</a><br> <a href="#Following users">Following users</a><br> <a href="#Making it horizontally scalable">Making it horizontally scalable</a><br> <a href="#Hashing the key">Hashing the key</a><br> <a href="#Special keys">Special keys</a>
20 </div>
28 <div class="narrow">
29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.
30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>
31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">
79 </pre>Ok I think we are ready to start coding!
80 <h2><a name="Prerequisites">Prerequisites</a></h2>
81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.
82 <h2><a name="Data layout">Data layout</a></h2>
83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled "antirez":<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">
package-summary.html
(http://xbird.googlecode.com/svn/trunk/)
HTML · 206 lines
✨ Summary
This HTML code generates a web page for a Java-based project, XBird. It displays information about the project’s package, classes, exceptions, and other related details in a structured format with navigation links at the top and bottom of the page. The page is divided into sections, including an overview, package tree, class list, deprecated items, index, help, and copyright information.
This HTML code generates a web page for a Java-based project, XBird. It displays information about the project’s package, classes, exceptions, and other related details in a structured format with navigation links at the top and bottom of the page. The page is divided into sections, including an overview, package tree, class list, deprecated items, index, help, and copyright information.
55 <TR>
56 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
57 <A HREF="../../xbird/engine/sched/package-summary.html"><B>PREV PACKAGE</B></A>
58 <A HREF="../../xbird/server/services/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
59 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
177 <TR>
178 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
179 <A HREF="../../xbird/engine/sched/package-summary.html"><B>PREV PACKAGE</B></A>
180 <A HREF="../../xbird/server/services/package-summary.html"><B>NEXT PACKAGE</B></A></FONT></TD>
181 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">