100+ results for 'php current'

Not the results you expected?

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

90 * The name of the current constant being parsed, if any

91 *

92 * @var string $currentConstName The name of the current constant being parsed

93 */

94 protected $currentConstName;

99 * The value of the current constant being parsed, if any

100 *

101 * @var string $currentConstValue The value of the current constant being parsed

102 */

103 protected $currentConstValue;

289 {

290 $text = null; // not needed

291 $this->currentTokenType = $id;

292 $this->accessLevel = "private";

293 }

InfGuidObject.py (https://gitlab.com/envieidoc/Clover) Python · 353 lines

8 # under the terms and conditions of the BSD License which accompanies this

9 # distribution. The full text of the license may be found at

10 # http://opensource.org/licenses/bsd-license.php

11 #

12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

186 CommentInsList.append(CommentItemIns)

187 #

188 # Add Current help string

189 #

190 CommentItemIns = InfGuidItemCommentContent()

249 if len(Item) == 3:

250 CommentsList = Item[1]

251 CurrentLineOfItem = Item[2]

252 Item = Item[0]

253 InfGuidItemObj = InfGuidItem()

svn.php (https://github.com/Yacodo/atoum.git) PHP · 411 lines

71 ->object($svn->setRepositoryUrl($url = uniqid()))->isIdenticalTo($svn)

72 ->string($svn->getRepositoryUrl())->isEqualTo($url)

73 ->object($svn->setRepositoryUrl($url = rand(- PHP_INT_MAX, PHP_INT_MAX)))->isIdenticalTo($svn)

74 ->string($svn->getRepositoryUrl())->isEqualTo((string) $url)

75 ;

101 ->object($svn->setUsername($username = uniqid()))->isIdenticalTo($svn)

102 ->string($svn->getUsername())->isEqualTo($username)

103 ->object($svn->setUsername($username = rand(- PHP_INT_MAX, PHP_INT_MAX)))->isIdenticalTo($svn)

104 ->string($svn->getUsername())->isEqualTo((string) $username)

105 ;

116 ->object($svn->setPassword($password = uniqid()))->isIdenticalTo($svn)

117 ->string($svn->getPassword())->isEqualTo($password)

118 ->object($svn->setPassword($password = rand(- PHP_INT_MAX, PHP_INT_MAX)))->isIdenticalTo($svn)

119 ->string($svn->getPassword())->isEqualTo((string) $password)

120 ;

friends.php (https://github.com/pjwiseman/joomla-cms.git) PHP · 459 lines

1 <?php

2 /**

3 * @package Joomla.Platform

430

431 /**

432 * Method to get the user ids that currently authenticated user does not want to see retweets from.

433 *

434 * @param boolean $string_ids Set to true to return IDs as strings, false to return as integers.

config_2.7.0.php (https://github.com/nigeldaley/moodle.git) PHP · 624 lines

1 <?PHP

2 /**

3 * Copyright (c) 2009, Yahoo! Inc. All rights reserved.

7 */

8

9 $GLOBALS['yui_current'] = array (

10 'base' => 'http://yui.yahooapis.com/2.7.0/build/',

11 'moduleInfo' =>

parser.c (https://github.com/CorCornelisse/libredis.git) C · 406 lines

3 *

4 * This module is part of Libredis (http://github.com/toymachine/libredis) and is released under

5 * the New BSD License: http://www.opensource.org/licenses/bsd-license.php

6 *

7 */

23 size_t p; //position

24 int cs; //state

25 int bulk_count; //number of chars to read for current binary safe bulk-value

26 int multibulk_count; //the number of bulk replies to read for the current multibulk reply

config_2.7.0.php (https://bitbucket.org/khuongduybui/openfisma.git) PHP · 624 lines

1 <?php

2 /**

3 * Copyright (c) 2009, Yahoo! Inc. All rights reserved.

7 */

8

9 $GLOBALS['yuiCurrent'] = array (

10 'base' => 'http://yui.yahooapis.com/2.7.0/build/',

11 'moduleInfo' =>

eztemplatesetfunction.php (https://github.com/GunioRobot/ezpublish.git) PHP · 378 lines

186 function defineVariables( $tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, &$currentNamespace )

187 {

188 $oldCurrentNamespace = $currentNamespace;

189 $definedVariables = array();

190 foreach ( array_keys( $functionParameters ) as $key )

221 function createDefaultVariables( $tpl, $functionParameters, $functionPlacement, $name, $rootNamespace, &$currentNamespace )

222 {

223 $oldCurrentNamespace = $currentNamespace;

224 $definedVariables = array();

225 foreach ( array_keys( $functionParameters ) as $key )

244 $currentNamespace = $name;

245 return array( $definedVariables,

246 $oldCurrentNamespace );

247 }

248

class.yaf-config-simple.html (https://bitbucket.org/thncr/manuals.git) HTML · 320 lines

10 <div class="next" style="text-align: right; float: right;"><a href="yaf-config-simple.construct.html">Yaf_Config_Simple::__construct</a></div>

11 <div class="up"><a href="book.yaf.html">Yaf</a></div>

12 <div class="home"><a href="index.html">PHP Manual</a></div>

13 </div><hr /><div id="class.yaf-config-simple" class="reference">

14

81 )</div>

82 <div class="methodsynopsis dc-description">

83 <span class="modifier">public</span> <span class="type">void</span> <span class="methodname"><a href="yaf-config-simple.current.html" class="methodname">current</a></span>

84 ( <span class="methodparam">void</span>

85 )</div>

311

312

313 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="yaf-config-simple.construct.html">Yaf_Config_Simple::__construct</a> — The __construct purpose</li><li><a href="yaf-config-simple.count.html">Yaf_Config_Simple::count</a> — The count purpose</li><li><a href="yaf-config-simple.current.html">Yaf_Config_Simple::current</a> — The current purpose</li><li><a href="yaf-config-simple.get.html">Yaf_Config_Simple::__get</a> — The __get purpose</li><li><a href="yaf-config-simple.isset.html">Yaf_Config_Simple::__isset</a> — The __isset purpose</li><li><a href="yaf-config-simple.key.html">Yaf_Config_Simple::key</a> — The key purpose</li><li><a href="yaf-config-simple.next.html">Yaf_Config_Simple::next</a> — The next purpose</li><li><a href="yaf-config-simple.offsetexists.html">Yaf_Config_Simple::offsetExists</a> — The offsetExists purpose</li><li><a href="yaf-config-simple.offsetget.html">Yaf_Config_Simple::offsetGet</a> — The offsetGet purpose</li><li><a href="yaf-config-simple.offsetset.html">Yaf_Config_Simple::offsetSet</a> — The offsetSet purpose</li><li><a href="yaf-config-simple.offsetunset.html">Yaf_Config_Simple::offsetUnset</a> — The offsetUnset purpose</li><li><a href="yaf-config-simple.readonly.html">Yaf_Config_Simple::readonly</a> — The readonly purpose</li><li><a href="yaf-config-simple.rewind.html">Yaf_Config_Simple::rewind</a> — The rewind purpose</li><li><a href="yaf-config-simple.set.html">Yaf_Config_Simple::__set</a> — The __set purpose</li><li><a href="yaf-config-simple.toarray.html">Yaf_Config_Simple::toArray</a> — Returns a PHP array</li><li><a href="yaf-config-simple.valid.html">Yaf_Config_Simple::valid</a> — The valid purpose</li></ul>

314 </div>

315 <hr /><div class="manualnavbar" style="text-align: center;">

MacOSX.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 42 lines ✨ Summary

This HTML code outputs a simple webpage with a table displaying information about a Mac OS X plugin for jEdit, a text editor. The page includes details on features, supported Java version, and author credits. It provides basic information in a concise format, likely used as documentation or a help page for the plugin.

31 <li>"About jEdit..." in the application menu can be used to access the About

32 Dialog.</li>

33 <li>You can show the current in the finder by CMD+Clicking in the titlebar.</li>

34 </ul>

35 <h3>Supported Java version:</h3>

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

1 /** Reset_TextArea.bsh

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

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

4 incorrect characters on the screen).

6

7 view.splitVertically();

8 view.unsplitCurrent();

9

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1010 lines

58

59 <para>

60 <guimenu>Plugins</guimenu>&gt;<guisubmenu>SideKick</guisubmenu>&gt;<guimenuitem>SideKick</guimenuitem> displays the current buffer's structure in a dockable window. This window is floating by default, but it can be docked into the view 2 ways.

61 </para>

62 <orderedlist>

76 <para>

77 <guimenu>Plugins</guimenu>&gt;<guisubmenu>SideKick</guisubmenu>&gt;<guimenuitem>Parse

78 on Keystroke</guimenuitem> is a checkbox menu item that toggles on-the-fly parsing, for the current buffer only.

79 </para>

80

86

87 <para>

88 The current buffer can be parsed at any other time by clicking the parse

89 button in the <guimenuitem>Sidekick</guimenuitem> window, or by

90 invoking the

lextype.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 55 lines

13 For this to work correctly however, it is critical that

14 there is a variable which strictly preserves the name

15 of the type. '$basetype' doesn't currently do this -

16 it sometimes contains 'Giraffe' and sometimes (specifically

17 the case of arrays) contains 'Animal'. Since existing

Display_Abbreviations.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 386 lines

28 * This macro will display a sorted list of all defined abbreviations

29 * in a dialog. A combo box lists all eidting modes for which abbreviations

30 * are currently defined, as well as the "global" abbreviation set.

31 *

32 * Pressing a letter key will cause the table to scroll to the first row

45 * the abbreviation set in the "Global Options" dialog. If EXCLUDE_EMPTY_SETS

46 * is set to true, the drop-down list will not by updated. Clsoing the dialog

47 * and running the macro again will obtain current data.

48 *

49 *

89 Vector makeTableDataForMode(Vector v, String name)

90 {

91 if(name.equals(currentSet))

92 return v;

93 Hashtable htable = null;

VERSION.TXT (http://keywatch.googlecode.com/svn/trunk/) Plain Text · 1657 lines

86 + Fixed ChunkableOutputStream close propagation

87 + Better recycling of HttpRequests.

88 + Protect session.getAttributeNames from concurrent modifications.

89 + Allow comma separated cookies and headers

90 + Back out Don't chunk 30x empty responses.

103 + Force security disassociation.

104 + Better recycling of HttpRequests.

105 + Protect session.getAttributeNames from concurrent modifications.

106 + Allow session manager to be initialized when set.

107 + Fixed japanese locale

HistoryEuml.cpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

135 void pstate(player const& p)

136 {

137 std::cout << " -> " << state_names[p.current_state()[0]] << std::endl;

138 }

139

TextAutocomplete.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 455 lines ✨ Summary

This is a documentation page for a Java plugin called “Text Autocomplete” for the jEdit text editor. It provides an overview of the plugin’s features, classes, and functionality, as well as its licensing terms. The page includes detailed explanations of how the plugin works, its core components, and its usage.

40 <h2><a name="About">About</a></h2>

41

42 <p>TextAutocomplete collects "words" in the current buffer and those that you

43 type and offers you automatically a list of possible completions. It's pretty

44 similar to the jEdit's function "Complete Word" but it's automatic, you don't

104 <li><kbd>Enter</kbd>, <kbd>Tab</kbd> - Accept and insert the selected

105 completion.</li>

106 <li><kbd>Up arrow</kbd> - Select the completion above the currently

107 selected one. It cycles through the list, so pressing Up on the first

108 entry gets you to the last one.</li>

109 <li><kbd>Down arrow</kbd> - Select the completion below the currently

110 selected one. It cycles through the list.</li>

111 <li>Numbers <kbd>0-9</kbd> - Accept and insert the completion with the

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 781 lines

66 the URL Root will enable project files to be launched in a

67 web browser. Suppose the project "Root" also correlates to

68 the URL "http://localhost/myproject/" currently running on a

69 web server, launching the file "hello.jsp" will launch the

70 web browser with the URL

87 <para>

88 The plugin interface consists of a tool bar, containing some

89 command buttons, a menu containing the currently

90 available projects (accessible through the button labeled

91 with the current active node), and the project's views.

134 manager, organised in directories. The "Files" view, which

135 shows all the project's files in a flat list. The "Working

136 Files", which shows the files currently opened in jEdit. And

137 the "Compact View", which compresses subdirectories into

138 top-level nodes, showing a structure similar to the java

ProjectTreeSelectionListener.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 242 lines ✨ Summary

This Java class, ProjectTreeSelectionListener, listens to a JTree component and responds to file selections. It handles mouse clicks, double-clicks, and tree model changes, updating the UI accordingly. When a file is selected, it determines whether it’s currently open in the buffer or not, and performs actions such as launching or closing files based on its state.

96 lastClickButton = evt.getModifiers();

97 lastClickTarget = target;

98 lastClickTime = System.currentTimeMillis();

99 return false;

100 }

112 public void stateChanged( ChangeEvent evt ) {

113 checkState();

114 if ( currentTree != null ) getCurrentModel().removeTreeModelListener( this );

115 currentTree = viewer.getCurrentTree();

156

157 /**

158 * Call on the current tree to select the given node.

159 */

160 public void run() {

161 currentTree.setSelectionPath( selectionPath );

162 }

163

stackFormat (git://github.com/ticking/self.git) Unknown · 70 lines

16 FP: caller L0

17 link ; stack frame nmethod link word

18 currentPC ; current PC (valid only for frame with

19 ; invalid nmethod)

20 unused ; unused (SP must be doubleword-aligned)

57 FP: frame ; do a LINK

58 link ; stack frame nmethod link word

59 currentPC ; current PC (valid only for frame with

60 ; invalid nmethod)

61 unused ; unused (to reduce differences with sparc version)

HistoryModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 322 lines ✨ Summary

This Java code defines a HistoryModel class that manages a list of history entries for a text editor. It allows adding, removing, and saving history entries to a file, with options for trimming the list to a maximum size and loading/saving from a settings directory. The model also tracks changes and updates the file accordingly.

175 in = new BufferedReader(new FileReader(history));

176

177 HistoryModel currentModel = null;

178 String line;

179

182 if(line.startsWith("[") && line.endsWith("]"))

183 {

184 if(currentModel != null)

185 {

186 models.put(currentModel.getName(),

208 if(currentModel != null)

209 {

210 models.put(currentModel.getName(),currentModel);

211 }

212 }

shortcuts.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 779 lines

89 <row>

90 <entry><keycombo><keycap>Control</keycap><keycap>0</keycap></keycombo></entry>

91 <entry>Remove split containing current text area only.</entry>

92 </row>

93 <row>

123 <keycombo><keycap>Control</keycap><keycap>`</keycap></keycombo></keycombo>

124 </entry>

125 <entry>Close currently focused docking area.</entry>

126 </row>

127 <row>

129 <keycombo><keycap>Control</keycap><keycap>E</keycap></keycombo></keycombo>

130 </entry>

131 <entry>Send keyboard focus back to current text area.</entry>

132 </row>

133 </tbody>

Service.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 331 lines ✨ Summary

This JavaScript code defines a set of functions and classes for handling HTTP requests, specifically for creating RESTful services. It provides a framework for building web applications that can send and receive data in various formats (e.g., JSON, XML, JavaScript). The code also includes built-in transports for common HTTP methods like GET, POST, and JSONP.

42 for(var serviceName in self._smd.services){

43 var pieces = serviceName.split("."); // handle "namespaced" services by breaking apart by .

44 var current = self;

45 for(var i=0; i< pieces.length-1; i++){

46 // create or reuse each object as we go down the chain

47 current = current[pieces[i]] || (current[pieces[i]] = {});

48 }

49 current[pieces[pieces.length-1]]= self._generateService(serviceName, self._smd.services[serviceName]);

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

20

21 <para>When pressed once, the <keycap>HOME</keycap> key moves the caret

22 to the first non-whitespace character of the current screen line.

23 Pressing it a second time moves the caret to the beginning of the

24 current buffer line. Pressing it a third time moves the caret to the

26

27 <para>The <keycap>END</keycap> key behaves in a similar manner, going to

28 the last non-whitespace character of the current screen line, the end of

29 the current buffer line, and finally to the last visible line.</para>

354 <para><guimenu>Edit</guimenu>&gt;<guimenuitem>Complete

355 Word</guimenuitem> (shortcut: <keycap>C+b</keycap>) locates possible

356 completions for the word at the caret, first by looking in the current

357 edit mode's syntax highlighting keyword list, and then in the current

386 <para><guimenu>Edit</guimenu>&gt;<guimenuitem>Word Count</guimenuitem>

387 displays a dialog box with the number of characters, words and lines in

388 the current buffer.</para>

389

390 <section>

faq-use.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 715 lines

43 makes the abbreviation available for all documents; the

44 second makes it available only in documents with the same

45 editing mode as the current document. In this way, you can

46 add abbreviations that operate only a particular class of

47 documents, for example, Java source files or XML markup.

182 selecting

183 <guimenu>Utilities</guimenu>&gt;<guimenuitem>Buffer

184 Options</guimenuitem> and changing the current buffer's

185 properties. Finally, jEdit keeps track of the encodings used

186 in the files named in the

217 named <filename>euro.bsh</filename> that can be used as a

218 startup script to help simplify the insertion of the Euro

219 symbol if your keyboard currently lacks a dedicated

220 key.</para>

221 </answer>

Platform.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 242 lines ✨ Summary

This C++ code provides a virtual memory management system for operating systems, allowing for allocation and deallocation of memory blocks with specific permissions and alignment requirements. It supports both Windows and POSIX platforms, using different APIs to achieve similar functionality. The code includes helper functions for rounding up to the nearest power of two and checking alignment.

124 ASMJIT_NOTHROW

125 {

126 return allocProcessMemory(GetCurrentProcess(), length, allocated, canExecute);

127 }

128

130 ASMJIT_NOTHROW

131 {

132 return freeProcessMemory(GetCurrentProcess(), addr, length);

133 }

134

Interpreter.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1205 lines ✨ Summary

This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.

170 {

171 parser = new Parser( in );

172 long t1=System.currentTimeMillis();

173 this.in = in;

174 this.out = out;

200 loadRCFiles();

201

202 long t2=System.currentTimeMillis();

203 if ( Interpreter.DEBUG )

204 Interpreter.debug("Time to initialize interpreter: "+(t2-t1));

tip60.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 9 lines ✨ Summary

This HTML code describes a behavior of a text editor’s search function. When text is selected, the search function behaves differently depending on whether the selection spans multiple lines or not. If it does, “Search in Selection” is used; otherwise, “Search in Current Buffer” is chosen and the selected text is copied into the search string field.

4 <b>Search in Selection</b> setting is selected by default. If the selection

5 does not contain line breaks,

6 the <b>Search in Current Buffer</b> setting is chosen, and the selection

7 is copied into the search string field.

8 </body></html>

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

77

78 PassRefPtr<CSSValue> valueForShadow(const ShadowData*, int, RenderStyle*) const;

79 PassRefPtr<CSSPrimitiveValue> currentColorOrValidColor(RenderStyle*, const Color&) const;

80 #if ENABLE(SVG)

81 PassRefPtr<SVGPaint> adjustSVGPaintForCurrentColor(PassRefPtr<SVGPaint>, RenderStyle*) const;

workspaceEditor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 125 lines

38 {

39 this.chooser = new JFileChooser();

40 chooser.setCurrentDirectory( pathToFile(bsh.cwd) );

41 this.returnVal = chooser.showOpenDialog( bsh.system.desktop.pane );

42 if (returnVal == JFileChooser.APPROVE_OPTION) {

52 {

53 this.chooser = new JFileChooser();

54 chooser.setCurrentDirectory( pathToFile(bsh.cwd) );

55 this.returnVal = chooser.showSaveDialog( bsh.system.desktop.pane );

56 if (returnVal == JFileChooser.APPROVE_OPTION) {

package.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 77 lines ✨ Summary

This HTML code explains how to create custom actions for a plugin called ProjectViewer, which allows developers to interact with file trees. It provides instructions on how to extend the context menu and toolbar, implement action methods, and register actions with the viewer. The goal is to enable other plugin developers to add custom functionality to the ProjectViewer interface.

49 decide if it should be shown for the given node and what message to show, for

50 example. For the toolbar buttons, this method is <b>never</b> called, so the

51 toolbar buttons should be able to be executed regardless of the current tree

52 selection. If your action depends on a certain kind of node, add it to the

53 context menu, and not to the toolbar. If you want to add it to the toolbar,

Activator.java (http://keywatch.googlecode.com/svn/trunk/) Java · 262 lines ✨ Summary

This Java code is an Activator class for an OSGi bundle, which sets up a web server using Jetty to host a web application. It provides access to services and implements various listener interfaces to handle bundle events and framework updates. The code initializes the servlet container, adds context, and starts the server when the bundle starts, stopping it when the bundle stops.

70

71 ClassLoader bundleLoader = this.getClass().getClassLoader();

72 ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();

73 Thread.currentThread().setContextClassLoader(bundleLoader);

119 servletserver.start();

120

121 //Thread.currentThread().setContextClassLoader(oldLoader);

122 }

123 catch (Exception ex)

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 137 lines

43 <itemizedlist>

44 <listitem><para> <emphasis> Load/Save Perspective.</emphasis>

45 Like Eclipse, the Docker plugin supports named Perspectives, which describe the docking positions of docked windows. With this, you can save your current dockable layout as a named perspective, and later load it back again. Loading a perspective restores the dockable buttons for each docking area, and the visible window in each docking area.

46 </para></listitem>

47

pre-commit (git://github.com/jwiegley/ledger.git) Bash · 70 lines ✨ Summary

This Bash script is a pre-commit hook for Git repositories. It checks out a copy of the current index, removes unnecessary files, and copies changed files to a temporary build tree. It then regenerates Makefiles if necessary and rebuilds the proposed source tree using acprep or make check. The script exits with success if it’s run on a branch of interest, otherwise it exits with failure.

19 MIRROR=$PRODUCTS/pre-commit-mirror

20

21 # Checkout a copy of the current index into MIRROR

22 git checkout-index --prefix=$MIRROR/ -af

23

38 cd $TMPDIR

39

40 # Make sure there is a current Makefile. Regeneration of Makefile

41 # happens automatically, but if myacprep or acprep changes, we want to

42 # regenerate everything manually. If the user doesn't have acprep, look

PluginLoader.as (http://flowplayer-core.googlecode.com/svn/) ActionScript · 350 lines ✨ Summary

This ActionScript code is a plugin loader for Adobe Flash Player. It loads and initializes plugins, such as fonts, display objects, and stream providers, from external sources. The code manages the loading process, handles errors, and sets up configuration for each plugin. It also provides access to loaded plugins through various methods, allowing developers to interact with them in their application.

121

122 _loaderContext = new LoaderContext();

123 _loaderContext.applicationDomain = ApplicationDomain.currentDomain;

124 if (!URLUtil.localDomain(_baseUrl)) {

125 _loaderContext.securityDomain = SecurityDomain.currentDomain;

ModalJFileChooser.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 165 lines ✨ Summary

This Java code defines a custom file chooser class ModalJFileChooser that extends the standard JFileChooser. It fixes an issue with modal dialogs being activated by the calling dialog, and also shows hidden files when the “All files (including hidden)” filter is selected. The class overrides methods to customize its behavior and provides a way to toggle the display of hidden files.

68

69 //{{{ +ModalJFileChooser(File) : <init>

70 public ModalJFileChooser(File currentDirectory) {

71 super(currentDirectory);

74

75 //{{{ +ModalJFileChooser(File, FileSystemView) : <init>

76 public ModalJFileChooser(File currentDirectory, FileSystemView fsv) {

77 super(currentDirectory, fsv);

86

87 //{{{ +ModalJFileChooser(String) : <init>

88 public ModalJFileChooser(String currentDirectoryPath) {

89 super(currentDirectoryPath);

92

93 //{{{ +ModalJFileChooser(String, FileSystemView) : <init>

94 public ModalJFileChooser(String currentDirectoryPath, FileSystemView fsv) {

95 super(currentDirectoryPath, fsv);

malloc.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 5515 lines

53

54 Alignment: 8 bytes (default)

55 This suffices for nearly all current machines and C compilers.

56 However, you can define MALLOC_ALIGNMENT to be wider than this

57 if necessary (up to 128bytes), at the expense of using more space.

78 The "security" of malloc refers to the ability of malicious

79 code to accentuate the effects of errors (for example, freeing

80 space that is not currently malloc'ed or overwriting past the

81 ends of chunks) in code that calls malloc. This malloc

82 guarantees not to modify any memory locations below the base of

120 spinlock (depending on WIN32). This is not especially fast, and

121 can be a major bottleneck. It is designed only to provide

122 minimal protection in concurrent environments, and to provide a

123 basis for extensions. If you are using malloc in a concurrent

249

250 USE_SPIN_LOCKS default: 1 iff USE_LOCKS and on x86 using gcc or MSC

251 If true, uses custom spin locks for locking. This is currently

252 supported only for x86 platforms using gcc or recent MS compilers.

253 Otherwise, posix locks or win32 critical sections are used.

CHANGELOG (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 560 lines

153 clicked on... then set the previous double clicked item to null

154

155 - (DONE) if you double click on a file... and it isn't the current buffer.

156 then don't unsubscribe it.

157

318

319

320 - (DONE) (BUG) when loading a project... getCurrentDirectory() should be set

321 to getCurrentDirectory().getRoot()

462 currently selected directory. There should be a new method named

463 getCurrentDirectory() which returns the directory the user is currently

464 viewing. This is changed when the user clicks on a Directory object.

465 If the user clicks on the Project object the directory will be set to

466 Project.getRoot(). If they select on a root node. The directory should

467 be set to the default dir. (thus getCurrentDirectory() would return null)

468

469 - (DONE) When deleting projects... tell the user the project they are about

writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 516 lines

112 <listitem><para><literal>indentCloseBrackets</literal> -

113 A list of characters (usually brackets) that subtract indent from

114 the <emphasis>current</emphasis> line. For example, in Java mode this

115 property is set to <quote>}</quote>.</para></listitem>

116 <listitem><para><literal>indentOpenBrackets</literal> -

301 <listitem><para><literal>DELEGATE</literal> - text inside the span will be

302 highlighted with the specified ruleset. To delegate to a ruleset defined

303 in the current mode, just specify its name. To delegate to a ruleset

304 defined in another mode, specify a name of the form

305 <literal><replaceable>mode</replaceable>::<replaceable>ruleset</replaceable></literal>.

325 Here is a <literal>SPAN</literal> that highlights Java documentation

326 comments by delegating to the <quote>JAVADOC</quote> ruleset defined

327 elsewhere in the current mode:

328 </para>

329 <programlisting>&lt;SPAN TYPE="COMMENT2" DELEGATE="JAVADOC"&gt;

qUI2Events.self (git://github.com/ticking/self.git) Unknown · 284 lines

36

37 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'modules' -> 'qUI2Events' -> () From: ( | {

38 'ModuleInfo: Module: qUI2Events InitialContents: InitializeToExpression: (_CurrentTimeString)\x7fVisibility: public'

39

40 fileInTimeString <- _CurrentTimeString.

MiscUtilities.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 1872 lines ✨ Summary

This Java code is a part of a file system utility, specifically for handling environment variables and paths on Unix-like systems. It compresses file paths into variable-prefixed values using a reverse mapping of values to environment variable names, allowing for faster path manipulation and replacement with environment variables. The VarCompressor class is a singleton that caches previously compressed strings for quick access later.

100 //{{{ canonPath() method

101 /**

102 * @return the canonical form of the specified path name. Currently

103 * only expands a leading <code>~</code>. <b>For local path names

104 * only.</b>

604 * 'backupTimeDistance' ago, we do not

605 * create the backup */

606 if(System.currentTimeMillis() - modTime

607 >= backupTimeDistance)

608 {

631 * 'backupTimeDistance' ago, we do not

632 * create the backup */

633 if(System.currentTimeMillis() - modTime

634 >= backupTimeDistance)

635 {

icon.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 199 lines

119 <KEYWORD3>&amp;collections</KEYWORD3>

120 <KEYWORD3>&amp;cset</KEYWORD3>

121 <KEYWORD3>&amp;current</KEYWORD3>

122 <KEYWORD3>&amp;date</KEYWORD3>

123 <KEYWORD3>&amp;dateline</KEYWORD3>

fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines

662 FALSE, curbuf, eap);

663 #endif

664 /* remember the current fileformat */

665 save_file_ff(curbuf);

666

799 #endif

800 /*

801 * Don't allow the autocommands to change the current buffer.

802 * Try to re-open the file.

803 *

815 EMSG(_("E200: *ReadPre autocommands made the file unreadable"));

816 else

817 EMSG(_("E201: *ReadPre autocommands must not change current buffer"));

818 curbuf->b_p_ro = TRUE; /* must use "w!" now */

819 return FAIL;

BinaryDictionary.java (http://softkeyboard.googlecode.com/svn/) Java · 163 lines ✨ Summary

This Java class, BinaryDictionary, implements a static binary dictionary of standard words for an Android application. It loads and compiles a raw resource file into a native library, allowing for efficient word suggestions and validation. The class provides methods to load the dictionary, get words from input codes, validate words, and close the dictionary.

87

88 private final void loadDictionary(AssetFileDescriptor afd) {

89 long startTime = System.currentTimeMillis();

90 mNativeDict = openNative(afd.getFileDescriptor(),

91 afd.getStartOffset(), afd.getLength(),

92 TYPED_LETTER_MULTIPLIER, FULL_WORD_FREQ_MULTIPLIER);

93 Log.i(TAG, "Loaded dictionary in " + (System.currentTimeMillis() - startTime) + "msec");

94 }

95

BshClassManager.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 353 lines ✨ Summary

This Java code defines a class called BshClassManager that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.

44 which allows classpath extension and class file reloading.

45

46 Currently the extension relies on 1.2 for BshClassLoader and weak

47 references.

48

55 <p>

56

57 Note: currently class loading features affect all instances of the

58 Interpreter. However the basic design of this class will allow for

59 per instance class management in the future if it is desired.

247 is done then BeanShell will perform that in addition to the supplied

248 external classloader.

249 However BeanShell is not currently able to reload

250 classes supplied through the external classloader.

251 */

Flowplayer.as (http://flowplayer-core.googlecode.com/svn/) ActionScript · 326 lines ✨ Summary

This ActionScript code defines a class that provides an interface to interact with plugins and multimedia elements on a screen, such as fading in/out, invoking methods, and updating clip properties. It also handles events, cue points, and plugin invocation, firing external events when necessary. The class seems to be part of a media player or presentation system.

102 addCallback("getVolume", function():Number { return volume; });

103 addCallback("seek", genericSeek);

104 addCallback("getCurrentClip", function():Object {

105 return new ObjectConverter(currentClip).convert(); });

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.

49 // this->sum += boost::fusion::accumulate(seq, 0, poly_add());

50 //

51 // where poly_add simply sums the current value with the content of

52 // the sequence element. This accumulator will be called many times

53 // through the "hammer" test (see measure.hpp).

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.

125 find.setText(null);

126 SearchAndReplace.setSearchString(text);

127 SearchAndReplace.setSearchFileSet(new CurrentBufferSet());

128 SearchAndReplace.hyperSearch(view);

129 }

131 {

132 // on enter, start search from end

133 // of current match to find next one

134 int start;

135 JEditTextArea textArea = view.getTextArea();

159 private boolean incrementalSearch(int start, boolean reverse)

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

BSHArrayInitializer.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 148 lines ✨ Summary

This Java code defines a class BSHArrayInitializer that extends SimpleNode. It is used to initialize arrays in a scripting language, allowing for dynamic array creation with variable dimensions and initializers. The class evaluates an array initializer syntax and creates an array of the specified base type with the given dimensions and initializers.

72 {

73 SimpleNode node = (SimpleNode)jjtGetChild(i);

74 Object currentInitializer;

75 if ( node instanceof BSHArrayInitializer ) {

76 if ( dimensions < 2 )

78 "Invalid Location for Intializer, position: "+i,

79 this, callstack );

80 currentInitializer =

81 ((BSHArrayInitializer)node).eval(

82 baseType, dimensions-1, callstack, interpreter);

83 } else

84 currentInitializer = node.eval( callstack, interpreter);

85

86 if ( currentInitializer == Primitive.VOID )

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

95 void runStatements();

96 void getNextStatement();

97 bool runCurrentStatement();

98 void handleCurrentStatementError();

110 #endif

111

112 RefPtr<SQLStatement> m_currentStatement;

113

114 bool m_executeSqlAllowed;

120 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper;

121 RefPtr<SQLError> m_transactionError;

122 bool m_shouldRetryCurrentStatement;

123 bool m_modifiedDatabase;

124 bool m_lockAcquired;

generated_by_smalltalk.self (git://github.com/ticking/self.git) Unknown · 78 lines

42

43 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'modules' -> 'generated_by_smalltalk' -> () From: ( | {

44 'ModuleInfo: Module: generated_by_smalltalk InitialContents: InitializeToExpression: (_CurrentTimeString)\x7fVisibility: public'

45

46 fileInTimeString <- _CurrentTimeString.

SessionManagerDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 321 lines ✨ Summary

This Java code is for a graphical user interface (GUI) dialog box that manages sessions, likely related to software development or debugging. It allows users to rename and delete existing sessions, and provides an option to close the dialog. The GUI displays a list of available sessions, with options to change the current session, rename a session, and delete a session.

57 {

58

59 public SessionManagerDialog(View view, final String currentSession)

60 {

61 super(view, jEdit.getProperty("sessions.manager.title"), true);

62 this.currentSession = currentSession;

63

64 lSessions = new JList(SessionManager.getInstance().getSessionNames());

191 else

192 {

193 boolean isCurrentSession = values[0].toString().equals(currentSession);

194 boolean isDefaultSession = values[0].toString().equalsIgnoreCase("default");

195 bChangeTo.setEnabled(!isCurrentSession);

248 if (name.equals(currentSession))

249 currentSession = null; // mark the current session as deleted

250 setNewListModel();

251 lSessions.setSelectedValue("default", true);

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 356 lines

245 <listitem><para>

246 <guibutton>Reload</guibutton> button in file system browser did not

247 flush subdirectories of the current directory from the cache.

248 </para></listitem>

249

threadedlistmodel.svg (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 94 lines

57 inkscape:window-y="-4"

58 inkscape:window-maximized="1"

59 inkscape:current-layer="g3" />

60 <g

61 transform="matrix(0.18308778,0,0,0.18308778,6.6100946,3.2385199)"

SessionPropertiesShowing.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 104 lines ✨ Summary

This Java class, SessionPropertiesShowing, is a message sent on an “EditBus” before displaying a dialog for session properties. It allows third parties to add custom property panes and groups to the dialog. The class provides methods to access the session and its associated property group, as well as methods to add property panes and groups to the dialog.

31 /**

32 * This message is sent out on EditBus before the "Session Properties"

33 * dialog is being displayed for the current session.

34 * It allows third parties to add custom sesion property panes

35 * to the dialog, using <code>addPropertyPane()</code> and

43 super(source);

44 this.session = session;

45 rootGroup = new SessionPropertyGroup("All Current Session Properties");

46 }

47

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.

70

71 // user has typed property

72 String currProperty = getCurrentCssProperty(textBeforeCaret);

73 ArrayList values = getPropertyValues(currProperty);

74

182 //}}}

183

184 //{{{ getCurrentCssProperty() method

185 private String getCurrentCssProperty(String text) {

186 Matcher m = CURR_PROP.matcher(text);

187 m.find();

188 // Log.log(Log.DEBUG, CompletionRequest.class, "getCurrentCssProperty() = '" + m.group(1) + "'");

189 return m.group(1);

190 }

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.

92 // filename generation algorithm is really simple...

93 tmpFileCount++;

94 long time = System.currentTimeMillis();

95 String path = MiscUtilities.constructPath(cacheDirectory,

96 "cache-" + tmpFileCount + "-" + time + ".tmp");

Node.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 38 lines ✨ Summary

This Java interface defines a basic structure for Abstract Syntax Tree (AST) nodes in an ECMAScript parser. It provides methods to manage child nodes, set and get parent nodes, add children, and accept visitors. These methods enable the construction of a tree-like data structure representing the syntactic structure of ECMAScript code.

9 public interface Node {

10

11 /** This method is called after the node has been made the current

12 node. It indicates that child nodes can now be added to it. */

13 public void jjtOpen();

Android2DSurface.java (http://loon-simple.googlecode.com/svn/trunk/) Java · 67 lines ✨ Summary

This Java interface defines a contract for an Android-based game’s surface, providing methods to update and manipulate graphics, as well as listener management. It allows for setting frame rates, updating graphics with different image types (LImage and Bitmap), resizing images, and managing emulator listeners and buttons. The interface is designed to be implemented by classes that handle the game’s graphical rendering and user input.

34 public long getMaxFPS();

35

36 public long getCurrentFPS();

37

38 public void update();

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

66 Whenever a new frame is available in the movie, QMovie will emit

67 updated(). If the size of the frame changes, resized() is emitted. You can

68 call currentImage() or currentPixmap() to get a copy of the current

69 frame. When the movie is done, QMovie emits finished(). If any error

70 occurs during playback (i.e, the image file is corrupt), QMovie will emit

132 This signal is emitted when the current frame has been resized to \a

133 size. This effect is sometimes used in animations as an alternative to

134 replacing the frame. You can call currentImage() or currentPixmap() to get a

135 copy of the updated frame.

136 */

747 invalid QRect is returned.

748

749 \sa currentImage(), currentPixmap()

750 */

751 QRect QMovie::frameRect() const

i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines

141 <KEYWORD1>COMPOSITES</KEYWORD1>

142 <KEYWORD1>COMPRESS</KEYWORD1>

143 <KEYWORD1>CONCURRENT</KEYWORD1>

144 <KEYWORD1>CONNECT</KEYWORD1>

145 <KEYWORD1>CONNECTION</KEYWORD1>

154 <KEYWORD1>COUNT</KEYWORD1>

155 <KEYWORD1>CREATE</KEYWORD1>

156 <KEYWORD1>CURRENT</KEYWORD1>

157 <KEYWORD1>CURSOR</KEYWORD1>

158 <KEYWORD1>CYAN</KEYWORD1>

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

355

356 /*!

357 Sets the current sort to \a sort. Note that no new records are

358 selected. To select new records, use select(). The \a sort will

359 apply to any subsequent select() calls that do not explicitly

367

368 /*!

369 Returns the current sort, or an empty index if there is no current

370 sort.

371 */

547 the database, or an empty index if there is no primary index. If

548 \a setFromCursor is true (the default), the index fields are

549 populated with the corresponding values in the cursor's current

550 record.

551 */

Insert_Buffer_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 251 lines

2 * Insert_Buffer_Properties.bsh - a Beanshell macro

3 * for the jEdit text editor that provides a gui for

4 * inserting Buffer Local properties for the current buffer

5 * into the current buffer. If the buffer's mode as a line

237 <para><filename>Insert_Buffer_Properties.bsh</filename></para>

238 <abstract><para>

239 Inserts buffer-local properties into the current buffer.

240 </para></abstract>

241 <para>

buffer.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 5722 lines

844 * do_bufdel() - delete or unload buffer(s)

845 *

846 * addr_count == 0: ":bdel" - delete current buffer

847 * addr_count == 1: ":N bdel" or ":bdel N [N ..]" - first delete

848 * buffer "end_bnr", then any other arguments.

863 int forceit;

864 {

865 int do_current = 0; /* delete current buffer? */

866 int deleted = 0; /* number of buffers deleted */

867 char_u *errormsg = NULL; /* return value */

976 * action == DOBUF_WIPE delete specified buffer(s) really

977 *

978 * start == DOBUF_CURRENT go to "count" buffer from current buffer

979 * start == DOBUF_FIRST go to "count" buffer from first buffer

980 * start == DOBUF_LAST go to "count" buffer from last buffer

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.

38 import java.util.Map;

39 import java.util.Set;

40 import java.util.concurrent.Executor;

41 import java.util.concurrent.Executors;

293 //{{{ parse() method

294 /**

295 * Immediately begins parsing the current buffer in a background thread.

296 * @param view The view

297 * @param showParsingMessage Clear the tree and show a status message

InfTree.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 521 lines ✨ Summary

This Java code implements a part of the DEFLATE compression algorithm used in ZIP files and other compressed data formats. It builds Huffman trees for literal/length codes, distance codes, and dynamic bit lengths trees, which are used to compress data. The code initializes work areas, allocates memory, and performs Huffman tree building operations.

249 int g; // maximum code length

250 int h; // table level

251 int i; // counter, current code

252 int j; // counter

253 int k; // number of bits in current code

255 int mask; // (1 << w) - 1, to avoid cc -O bug on HP

256 int p; // pointer into c[], b[], or v[]

257 int q; // points to current table

258 int w; // bits before this table == (l * h)

259 int xp; // pointer into x

260 int y; // number of dummy codes added

261 int z; // number of entries in current table

262

263 // Generate counts for each bit length

WorkRequest.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 71 lines ✨ Summary

This Java class, WorkRequest, is a subclass of Runnable that provides methods to interact with threads used for work requests. It allows setting whether a request can be aborted and updating its status, progress value, and maximum progress value. These updates are delegated to the underlying thread, which must implement the WorkThread interface.

31 public void setAbortable(boolean abortable)

32 {

33 Thread thread = Thread.currentThread();

34 if(thread instanceof WorkThread)

35 ((WorkThread)thread).setAbortable(abortable);

42 public void setStatus(String status)

43 {

44 Thread thread = Thread.currentThread();

45 if(thread instanceof WorkThread)

46 ((WorkThread)thread).setStatus(status);

53 public void setProgressValue(int value)

54 {

55 Thread thread = Thread.currentThread();

56 if(thread instanceof WorkThread)

57 ((WorkThread)thread).setProgressValue(value);

regex.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 122 lines

5 <!-- Regular Expression mode, by Kevin Hunter -->

6

7 <!-- Currently implemented artifacts:

8 ***** Classes

9 [...] - user-defined character classes

Look_and_Feel_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 59 lines

1 /*

2 * Look_and_Feel_Properties.bsh - a BeanShell macro script for the

3 * jEdit text editor - writes current look and feel

4 * properties to new text buffer

5 * Copyright (C) 2001 John Gellene

TextEditorImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 174 lines

144

145 @Override

146 public FileEditorLocation getCurrentLocation() {

147 return new TextEditorLocation(getEditor().getCaretModel().getLogicalPosition(), this);

148 }

menulist.aspx.cs (http://uniquestudiocms.googlecode.com/svn/trunk/) C# · 106 lines ✨ Summary

This C# code is part of an ASP.NET application, specifically a web page for managing menus in an administrative interface. It allows users to view, create, and delete menus, with features such as data binding, error handling, and success messages. The code interacts with a MenuManager class to perform these operations, using user input from forms and dropdowns.

48 try

49 {

50 menu = (new MenuManager()).CreateMenu(CurrentUser, menu);

51 if (menu != null)

52 {

67 protected void btnExcute_Click(object sender, EventArgs e)

68 {

69 MenuManager manager = new MenuManager(CurrentUser);

70 List<int> list = new List<int>();

71 if (Request.Form["chkSelected"] != null)

PAS-10-Test01.xlf (http://okapi.googlecode.com/svn/trunk/) Unknown · 521 lines

310 </trans-unit>

311 <trans-unit id='11' restype='string'>

312 <source >Cannot open the %% file.<x id="1" ctype="lb" /><x id="1" ctype="lb" />Cannot print the file because it can&apos;t be found or is currently being used by another application. Be sure that the path and filename are correct, or wait until the application is finished, and then try again</source>

313 </trans-unit>

314 <trans-unit id='12' restype='string'>

globals_eval_0x77.html (http://micropolis.googlecode.com/svn/trunk/) HTML · 72 lines ✨ Summary

This is a Doxygen-generated documentation file for a C++ project, specifically for Micropolis. It contains information about the classes and functions in the project, including their parameters, return types, and descriptions. The HTML code output includes navigation links to other pages in the documentation, as well as a list of all files included in the project.

13 <li><a href="namespaces.html"><span>Namespaces</span></a></li>

14 <li><a href="annotated.html"><span>Classes</span></a></li>

15 <li class="current"><a href="files.html"><span>Files</span></a></li>

16 </ul>

17 </div>

19 <ul>

20 <li><a href="files.html"><span>File&nbsp;List</span></a></li>

21 <li class="current"><a href="globals.html"><span>File&nbsp;Members</span></a></li>

22 </ul>

23 </div>

29 <li><a href="globals_type.html"><span>Typedefs</span></a></li>

30 <li><a href="globals_enum.html"><span>Enumerations</span></a></li>

31 <li class="current"><a href="globals_eval.html"><span>Enumerator</span></a></li>

32 <li><a href="globals_defs.html"><span>Defines</span></a></li>

33 </ul>

ParentXMLTypes.h (http://rgdengine.googlecode.com/svn/trunk/) C Header · 57 lines ✨ Summary

This is a C header file that defines a template class TParentElement and its specialization TAttributedParentElement. The TParentElement class represents an XML element with child elements of type TLeafType, while the TAttributedParentElement class inherits from both TParentElement and IHasAttributes, which provides access to the attributes of the element.

25 {

26 const TiXmlElement* first = elem->FirstChildElement();

27 const TiXmlElement* current = first;

28

29 while(current != NULL)

31 m_children.push_back(TLeafType(current));

32 current = current->NextSiblingElement();

33 }

34 }

for.m4 (http://rgdengine.googlecode.com/svn/trunk/) m4 · 107 lines ✨ Summary

This is a macro that generates a list of tuples, where each tuple consists of two integers. The first integer represents the row number and the second integer represents the column number. The macro takes three arguments: the starting row number (inclusive), the ending row number (exclusive), and the delimiter to use between elements in the output string.

10 m4_dnl

11 m4_dnl BOOST_M4_FOR: repeat a given text for a range of values

12 m4_dnl $1 - variable to hold the current value.

13 m4_dnl $2 - the starting value.

14 m4_dnl $3 - the ending value (text is _not_ repeated for this value).

TRUECOLO.DOC (git://github.com/AnimatorPro/Animator-Pro.git) Unknown · 226 lines

187 project. Possibly we can work on 34010 assisted techniques

188 during this stage. (There's a 34010 in the Hercules Graphics

189 Station Card which is currently one of the cheapest ways to get

190 into true color.)

191

compat.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 228 lines ✨ Summary

This C header file provides compatibility types and structures for Linux architecture-specific functionality, allowing for binary compatibility between different architectures. It defines various data types, such as compat_size_t and compat_time_t, which are used to represent system calls, file descriptors, and other kernel-related data in a way that is compatible across different architectures.

148 {

149 struct pt_regs *regs = (struct pt_regs *)

150 ((unsigned long) current_thread_info() + THREAD_SIZE - 32) - 1;

151

152 return (void __user *) (regs->regs[29] - len);

JCompiler.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 454 lines ✨ Summary

This Java code is a compiler for Java programs. It takes a set of .java files, compiles them into bytecode, and then runs the resulting classes using Sun’s javac tool. The compiled output is displayed in a GUI window, allowing users to view the compilation process and any errors that occur.

390 System.err.println(

391 "ERROR: Sun's javac just threw a runtime exceptions. " +

392 "Please report this to the current JCompiler maintainer." );

393

394 e.printStackTrace();

eattr.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 1506 lines ✨ Summary

This C code is part of a file system implementation, specifically for the ext2/3/4 file systems on Linux. It handles the deallocation of extended attributes (EAs) associated with an inode. The code iterates through all EAs, deallocating each one and updating the inode’s disk flags accordingly. If an EA is indirect, it calls a specialized function to handle its deallocation.

297 error = gfs2_meta_inode_buffer(ip, &dibh);

298 if (!error) {

299 ip->i_inode.i_ctime = CURRENT_TIME;

300 gfs2_trans_add_bh(ip->i_gl, dibh, 1);

301 gfs2_dinode_out(ip, dibh->b_data);

720 ip->i_inode.i_mode = er->er_mode;

721 }

722 ip->i_inode.i_ctime = CURRENT_TIME;

723 gfs2_trans_add_bh(ip->i_gl, dibh, 1);

724 gfs2_dinode_out(ip, dibh->b_data);

855 ip->i_inode.i_mode = er->er_mode;

856 }

857 ip->i_inode.i_ctime = CURRENT_TIME;

858 gfs2_trans_add_bh(ip->i_gl, dibh, 1);

859 gfs2_dinode_out(ip, dibh->b_data);

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.

163 if(miraList.getSelectedIndex() != -1)

164 {

165 String currentMirror = miraModel.getID(miraList.getSelectedIndex());

166 String previousMirror = jEdit.getProperty("plugin-manager.mirror.id");

167

168 if (!previousMirror.equals(currentMirror))

169 {

170 jEdit.setProperty("plugin-manager.mirror.id",currentMirror);

198 private void updateMirrorLabel()

199 {

200 String currentMirror = jEdit.getProperty("plugin-manager.mirror.id");

201 String mirrorName;

202 if (currentMirror.equals(MirrorList.Mirror.NONE))

FilesChangedDialog.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 415 lines ✨ Summary

This Java code creates a graphical user interface (GUI) for a text editor, specifically for displaying and managing buffers. It displays a tree-like structure of buffers in the text editor, allowing users to select and view specific buffers. The GUI includes features such as buffer reloading, selection highlighting, and navigation between buffers.

202 private JButton selectAll;

203

204 // hack so that 'select all' does not change current buffer

205 private boolean selectAllInProgress;

206

plugin-implement.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1233 lines

381

382 <para>

383 This file defines three actions. They use the current view's

384 <classname>DockableWindowManager</classname> object and the method

385 <filename>getDockable()</filename> to find the QuickNotepad plugin

399 observations will suffice here. First, the variable

400 <varname>view</varname> is predefined by jEdit's implementation of

401 BeanShell to refer to the current <classname>View</classname> object.

402 Second, the

403 BeanShell scripting language is based upon Java syntax, but allows

565 objects to respond to actions. Instead, the BeanShell scripts address

566 the plugin through static methods, or if instance data is needed, the

567 current <classname>View</classname>, its

568 <classname>DockableWindowManager</classname>, and the plugin

569 object return by the <filename>getDockable()</filename> method.

google-chrome.svg (git://github.com/tuquito/tuquito-artwork-gnome.git) SVG · 455 lines ✨ Summary

This SVG code represents a complex graphical element, likely an icon or logo, composed of multiple paths and shapes. The image is rendered using a combination of linear and radial gradients, with various colors and stroke styles applied to create depth and visual interest. The overall design appears to be intricate and detailed, suggesting a high level of craftsmanship or artistic expertise in its creation.

47 inkscape:window-y="24"

48 inkscape:window-maximized="1"

49 inkscape:current-layer="svg11374" />

50 <defs

51 id="defs11376">

if_cscop.txt (https://code.google.com/p/msysgit/) Unknown · 491 lines

21 7. Availability & Information |cscope-info|

22

23 This is currently for Unix and Win32 only.

24 {Vi does not have any of these commands}

25

222 *:lcscope* *:lcs*

223 This command is same as the ":cscope" command, except when the

224 'cscopequickfix' option is set, the location list for the current window is

225 used instead of the quickfix list to show the cscope results.

226

370 set cst

371 set nocsverb

372 " add any database in current directory

373 if filereadable("cscope.out")

374 cs add cscope.out

bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines

183 /**

184 Generate a ParseException with the specified message, pointing to the

185 current token.

186 The auto-generated Parser.generateParseException() method does not

187 provide line number info, therefore we do this.

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

63 void internalDecodeSize();

64 void internalReadImage(size_t);

65 bool internalHandleCurrentImage(size_t);

66 void forceLoadEverything();

67 void clearPointers();

classboost_1_1numeric_1_1ublas_1_1vector__move__to__manip.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code is a Doxygen-generated documentation page for a C++ class template, boost::numeric::ublas::vector_move_to_manip. It displays information about the class, its members, and related functions, with links to other pages in the documentation. The content includes class description, member functions, and related details, presented in a structured format suitable for technical documentation.

14 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>

15 <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>

16 <li class="current"><a href="annotated.html"><span>Classes</span></a></li>

17 <li><a href="files.html"><span>Files</span></a></li>

18 </ul>

soelim.cpp (https://bitbucket.org/freebsd/freebsd-head/) C++ · 309 lines ✨ Summary

This C++ code implements a command-line utility called soelim (short for “source elimination”) that processes input files containing special characters and expands them into equivalent text representations. It is part of the GNU groff package, used to format documentation and other text documents. The program reads input files line by line, replacing special characters with their corresponding text representations.

106 printf(".lf %d %s\n", current_lineno, current_filename);

107 else

108 printf("%% file %s, line %d\n", current_filename, current_lineno);

109 }

110 }

138 if (success && filename.length() > 0) {

139 filename += '\0';

140 const char *fn = current_filename;

141 int ln = current_lineno;

142 current_lineno--;

143 if (do_file(filename.contents())) {

144 current_filename = fn;

147 return;

148 }

149 current_lineno++;

150 }

151 fputs(".so", stdout);

SessionSwitcher.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 262 lines ✨ Summary

This Java code defines a SessionSwitcher class, which is a toolbar component for jEdit that allows users to switch between different sessions. It provides buttons for saving, reloading, and managing session properties, as well as updating the current session in a combo box dropdown menu. The toolbar also displays a title with customizable text.

57

58 combo = new JComboBox(SessionManager.getInstance().getSessionNames());

59 combo.setSelectedItem(SessionManager.getInstance().getCurrentSession());

60 combo.setEditable(false);

61 combo.addItemListener(this);

150 {

151 if (evt.getSource() == save)

152 SessionManager.getInstance().saveCurrentSession(view);

153 else if (evt.getSource() == saveAs)

154 SessionManager.getInstance().saveCurrentSessionAs(view);

171 return;

172

173 String currentSession = SessionManager.getInstance().getCurrentSession();

174 final String selectedSession = e.getItem().toString();

175

Go_to_Column.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 52 lines

2 * Go_to_Column.bsh - a BeanShell macro for the jEdit text

3 * editor - Prompts the user for a column position on the

4 * current line, then moves the caret there.

5 *

6 * Copyright (C) 2003 Ollie Rutherfurd <oliver@rutherfurd.net>

44 <abstract><para>

45 Prompts the user for a column position on the

46 current line, then moves the caret there.

47 </para></abstract>

48 </listitem>

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

51 m_ui.setupUi(this);

52 m_ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);

53 connect(m_ui.gradientView, SIGNAL(currentGradientChanged(QString)),

54 this, SLOT(slotGradientSelected(QString)));

55 connect(m_ui.gradientView, SIGNAL(gradientActivated(QString)),

70 const int res = dlg.exec();

71 if (res == QDialog::Accepted)

72 grad = dlg.m_ui.gradientView->gradientManager()->gradients().value(dlg.m_ui.gradientView->currentGradient());

73 if (ok)

74 *ok = res == QDialog::Accepted;

index.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 262 lines ✨ Summary

This HTML code is a documentation page for LaTeX Tools, a plugin for editing LaTeX documents. It provides information on how to use the plugin’s features, such as customizing navigation menus and icons, and explains the syntax of the default navigation file. The page also includes links to release notes and contact information for the plugin maintainer.

20 <p>This plugin is a collection of tools to make LaTeX editing an

21 easier and quicker task. The tools are generally inactive unless

22 the current buffer is a LaTeX file. The tools available at

23 present include the following:</p>

24

43 <h2>Project Management</h2>

44

45 <P>A main file can be specified either globally or locally. The global setting is done through the plugin menu, where <em>Set Main File</em> sets the global main file to the current file, and <em>Reset Main File</em> removes the global property. The local setting is achieved by adding somewhere in the first 5 lines of the file the string <CODE>:latex.root=<em>Absolute or relative path to Main file</em>:</CODE>. The menu command <em>Show Main File</em> displays the path to the main file in a pop up box. Note that if present, the locally defined Main file has priority, followed by the globally defined property. If no global property has been set, then the current buffer is deemed to be the Main file.

46 </P>

47

68 <h3>Compilation</h3>

69

70 There are four commands here. <em>Compile</em> runs the default compilation command on the current buffer using the Console plugin. The <em>Compile...</em> command allows the user to specify the compilation command in a text box (which maintains a history of commands). <em>BibTeX</em> runs BibTeX on the current buffer, again through the Console. <em>Erase Working Files...</em> displays a checkbox list of file extensions, and deletes all files in the same directory as the Main file with those extensions (giving plenty of opportunity to pull out at the last minute!).

71

72 <h3>Project Management</h3>

VPTSelectionListener.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 188 lines ✨ Summary

This Java code is a listener for a JTree component, specifically designed to work with the ProjectViewer application. It responds to mouse events and tree selection changes, allowing users to interact with the project hierarchy. The listener handles double-clicks, middle clicks, and other events to perform actions such as opening or closing files, switching buffers, and updating the status bar.

73 public void mouseClicked(MouseEvent evt) {

74 if (SwingUtilities.isMiddleMouseButton(evt)) {

75 TreePath path = viewer.getCurrentTree()

76 .getPathForLocation(evt.getX(), evt.getY());

77 viewer.getCurrentTree().setSelectionPath(path);

101 }

102

103 TreePath path = viewer.getCurrentTree()

104 .getPathForLocation(evt.getX(), evt.getY());

105 if (path == null || (path.getLastPathComponent() != node)) {

130 * Receive notification that the tree selection has changed. Shows node

131 * information on the status bar and, if the selected node is opened

132 * but is not the current buffer, change the current buffer.

133 *

134 * <p>Also, if added node is a project, and it's not loaded, load it.

UnixFileSystem.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2 /*

3 * $Id: UnixFileSystem.php 258 2007-10-21 00:46:45Z hans $

20 */

21

22 include_once 'phing/system/io/FileSystem.php';

23

24 /**

25 * UnixFileSystem class. This class encapsulates the basic file system functions

26 * for platforms using the unix (posix)-stylish filesystem. It wraps php native

27 * functions suppressing normal PHP error reporting and instead uses Exception

29 *

30 * This class is part of a oop based filesystem abstraction and targeted to run

31 * on all supported php platforms.

32 *

33 * Note: For debugging turn track_errors on in the php.ini. The error messages

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.

111 * This kernel thread is responsible for two things:

112 *

113 * 1) COMMIT: Every so often we need to commit the current state of the

114 * filesystem to disk. The journal thread is responsible for writing

115 * all of the metadata buffers to disk.

131 */

132 setup_timer(&journal->j_commit_timer, commit_timeout,

133 (unsigned long)current);

134

135 /* Record that the journal thread is running */

136 journal->j_task = current;

137 wake_up(&journal->j_wait_done_commit);

138

opl3.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 394 lines ✨ Summary

This is a C header file for an Open Sound System (OSS) module, specifically for the OPL3 sound chip. It defines data structures and functions for managing the OPL3’s hardware and software resources, including voice allocation, patch loading, and MIDI channel management. The code provides an interface between the OSS kernel and user-level applications that use the OPL3 sound chip.

289

290 unsigned int time; /* An allocation time */

291 unsigned char note; /* Note currently assigned to this voice */

292

293 unsigned long note_off; /* note-off time */

Modules.html (https://swig.svn.sourceforge.net/svnroot/swig) HTML · 350 lines ✨ Summary

This HTML code outputs a documentation page for SWIG, a software development tool that generates wrappers for C and C++ code to interface with multiple programming languages. The page explains various aspects of using SWIG, including importing modules, generating wrapper files, and optimizing their size. It also provides references and cautions about working with shared libraries and dynamically loaded modules.

227 Another issue relating to the global type table is thread safety. If two modules

228 try and load at the same time, the type information can become corrupt. SWIG

229 currently does not provide any locking, and if you use threads, you must make

230 sure that modules are loaded serially. Be careful if you use threads and the

231 automatic module loading that some scripting languages provide. One solution is

NATCurrentContext.java (http://ambienttalk.googlecode.com/svn/) Java · 95 lines ✨ Summary

This Java class, NATCurrentContext, extends a native object and defines a method _PUBLISH_ that creates a new fact in a crime grammar system. When called, it publishes a pattern and associates it with a wrapped object, then updates the fact by applying rules from the context engine. It also registers a listener to automatically remove the fact when the context becomes invalid.

26 *

27 */

28 public class NATCurrentContext extends NATObject {

29

30 protected static final ATSymbol _PUBLISH_ = AGSymbol.jAlloc("publish");

31 protected static final ATTable _ARGS_ = NATTable.of(AGSymbol.jAlloc("theObject"), AGSymbol.jAlloc("theExportPattern"));

32

33 public NATCurrentContext() throws InterpreterException {

34 meta_addMethod(new PrimitiveMethod(_PUBLISH_, _ARGS_, NATTable.of(NativeTypeTags._MUTATOR_)) {

35 public ATObject base_apply(ATTable arguments, ATContext ctx) throws InterpreterException {

ftpwindow.py (http://editra-plugins.googlecode.com/svn/trunk/) Python · 695 lines ✨ Summary

This is a Python class that implements a graphical user interface (GUI) component, specifically a file explorer widget. It displays a list of files and folders, allowing users to interact with them through context menus and keyboard shortcuts. The GUI updates dynamically in response to changes in the underlying data structure, such as when new files or folders are added or removed.

216 # if num:

217 # # TODO: use custom dialog with list of files in it

218 # result = wx.MessageBox(_("There are currently %d ftp files open.\n"

219 # "If you disconnect now you will be unable to upload any further changes to these files.\n"

220 # "Disconnect from site?") % num,

277 """Handle Choice Control Events"""

278 if evt.GetId() == ID_SITES:

279 # Change the current Site

280 site = self._sites.GetStringSelection()

281 password = self._config.GetSitePassword(site)

430 # Copy the url of the selected file to the clipboard

431 url = u"/".join([u"ftp:/", self._client.GetHostname().lstrip(u"/"),

432 self._client.GetCurrentDirectory().lstrip(u"/"),

433 path.lstrip(u"/")])

434 util.SetClipboardText(url)

keybindings.properties (git://github.com/greedy/scala-llvm.git) Properties File · 71 lines ✨ Summary

This properties file defines keybinding mappings for JLine, a terminal emulator. It maps various keyboard shortcuts to specific actions, such as moving the cursor, deleting characters, and navigating through history buffers. The mappings allow users to customize their terminal experience with keyboard shortcuts, making it easier to perform common tasks like editing lines, scrolling through history, and searching for previous commands.

31 10=NEWLINE

32

33 # CTRL-K: erase the current line

34 11=KILL_LINE

35

frmMain.resx (https://hg01.codeplex.com/powersong) text · 0 lines

38

39 The mimetype is used for serialized objects, and tells the

40 ResXResourceReader how to depersist the object. This is currently not

41 extensible. For a given mimetype the value must be set accordingly:

42

depthDataConfig.xml (http://alageospatialportal.googlecode.com/svn/trunk/) XML · 51 lines

34 <props>

35 <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>

36 <prop key="hibernate.current_session_context_class">thread</prop>

37 </props>

38 </property>

nsRuleNetwork.cpp (git://github.com/zpao/v8monkey.git) C++ · 502 lines ✨ Summary

This C++ code implements a template matching system, specifically for XSLT (Extensible Stylesheet Language Transformations). It defines classes and functions to manage instantiations of templates, filter out invalid ones, and propagate valid instances up the template hierarchy. The code is part of a larger framework for compiling and executing XSLT stylesheets.

308 newelement->mInstantiation = aInstantiation;

309

310 aIterator.mCurrent->mPrev->mNext = newelement;

311

312 newelement->mNext = aIterator.mCurrent;

313 newelement->mPrev = aIterator.mCurrent->mPrev;

314

315 aIterator.mCurrent->mPrev = newelement;

323 Iterator result = aIterator;

324 ++result;

325 aIterator.mCurrent->mNext->mPrev = aIterator.mCurrent->mPrev;

326 aIterator.mCurrent->mPrev->mNext = aIterator.mCurrent->mNext;

327 delete aIterator.mCurrent;

328 return result;

329 }

text.coffee (git://github.com/devongovett/pdfkit.git) CoffeeScript · 270 lines ✨ Summary

This is a CoffeeScript implementation of a text rendering engine, likely for PDF generation. It defines a class that creates and manipulates text objects on a page, including font selection, character spacing, alignment, and formatting options. The code generates PDF-like commands to render the text, including links, underlines, and strikethroughs.

3 module.exports =

4 initText: ->

5 # Current coordinates

6 @x = 0

7 @y = 0

12

13 moveDown: (lines = 1) ->

14 @y += @currentLineHeight(true) * lines + @_lineGap

15 return this

16

17 moveUp: (lines = 1) ->

18 @y -= @currentLineHeight(true) * lines + @_lineGap

19 return this

20