100+ results for 'php next'
Not the results you expected?
style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines
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; ?>
86 position: absolute;
87 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $_GET['image_y']; ?>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 }
Installerold.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 232 lines
1 <?php
3 /**
4 * Test class for Core_Model_User_Service.
5 * Generated by PHPUnit on 2011-06-22 at 18:34:04.
6 */
8 require_once '../Installer.php';
10 class Core_Model_Installer {
64 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'new', 'permission' => 1);
65 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'next-steps', 'permission' => 1);
66 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'send-activation', 'permission' => 1);
67 $group_acls[] = array('group' => $result->id, 'module' => 'core', 'controller' => 'user', 'action' => 'activate', 'permission' => 1);
MacroAssemblerMIPS.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 1795 lines
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 57 lines
30 <title>Creating a new style set</title>
32 <para>The collection of highlighting styles for each token and each fold level is what the ModeHighlighting plugin calls a "style set". To change the highlighting scheme for a particular edit mode, you first must create a style set for that mode. At the combo box labeled "Change highlighting for mode:", click on the edit mode you want to change. Then, click the "New" button and give your style set a name. (Style set names cannot contain commas or forward slash characters). From there, you can change the style for each token by clicking on the "Hello World" string next to the token, just as in the default jEdit highlighting pane. However, jEdit won't use your newly-created style set until it is activated.</para>
33 </section>
PluginUpdate.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 124 lines
✨ Summary
This HTML code is a documentation page for a Java class, PluginUpdate
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, and related links. The page includes navigation bars at the top and bottom, with links to other documentation pages and an index of all classes.
This HTML code is a documentation page for a Java class, PluginUpdate
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, and related links. The page includes navigation bars at the top and bottom, with links to other documentation pages and an index of all classes.
48 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
49 PREV
50 NEXT</FONT></TD>
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52 <A HREF="../../../../../../index.html?org/gjt/sp/jedit/msg/class-use/PluginUpdate.html" target="_top"><B>FRAMES</B></A>
102 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
103 PREV
104 NEXT</FONT></TD>
105 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
106 <A HREF="../../../../../../index.html?org/gjt/sp/jedit/msg/class-use/PluginUpdate.html" target="_top"><B>FRAMES</B></A>
4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines
1 <?php
2 /**
3 * Changes major.minor revisions to single revision numbers.
20 {
21 parent::__construct($connection, $version);
22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';
23 $this->_vfs = $GLOBALS['injector']
24 ->getInstance('Horde_Core_Factory_Vfs')
45 . 'ORDER BY page_id, page_majorversion, page_minorversion');
46 foreach ($history as $entry) {
47 // Next page? Reset version.
48 if ($entry['page_id'] != $id) {
49 $version = 1;
83 . 'attachment_minorversion');
84 foreach ($history as $entry) {
85 // Next page? Reset version.
86 if ($entry['page_id'] != $id ||
87 $entry['attachment_name'] != $name) {
States.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 287 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 //
4 // +----------------------------------------------------------------------+
5 // | PHP Version 4 |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 1997-2002 The PHP Group |
8 // +----------------------------------------------------------------------+
9 // | This source file is subject to version 2.02 of the PHP license, |
10 // | that is bundled with this package in the file LICENSE, and is |
11 // | available at through the world-wide-web at |
12 // | http://www.php.net/license/3_0.txt. |
13 // | If you did not receive a copy of the PHP license and are unable to |
jquery-1.2.6.js
(http://fatal-error.googlecode.com/svn/trunk/)
JavaScript · 3550 lines
✨ Summary
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
NVelocity.xml (https://bitbucket.org/leitethiagon/crystal-quartznet.git) XML · 7323 lines
241 Class that returns alternating values in a template. It stores
242 a list of alternate Strings, whenever alternate() is called it
243 switches to the next in the list. The current alternate is
244 retrieved through toString() - i.e. just by referencing the
245 object in a Velocity template. For an example of usage see the
256 <member name="M:NVelocity.App.Tools.VelocityFormatter.VelocityAlternator.Alternate">
257 <summary>
258 Alternates to the next in the list.
259 </summary>
260 <returns>The current alternate in the sequence.</returns>
283 <summary>
284 Returns the current alternate, and automatically alternates
285 to the next alternate in its sequence (triggered upon
286 rendering).
287 </summary>
XmlNSDescriptorSequence.java (https://bitbucket.org/nbargnesi/idea.git) Java · 148 lines
56 public XmlElementDescriptor getElementDescriptor(@NotNull XmlTag tag){
57 final Iterator iterator = sequence.iterator();
58 while(iterator.hasNext()){
59 final XmlNSDescriptor descriptor = (XmlNSDescriptor) iterator.next();
68 final List<XmlElementDescriptor> descriptors = new ArrayList<XmlElementDescriptor>();
69 final Iterator iterator = sequence.iterator();
70 while(iterator.hasNext()) {
71 final XmlNSDescriptor descriptor = (XmlNSDescriptor)iterator.next();
78 public XmlFile getDescriptorFile(){
79 final Iterator iterator = sequence.iterator();
80 while(iterator.hasNext()){
81 final XmlNSDescriptor descriptor = (XmlNSDescriptor) iterator.next();
92 public boolean isHierarhyEnabled() {
93 final Iterator iterator = sequence.iterator();
94 while(iterator.hasNext()){
95 final XmlNSDescriptor descriptor = (XmlNSDescriptor) iterator.next();
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1367 lines
53 <ACTION NAME="add-marker-shortcut" NO_REPEAT="TRUE" NO_RECORD="TRUE">
54 <CODE>
55 view.getInputHandler().readNextChar(
56 buffer.getMarkerStatusPrompt("add-marker"),
57 "buffer.addMarker(__char__,textArea.getCaretPosition());");
151 <ACTION NAME="copy-append-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
152 <CODE>
153 view.getInputHandler().readNextChar(
154 Registers.getRegisterStatusPrompt("copy-append-string-register"),
155 "Registers.append(textArea,__char__,\"\\n\",false);");
159 <ACTION NAME="copy-string-register" NO_REPEAT="TRUE" NO_RECORD="TRUE">
160 <CODE>
161 view.getInputHandler().readNextChar(
162 Registers.getRegisterStatusPrompt("copy-string-register"),
163 "Registers.copy(textArea,__char__);");
categories.php (https://github.com/mcmurdok/oscommerce.git) PHP · 247 lines
1 <?php
2 /*
3 $Id: $
61 if ( !$osC_Database->isError() ) {
62 $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();
64 foreach ($osC_Language->getAll() as $l) {
131 $Qproducts->execute();
133 while ($Qproducts->next()) {
134 $products[$Qproducts->valueInt('products_id')]['categories'][] = $c_entry['id'];
135 }
related_items_tree_app_spec.js (https://gitlab.com/markglenfletcher/gitlab-ee) JavaScript · 315 lines
187 });
189 wrapper.vm.$nextTick(() => {
190 expect(wrapper.find(GlLoadingIcon).isVisible()).toBe(true);
191 done();
195 it('renders tree container element when `state.itemsFetchInProgress` prop is false', done => {
196 wrapper.vm.$nextTick(() => {
197 expect(wrapper.find('.related-items-tree').isVisible()).toBe(true);
198 done();
203 wrapper.vm.$store.dispatch('requestAddItem');
205 wrapper.vm.$nextTick(() => {
206 expect(wrapper.find('.related-items-tree.disabled-content').isVisible()).toBe(true);
207 done();
TopologyEdgePointPtrVector.cs (https://github.com/wrobell/adaptagrams.git) C# · 290 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:
257 * <% end_loop %>
258 * <% if MyPages.NotLastPage %>
259 * <a class="next" href="$MyPages.NextLink">Next</a>
260 * <% end_if %>
261 * <% end_if %>
396 /**
397 * Returns a link to the next page, if there is another page after the
398 * current one.
399 *
ui3reader.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 631 lines
101 if (child.toElement().tagName() == QLatin1String("comment"))
102 return child.toElement().firstChild().toText().data();
103 child = child.nextSibling();
104 }
105 return QString();
235 }
236 }
237 e = e.nextSibling().toElement();
238 }
325 {
326 QDomElement n;
327 for (n = e.firstChild().toElement(); !n.isNull(); n = n.nextSibling().toElement()) {
328 if (n.tagName() == QLatin1String("pixmapfunction"))
329 return n.firstChild().toText().data();
dialog.js (https://gitlab.com/phamngsinh/baitaplon_sinhvien) JavaScript · 244 lines
msrledec.c (https://github.com/f0xx/ffmpeg-android.git) C · 265 lines
52 rle_code = stream_byte = bytestream2_get_byteu(gb);
53 if (rle_code == 0) {
54 /* fetch the next byte to see how to handle escape code */
55 stream_byte = bytestream2_get_byte(gb);
56 if (stream_byte == 0) {
57 /* line is done, goto the next one */
58 row_ptr -= row_dec;
59 pixel_ptr = 0;
150 } else {
151 av_log(avctx, AV_LOG_ERROR,
152 "Next line is beyond picture bounds (%d bytes left)\n",
153 bytestream2_get_bytes_left(gb));
154 return AVERROR_INVALIDDATA;
qtextureglyphcache.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 468 lines
54 // returns the highest number closest to v, which is a power of 2
55 // NB! assumes 32 bit ints
56 static inline int qt_next_power_of_two(int v)
57 {
58 v--;
128 m_current_fontengine = fontEngine;
129 const int margin = glyphMargin();
130 const int paddingDoubled = glyphPadding() * 2;
132 bool supportsSubPixelPositions = fontEngine->supportsSubPixelPositions();
276 if (isNull() || requiredHeight > m_h || requiredWidth > m_w) {
277 if (isNull())
278 createCache(qt_next_power_of_two(requiredWidth), qt_next_power_of_two(requiredHeight));
279 else
280 resizeCache(qt_next_power_of_two(requiredWidth), qt_next_power_of_two(requiredHeight));
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
40 };
41 $repo = $this->em->getRepository(self::CATEGORY);
137 }
139 public function testTreeUpdateShiftToNextBranch()
140 {
141 $repo = $this->em->getRepository(self::CATEGORY);
common_rules.mak (https://bitbucket.org/__wp__/mb-linux-msli.git) Makefile · 162 lines
82 symbolic_links :
83 $(RM) $(OUTDIR)/$(RELEASE_NAME).$(DYNEXT)
84 $(RM) $(OUTDIR)/$(STLDEBUG_NAME).$(DYNEXT)
85 $(RM) $(OUTDIR)/$(DEBUG_NAME).$(DYNEXT)
86 ln -s $(RELEASE_DYNLIB) $(OUTDIR)/$(RELEASE_NAME).$(DYNEXT)
87 -ln -s $(DEBUG_DYNLIB) $(OUTDIR)/$(DEBUG_NAME).$(DYNEXT)
88 ln -s $(STLDEBUG_DYNLIB) $(OUTDIR)/$(STLDEBUG_NAME).$(DYNEXT)
112 $(INSTALL_LIB) $$file $(INSTALLDIR_LIB); \
113 done
114 $(RM) $(INSTALLDIR_LIB)/$(RELEASE_NAME).$(DYNEXT)
115 $(RM) $(INSTALLDIR_LIB)/$(STLDEBUG_NAME).$(DYNEXT)
116 $(RANLIB) $(INSTALLDIR_LIB)/$(RELEASE_NAME).a
117 $(RANLIB) $(INSTALLDIR_LIB)/$(STLDEBUG_NAME).a
118 ln -s $(RELEASE_DYNLIB) $(INSTALLDIR_LIB)/$(RELEASE_NAME).$(DYNEXT)
119 ln -s $(STLDEBUG_DYNLIB) $(INSTALLDIR_LIB)/$(STLDEBUG_NAME).$(DYNEXT)
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
editviewdefs.php (https://github.com/bkilgore/sugarcrm_dev.git) PHP · 402 lines
1 <?php
2 $viewdefs ['Opportunities'] =
3 array (
233 1 =>
234 array (
235 'name' => 'next_step',
236 'label' => 'LBL_NEXT_STEP',
237 'customCode' => '<textarea id="{$fields.next_step.name}" name="{$fields.next_step.name}" rows="4" cols="60" title=\'\' tabindex="1">{$fields.next_step.value}</textarea>',
238 ),
239 ),
247 1 =>
248 array (
249 'name' => 'next_step_due_date',
250 'label' => 'LBL_NEXT_STEP_DUE_DATE',
unicode.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 269 lines
1 <?php
2 /**
3 * @version $Id: unicode.php,v 1.1 2008/10/10 20:52:53 mj Exp $
8 * Portions created by the Initial Developer are Copyright (C) 1998
9 * the Initial Developer. All Rights Reserved.
10 * Ported to PHP by Henri Sivonen (http://hsivonen.iki.fi)
11 * Slight modifications to fit with phputf8 library by Harry Fuecks (hfuecks gmail com)
12 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUTF8ToUnicode.cpp
13 * @see http://lxr.mozilla.org/seamonkey/source/intl/uconv/src/nsUnicodeToUTF8.cpp
14 * @see http://hsivonen.iki.fi/php-utf8/
15 * @package utf8
16 * @subpackage unicode
24 * are not allowed.
25 * Returns false if the input string isn't a valid UTF-8 octet sequence
26 * and raises a PHP error at level E_USER_WARNING
27 * Note: this function has been modified slightly in this library to
28 * trigger errors on encountering bad bytes
ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines
10 * License, Version 2 (the "License"); you may not use this file
11 * except in compliance with the License. A copy of the License is
12 * available at http://www.opensource.org/licenses/gpl-license.php.
13 *
14 * Sun designates this particular file as subject to the "Classpath"
292 /*
293 * Next parse out the root. If we find a "@" first, then there
294 * is also a hostname. If we find a "/" next, then there is no host name
308 /*
309 * Next parse out the host name and port if there is one.
310 */
311 if (atIndex != -1 && atIndex < slashIndex) {
class.swfshape.html (https://bitbucket.org/thncr/manuals.git) HTML · 251 lines
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>
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>
250 <div class="home"><a href="index.html">PHP Manual</a></div>
mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
79 }
81 $boundary = '----=_NextPart_' . md5(time());
83 $header = '';
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 64 lines
12 </IS_SELECTED>
13 </ACTION>
14 <ACTION NAME="firstmate-ignore-next" NO_REPEAT="TRUE">
15 <CODE>
16 firstmate.FirstMatePlugin.setIgnoreNext(
17 !firstmate.FirstMatePlugin.getIgnoreNext());
18 </CODE>
19 <IS_SELECTED>
20 return firstmate.FirstMatePlugin.getIgnoreNext();
21 </IS_SELECTED>
22 </ACTION>
VPTContextMenu.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 313 lines
✨ Summary
This Java code defines a class VPTContextMenu
that handles context menus for a graphical user interface (GUI) application, specifically designed for a project management system. It loads menu items based on the currently selected nodes in a tree view and provides actions such as adding projects, renaming nodes, and editing node properties.
This Java code defines a class VPTContextMenu
that handles context menus for a graphical user interface (GUI) application, specifically designed for a project management system. It loads menu items based on the currently selected nodes in a tree view and provides actions such as adding projects, renaming nodes, and editing node properties.
117 public static void unregisterActions(PluginJAR jar) {
118 boolean removed = false;
119 for (Iterator i = actions.iterator(); i.hasNext(); ) {
120 Object o = i.next();
146 //{{{ +_userMenuChanged()_ : void
147 /** Updates "lastMod" so that the menu is rebuilt at the next invocation. */
148 public static void userMenuChanged() {
149 lastMod = System.currentTimeMillis();
236 Action a;
238 for (Iterator it = intActions.iterator(); it.hasNext(); ) {
239 a = (Action) it.next();
276 if (actions.size() > 0) {
277 popupMenu.addSeparator();
278 for (Iterator it = actions.iterator(); it.hasNext(); ) {
279 a = (Action) it.next();
FunctionCallSignatureSniff.php (https://github.com/SeanJA/PHP_CodeSniffer-Drupal-Standard.git) PHP · 245 lines
46 * Processes this test, when one of its tokens is encountered.
47 *
48 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
49 * @param int $stackPtr The position of the current token
50 * in the stack passed in $tokens.
58 // Find the next non-empty token.
59 $openBracket = $phpcsFile->findNext(PHP_CodeSniffer_Tokens::$emptyTokens, ($stackPtr + 1), null, true);
61 if ($tokens[$openBracket]['code'] !== T_OPEN_PARENTHESIS) {
89 }
91 $next = $phpcsFile->findNext(T_WHITESPACE, ($closeBracket + 1), null, true);
92 if ($tokens[$next]['code'] === T_SEMICOLON) {
161 * @return void
162 */
163 public function processMultiLineCall(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $openBracket, $tokens)
164 {
165 // We need to work out how far indented the function
ctkWorkflowTest2.cpp (https://github.com/cim-unito/CTK.git) C++ · 270 lines
233 }
235 // trigger transition to the next step
236 workflow->goForward();
237 if (!transitionTest(workflow, defaultTime, step2, qObject1, 1, 1, qObject2, 1, 0, qObject3, 0, 0, qObject4, 0, 0))
241 }
243 // trigger transition to the next step
244 workflow->goForward();
245 if (!transitionTest(workflow, defaultTime, step3, qObject1, 1, 1, qObject2, 1, 1, qObject3, 1, 0, qObject4, 0, 0))
249 }
251 // trigger transition to the next state (this should fail!)
252 workflow->goForward();
253 if (!transitionTest(workflow, defaultTime, step3, qObject1, 1, 1, qObject2, 1, 1, qObject3, 1, 0, qObject4, 0, 0))
SymbolTable.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 302 lines
103 int bucket = hash(symbol) % fTableSize;
104 int length = symbol.length();
105 OUTER: for (Entry entry = fBuckets[bucket]; entry != null; entry = entry.next) {
106 if (length == entry.characters.length) {
107 for (int i = 0; i < length; i++) {
284 characters = new char[symbol.length()];
285 symbol.getChars(0, characters.length, characters, 0);
286 this.next = next;
287 }
295 System.arraycopy(ch, offset, characters, 0, length);
296 symbol = new String(characters).intern();
297 this.next = next;
298 }
theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines
RTDAO.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 605 lines
1 <?php
3 /**
4 * RTDAO.inc.php
5 *
6 * Copyright (c) 2003-2005 The Public Knowledge Project
11 * DAO operations for the OJS Reading Tools interface.
12 *
13 * $Id: RTDAO.inc.php,v 1.20 2005/07/16 03:52:02 alec Exp $
14 */
242 $versions = &RTDAO::getVersions($journalId);
243 while (!$versions->eof()) {
244 $version = &$versions->next();
245 $this->deleteVersion($version->getVersionId(), $journalId);
246 }
PieceTable.cs (https://github.com/zgramana/monodevelop.git) C# · 325 lines
Array.hx (https://gitlab.com/ezeql/haxe) Haxe · 483 lines
impress.js (https://bitbucket.org/jkodumal/rmanalan.bitbucket.org.git) JavaScript · 324 lines
259 document.addEventListener("keydown", function ( event ) {
260 if ( event.keyCode == 9 || ( event.keyCode >= 32 && event.keyCode <= 34 ) || (event.keyCode >= 37 && event.keyCode <= 40) ) {
261 var next = active;
262 switch( event.keyCode ) {
263 case 33: ; // pg up
266 next = steps.indexOf( active ) - 1;
267 next = next >= 0 ? steps[ next ] : steps[ steps.length-1 ];
268 break;
269 case 9: ; // tab
274 next = steps.indexOf( active ) + 1;
275 next = next < steps.length ? steps[ next ] : steps[ 0 ];
276 break;
277 }
279 select(next);
281 event.preventDefault();
uscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 161 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.
XMLViewer.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 434 lines
78 var root = document.getElementById('tree');
80 for (var child = sourceXML.firstChild; child; child = child.nextSibling)
81 nodeParentPairs.push({parentElement: root, node: child});
113 else {
114 var child = node.firstChild;
115 if (child.nodeType == Node.TEXT_NODE && isShort(child.nodeValue) && !child.nextSibling)
116 processShortTextOnlyElement(parentElement, node);
117 else
131 var line = createLine();
132 line.appendChild(createTag(node, false, false));
133 for (var child = node.firstChild; child; child = child.nextSibling)
134 line.appendChild(createText(child.nodeValue));
135 line.appendChild(createTag(node, true, false));
HandleStack.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 63 lines
qwizard.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 268 lines
72 enum WizardButton {
73 BackButton,
74 NextButton,
75 CommitButton,
76 FinishButton,
111 NoBackButtonOnLastPage = 0x00000020,
112 DisabledBackButtonOnLastPage = 0x00000040,
113 HaveNextButtonOnLastPage = 0x00000080,
114 HaveFinishButtonOnEarlyPages = 0x00000100,
115 NoCancelButton = 0x00000200,
141 virtual bool validateCurrentPage();
142 virtual int nextId() const;
144 void setField(const QString &name, const QVariant &value);
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.
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>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
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>
list.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests the functionality of Boost’s MPL (Meta-Programming Library) for working with lists, specifically list0
, list1
, list2
, and list9
. It verifies that the size, emptiness, front element, and next elements of these lists are correctly calculated using various MPL functions.
This C++ code tests the functionality of Boost’s MPL (Meta-Programming Library) for working with lists, specifically list0
, list1
, list2
, and list9
. It verifies that the size, emptiness, front element, and next elements of these lists are correctly calculated using various MPL functions.
VFSFileNameField.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 287 lines
✨ Summary
This Java class, VFSFileNameField
, extends a text field to provide file name completion and navigation for a file system browser. It processes key events, such as TAB presses, to suggest completions and navigate through directories. When the user selects a directory, it updates the text field with the selected path or file name.
This Java class, VFSFileNameField
, extends a text field to provide file name completion and navigation for a file system browser. It processes key events, such as TAB presses, to suggest completions and navigate through directories. When the user selects a directory, it updates the text field with the selected path or file name.
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 781 lines
qscriptdebuggerconsolewidget.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 444 lines
posts.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 195 lines
79 <div class="wrap">
81 <h2><?php _e( 'Posts' ); ?>
82 <?php
107 ?>
108 </h2>
109 <?php
111 do_action( 'bb_admin_notices' );
143 <?php foreach ( $bulk_actions as $value => $label ) : ?>
145 <option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $label ); ?></option>
146 <?php endforeach; ?>
148 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" class="button submit-input" />
149 <?php bb_nonce_field( 'post-bulk' ); ?>
150 </fieldset>
TransitionsTest.lua (https://bitbucket.org/Tsiannian/cocos2d-x.git) Lua · 266 lines
29 end
31 local function nextAction()
32 SceneIdx = SceneIdx + 1
33 SceneIdx = math.mod(SceneIdx, Transition_Table.MAX_LAYER)
47 end
49 local function nextCallback(sender)
50 local scene = nextAction()
79 item1:registerScriptTapHandler(backCallback)
80 item2:registerScriptTapHandler(restartCallback)
81 item3:registerScriptTapHandler(nextCallback)
83 local menu = CCMenu:create()
122 item1:registerScriptTapHandler(backCallback)
123 item2:registerScriptTapHandler(restartCallback)
124 item3:registerScriptTapHandler(nextCallback)
126 local menu = CCMenu:create()
IntToIntBtree.java (https://bitbucket.org/nbargnesi/idea.git) Java · 1113 lines
317 }
319 protected final void setNextPage(int nextPage) {
320 putInt(3, nextPage);
351 // Leaf index node
352 // (value_address {<0 if address in duplicates segment}, hash key) {getChildrenCount()}
353 // (|next_node {<0} , hash key|) {getChildrenCount()} , next_node {<0}
354 // next_node[i] is pointer to all less than hash_key[i] except for the last
594 newIndexNode.setIndexLeaf(indexLeaf);
596 int nextPage = getNextPage();
597 setNextPage(newIndexNode.address);
598 newIndexNode.setNextPage(nextPage);
600 int medianKey = -1;
PreparedFragmentedContent.java (https://bitbucket.org/nbargnesi/idea.git) Java · 372 lines
298 final List<BeforeAfter<TextRange>> zippedRanges = new ArrayList<BeforeAfter<TextRange>>(myRanges.size());
299 final ListIterator<BeforeAfter<TextRange>> iterator = shiftedRanges.listIterator();
300 BeforeAfter<TextRange> previous = iterator.next();
301 while (iterator.hasNext()) {
302 final BeforeAfter<TextRange> current = iterator.next();
303 if (neighbourOrIntersect(previous.getBefore(), current.getBefore()) ||
304 neighbourOrIntersect(previous.getAfter(), current.getAfter())) {
include.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for the Boost Spirit library, providing information on its structure, sub-libraries, and usage. It explains the different directories and files, including the main include directory, home directory, and repository. The page also includes copyright information and navigation links to related pages.
This HTML code outputs a documentation page for the Boost Spirit library, providing information on its structure, sub-libraries, and usage. It explains the different directories and files, including the main include directory, home directory, and repository. The page also includes copyright information and navigation links to related pages.
8 <link rel="up" href="../structure.html" title="Structure">
9 <link rel="prev" href="../structure.html" title="Structure">
10 <link rel="next" href="../abstracts.html" title="Abstracts">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../structure.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../structure.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="../abstracts.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="section">
225 <hr>
226 <div class="spirit-nav">
227 <a accesskey="p" href="../structure.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../structure.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="../abstracts.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
228 </div>
229 </body>
Newtonsoft.Json.xml (https://bitbucket.org/BillinghamJ/small-makeitjson.git) XML · 8255 lines
39 <member name="M:Newtonsoft.Json.JsonReader.Read">
40 <summary>
41 Reads the next JSON token from the stream.
42 </summary>
43 <returns>true if the next token was read successfully; false if there are no more tokens to read.</returns>
45 <member name="M:Newtonsoft.Json.JsonReader.ReadAsInt32">
46 <summary>
47 Reads the next JSON token from the stream as a <see cref="T:System.Nullable`1"/>.
48 </summary>
49 <returns>A <see cref="T:System.Nullable`1"/>. This method will return <c>null</c> at the end of an array.</returns>
51 <member name="M:Newtonsoft.Json.JsonReader.ReadAsString">
52 <summary>
53 Reads the next JSON token from the stream as a <see cref="T:System.String"/>.
54 </summary>
55 <returns>A <see cref="T:System.String"/>. This method will return <c>null</c> at the end of an array.</returns>
CompletionInfoHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 161 lines
✨ Summary
This Java class, CompletionInfoHandler
, extends the default handler for XML parsing and provides a custom implementation to handle completion information. It processes XML elements, attributes, and entities to populate a CompletionInfo
object with relevant data, such as entity declarations, element definitions, and attribute specifications.
This Java class, CompletionInfoHandler
, extends the default handler for XML parsing and provides a custom implementation to handle completion information. It processes XML elements, attributes, and entities to populate a CompletionInfo
object with relevant data, such as entity declarations, element definitions, and attribute specifications.
a2065.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 809 lines
✨ Summary
This C code implements a Linux driver for an Am7990 Ethernet controller, specifically the A2065 model. It sets up the network interface, registers the device with the kernel, and handles various events such as sending and receiving data, setting multicast addresses, and cleaning up resources when the module is unloaded.
This C code implements a Linux driver for an Am7990 Ethernet controller, specifically the A2065 model. It sets up the network interface, registers the device with the kernel, and handles various events such as sending and receiving data, setting multicast addresses, and cleaning up resources when the module is unloaded.
tip21.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 4 lines
tiffiop.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 367 lines
75 typedef struct client_info {
76 struct client_info *next;
77 void *data;
78 char *name;
123 #define TIFF_PERSAMPLE 0x400000 /* get/set per sample tags as arrays */
124 uint64 tif_diroff; /* file offset of current directory */
125 uint64 tif_nextdiroff; /* file offset of following directory */
126 uint64* tif_dirlist; /* list of offsets to already seen directories to prevent IFD looping */
127 uint16 tif_dirlistsize; /* number of entires in offset list */
319 extern int TIFFInitThunderScan(TIFF*, int);
320 #endif
321 #ifdef NEXT_SUPPORT
322 extern int TIFFInitNeXT(TIFF*, int);
ActionSet.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 336 lines
✨ Summary
This Java code defines a class ActionSet
that represents a collection of actions, such as shortcuts or commands, in an application like a text editor. It provides methods to add and retrieve actions, load cached action names, and interact with the application’s input handler. The class is designed for binary compatibility issues and supports deferred loading of action sets.
This Java code defines a class ActionSet
that represents a collection of actions, such as shortcuts or commands, in an application like a text editor. It provides methods to add and retrieve actions, load cached action names, and interact with the application’s input handler. The class is designed for binary compatibility issues and supports deferred loading of action sets.
OutputToGeneralTestEventsConverter.java (https://bitbucket.org/nbargnesi/idea.git) Java · 503 lines
Display_Shortcuts.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 308 lines
151 table.getColumnModel().getColumn(0).setPreferredWidth(200);
152 table.setRowSelectionAllowed(true);
153 /* The next line prevents the table from being edited.
154 * The normal approach in Java would be to subclass the TableModel
155 * associated with the JTable and define TableModel.isCellEditable()
204 e.consume();
205 row = findFirstItem(ch);
206 /* The next few lines set the last visible row
207 * of the table so that you can look ahead of
208 * the selected row.
netrexxAtOnce03.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 252 lines
✨ Summary
This HTML code outputs a documentation page for NetRexx, a programming language. It displays the contents of a chapter on “At Once” in a formatted manner, including text, examples, and links to other chapters. The output includes tables, paragraphs, and inline code snippets, providing a structured presentation of the language’s features and usage.
This HTML code outputs a documentation page for NetRexx, a programming language. It displays the contents of a chapter on “At Once” in a formatted manner, including text, examples, and links to other chapters. The output includes tables, paragraphs, and inline code snippets, providing a structured presentation of the language’s features and usage.
9 </center>
11 <hr><a href="netrexxAtOnce.html">[Index]</a> <a href="netrexxAtOnce02.html">[Previous Chapter]</a> <a href="netrexxAtOnce04.html">[Next Chapter]</a>
13 <h2><font color="#ff0000">3. Types</font></h2>
247 </tbody></table>
249 </p><p><a href="netrexxAtOnce.html">[Index]</a> <a href="netrexxAtOnce02.html">[Previous Chapter]</a> <a href="netrexxAtOnce04.html">[Next Chapter]</a>
251 </p><hr><br>
Abbrevs.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 595 lines
✨ Summary
This Java code defines a text expansion system for a programming language. It allows users to define abbreviations with variables, which are replaced by actual values when expanded. The system supports backslashes, tabs, and positional parameters (e.g., $n
for the nth parameter). The code provides classes for parsing and generating these expansions, as well as saving and loading them to/from files.
This Java code defines a text expansion system for a programming language. It allows users to define abbreviations with variables, which are replaced by actual values when expanded. The system supports backslashes, tabs, and positional parameters (e.g., $n
for the nth parameter). The code provides classes for parsing and generating these expansions, as well as saving and loading them to/from files.
482 {
483 out.write('[');
484 out.write((String)keys.nextElement());
485 out.write(']');
486 out.write(lineSep);
487 saveAbbrevs(out,(Hashtable)values.nextElement());
488 }
501 while(keys.hasMoreElements())
502 {
503 String abbrev = (String)keys.nextElement();
504 out.write(abbrev);
505 out.write('|');
RootImporter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 171 lines
✨ Summary
This Java code defines a class RootImporter
that imports files and directories from a project root, optionally removing existing files before importing. It uses a component as its parent and provides options for importing settings. The class handles user input, imports files recursively, and updates the project structure after import.
This Java code defines a class RootImporter
that imports files and directories from a project root, optionally removing existing files before importing. It uses a component as its parent and provides options for importing settings. The class handles user input, imports files recursively, and updates the project structure after import.
119 ArrayList toRemove = new ArrayList();
120 while (e.hasMoreElements()) {
121 VPTNode n = (VPTNode) e.nextElement();
122 if (n.getNodePath().startsWith(project.getRootPath())) {
123 toRemove.add(n);
125 }
126 if (toRemove.size() > 0) {
127 for (Iterator i = toRemove.iterator(); i.hasNext(); ) {
128 VPTNode n = (VPTNode) i.next();
158 private void unregisterFiles(VPTDirectory dir, VPTProject p) {
159 for (Enumeration e = dir.children(); e.hasMoreElements(); ) {
160 VPTNode n = (VPTNode) e.nextElement();
161 if (n.isDirectory()) {
162 unregisterFiles((VPTDirectory)n, p);
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines
115 <para>
116 <guimenu>Plugins</guimenu>><guisubmenu>Error
117 List</guisubmenu>><guimenuitem>Go to Next Error</guimenuitem> moves the
118 caret to the error immediately after the one currently selected in the
119 error list window. If no error is selected, the first error in the list is
131 <para>
132 <guimenu>Plugins</guimenu>><guisubmenu>Error
133 List</guisubmenu>><guimenuitem>Go to Next File With Errors</guimenuitem>
134 opens the file immediately after the one currently selected in the error
135 list window. If no file is selected, the first file with errors is chosen.
444 <listitem><para>Line numbers in the tree are now increased by one, so that
445 they match the textarea line numbers (Dirk Moebius)</para></listitem>
446 <listitem><para>The commands "Next/Previous Error" and "Next/Previous File
447 With Errors" now ensure that the newly selected error is visible
448 (Dirk Moebius)</para></listitem>
list.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 380 lines
✨ Summary
This C code defines a data structure for a list, including functions for creating, manipulating, and sorting the list. It provides methods for dumping the list to an output stream, getting its length, and comparing elements. The DohSortList
function allows users to sort the list using their own comparison function or a default one. The code is part of a larger object-oriented programming system, likely used in scientific computing or data analysis applications.
This C code defines a data structure for a list, including functions for creating, manipulating, and sorting the list. It provides methods for dumping the list to an output stream, getting its length, and comparing elements. The DohSortList
function allows users to sort the list using their own comparison function or a default one. The code is part of a larger object-oriented programming system, likely used in scientific computing or data analysis applications.
216 /* -----------------------------------------------------------------------------
217 * List_next()
218 *
219 * Return the next item in the list.
220 * ----------------------------------------------------------------------------- */
222 static DohIterator List_next(DohIterator iter) {
223 List *l = (List *) ObjData(iter.object);
224 iter._index = iter._index + 1;
327 0, /* doh_equal */
328 List_first, /* doh_first */
329 List_next, /* doh_next */
330 List_setfile, /* doh_setfile */
331 List_getfile, /* doh_getfile */
UnitTestMessage.resx (https://Silverlight.svn.codeplex.com/svn) Unknown · 214 lines
JEditBuffer.PropValue.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 124 lines
✨ Summary
This HTML code is a documentation page for a Java class, JEditBuffer.PropValue
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, index, and help links. The page includes navigation bars at the top and bottom, with links to related pages and classes.
This HTML code is a documentation page for a Java class, JEditBuffer.PropValue
, generated by javadoc. It displays information about the class, including its usage, package tree, deprecated classes, index, and help links. The page includes navigation bars at the top and bottom, with links to related pages and classes.
48 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
49 PREV
50 NEXT</FONT></TD>
51 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52 <A HREF="../../../../../../index.html?org/gjt/sp/jedit/buffer/class-use/JEditBuffer.PropValue.html" target="_top"><B>FRAMES</B></A>
102 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
103 PREV
104 NEXT</FONT></TD>
105 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
106 <A HREF="../../../../../../index.html?org/gjt/sp/jedit/buffer/class-use/JEditBuffer.PropValue.html" target="_top"><B>FRAMES</B></A>
CreateExternalAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 179 lines
39 import org.jetbrains.idea.svn.dialogs.SelectCreateExternalTargetDialog;
40 import org.tmatesoft.svn.core.*;
41 import org.tmatesoft.svn.core.internal.wc.SVNExternal;
42 import org.tmatesoft.svn.core.wc.*;
92 String newValue;
93 if (propertyData != null && propertyData.getValue() != null && ! StringUtil.isEmptyOrSpaces(propertyData.getValue().getString())) {
94 final SVNExternal[] externals = SVNExternal.parseExternals("Create External", propertyData.getValue().getString());
95 for (SVNExternal external : externals) {
CatalogManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 640 lines
✨ Summary
This Java code manages XML catalogs and resources for a text editor, specifically JEdit. It loads and parses catalog files, handles resource downloads, and updates the catalog when the user changes a file on disk. The code uses a custom Entry
class to represent XML entries and a VFSUpdateHandler
component to reload catalogs when files are modified.
This Java code manages XML catalogs and resources for a text editor, specifically JEdit. It loads and parses catalog files, handles resource downloads, and updates the catalog when the user changes a file on disk. The code uses a custom Entry
class to represent XML entries and a VFSUpdateHandler
component to reload catalogs when files are modified.
96 }
98 // next, try resolving full path name
99 if(newSystemId == null)
100 {
298 Iterator keys = resourceCache.keySet().iterator();
299 while(keys.hasNext())
300 {
301 Entry entry = (Entry)keys.next();
334 Iterator files = resourceCache.values().iterator();
335 while(files.hasNext())
336 {
337 Object obj = files.next();
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.
PageGroupLoadDeferrer.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 86 lines
49 // NOTE: if PageGroupLoadDeferrer is ever used for tasks other than showing a modal window or sheet,
50 // the constructor will need to take a ActiveDOMObject::ReasonForSuspension.
51 for (Frame* frame = otherPage->mainFrame(); frame; frame = frame->tree()->traverseNext()) {
52 frame->document()->suspendScriptedAnimationControllerCallbacks();
53 frame->document()->suspendActiveDOMObjects(ActiveDOMObject::WillShowDialog);
72 page->setDefersLoading(false);
74 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()->traverseNext()) {
75 frame->document()->resumeActiveDOMObjects();
76 frame->document()->resumeScriptedAnimationControllerCallbacks();
qtestxmlstreamer.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 227 lines
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.
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>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
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>
LogViewerAttributes.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 371 lines
✨ Summary
This Java class provides a set of properties and methods for configuring a log viewer application. It allows users to customize settings such as font, buffer size, latency, and tab placement, as well as store and retrieve these values from a configuration file. The class also handles default values and invalid input, ensuring that the application remains stable and functional.
This Java class provides a set of properties and methods for configuring a log viewer application. It allows users to customize settings such as font, buffer size, latency, and tab placement, as well as store and retrieve these values from a configuration file. The class also handles default values and invalid input, ensuring that the application remains stable and functional.
hlsl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 479 lines
25 <PROPERTY NAME="indentOpenBrackets" VALUE="{" />
26 <PROPERTY NAME="indentCloseBrackets" VALUE="}" />
27 <PROPERTY NAME="indentNextLine" VALUE="\s*(((if|while)\s*\(|else\s*|else\s+if\s*\(|for\s*\(.*\))[^{;]*)" />
28 <PROPERTY NAME="doubleBracketIndent" VALUE="false" />
29 <PROPERTY NAME="lineUpClosingBracket" VALUE="true" />
ShortcutsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 358 lines
✨ Summary
This Java code is a part of an application that manages shortcuts for various applications. It creates a table model to display and edit shortcuts, with columns for shortcut name, first shortcut, and second shortcut. The model allows users to add, edit, and delete shortcuts, and saves the changes to the system’s properties.
This Java code is a part of an application that manages shortcuts for various applications. It creates a table model to display and edit shortcuts, with columns for shortcut name, first shortcut, and second shortcut. The model allows users to add, edit, and delete shortcuts, and saves the changes to the system’s properties.
xt_tcpmss.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 315 lines
✨ Summary
This C code implements a Linux kernel module that provides a network traffic management feature for TCP SYN packets. It allows administrators to clamp the Maximum Transmission Unit (MTU) of incoming TCP SYN packets based on the path MTU, which is the maximum MTU supported by the network path between the sender and receiver. This helps prevent packet fragmentation and improves network performance.
This C code implements a Linux kernel module that provides a network traffic management feature for TCP SYN packets. It allows administrators to clamp the Maximum Transmission Unit (MTU) of incoming TCP SYN packets based on the path MTU, which is the maximum MTU supported by the network path between the sender and receiver. This helps prevent packet fragmentation and improves network performance.
SearchBar.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 320 lines
✨ Summary
This Java code implements a search functionality for an editor, allowing users to find and highlight occurrences of a specified string within a document. It includes features such as incremental searching, highlighting, and beep notifications when no matches are found. The interface is customizable through checkboxes for ignoring case and using regular expressions.
This Java code implements a search functionality for an editor, allowing users to find and highlight occurrences of a specified string within a document. It includes features such as incremental searching, highlighting, and beep notifications when no matches are found. The interface is customizable through checkboxes for ignoring case and using regular expressions.
131 {
132 // on enter, start search from end
133 // of current match to find next one
134 int start;
135 JEditTextArea textArea = view.getTextArea();
160 {
161 /* For example, if the current fileset is a directory,
162 * C+g will find the next match within that fileset.
163 * This can be annoying if you have just done an
164 * incremental search and want the next occurrence
lstring.c (https://bitbucket.org/Tsiannian/cocos2d-x.git) C · 112 lines
33 GCObject *p = tb->hash[i];
34 while (p) { /* for each node in the list */
35 GCObject *next = p->gch.next; /* save next */
36 unsigned int h = gco2ts(p)->hash;
37 int h1 = lmod(h, newsize); /* new position */
38 lua_assert(cast_int(h%newsize) == lmod(h, newsize));
39 p->gch.next = newhash[h1]; /* chain it */
40 newhash[h1] = p;
41 p = next;
64 tb = &G(L)->strt;
65 h = lmod(h, tb->size);
66 ts->tsv.next = tb->hash[h]; /* chain new entry */
67 tb->hash[h] = obj2gco(ts);
68 tb->nuse++;
105 u->uv.env = e;
106 /* chain it on udata list (after main thread) */
107 u->uv.next = G(L)->mainthread->next;
108 G(L)->mainthread->next = obj2gco(u);
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.
46 #. Click the *New* button near the upper-left corner
48 #. Click *Next* at the starting page
50 #. Enter a name for the VM (put in whatever you like); for *OS Type*,
51 select "Linux", and for *Version*, select "Ubuntu". Click *Next*.
53 #. Enter the amount of memory to give the VM, in megabytes. Give it
54 as much as you can spare; 512 MB is the recommended minimum. Click *Next*.
56 #. Click *Use existing hard disk*, then click the folder icon next to
BibTeXPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 428 lines
✨ Summary
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
188 while (it.hasNext()) {
189 bib = (File) it.next();
191 //log(0);
202 String nextLine = in.readLine();
204 // log("nextLine=" + nextLine);
205 boolean newEntry = false;
206 int count = 0;
256 if (nextLine.indexOf("%Bibliography") != -1 ||
257 nextLine.indexOf("\\begin{document}") != -1) {
259 break;
260 }
262 int index = nextLine.indexOf("\\bibliography{");
263 int tbindex = nextLine.indexOf("\\begin{thebibliography}");
qmeegopixmapdata.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 227 lines
PersistentTableColumnModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 118 lines
✨ Summary
This Java class, PersistentTableColumnModel
, extends DefaultTableColumnModel
to manage table columns for a specific table in an editor application. It loads and saves column information from a configuration file, including column widths and model indices, and provides custom cell renderers for icons, names, and tooltips.
This Java class, PersistentTableColumnModel
, extends DefaultTableColumnModel
to manage table columns for a specific table in an editor application. It loads and saves column information from a configuration file, including column widths and model indices, and provides custom cell renderers for icons, names, and tooltips.
SideKickPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 435 lines
✨ Summary
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
This Java code is part of a text editor’s plugin that provides features like syntax highlighting, auto-completion, and parsing. It creates a background thread to parse buffers in real-time, updates the UI with parsed data, and manages toolbars and caret handlers for editing. The code also handles buffer parsing, parsing cancellation, and cleanup of resources when the view is stopped or removed.
96 for(int i = 0; i < panes.length; i++)
97 initTextArea(panes[i].getTextArea());
98 view = view.getNext();
99 }
100 jEdit.addActionSet(SideKickMenuProvider.getParserSwitchers());
117 for(int i = 0; i < panes.length; i++)
118 uninitTextArea(panes[i].getTextArea());
119 view = view.getNext();
120 }
124 {
125 buffer.setProperty(PARSED_DATA_PROPERTY,null);
126 buffer = buffer.getNext();
127 }
128 sidekicks = null;
XmlReader.java
(http://btalk.googlecode.com/svn/)
Java · 240 lines
✨ Summary
This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.
This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.
61 }
63 //http://discussion.forum.nokia.com/forum/showthread.php?t=76814
64 //by abirr
65 private int getNextCharacter() throws IOException {
93 }
95 public int next() throws IOException {
96 /* while (!this.ready())
97 try {
98 java.lang.Thread.sleep(100);
99 } catch (InterruptedException e) {}*/
100 this.c = getNextCharacter();
101 if (this.c <= ' ') {
102 while (((this.c = getNextCharacter()) <= ' ') && (this.c != -1)) {
Look_and_Feel_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 59 lines
Make_Get_and_Set_Methods.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 298 lines
56 StringTokenizer tokenizer = new StringTokenizer(lineText);
57 tokenizer.nextToken(); //eat "class"
58 if(tokenizer.hasMoreTokens())
59 {
60 setCaret(selectionStart, selectionEnd);
61 return tokenizer.nextToken();
62 }
63 }
187 for (int i = 0; i < numGarbage; i++)
188 {
189 tokenizer.nextToken();
190 }
dynamic_interval_traits_id505876.html (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
8 <link rel="up" href="../../header/boost/icl/discrete_interval_hpp.html" title="Header <boost/icl/discrete_interval.hpp>">
9 <link rel="prev" href="interval_traits_icl_dis_id505770.html" title="Struct template interval_traits<icl::discrete_interval< DomainT, Compare >>">
10 <link rel="next" href="interval_bound_type_dis_id505984.html" title="Struct template interval_bound_type<discrete_interval< DomainT, Compare >>">
11 </head>
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
21 <hr>
22 <div class="spirit-nav">
23 <a accesskey="p" href="interval_traits_icl_dis_id505770.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/discrete_interval_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="interval_bound_type_dis_id505984.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24 </div>
25 <div class="refentry" lang="en">
80 <hr>
81 <div class="spirit-nav">
82 <a accesskey="p" href="interval_traits_icl_dis_id505770.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/icl/discrete_interval_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="interval_bound_type_dis_id505984.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
83 </div>
84 </body>
haml.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 109 lines
29 syn cluster hamlTop contains=hamlBegin,hamlPlainFilter,hamlRubyFilter,hamlSassFilter,hamlComment,hamlHtmlComment
31 syn match hamlBegin "^\s*\%([<>]\|&[^=~ ]\)\@!" nextgroup=hamlTag,hamlClassChar,hamlIdChar,hamlRuby,hamlPlainChar,hamlInterpolatable
33 syn match hamlTag "%\w\+\%(:\w\+\)\=" contained contains=htmlTagName,htmlSpecialTagName nextgroup=@hamlComponent
34 syn region hamlAttributes matchgroup=hamlAttributesDelimiter start="(" end=")" contained contains=htmlArg,hamlAttributeString,hamlAttributeVariable,htmlEvent,htmlCssDefinition nextgroup=@hamlComponent
35 syn region hamlAttributesHash matchgroup=hamlAttributesDelimiter start="{" end="}" contained contains=@hamlRubyTop nextgroup=@hamlComponent
36 syn region hamlObject matchgroup=hamlObjectDelimiter start="\[" end="\]" contained contains=@hamlRubyTop nextgroup=@hamlComponent
37 syn match hamlDespacer "[<>]" contained nextgroup=hamlDespacer,hamlSelfCloser,hamlRuby,hamlPlainChar,hamlInterpolatable
38 syn match hamlSelfCloser "/" contained
39 syn match hamlClassChar "\." contained nextgroup=hamlClass
40 syn match hamlIdChar "#{\@!" contained nextgroup=hamlId
ContextOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 381 lines
✨ Summary
This Java code creates a graphical user interface (GUI) for adding new actions to an editor. It allows users to select an action set, choose an action from that set, and add it to the editor’s context menu. The GUI includes options for customizing the action’s label and separator. When the “OK” button is clicked, the selected action is added to the editor’s context menu.
This Java code creates a graphical user interface (GUI) for adding new actions to an editor. It allows users to select an action set, choose an action from that set, and add it to the editor’s context menu. The GUI includes options for customizing the action’s label and separator. When the “OK” button is clicked, the selected action is added to the editor’s context menu.
icon.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 199 lines
cl.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 113 lines
71 syn keyword clFunction asc asize chr name random slen srandom day getarg getcgi getenv lcase scat sconv sdel skey smult srep substr sword trim ucase match
73 syn keyword clStatement clear clear_eol clear_eos close copy create unique with where empty define define ldefine delay_form delete escape exit_block exit_do exit_process field fork format get getfile getnext getprev goto head join maintain message no_join on_eop on_key on_exit on_delete openin openout openapp pause popenin popenout popenio print put range read redisplay refresh restart_block screen select sleep text unlock write and not or do
75 " Define the default highlighting.
regex.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 122 lines
service_registry.ipp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a service registry class, which manages a collection of services for an asynchronous I/O system. It provides methods to create, destroy, and manage services, as well as handle events such as fork preparation and key matching. The class uses a mutex to ensure thread safety and provides a way to notify services about events.
This C++ header file defines a service registry class, which manages a collection of services for an asynchronous I/O system. It provides methods to create, destroy, and manage services, as well as handle events such as fork preparation and key matching. The class uses a mutex to ensure thread safety and provides a way to notify services about events.
42 {
43 service->shutdown_service();
44 service = service->next_;
45 }
48 while (first_service_)
49 {
50 boost::asio::io_service::service* next_service = first_service_->next_;
51 destroy(first_service_);
52 first_service_ = next_service;
66 {
67 services.push_back(service);
68 service = service->next_;
69 }
70 }
ArchiveDirectoryCache.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 211 lines
✨ Summary
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
This Java class, ArchiveDirectoryCache
, caches remote directories to improve performance by storing their listings in a temporary file and storing the file path in a hash table for efficient lookup. It provides methods to cache, retrieve, and clear cached directory listings, as well as manage its internal state and settings directory.
Telerik.RazorConverter.Tests.Common.csproj (git://github.com/telerik/razor-converter.git) MSBuild · 68 lines
53 <ItemGroup>
54 <Compile Include="Properties\AssemblyInfo.cs" />
55 <Compile Include="XunitExtensions\BooleanAssertionExtensions.cs" />
56 <Compile Include="XunitExtensions\CollectionAssertionExtensions.cs" />
57 <Compile Include="XunitExtensions\ObjectAssertExtensions.cs" />
58 <Compile Include="XunitExtensions\StringAssertionExtensions.cs" />
59 </ItemGroup>
60 <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
RETokenRange.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 52 lines
✨ Summary
This Java class, RETokenRange
, represents a token range in regular expressions. It extends the REToken
class and provides methods to match input characters within a specified range (inclusive) with sensitivity options. The class also includes a dump
method to print the token range as a string.
This Java class, RETokenRange
, represents a token range in regular expressions. It extends the REToken
class and provides methods to match input characters within a specified range (inclusive) with sensitivity options. The class also includes a dump
method to print the token range as a string.
SyntaxUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 231 lines
✨ Summary
This Java class provides utility functions for syntax and styles, including color conversion, parsing style strings, and loading syntax styles from properties. It allows users to convert colors to hex values, parse color names, and load styles with specified font families and sizes. The class is designed to work with the jEdit syntax package and provides a way to customize syntax highlighting.
This Java class provides utility functions for syntax and styles, including color conversion, parsing style strings, and loading syntax styles from properties. It allows users to convert colors to hex values, parse color names, and load styles with specified font families and sizes. The class is designed to work with the jEdit syntax package and provides a way to customize syntax highlighting.
not_equal_to.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header defines a metafunction sequence_not_equal_to
that checks if two sequences are not equal. It uses recursion and template metaprogramming to compare elements of two sequences, returning true if they are equal and false otherwise. The function is designed to work with Boost Fusion’s sequence types.
This C++ header defines a metafunction sequence_not_equal_to
that checks if two sequences are not equal. It uses recursion and template metaprogramming to compare elements of two sequences, returning true if they are equal and false otherwise. The function is designed to work with Boost Fusion’s sequence types.
qwaitcondition_win.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 233 lines
BSHBinaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 228 lines
✨ Summary
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
CompletionRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 219 lines
✨ Summary
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
This Java class, CompletionRequest
, is part of a CSS editor’s auto-completion feature. It analyzes user input and suggests possible completions based on CSS properties, units, and values. The class uses regular expressions to parse the input text and determine whether it matches certain patterns, allowing it to provide relevant suggestions for completion.
124 ArrayList found = new ArrayList();
125 Iterator it = CssSideKickCompletion.getCssProperties().keySet().iterator();
126 while (it.hasNext()) {
127 String n = (String) it.next();
138 Iterator it = cantidateCompletions.iterator();
139 String value;
140 while (it.hasNext()) {
141 value = (String)it.next();
150 private void addMatchedToCompletionList(ArrayList completions) {
151 Iterator it = completions.iterator();
152 while (it.hasNext()) {
153 completionList.add((String)it.next());
CMS.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 157 lines
✨ Summary
This C++ code implements a CMS (Constant Mean Subtraction) algorithm, a technique used in audio processing to reduce noise and improve signal quality. It takes input from multiple sources, calculates the mean of past inputs, subtracts it from the current input, and outputs the result. The algorithm is designed for use in digital signal processing applications.
This C++ code implements a CMS (Constant Mean Subtraction) algorithm, a technique used in audio processing to reduce noise and improve signal quality. It takes input from multiple sources, calculates the mean of past inputs, subtracts it from the current input, and outputs the result. The algorithm is designed for use in digital signal processing applications.
95 for (int i=0;i<lookAhead;i++)
96 {
97 ObjectRef nextInputValue = input.node->getOutput(input.outputID, count+lookAhead);
98 if (nextInputValue->status == Object::valid)
99 {
100 Vector<float> &curr = object_cast<Vector<float> > (nextInputValue);
101 for (int j=0;j<outputLength;j++)
102 mean[j] += curr[j];
110 const Vector<float> *past;
111 const Vector<float> *next;
112 bool can_look_back = false;
113 bool can_look_ahead = false;
128 {
129 can_look_ahead=true;
130 next = &object_cast<Vector<float> > (nextInputValue);
131 }
132 }
CurrentBufferSet.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 67 lines
✨ Summary
This Java class, CurrentBufferSet
, implements a file set for searching the current buffer in an editor. It provides methods to get the first, next, and all files in the set, as well as the total number of files and code associated with it. The class is designed to work within an editor’s search functionality, allowing users to search the contents of the currently open file.
This Java class, CurrentBufferSet
, implements a file set for searching the current buffer in an editor. It provides methods to get the first, next, and all files in the set, as well as the total number of files and code associated with it. The class is designed to work within an editor’s search functionality, allowing users to search the contents of the currently open file.
jedit_keys.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 235 lines
20 # C+e is a prefix
21 find.shortcut=C+f
22 find-next.shortcut=F3
23 # C+h is not usable on MacOS X
24 indent-lines.shortcut=C+i
52 delete-end-line.shortcut=CS+DELETE
53 prev-paragraph.shortcut=C+UP
54 next-paragraph.shortcut=C+DOWN
55 select-prev-paragraph.shortcut=CS+UP
56 select-next-paragraph.shortcut=CS+DOWN
63 prev-word.shortcut=C+LEFT
64 select-prev-word.shortcut=CS+LEFT
65 next-word.shortcut=C+RIGHT
66 select-next-word.shortcut=CS+RIGHT
67 action-bar.shortcut=C+ENTER
68 prev-buffer.shortcut=C+PAGE_UP
69 next-buffer.shortcut=C+PAGE_DOWN
70 last-action.shortcut=C+SPACE
TemplateDir.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 229 lines
✨ Summary
This Java code defines a TemplateDir
class, which represents a directory within a templates hierarchy. It scans the templates directory, creates a tree of template files and directories, and generates a string representation of the hierarchy for debugging purposes. The class provides methods to access and manipulate the template directory structure, including adding menu items and retrieving child nodes.
This Java code defines a TemplateDir
class, which represents a directory within a templates hierarchy. It scans the templates directory, creates a tree of template files and directories, and generates a string representation of the hierarchy for debugging purposes. The class provides methods to access and manipulate the template directory structure, including adding menu items and retrieving child nodes.
115 e = this.templateFiles.elements();
116 while (e.hasMoreElements()) {
117 o = e.nextElement();
118 if (o instanceof TemplateDir) {
119 td = (TemplateDir) o;
166 Enumeration kids = this.children();
167 while (kids.hasMoreElements()) {
168 TemplateFile f = (TemplateFile) kids.nextElement();
169 if (f.isDirectory()) {
170 retStr.append(((TemplateDir)f).printDir());
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 470 lines
NavigatorPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 71 lines
question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines
6 <tr>
7 <td width='50' colspan='1' class='men-met'>
8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />
9 </td>
10 <td width='250' colspan='5' class='men-met'>
11 <span class='title'><?php echo $men . " " . $year; ?></span><br />
12 </td>
13 <td width='50' colspan='1' align='right' class='men-met'>
14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />
15 </td>
16 </tr>
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
265 --token_source.level;
266 add("}");
267 if (t.next != null && t.next.kind != JsonParserConstants.COMMA)
268 writeln();
269 }
562 b.setLength(0); // clear the line buffer
564 // this next section builds the output string while protecting
565 // string literals. All extra spaces are removed from the output
566 // string, except that string literals are left as is.
679 }
680 */
681 // clear the accumulator for the next line
682 a.clear();
683 }
plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1233 lines
324 <function>GUIUtilities.loadMenuItem()</function> instead of
325 <function>loadMenu()</function>. We will explain the use of both methods
326 in the next section.
327 </para>
998 <para>
999 Next in the file comes a property that sets the title of the
1000 plugin in docked or frame windows. The use of the suffix
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.
375 # the call to AM_INIT_AUTOMAKE.
376 # We support both call styles for the transition. After
377 # the next Automake release, Autoconf can make the AC_INIT
378 # arguments mandatory, and then we can depend on a new Autoconf
379 # release and drop the old call support.
664 mkdir_p='mkdir -p --'
665 else
666 # On NextStep and OpenStep, the `mkdir' command does not
667 # recognize any option. It will interpret all options as
668 # directories to create, and then abort because `.' already
JSONDecoder.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 225 lines
✨ Summary
This ActionScript code defines a JSONDecoder
class that parses JSON strings into native objects. It uses a tokenizer to read the input string and then attempts to parse an array, object, or value based on the token type. The decoder returns the parsed object, which can be accessed through its getValue()
method.
This ActionScript code defines a JSONDecoder
class that parses JSON strings into native objects. It uses a tokenizer to read the input string and then attempts to parse an array, object, or value based on the token type. The decoder returns the parsed object, which can be accessed through its getValue()
method.
61 tokenizer = new JSONTokenizer( s );
63 nextToken();
64 value = parseValue();
65 }
81 /**
82 * Returns the next token from the tokenzier reading
83 * the JSON string
84 */
85 private function nextToken():JSONToken {
86 return token = tokenizer.getNextToken();
95 var a:Array = new Array();
97 // grab the next token from the tokenizer to move
98 // past the opening [
99 nextToken();
ChangeLog-9899 (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 1670 lines
strings.xml (http://softkeyboard.googlecode.com/svn/) XML · 139 lines
ndis_events.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 809 lines
✨ Summary
This C code initializes a Windows-based network interface for receiving notifications about network events, such as packet arrival and error conditions. It creates an instance of a WMI (Windows Management Instrumentation) object sink, connects to a WMI server, and registers asynchronous notifications with the sink. The sink provides methods for querying, adding references, releasing, indicating, and setting the status of the notification.
This C code initializes a Windows-based network interface for receiving notifications about network events, such as packet arrival and error conditions. It creates an instance of a WMI (Windows Management Instrumentation) object sink, connects to a WMI server, and registers asynchronous notifications with the sink. The sink provides methods for querying, adding references, releasing, indicating, and setting the status of the notification.
537 uReturned = 0;
538 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1,
539 &pObj, &uReturned);
540 if (!SUCCEEDED(hr) || uReturned == 0) {
579 uReturned = 0;
580 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1,
581 &pObj, &uReturned);
582 if (!SUCCEEDED(hr) || uReturned == 0) {
665 uReturned = 0;
666 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1,
667 &pObj, &uReturned);
668 if (!SUCCEEDED(hr) || uReturned == 0) {
Symbols.scala
(git://github.com/greedy/scala-llvm.git)
Scala · 187 lines
✨ Summary
This is a Scala trait Symbols
that represents symbols in the Scala language, such as classes, methods, and types. It provides various methods to access and manipulate symbol information, including flags, names, and related symbols. The trait also defines constants for different flag values and provides methods for creating new symbols.
This is a Scala trait Symbols
that represents symbols in the Scala language, such as classes, methods, and types. It provides various methods to access and manipulate symbol information, including flags, names, and related symbols. The trait also defines constants for different flag values and provides methods for creating new symbols.
jdct.h
(git://github.com/PrimeSense/Sensor.git)
C Header · 176 lines
✨ Summary
This C header file defines declarations and macros for the forward and inverse Discrete Cosine Transform (DCT) modules used in image compression. It provides function prototypes, data types, and arithmetic macros for fixed-point calculations, including scaling, rounding, and multiplication operations. The code is designed to be machine-dependent and optimized for performance.
This C header file defines declarations and macros for the forward and inverse Discrete Cosine Transform (DCT) modules used in image compression. It provides function prototypes, data types, and arithmetic macros for fixed-point calculations, including scaling, rounding, and multiplication operations. The code is designed to be machine-dependent and optimized for performance.
dt_cg.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 2007 lines
✨ Summary
This C code is part of a compiler’s intermediate representation (IR) generation process for a dynamic typing system. It generates machine-specific code for a given IR node, which represents an expression in the source code. The code creates and manages registers, handles different types of nodes (e.g., identifiers, integers), and appends instructions to a list of generated code.
This C code is part of a compiler’s intermediate representation (IR) generation process for a dynamic typing system. It generates machine-specific code for a given IR node, which represents an expression in the source code. The code creates and manages registers, handles different types of nodes (e.g., identifiers, integers), and appends instructions to a list of generated code.
55 dip->di_instr = instr;
56 dip->di_extern = NULL;
57 dip->di_next = NULL;
59 return (dip);
875 dt_cg_logical_xor(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp)
876 {
877 uint_t lbl_next = dt_irlist_label(dlp);
878 uint_t lbl_tail = dt_irlist_label(dlp);
884 dt_irlist_append(dlp, dt_cg_node_alloc(DT_LBL_NONE, instr));
886 instr = DIF_INSTR_BRANCH(DIF_OP_BE, lbl_next);
887 dt_irlist_append(dlp, dt_cg_node_alloc(DT_LBL_NONE, instr));
888 dt_cg_setx(dlp, dnp->dn_left->dn_reg, 1);
EventRequest.java (https://bitbucket.org/__wp__/mb-linux-msli.git) Java · 383 lines
DescendantOrSelfStep.java
(http://xbird.googlecode.com/svn/trunk/)
Java · 148 lines
✨ Summary
This Java code defines a class DescendantOrSelfStep
that represents an axis step in an XPath expression. It extends AxisStep
and provides methods for evaluating descendant-or-self axes, including checking if a path is index accessible and generating sequences of nodes. The class also includes a nested class RootDescStep
representing the root descendant-or-self axis.
This Java code defines a class DescendantOrSelfStep
that represents an axis step in an XPath expression. It extends AxisStep
and provides methods for evaluating descendant-or-self axes, including checking if a path is index accessible and generating sequences of nodes. The class also includes a nested class RootDescStep
representing the root descendant-or-self axis.
68 final INodeSequence<XQNode> src = ProxyNodeSequence.wrap(contextSeq, dynEnv);
69 final IFocus<XQNode> srcItor = src.iterator();
70 if(srcItor.hasNext()) {
71 final XQNode n = srcItor.next();
72 if(srcItor.hasNext()) {
73 srcItor.closeQuietly();
74 reportError("err:XPTY0020", "Context item is expected to be a node, but was node sequence.");
115 }
117 public boolean next(final IFocus<XQNode> focus) throws XQueryException {
118 XQNode curNode = focus.getContextItem();
119 for(int pos = focus.getContextPosition(); curNode != null; pos++) {
123 }
124 } else {
125 curNode = curNode.nextNode();
126 if(curNode == null) {
127 return false;
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.
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.
get_related_placements.rb
(https://code.google.com/p/google-api-ads-ruby/)
Ruby · 0 lines
✨ Summary
This Ruby script retrieves URLs with content keywords related to a given website using the AdWords API. It performs a search for “related placements” and displays the results, including the URL and the keyword found at that location. The script also handles HTTP and API errors that may occur during the process.
This Ruby script retrieves URLs with content keywords related to a given website using the AdWords API. It performs a search for “related placements” and displays the results, including the URL and the keyword found at that location. The script also handles HTTP and API errors that may occur during the process.