100+ results for 'php file'
Not the results you expected?
main.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 63 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the examples of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:BSD$
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
52 QApplication app(argc, argv);
54 QString translatorFileName = QLatin1String("qt_");
55 translatorFileName += QLocale::system().name();
56 QTranslator *translator = new QTranslator(&app);
57 if (translator->load(translatorFileName, QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
58 app.installTranslator(translator);
CommandLineReader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 108 lines
✨ Summary
This Java code creates a CommandLineReader
class that extends FilterReader
. It reads input from the standard input stream, replacing empty lines with ;\n
, allowing for more pleasant interaction on the command line. The reader is tested in a simple main method that continuously prints the read characters.
This Java code creates a CommandLineReader
class that extends FilterReader
. It reads input from the standard input stream, replacing empty lines with ;\n
, allowing for more pleasant interaction on the command line. The reader is tested in a simple main method that continuously prints the read characters.
1 /*****************************************************************************
2 * *
3 * This file is part of the BeanShell Java Scripting distribution. *
4 * Documentation and updates may be found at http://www.beanshell.org/ *
5 * *
6 * Sun Public License Notice: *
7 * *
8 * The contents of this file are subject to the Sun Public License Version *
9 * 1.0 (the "License"); you may not use this file except in compliance with *
16 * GNU Public License Notice: *
17 * *
18 * Alternatively, the contents of this file may be used under the terms of *
19 * the GNU Lesser General Public License (the "LGPL"), in which case the *
20 * provisions of LGPL are applicable instead of those above. If you wish to *
21 * allow use of your version of this file only under the terms of the LGPL *
22 * and not to allow others to use your version of this file under the SPL, *
counter.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
Location.js (https://github.com/stephaneerard/qooxdoo.git) JavaScript · 406 lines
main.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 56 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the examples of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:BSD$
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
inline-javascript-imports.py (https://bitbucket.org/ultra_iter/qt-vtl.git) Python · 81 lines
32 # This script replaces calls to importScripts with script sources
33 # in input script file and dumps result into output script file.
35 from cStringIO import StringIO
44 if len(argv) < 3:
45 print('usage: %s inputFile importsDir outputFile' % argv[0])
46 return 1
60 raise Exception('File %s referenced in %s not found on any source paths, '
61 'check source tree for consistency' %
62 (importFileName, inputFileName))
63 importFile = open(fullPath, 'r')
68 outputScript = re.sub(r'importScripts\([\'"]([^\'"]+)[\'"]\)', replace, inputScript)
70 outputFile = open(outputFileName, 'w')
71 outputFile.write(outputScript)
CachedImage.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 381 lines
faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines
50 <quote>Invariant Sections</quote>, <quote>Front-Cover Texts</quote> or
51 <quote>Back-Cover Texts</quote>, each as defined in the license. A copy of
52 the license is contained in the file <filename>COPYING.DOC.txt</filename>
53 included with jEdit.
54 </para>
99 This draft incorporates material from the Interactive FAQ section
100 of the <ulink url=
101 "http://community.jedit.org/modules.php?op=modload&name=faq&file=index"
102 >jEdit Community web site</ulink>.
103 </releaseinfo>
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.
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
39 </TR>
89 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
90 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
91 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
92 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
93 </TR>
CustomWagonManager.java (https://bitbucket.org/nbargnesi/idea.git) Java · 159 lines
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
25 import org.apache.maven.wagon.WagonException;
27 import java.io.File;
28 import java.util.List;
29 import java.util.Map;
93 @Override
94 public void getArtifactMetadata(ArtifactMetadata metadata, ArtifactRepository repository, File destination, String checksumPolicy)
95 throws TransferFailedException, ResourceDoesNotExistException {
96 // todo use cache here
121 }
123 boolean fileWasDeleted = wasResolved && !artifact.getFile().exists();
124 if (fileWasDeleted) {
PackageDotHtmlMayBePackageInfo.html (https://bitbucket.org/nbargnesi/idea.git) HTML · 15 lines
1 <html>
2 <body>
3 This inspection reports any package.html files. These files are used for documenting
4 packages. Since J2SE 5 it is recommended to use package-info.java files instead, since such
5 files can also contain package annotations. In this way, package-info.java becomes the
6 sole repository for package level annotations and documentation.
7 <p>
8 This inspection provides a quickfix to convert the package.html file to a package-info.java file.
9 If a package-info.java file is already present this inspection provides a quickfix to delete
10 the package.html file, since the Javadoc tool would ignore it then anyway.
11 <!-- tooltip end -->
12 <p>
expected.xml (https://bitbucket.org/nbargnesi/idea.git) XML · 30 lines
2 <problems>
3 <problem>
4 <file>MagicNumber.java</file>
5 <line>10</line>
6 <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">"Magic number"</problem_class>
10 <problem>
11 <file>MagicNumber.java</file>
12 <line>17</line>
13 <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">"Magic number"</problem_class>
17 <problem>
18 <file>MagicNumber.java</file>
19 <line>12</line>
20 <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">"Magic number"</problem_class>
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
ChangeDiffRequestPresentable.java (https://bitbucket.org/nbargnesi/idea.git) Java · 224 lines
152 : new SimpleContent(revisionContent, revision.getFile().getFileType());
153 VirtualFile vFile = revision.getFile().getVirtualFile();
154 if (vFile != null) {
172 (aRev != null && (aRev.getFile().getFileType().isBinary() || aRev.getFile().isDirectory()))) {
173 if (bRev != null && bRev.getFile().getFileType() == FileTypes.UNKNOWN && !bRev.getFile().isDirectory()) {
174 if (! checkContentsAvailable(bRev, aRev)) return false;
175 if (!checkAssociate(myProject, bRev.getFile(), context)) return false;
176 }
177 else if (aRev != null && aRev.getFile().getFileType() == FileTypes.UNKNOWN && !aRev.getFile().isDirectory()) {
178 if (! checkContentsAvailable(bRev, aRev)) return false;
179 if (!checkAssociate(myProject, aRev.getFile(), context)) return false;
215 Messages.getQuestionIcon());
216 if (rc == 0) {
217 FileType fileType = FileTypeChooser.associateFileType(file.getName());
218 return fileType != null && !fileType.isBinary();
deletion_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code tests various scenarios for removing connections from a signal in Boost.Signals2 library, including removing self-connections, prior connections, after connections, and disconnecting equal connections. It verifies that the output matches the expected values in each test case. The tests cover different edge cases to ensure the library’s functionality is correct.
The code tests various scenarios for removing connections from a signal in Boost.Signals2 library, including removing self-connections, prior connections, after connections, and disconnecting equal connections. It verifies that the output matches the expected values in each test case. The tests cover different edge cases to ensure the library’s functionality is correct.
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
21 use Symfony\Component\Security\Acl\Voter\AclVoter;
23 class AclVoterTest extends \PHPUnit_Framework_TestCase
24 {
25 /**
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
52 $this->headers .= "MIME-Version: 1.0\r\n";
53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
55 }
89 /*if ($this->attachment != '')
90 {
91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
92 $this->msgBody .= $this->attachment;
93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
102 }
104 private function getContent($filepath) {
105 $content = '';
106 ob_start();
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
ComplexSchemaValidation3.xml (https://bitbucket.org/nbargnesi/idea.git) XML · 26 lines
11 ">
12 <page id="calendar.actionitemProperties" space="calendar.organizerHome" template="union.appPage">
13 <<error descr="An 'include' failed, and no 'fallback' element was found.">xi:include</error> href="<error descr="Cannot resolve directory 'portlets'">portlets</error>/<error descr="Cannot resolve file 'actionitemTOC.xml'">actionitemTOC.xml</error>"/>
14 <portlet id="calendar.actionitemProperties" view="actionitem/actionitemProperties.xsl"/>
15 <pageAction id="calendar.actionitemProperties" policyId="">
GitCheckoutOperation.java (https://bitbucket.org/nbargnesi/idea.git) Java · 254 lines
36 import static git4idea.commands.GitMessageWithFilesDetector.Event.LOCAL_CHANGES_OVERWRITTEN_BY_CHECKOUT;
37 import static git4idea.commands.GitMessageWithFilesDetector.Event.UNTRACKED_FILES_OVERWRITTEN_BY;
38 import static git4idea.util.GitUIUtil.code;
42 * Fails to checkout if there are unmerged files.
43 * Fails to checkout if there are untracked files that would be overwritten by checkout. Shows the list of files.
44 * If there are local changes that would be overwritten by checkout, proposes to perform a "smart checkout" which means stashing local
45 * changes, checking out, and then unstashing the changes back (possibly with showing the conflict resolving dialog).
75 GitSimpleEventDetector unmergedFiles = new GitSimpleEventDetector(GitSimpleEventDetector.Event.UNMERGED_PREVENTING_CHECKOUT);
76 GitMessageWithFilesDetector untrackedOverwrittenByCheckout = new GitMessageWithFilesDetector(UNTRACKED_FILES_OVERWRITTEN_BY, root);
78 GitCommandResult result = myGit.checkout(repository, myStartPointReference, myNewBranch, false,
93 }
94 else if (untrackedOverwrittenByCheckout.wasMessageDetected()) {
95 fatalUntrackedFilesError(untrackedOverwrittenByCheckout.getFiles());
96 fatalErrorHappened = true;
97 }
TemplateSettings.java (https://bitbucket.org/nbargnesi/idea.git) Java · 747 lines
241 @Override
242 @NotNull
243 public File[] getExportFiles() {
244 File exportableSettingsFile =
245 new File(PathManager.getOptionsPath() + File.separator + ExportableTemplateSettings.EXPORTABLE_SETTINGS_FILE);
246 return new File[]{getTemplateDirectory(true), exportableSettingsFile };
459 @Nullable
460 private static File getTemplateDirectory(boolean toCreate) {
461 String directoryPath = PathManager.getConfigPath() + File.separator + TEMPLATES_CONFIG_FOLDER;
462 File directory = new File(directoryPath);
463 if (!directory.exists()) {
464 if (!toCreate) {
Maven Profiles.xml.ft (https://bitbucket.org/nbargnesi/idea.git) Forth · 11 lines
1 <?xml version="1.0" encoding="UTF-8"?>
2 <profilesXml xmlns="http://maven.apache.org/PROFILES/1.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/PROFILES/1.0.0 http://maven.apache.org/xsd/profiles-1.0.0.xsd">
5 <profiles>
6 <profile>
7 <id>${PROFILE_ID}</id>
8 ${END}
9 </profile>
10 </profiles>
11 </profilesXml>
qfilesystemwatcher.pro (https://bitbucket.org/ultra_iter/qt-vtl.git) Prolog · 6 lines
SqlPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 172 lines
module1.iml (https://bitbucket.org/nbargnesi/idea.git) Unknown · 34 lines
13 <component name="NewModuleRootManager" inherit-compiler-output="true">
14 <exclude-output />
15 <content url="file://$MODULE_DIR$">
16 <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
17 </content>
18 <content url="file://$MODULE_DIR$/gen">
19 <sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" />
25 </CLASSES>
26 <JAVADOC>
27 <root url="file://$MODULE_DIR$/../docs/reference" />
28 </JAVADOC>
29 </library>
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.
SortedSequence.html
(http://xbird.googlecode.com/svn/trunk/)
HTML · 297 lines
✨ Summary
This is a rendered HTML page that displays the contents of a Java class file, specifically the KeyStrippingIterator
class. The code shows the class’s constructor, methods, and fields, providing a detailed view of its implementation. It appears to be generated by a tool such as javadoc or a Java IDE.
This is a rendered HTML page that displays the contents of a Java class file, specifically the KeyStrippingIterator
class. The code shows the class’s constructor, methods, and fields, providing a detailed view of its implementation. It appears to be generated by a tool such as javadoc or a Java IDE.
8 <FONT color="green">005</FONT> *<a name="line.5"></a>
9 <FONT color="green">006</FONT> * Licensed under the Apache License, Version 2.0 (the "License");<a name="line.6"></a>
10 <FONT color="green">007</FONT> * you may not use this file except in compliance with the License.<a name="line.7"></a>
11 <FONT color="green">008</FONT> * You may obtain a copy of the License at<a name="line.8"></a>
12 <FONT color="green">009</FONT> *<a name="line.9"></a>
TryIdenticalCatches.after.java (https://bitbucket.org/nbargnesi/idea.git) Java · 120 lines
111 Class.forName("bla").newInstance();
112 } catch (ClassNotFoundException e) {
113 e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
114 } catch (InstantiationException ) {
115 e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
116 } catch (IllegalAccessException e) {
117 e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
118 }
119 }
glue.cpp
(git://github.com/ticking/self.git)
C++ · 50 lines
✨ Summary
This C++ code defines a set of glue functions for various data types and operations, such as vectors, objects, foreign pointers, and more. It also includes function declarations from the C standard library, specifically ceil
, floor
, and rint
. The code is likely part of a larger project that requires these glue functions to be implemented in C++.
This C++ code defines a set of glue functions for various data types and operations, such as vectors, objects, foreign pointers, and more. It also includes function declarations from the C standard library, specifically ceil
, floor
, and rint
. The code is likely part of a larger project that requires these glue functions to be implemented in C++.
gtkrc (http://gnome-colors.googlecode.com/svn/trunk/) Unknown · 555 lines
19 # PANELS
20 ##########
21 include "panel.rc" # This includes the file that handles panel theming. Gradient panel backgrounds are enabled by default for this setting. Please edit panel.rc if you don't want gradient backgrounds in your panels, or plan to use transparent/custom panels.
23 # The following lines make panel-menu-applet, slab-main-menu and gimmie applet's text bold. The radius value sets the roundness value of the selected menu-item.
403 ############
404 # Gradient toolbars are disabled for this theme. Follow these instructions to enable them:
405 # 1. Comment out the line in this file that starts with "GtkToolbar::shadow-type".
406 # 2. Uncomment the following:
gtl_minkowski_tutorial.htm
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a tutorial on implementing Minkowski sum of polygons as convolution of polygon sets using the Boost.Polygon library. It includes examples, images, and licensing information. The output is a web page that explains how to use the library to perform geometric operations, including convolution, and provides an example usage with images.
This HTML code outputs a tutorial on implementing Minkowski sum of polygons as convolution of polygon sets using the Boost.Polygon library. It includes examples, images, and licensing information. The output is a web page that explains how to use the library to perform geometric operations, including convolution, and provides an example usage with images.
218 <th class="docinfo-name">License:</th>
219 <td class="field-body">Distributed under the Boost Software License,
220 Version 1.0. (See accompanying file <tt class="literal">
221 <span class="pre">LICENSE_1_0.txt</span></tt> or copy at
222 <a class="reference" target="_top" href="http://www.boost.org/LICENSE_1_0.txt">
CopyAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 325 lines
✨ Summary
This Java code implements a “Copy” action for an integrated development environment (IDE). It allows users to copy files from one location to another, either within the same repository or between different repositories. The action creates a new process that performs the copy operation and displays the results in the IDE’s UI.
This Java code implements a “Copy” action for an integrated development environment (IDE). It allows users to copy files from one location to another, either within the same repository or between different repositories. The action creates a new process that performs the copy operation and displays the results in the IDE’s UI.
95 SVNCopySource[] sources = data.getSourceFiles();
96 verifyLogin(sources != null && sources.length > 0 && sources[0].getFile() != null ? sources[0].getFile().getAbsolutePath() : null );
97 if ( isCanceled() ) {
98 return ;
138 continue;
139 }
140 File file = source.getFile();
141 CopyData cd = new CopyData();
142 cd.setUsername(data.getUsername());
156 if ( data.getDestinationFile().isDirectory() ) {
157 File f = new File( data.getDestinationFile(), file.getName() );
158 destination = f.getAbsolutePath();
159 }
210 String path = url.getPath();
211 String name = path.substring( path.lastIndexOf( "/" ) );
212 File f = new File( data.getDestinationFile(), name );
213 destination = f.getAbsolutePath();
214 }
ReimportAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 64 lines
✨ Summary
This Java code defines an Action
class called ReimportAction
. It removes files below a project’s root and then imports them, allowing users to reimport their projects. The action is only enabled for the project’s root node.
This Java code defines an Action
class called ReimportAction
. It removes files below a project’s root and then imports them, allowing users to reimport their projects. The action is only enabled for the project’s root node.
30 /**
31 * Removes all the files below the root from a project, and then calls the
32 * initial project importer.
33 *
49 //{{{ actionPerformed(ActionEvent) method
50 /** Reimports files below the project root. */
51 public void actionPerformed(ActionEvent ae) {
52 VPTNode n = viewer.getSelectedNode();
xinsert.insert.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 18 lines
7 <item name="ITEM" type="xinsert_script">{%type "Item type?" "text" "macro" "named_macro" "xinsert_script"}<item name="" type="{$=type}">|</item></item>
8 <item name="VARIABLE"><variable name="|" value=""></item>
9 <item name="Open XInsert file item"><item name="Open XInsert file" type="macro">jEdit.openFile(view, jEdit.getProperty("xinsert.inserts-directory") + File.separator + "foo.insert.xml");</item></item>
10 <menu name="XInsert Script">
11 <item name="Substitute Variable" type="xinsert_script">{%varname "Enter Variable Name:"}{\$={$=varname}}</item>
CommitMessage.java (https://bitbucket.org/nbargnesi/idea.git) Java · 179 lines
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
23 import com.intellij.openapi.editor.ex.EditorEx;
24 import com.intellij.openapi.extensions.Extensions;
25 import com.intellij.openapi.fileTypes.FileTypes;
26 import com.intellij.openapi.project.Project;
27 import com.intellij.openapi.util.Key;
111 }
113 return service.getEditorField(FileTypes.PLAIN_TEXT.getLanguage(), project, enabledFeatures, disabledFeatures);
114 }
stackFormat (git://github.com/ticking/self.git) Unknown · 70 lines
process.hh
(git://github.com/ticking/self.git)
C++ Header · 368 lines
✨ Summary
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
3 /* Copyright 1992-2006 Sun Microsystems, Inc. and Stanford University.
4 See the LICENSE file for license information. */
6 # ifdef INTERFACE_PRAGMAS
90 vframeOop stopActivation; // activation of "finish" operation
92 Profiler* profiler; // profiler for this process.
94 friend void startCurrentProcess();
209 bool verify();
210 void switch_pointers();
211 void read_snapshot(FILE* f);
212 void write_snapshot(FILE* f);
309 bool verify();
310 void switch_pointers(oop from, oop to);
311 void read_snapshot(FILE* f);
312 void write_snapshot(FILE* f);
mv.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 14 lines
frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines
2 <!-- Generator: Adobe Illustrator 13.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 14948) -->
3 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4 <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
5 x="0px" y="0px" width="399.95px" height="299.963px" viewBox="0 0 399.95 299.963" xml:space="preserve">
6 <image width="400" height="300" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAEsCAYAAADtt+XCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA
105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS
106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog
107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd
108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9
109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
kcomedilib_main.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 561 lines
✨ Summary
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
45 void *comedi_open(const char *filename)
46 {
47 struct comedi_device_file_info *dev_file_info;
48 struct comedi_device *dev;
49 unsigned int minor;
57 return NULL;
59 dev_file_info = comedi_get_device_file_info(minor);
60 if (dev_file_info == NULL)
73 void *comedi_open_old(unsigned int minor)
74 {
75 struct comedi_device_file_info *dev_file_info;
76 struct comedi_device *dev;
79 return NULL;
81 dev_file_info = comedi_get_device_file_info(minor);
82 if (dev_file_info == NULL)
JSSVGSetElement.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 76 lines
1 /*
2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
amf-uml-states.ads
(git://github.com/landgraf/matreshka.git)
Ada · 320 lines
✨ Summary
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
42 -- $Revision$ $Date$
43 ------------------------------------------------------------------------------
44 -- This file is generated, don't edit it.
45 ------------------------------------------------------------------------------
46 -- A state models a situation during which some (usually implicit) invariant
testNewParsing18.txt (https://bitbucket.org/nbargnesi/idea.git) Plain Text · 1372 lines
15.8.1.5-1.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 66 lines
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
23 * Contributor(s):
24 *
25 * Alternatively, the contents of this file may be used under the terms of
26 * either the GNU General Public License Version 2 or later (the "GPL"), or
27 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
28 * in which case the provisions of the GPL or the LGPL are applicable instead
29 * of those above. If you wish to allow use of your version of this file only
30 * under the terms of either the GPL or the LGPL, and not to allow others to
31 * use your version of this file under the terms of the MPL, indicate your
32 * decision by deleting the provisions above and replace them with the notice
33 * and other provisions required by the GPL or the LGPL. If you do not delete
34 * the provisions above, a recipient may use your version of this file under
35 * the terms of any one of the MPL, the GPL or the LGPL.
36 *
AStarFinderPool.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 124 lines
✨ Summary
This Java class implements an A* pathfinding algorithm for a game, allowing users to search for paths between two points on a 2D field. It uses a thread pool to run multiple searches concurrently and provides methods for searching paths with various parameters, such as flying mode and flag. The class also includes a task queue to manage running tasks and a stop method to interrupt the pathfinding process.
This Java class implements an A* pathfinding algorithm for a game, allowing users to search for paths between two points on a 2D field. It uses a thread pool to run multiple searches concurrently and provides methods for searching paths with various parameters, such as flying mode and flag. The class also includes a task queue to manage running tasks and a stop method to interrupt the pathfinding process.
sh7763rdp_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 1237 lines
106 CONFIG_TRACEPOINTS=y
107 CONFIG_MARKERS=y
108 CONFIG_OPROFILE=y
109 CONFIG_HAVE_OPROFILE=y
315 #
316 # Executable file formats
317 #
318 CONFIG_BINFMT_ELF=y
940 #
941 # File systems
942 #
943 CONFIG_EXT2_FS=y
959 # CONFIG_OCFS2_FS is not set
960 # CONFIG_BTRFS_FS is not set
961 CONFIG_FILE_LOCKING=y
962 CONFIG_FSNOTIFY=y
963 CONFIG_DNOTIFY=y
cache.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 416 lines
✨ Summary
This C code implements a caching system for file systems, known as FS-Cache. It allows multiple file systems to share cached data and reduces I/O operations by storing frequently accessed files in memory. The code provides functions to add, remove, and manage caches, as well as handle errors and withdraw caches from service.
This C code implements a caching system for file systems, known as FS-Cache. It allows multiple file systems to share cached data and reduces I/O operations by storing frequently accessed files in memory. The code provides functions to add, remove, and manage caches, as well as handle errors and withdraw caches from service.
177 * Initialise a record of a cache and fill in the name.
178 *
179 * See Documentation/filesystems/caching/backend-api.txt for a complete
180 * description.
181 */
212 * Add a cache to the system, making it available for netfs's to use.
213 *
214 * See Documentation/filesystems/caching/backend-api.txt for a complete
215 * description.
216 */
309 * used for anything. This also reports the error into the kernel log.
310 *
311 * See Documentation/filesystems/caching/backend-api.txt for a complete
312 * description.
313 */
image.css
(http://enginey.googlecode.com/svn/trunk/)
CSS · 17 lines
✨ Summary
This CSS file imports and links to various individual CSS files, each containing styles for a specific component of the DojoX Image Project. The imported files are likely used to style different image-related components such as lightbox, slideshow, thumbnail picker, gallery, badges, and magnifier. By importing these files, the master CSS file provides a centralized location for all necessary styles.
This CSS file imports and links to various individual CSS files, each containing styles for a specific component of the DojoX Image Project. The imported files are likely used to style different image-related components such as lightbox, slideshow, thumbnail picker, gallery, badges, and magnifier. By importing these files, the master CSS file provides a centralized location for all necessary styles.
GalleryView.java (https://bitbucket.org/atchariya/nokia.git) Java · 290 lines
33 private static final Image ROOT_IMAGE = ImageUtils.loadImage("/root.png");
34 private static final Image FOLDER_IMAGE = ImageUtils.loadImage("/folder.png");
35 private static final Image FILE_IMAGE = ImageUtils.loadImage("/file.png");
37 private final OperationsQueue queue;
38 private FileConnection fileConnection;
39 private Vector rootsList;
122 fileConnection = (FileConnection) Connector.open(Constants.SYSTEM_ROOT + tmp, Connector.READ);
123 } else {
124 fileConnection.setFileConnection(tmp);
125 }
126 displayCurrentRoot();
210 }
212 // List all png files and don't show hidden files.
213 Enumeration listOfFiles = fileConnection.list("*.png", false);
config_generator.rb
(git://github.com/jnunemaker/mongomapper.git)
Ruby · 36 lines
✨ Summary
This Ruby code defines a Rails generator for creating a MongoMapper configuration file at config/mongo.yml
. It takes an optional database_name
argument and uses the application name to populate the configuration file. The generator uses templates from a templates
directory to create the file, and it can be run using the Rails console or as part of a build process.
This Ruby code defines a Rails generator for creating a MongoMapper configuration file at config/mongo.yml
. It takes an optional database_name
argument and uses the application name to populate the configuration file. The generator uses templates from a templates
directory to create the file, and it can be run using the Rails console or as part of a build process.
Makefile (http://omnia2droid.googlecode.com/svn/trunk/) Makefile · 6 lines
statistic_tests.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code runs a series of tests on various random number generators (RNGs) to verify their correctness and statistical properties. It uses a test framework to execute tests for different RNGs, including uniform distributions, normal distribution, triangular distribution, Cauchy distribution, gamma distribution, exponential distribution, and lognormal distribution. The results are printed to the console.
This C++ code runs a series of tests on various random number generators (RNGs) to verify their correctness and statistical properties. It uses a test framework to execute tests for different RNGs, including uniform distributions, normal distribution, triangular distribution, Cauchy distribution, gamma distribution, exponential distribution, and lognormal distribution. The results are printed to the console.
AssemblerX86X64.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 3106 lines
✨ Summary
This C++ code is a part of an x86 instruction emulator, specifically handling instructions related to memory and register operations. It processes various instruction types such as MMU
(Memory Management Unit) instructions, which manage data transfer between registers and memory, and MOV
instructions, which move data between registers or from/to memory. The code generates the necessary assembly code for these instructions based on their operands and operation codes.
This C++ code is a part of an x86 instruction emulator, specifically handling instructions related to memory and register operations. It processes various instruction types such as MMU
(Memory Management Unit) instructions, which manage data transfer between registers and memory, and MOV
instructions, which move data between registers or from/to memory. The code generates the necessary assembly code for these instructions based on their operands and operation codes.
5 // Permission is hereby granted, free of charge, to any person
6 // obtaining a copy of this software and associated documentation
7 // files (the "Software"), to deal in the Software without
8 // restriction, including without limitation the rights to use,
9 // copy, modify, merge, publish, distribute, sublicense, and/or sell
Makefile.in.in (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 250 lines
48 GMOFILES = @GMOFILES@
49 DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(PACKAGE).pot \
50 stamp-cat-id $(POFILES) $(GMOFILES) $(SOURCES)
86 $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
87 --add-comments --keyword=_ --keyword=N_ \
88 --files-from=$(srcdir)/POTFILES.in \
89 && test ! -f $(PACKAGE).po \
90 || ( rm -f $(srcdir)/$(PACKAGE).pot \
193 distclean: clean
194 rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
196 maintainer-clean: distclean
239 && mv $@-t $@ )
241 Makefile: Makefile.in.in ../config.status POTFILES
242 cd .. \
243 && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
complexity.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for an interval container library, providing information on its implementation details, including time complexities and performance characteristics. It includes explanations of algorithms used in adding intervals to containers, as well as copyright and licensing information. The content is presented in a structured format with links to related pages.
This HTML code outputs a documentation page for an interval container library, providing information on its implementation details, including time complexities and performance characteristics. It includes explanations of algorithms used in adding intervals to containers, as well as copyright and licensing information. The content is presented in a structured format with links to related pages.
413 <td align="right"><div class="copyright-footer">Copyright © 2007 -2010 Joachim Faulhaber<br>Copyright © 1999 -2006 Cortex Software GmbH<p>
414 Distributed under the Boost Software License, Version 1.0. (See accompanying
415 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
416 </p>
417 </div></td>
decay_array.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header defines a metafunction decay_array
that takes an array type as input and returns its corresponding pointer-to-element type. The function is used to decay arrays into pointers, allowing for more flexible use in template metaprogramming. It’s part of the Boost Phoenix library, providing a way to work with arrays in a more expressive and generic manner.
This C++ header defines a metafunction decay_array
that takes an array type as input and returns its corresponding pointer-to-element type. The function is used to decay arrays into pointers, allowing for more flexible use in template metaprogramming. It’s part of the Boost Phoenix library, providing a way to work with arrays in a more expressive and generic manner.
ConsoleInstall.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 139 lines
✨ Summary
This Java code performs a text-only installation of an application. It prompts the user to select components to install, sets configuration options for operating system tasks, and starts the installation process in a separate thread. The output displays the selected installation directory, component choices, and progress updates during the installation.
This Java code performs a text-only installation of an application. It prompts the user to select components to install, sets configuration options for operating system tasks, and starts the installation process in a separate thread. The output displays the selected installation directory, component choices, and progress updates during the installation.
yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines
description.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 2 lines
Receive.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 96 lines
✨ Summary
This C++ code defines a class Receive
that inherits from Node
. It creates a TCP/IP socket and connects to a local host on port 5248. The node has one output, “OUTPUT”, which is not currently implemented. The class provides a basic structure for receiving data over a network connection.
This C++ code defines a class Receive
that inherits from Node
. It creates a TCP/IP socket and connects to a local host on port 5248. The node has one output, “OUTPUT”, which is not currently implemented. The class provides a basic structure for receiving data over a network connection.
69 {
70 perror ("error opening socket");
71 throw new NodeException(NULL, "can't connect socket",__FILE__,__LINE__);
72 }
76 {
77 perror ("error opening socket");
78 throw new NodeException(NULL, "can't connect socket",__FILE__,__LINE__);
79 }
80 cerr << "socket opened\n";
86 {
87 if (output_id==outputID) return nilObject;
88 else throw new NodeException (this, "Receive: Unknown output id", __FILE__, __LINE__);
89 }
Blame.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 156 lines
✨ Summary
This Java code is a SVN blame tool, which displays the revision history of a file by showing the author and revision number for each line of code. It takes a LogData object as input, which contains information about the SVN repository, username, password, and paths to analyze. The output is displayed on the console.
This Java code is a SVN blame tool, which displays the revision history of a file by showing the author and revision number for each line of code. It takes a LogData object as input, which contains information about the SVN repository, username, password, and paths to analyze. The output is displayed on the console.
54 /**
55 * @return a list of revision and author, one entry per line of the file.
56 */
57 public BlameModel getBlame( LogData data ) throws CommandInitializationException, SVNException {
69 }
71 // convert first path to a file. This method only works on one file at
72 // a time.
73 String path = data.getPaths().get( 0 );
74 File file = null;
75 if ( !data.pathsAreURLs() ) {
76 file = new File( path );
TabItemWidget.java
(http://keywatch.googlecode.com/svn/trunk/)
Java · 180 lines
✨ Summary
This Java code defines a TabItemWidget
class, which represents a single tab item on a desktop panel. It displays a label and a close button, allowing users to rename or remove the associated desktop. When the close button is clicked, it prompts the user to confirm removal. If renamed, it updates the desktop’s name and saves changes.
This Java code defines a TabItemWidget
class, which represents a single tab item on a desktop panel. It displays a label and a close button, allowing users to rename or remove the associated desktop. When the close button is clicked, it prompts the user to confirm removal. If renamed, it updates the desktop’s name and saves changes.
1 /**
2 * -----------------------------------------------------------------------------------------------
3 * File: TabItemWidget.java
4 *
5 * Copyright (c) 2007 by Keymind Computing as.
6 * All rights reserved.
7 *
8 * This file is subject to the terms and conditions of the Apache Licence 2.0.
9 * See the file LICENCE in the main directory of the Keywatch distribution for more details.
36 static final String PROMPT_TITLE_RENAME = "Rename";
37 static final String PROMPT_RENAME = "Please specify the new desktop name.";
38 static final String PROMPT_REMOVE = "Are you sure you want to remove the current desktop tab from you profile?";
39 static final String TABNAME_SETTINGS = "Settings";
40 static final String RENAME_NOT_UNIQUE = "Could not rename because another desktop with the same name exists";
149 GUICtrl.getProfileManager().setDirty(true);
150 GUICtrl.getProfileManager().updateProfile(false);
151 }
152 else
FtpPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 175 lines
✨ Summary
This Java code implements an FTP plugin for a text editor, providing functionality such as browsing and saving files on FTP servers, displaying login dialogs, and managing saved passwords. It integrates with the editor’s virtual file system (VFS) to allow users to interact with FTP servers within the editor.
This Java code implements an FTP plugin for a text editor, providing functionality such as browsing and saving files on FTP servers, displaying login dialogs, and managing saved passwords. It integrates with the editor’s virtual file system (VFS) to allow users to interact with FTP servers within the editor.
59 if(path != null)
60 {
61 String[] files = GUIUtilities.showVFSFileDialog(
62 view,path,VFSBrowser.OPEN_DIALOG,true);
63 if(files == null)
67 for(int i = 0; i < files.length; i++)
68 {
69 Buffer _buffer = jEdit.openFile(null,files[i]);
70 if(_buffer != null)
71 buffer = buffer;
82 if(path != null)
83 {
84 String[] files = GUIUtilities.showVFSFileDialog(
85 view,path,VFSBrowser.SAVE_DIALOG,false);
86 if(files == null)
BrowserOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 159 lines
✨ Summary
This Java code defines a BrowserOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel with options for browser settings, such as default directory, toolbar and menubar visibility, icon display, hidden file handling, sorting behavior, and double-click close functionality. The panel’s values are saved to the application’s properties when the user clicks “Save”.
This Java code defines a BrowserOptionPane
class that extends AbstractOptionPane
. It creates a GUI panel with options for browser settings, such as default directory, toolbar and menubar visibility, icon display, hidden file handling, sorting behavior, and double-click close functionality. The panel’s values are saved to the application’s properties when the user clicks “Save”.
85 addComponent(showIcons);
87 /* Show hidden files */
88 showHiddenFiles = new JCheckBox(jEdit.getProperty("options.browser"
89 + ".general.showHiddenFiles"));
90 showHiddenFiles.setSelected(jEdit.getBooleanProperty("vfs.browser"
91 + ".showHiddenFiles"));
92 addComponent(showHiddenFiles);
99 addComponent(sortIgnoreCase);
101 /* Mix files and directories */
102 sortMixFilesAndDirs = new JCheckBox(jEdit.getProperty("options.browser"
103 + ".general.sortMixFilesAndDirs"));
104 sortMixFilesAndDirs.setSelected(jEdit.getBooleanProperty("vfs.browser"
ProfileAction.java (https://bitbucket.org/nbargnesi/idea.git) Java · 173 lines
103 myVersion = myProfileList.getVersion();
105 List<Profile> profiles = new ArrayList<Profile>(myProfileList.getProfiles());
106 profiles.add(myProfileList.getFullProfile());
107 profiles.add(EDIT_PROFILE);
109 Profile profile = myProfileList.getProfile();
110 myProfileAction.setItems(profiles, profile);
114 private void updateActions(Profile profile) {
115 myProfileManager.setProfile(profile);
116 myProfileList.setSelection(profile.getName());
144 private void editProfiles() {
145 ProfileDialog dialog = new ProfileDialog(myDesigner, myProfileList.getProfiles());
146 dialog.show();
emb-qvfb.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 278 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the documentation of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:FDL$
10 ** GNU Free Documentation License
11 ** Alternatively, this file may be used under the terms of the GNU Free
12 ** Documentation License version 1.3 as published by the Free Software
13 ** Foundation and appearing in the file included in the packaging of
14 ** this file.
15 **
16 ** Other Usage
17 ** Alternatively, this file may be used in accordance with the terms
18 ** and conditions contained in a signed written agreement between you
19 ** and Nokia.
src_gui_embedded_qwindowsystem_qws.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 85 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the documentation of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:BSD$
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
DisplayPluginModelImpl.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 115 lines
✨ Summary
This is an ActionScript class that represents a plugin model for a video player, Flowplayer. It extends another class and provides methods to manage plugin configuration, methods, visibility, and other properties. The class also implements cloning and copying functionality, allowing it to be used in various contexts within the application.
This is an ActionScript class that represents a plugin model for a video player, Flowplayer. It extends another class and provides methods to manage plugin configuration, methods, visibility, and other properties. The class also implements cloning and copying functionality, allowing it to be used in various contexts within the application.
Telerik.RazorConverter.Tests.Common.csproj (git://github.com/telerik/razor-converter.git) MSBuild · 68 lines
b2_contact_manager_8h_source.html
(http://angel-engine.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This is a Doxygen-generated HTML documentation for a C++ class, specifically the b2ContactManager
class. It provides a detailed description of the class’s methods and variables, including their parameters, return types, and descriptions. The code is written in Markdown format, making it easy to read and understand.
This is a Doxygen-generated HTML documentation for a C++ class, specifically the b2ContactManager
class. It provides a detailed description of the class’s methods and variables, including their parameters, return types, and descriptions. The code is written in Markdown format, making it easy to read and understand.
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <title>Box2D: Box2D/Box2D/Dynamics/b2ContactManager.h Source File</title>
6 <link href="tabs.css" rel="stylesheet" type="text/css"/>
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
14 <li><a href="index.html"><span>Main Page</span></a></li>
15 <li><a href="annotated.html"><span>Classes</span></a></li>
16 <li class="current"><a href="files.html"><span>Files</span></a></li>
17 </ul>
18 </div>
19 <div class="tabs">
20 <ul>
21 <li><a href="files.html"><span>File List</span></a></li>
22 <li><a href="globals.html"><span>File Members</span></a></li>
23 </ul>
24 </div>
25 <h1>Box2D/Box2D/Dynamics/b2ContactManager.h</h1><a href="b2_contact_manager_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
26 <a name="l00002"></a>00002 <span class="comment">* Copyright (c) 2006-2009 Erin Catto http://www.gphysics.com</span>
27 <a name="l00003"></a>00003 <span class="comment">*</span>
g_i_l_0094.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a documentation page for a C++ library, specifically the Generic Image Library (GIL). It displays information about the gil_config.hpp
file, including its purpose, authorship, and defines related to the library’s configuration. The page also includes links to other documentation pages and a generated timestamp.
This HTML code is a documentation page for a C++ library, specifically the Generic Image Library (GIL). It displays information about the gil_config.hpp
file, including its purpose, authorship, and defines related to the library’s configuration. The page also includes links to other documentation pages and a generated timestamp.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt)
6 -->
8 <!--
9 Copyright 2005-2007 Adobe Systems Incorporated
10 Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
11 or a copy at http://stlab.adobe.com/licenses.html)
31 | <a class="qindex" href="annotated.html">Class List</a>
32 | <a class="qindex" href="dirs.html">Directories</a>
33 | <a class="qindex" href="files.html">File List</a>
34 | <a class="qindex" href="../index.html">GIL Home Page</a>
35 </div>
request.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a class request
for non-blocking communication in MPI (Message Passing Interface). It provides methods to wait, test, and cancel pending communications, as well as handle serialized receive operations. The class is designed to be used with the Boost MPI library and includes internal implementation details such as request handling and data storage.
This C++ header file defines a class request
for non-blocking communication in MPI (Message Passing Interface). It provides methods to wait, test, and cancel pending communications, as well as handle serialized receive operations. The class is designed to be used with the Boost MPI library and includes internal implementation details such as request handling and data storage.
poly_function_funop.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header code defines a function that takes a variable number of arguments and returns a Derived
object, which is constructed from the input arguments using a template instantiation process. The function uses a recursive approach to handle different numbers of arguments, with each recursive call taking one fewer argument than the previous one.
This C++ header code defines a function that takes a variable number of arguments and returns a Derived
object, which is constructed from the input arguments using a template instantiation process. The function uses a recursive approach to handle different numbers of arguments, with each recursive call taking one fewer argument than the previous one.
IFileSystem.java (https://bitbucket.org/nbargnesi/idea.git) Java · 31 lines
2 * Sun Public License Notice
3 *
4 * The contents of this file are subject to the Sun Public License
5 * Version 1.0 (the "License"). You may not use this file except in
11 * Microsystems, Inc. All Rights Reserved.
12 */
13 package org.netbeans.lib.cvsclient.file;
15 import java.io.File;
22 File getRootDirectory();
24 File getFile(String relativeFileName);
26 File getFile(AbstractFileObject fileObject);
28 FileObject getFileObject(File file) throws OutOfFileSystemException;
30 DirectoryObject getDirectoryObject(File directory) throws OutOfFileSystemException;
kwalo-080930.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 23 lines
system_msvc.sln (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
qeucjpcodec.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ Header · 107 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the plugins of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** GNU General Public License Usage
CTagsFileProvider.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 57 lines
✨ Summary
This Java class, CTagsFileProvider
, is a provider of identifier names from a tags file generated by ctags. It loads and processes the identifiers from the file, storing them in an internal list. The class provides methods to process the file, forget the loaded identifiers, and iterate over the identifiers, allowing for use in other parts of the application.
This Java class, CTagsFileProvider
, is a provider of identifier names from a tags file generated by ctags. It loads and processes the identifiers from the file, storing them in an internal list. The class provides methods to process the file, forget the loaded identifiers, and iterate over the identifiers, allowing for use in other parts of the application.
6 /*
7 This provider takes a File indicating a tags file as output by ctags,
8 and loads identifier names from it.
9 */
13 private String fileName;
14 private File ctagsFile;
16 public CTagsFileProvider(File f) {
17 ctagsFile = f;
18 fileName = ctagsFile.getName();
19 }
22 identifierList = new ArrayList<String>();
23 try {
24 BufferedReader reader = new BufferedReader(new FileReader(ctagsFile));
25 String line;
26 int tabloc;
users-guide.xsl (https://jedit.svn.sourceforge.net/svnroot/jedit) Extensible Stylesheet Language Transformations · 46 lines
3 You should use this XSL stylesheet to create plugin documentation.
5 If you want all output in a single HTML file, specify the path to
6 your DocBook-XSL "html/docbook.xsl" file in the <xsl:import>
7 statement below. If you want each chapter to have its own file,
8 specify the path to your "html/xtchunk.xsl".
dist_nc_f_incl_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code is a test for the non_central_f
distribution header, ensuring that all necessary files are included and compiled correctly. It includes the header file itself, another test file, and template instantiations for different data types to verify compilation results. The purpose is to validate the correctness of the non_central_f
distribution implementation.
This C++ code is a test for the non_central_f
distribution header, ensuring that all necessary files are included and compiled correctly. It includes the header file itself, another test file, and template instantiations for different data types to verify compilation results. The purpose is to validate the correctness of the non_central_f
distribution implementation.
1 // Copyright John Maddock 2008.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 //
6 // Basic sanity check that header <boost/math/distributions/non_central_f.hpp>
7 // #includes all the files that it needs to.
8 //
9 #include <boost/math/distributions/non_central_f.hpp>
WordWrap.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 65 lines
✨ Summary
This Java code defines a custom action for a text editor, specifically Log Viewer. When triggered, it toggles word wrapping (line wrapping) on or off in the currently selected log file. It uses a separate class to handle the action and interacts with the main application’s GUI components. The action is part of a larger plugin for the jEdit text editor.
This Java code defines a custom action for a text editor, specifically Log Viewer. When triggered, it toggles word wrapping (line wrapping) on or off in the currently selected log file. It uses a separate class to handle the action and interacts with the main application’s GUI components. The action is part of a larger plugin for the jEdit text editor.
2 * Copyright (C) 2003 Don Brown (mrdon@techie.com)
3 * Copyright (C) 2000, 2001 Greg Merrill (greghmerrill@yahoo.com)
4 * This file is part of Log Viewer, a plugin for jEdit (http://www.jedit.org).
5 * It is heavily based off Follow (http://follow.sf.net).
6 * Log Viewer is free software; you can redistribute it and/or modify
25 /**
26 * Word wraps the content of the currently selected log file
27 *
28 * @author <a href="mailto:mrdon@techie.com">Don Brown</a>
51 public void actionPerformed(ActionEvent e) {
52 app.setCursor(Cursor.WAIT_CURSOR);
53 FileFollowingPane fileFollowingPane = app.getSelectedFileFollowingPane();
54 if (fileFollowingPane == null) {
57 }
59 fileFollowingPane.toggleWordWrap();
60 app.setCursor(Cursor.DEFAULT_CURSOR);
61 }
shortcuts.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 981 lines
14 Options</guimenuitem> dialog box; see <xref linkend="global-opts" />.</para>
16 <bridgehead renderas="section">Files</bridgehead>
18 <para>For details, see <xref linkend="buffers" />, <xref linkend="views" />
19 and <xref linkend="files" />.</para>
21 <informaltable frame="none">
27 <entry><keycap>C+n</keycap></entry>
29 <entry>New file.</entry>
30 </row>
P4GlobalOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 76 lines
✨ Summary
This Java code defines a plugin configuration pane for a Perforce version control system. It displays and allows editing of global settings, including the Perforce path, editor command, and file monitoring options. The changes are saved to a configuration object when the user clicks “save”. The code is part of a larger plugin for the JEdit text editor.
This Java code defines a plugin configuration pane for a Perforce version control system. It displays and allows editing of global settings, including the Perforce path, editor command, and file monitoring options. The changes are saved to a configuration object when the user clicks “save”. The code is part of a larger plugin for the JEdit text editor.
40 private P4Config config;
42 private JCheckBox monitorFiles;
43 private JTextField p4Path;
44 private JTextField editorCommand;
58 addComponent(jEdit.getProperty("p4plugin.global_cfg.editor_cmd"), editorCommand);
60 monitorFiles = new JCheckBox(jEdit.getProperty("p4plugin.global_cfg.monitor_files"));
61 monitorFiles.setToolTipText(jEdit.getProperty("p4plugin.global_cfg.monitor_files.tooltip"));
62 monitorFiles.setSelected(config.getMonitorFiles());
63 addComponent(monitorFiles);
69 config.setPerforcePath(p4Path.getText());
70 config.setEditor(editorCommand.getText());
71 config.setMonitorFiles(monitorFiles.isSelected());
72 } //}}}
OptionsManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 203 lines
✨ Summary
This Java class, OptionsManager
, is a singleton that manages settings for a Lucene plugin. It loads and saves settings from an XML file, storing options such as automatically indexing projects, directories, file name regex, and index interval. The class provides methods to get and set these options, as well as clear the settings.
This Java class, OptionsManager
, is a singleton that manages settings for a Lucene plugin. It loads and saves settings from an XML file, storing options such as automatically indexing projects, directories, file name regex, and index interval. The class provides methods to get and set these options, as well as clear the settings.
89 public synchronized void load() {
90 File settingsFile = getSettingsFile();
91 Map<String, Object> settingsMap = new HashMap<String, Object>();
92 FileInputStream fis = null;
132 public synchronized void save() {
133 File settingsFile = getSettingsFile();
134 Map<String, Object> settingsMap = new HashMap<String, Object>();
135 Field[] fields = getClass().getDeclaredFields();
194 File pluginHome = new LucenePlugin().getPluginHome();
195 File settingsFile = new File(pluginHome, "settings.xml");
196 setSettingsFile(settingsFile);
197 }
199 void setSettingsFile(File settingsFile) {
200 this.settingsFile = settingsFile;
doxy.xml (http://hadesmem.googlecode.com/svn/trunk/) XML · 0 lines
5 <!-- Copyright (c) 2001-2004 CrystalClear Software, Inc.
6 Subject to the Boost Software License, Version 1.0.
7 (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
8 -->
13 <para>
14 The following is a detailed reference of the date_time library. A click on any of the reference links will take you to a list of the header files found in that section. Following one of those links will take you to a list of the items declared in that header file. Further sublinks take you to detailed descriptions of each individual item.
15 </para>
i2c-pnx.c
(http://photon-android.googlecode.com/svn/)
C · 711 lines
✨ Summary
This C code implements an I2C driver for Philips IP3204-based I2C busses, a type of serial bus used in embedded systems. It provides a platform driver that initializes and manages the I2C interface, including setting clock frequencies, handling interrupts, and registering with the I2C subsystem. The code is part of the Linux kernel’s USB subsystem and is designed to work with specific hardware configurations.
This C code implements an I2C driver for Philips IP3204-based I2C busses, a type of serial bus used in embedded systems. It provides a platform driver that initializes and manages the I2C interface, including setting clock frequencies, handling interrupts, and registering with the I2C subsystem. The code is part of the Linux kernel’s USB subsystem and is designed to work with specific hardware configurations.
Iterator.cc
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ · 158 lines
✨ Summary
This C++ code defines a class Iterator
that implements an iterator node in a network of nodes. It provides methods to get output, connect to other nodes, and initialize itself based on parameters and conditions. The iterator’s behavior is controlled by the presence of certain parameters and nodes, such as a condition node and a do-while loop flag.
This C++ code defines a class Iterator
that implements an iterator node in a network of nodes. It provides methods to get output, connect to other nodes, and initialize itself based on parameters and conditions. The iterator’s behavior is controlled by the presence of certain parameters and nodes, such as a condition node and a do-while loop flag.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this file. If not, write to the Free Software Foundation,
15 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
40 ObjectRef Iterator::getOutput (int output_id, int count) {
42 if (!hasOutput(output_id)) throw NodeException (this, "Cannot getOutput id",__FILE__,__LINE__);
44 lock();
94 //Something weird happened
95 e.print();
96 throw NodeException (this,string("Error in Iterator::getOutput"), __FILE__,__LINE__);
97 }
98 processCount = count;
MacroManagerPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 76 lines
✨ Summary
This Java code defines a plugin for the JEdit text editor, specifically a macro manager plugin. It provides a popup menu that allows users to select and import macros from files. When a file is selected, the plugin invokes an action on the currently open view in JEdit. The plugin uses a custom listener class to handle the file selection event.
This Java code defines a plugin for the JEdit text editor, specifically a macro manager plugin. It provides a popup menu that allows users to select and import macros from files. When a file is selected, the plugin invokes an action on the currently open view in JEdit. The plugin uses a custom listener class to handle the file selection event.
45 FileSelectionListener listener = new MacroSelectionListener(view);
46 FindFileWindow ffw = new FindFileWindow();
47 ffw.addFileSelectionListener(listener);
53 * Listens for import selection from popup import window.
54 */
55 private static class MacroSelectionListener implements FileSelectionListener
56 {
57 private View mView;
68 public void fileSelected(EditAction editAction)
69 {
70 editAction.invoke(mView);
mpi_type.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 84 lines
✨ Summary
This C header file defines basic data types for the Message Passing Interface (MPI). It provides definitions for signed and unsigned integer types, such as S8
, U8
, S32
, and U32
. It also defines structures for 64-bit integers (S64
and U64
) and pointers to these types. The file allows for customization of the pointer type by defining MPI_POINTER
before including it.
This C header file defines basic data types for the Message Passing Interface (MPI). It provides definitions for signed and unsigned integer types, such as S8
, U8
, S32
, and U32
. It also defines structures for 64-bit integers (S64
and U64
) and pointers to these types. The file allows for customization of the pointer type by defining MPI_POINTER
before including it.
Threshold.h
(https://freespeech.svn.sourceforge.net/svnroot/freespeech)
C++ Header · 47 lines
✨ Summary
This C++ header file defines a class Threshold
that inherits from Node
. It represents a node in a graphical processing pipeline, specifically for applying a threshold to an image. The class has a constructor, destructor, and a method to retrieve output data. It also includes copyright information and licensing details under the GNU General Public License.
This C++ header file defines a class Threshold
that inherits from Node
. It represents a node in a graphical processing pipeline, specifically for applying a threshold to an image. The class has a constructor, destructor, and a method to retrieve output data. It also includes copyright information and licensing details under the GNU General Public License.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this file. If not, write to the Free Software Foundation,
15 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16 #ifndef _THRESHOLD_H
41 // Default constructor, should not be used
42 Threshold() {throw(GeneralException("Threshold default constructor should not be called",__FILE__,__LINE__));}
44 };
QuickNotepad.props (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 68 lines
1 # Properties file for QuickNotepad plugin
2 # $Id: QuickNotepad.props 6876 2006-09-02 20:39:49Z jchoyt $
33 # action labels for actions supplied by actions.xml
34 quicknotepad.choose-file.label=Choose notepad file
35 quicknotepad.save-file.label=Save notepad file
44 # Option pane labels
45 options.quicknotepad.label=QuickNotepad
46 options.quicknotepad.file=File:
47 options.quicknotepad.choose-file=Choose
48 options.quicknotepad.choose-file.title=Choose a notepad file
49 options.quicknotepad.choose-font=Font:
50 options.quicknotepad.show-filepath.title=Display notepad file path
52 # window title
nommgr.h
(http://angel-engine.googlecode.com/svn/trunk/)
C Header · 61 lines
✨ Summary
This C header code is a stub for a memory management and tracking software, likely a custom implementation of malloc and friends. It undefines the standard library’s malloc and related functions to prevent accidental use of the original implementations. The code also includes copyright information and restrictions on usage and redistribution.
This C header code is a stub for a memory management and tracking software, likely a custom implementation of malloc and friends. It undefines the standard library’s malloc and related functions to prevent accidental use of the original implementations. The code also includes copyright information and restrictions on usage and redistribution.
58 // ---------------------------------------------------------------------------------------------------------------------------------
59 // nommgr.h - End of file
60 // ---------------------------------------------------------------------------------------------------------------------------------
performance_binary.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code tests serialization and deserialization of a custom class A
using Boost.Serialization. It creates an instance of A
, serializes it to a temporary file, then deserializes it back into another instance of A
. The test verifies that the original and deserialized instances are equal, ensuring that the serialization process works correctly.
This C++ code tests serialization and deserialization of a custom class A
using Boost.Serialization. It creates an instance of A
, serializes it to a temporary file, then deserializes it back into another instance of A
. The test verifies that the original and deserialized instances are equal, ensuring that the serialization process works correctly.
4 // (C) Copyright 2002 Robert Ramey - http://www.rrsd.com .
5 // Use, modification and distribution is subject to the Boost Software
6 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
26 // the following fails with (only!) gcc 3.4
27 // #include BOOST_PP_STRINGIZE(BOOST_PP_CAT(../test/,BOOST_ARCHIVE_TEST))
28 // just copy over the files from the test directory
29 #include BOOST_PP_STRINGIZE(BOOST_ARCHIVE_TEST)
39 // compiler. So hold our nose and put it her to permit running of tests.
40 template<class Archive>
41 void serialize(Archive & ar, const unsigned int /* file_version */){
42 ar & boost::serialization::make_nvp(
43 "data",
PngFile.c
(http://angel-engine.googlecode.com/svn/trunk/)
C · 443 lines
✨ Summary
This C code provides functions for reading and writing PNG (Portable Network Graphics) files. The png_read_data
function reads data from a file, while png_write_data
writes data to a file. The png_flush
function is used to flush the output buffer after writing data. The png_read
and png_write
functions are wrappers around these three functions, providing a more convenient interface for reading and writing PNG files.
This C code provides functions for reading and writing PNG (Portable Network Graphics) files. The png_read_data
function reads data from a file, while png_write_data
writes data to a file. The png_flush
function is used to flush the output buffer after writing data. The png_read
and png_write
functions are wrappers around these three functions, providing a more convenient interface for reading and writing PNG files.
1 //-------------------------------------
2 // PNGFILE.C -- Image File Functions
3 //-------------------------------------
73 }
75 BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName)
76 {
77 ofn.hwndOwner = hwnd;
78 ofn.lpstrFile = pstrFileName;
79 ofn.lpstrFileTitle = pstrTitleName;
83 }
85 BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName)
86 {
87 ofn.hwndOwner = hwnd;
tracked_objects_visitor.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a visitor class tracked_objects_visitor
that collects tracked objects from a bound function in a signal-slot system. It recursively visits references, pointers, and signals, adding tracked objects to a list if they are trackable. The visitor is used by the Boost.Signals2 library to manage tracked objects.
This C++ header file defines a visitor class tracked_objects_visitor
that collects tracked objects from a bound function in a signal-slot system. It recursively visits references, pointers, and signals, adding tracked objects to a list if they are trackable. The visitor is used by the Boost.Signals2 library to manage tracked objects.
Mode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
63 try
64 {
65 String filenameGlob = (String)getProperty("filenameGlob");
66 if(filenameGlob != null && filenameGlob.length() != 0)
224 // not given to us by the XMode handler, but instead are filled in by
225 // the catalog loader.
226 String filenameGlob = (String)this.props.get("filenameGlob");
227 String firstlineGlob = (String)this.props.get("firstlineGlob");
228 String filename = (String)this.props.get("file");
234 if(filename != null)
235 props.put("file",filename);
236 } //}}}
248 public boolean accept(String fileName, String firstLine)
249 {
250 if(filenameRE != null && filenameRE.isMatch(fileName))
251 return true;
Scream.npp (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 108 lines
15 Iterator: PITCH
16 {
17 <node: AUDIO> <type: AudioFile>
18 /* <input: INPUT, STREAM, OUTPUT>*/
19 /* <param: FILE, "/home/jmvalin/testMaterial/karlChA.u">*/
94 Network: TALKATIVE
95 {
96 <node: FILENAME> <type: Constant>
97 <param: VALUE, ext:ARG1>
99 <node: STREAM> <type: InputStream>
100 <input: INPUT, FILENAME, FILENAME_OUT>
102 <node: PIT> <type: PITCH>
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.
27 /**
28 * A file set for searching the current buffer.
29 * @author Slava Pestov
30 * @version $Id: CurrentBufferSet.java 12504 2008-04-22 23:12:43Z ezust $
31 */
32 public class CurrentBufferSet implements SearchFileSet
33 {
34 //{{{ getFirstFile() method
35 public String getFirstFile(View view)
36 {
37 return view.getBuffer().getPath();
40 //{{{ getNextFile() method
41 public String getNextFile(View view, String file)
42 {
43 if(file == null)
README (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 17 lines
Make_Get_and_Set_Methods.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 298 lines
64 setCaret(selectionStart, selectionEnd);
66 String fileClassName = buffer.getName();
67 int index = fileClassName.lastIndexOf('.');
68 if(index != -1)
69 {
70 fileClassName = fileClassName.substring(0, index);
71 if(fileClassName.toLowerCase().indexOf("untitled") == -1)
72 {
73 return fileClassName;
74 }
75 }
in.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically the boost::fusion
namespace. It displays information about a function called in
, which is used to read input from an iterator. The page includes details such as the return type, semantics, and example usage of the function.
This HTML code outputs a documentation page for a C++ library, specifically the boost::fusion
namespace. It displays information about a function called in
, which is used to read input from an iterator. The page includes details such as the return type, semantics, and example usage of the function.
ex_end_of_month_day.xml (http://hadesmem.googlecode.com/svn/trunk/) XML · 0 lines
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.
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.
43 <h2>Project Management</h2>
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>
48 <P>The main file is used by several other commands, such as the two <em>Compile</em> commands, the <em>BiBTex</em> command and the <em>Erase Working Files...</em> command. It is also used by the Label Navigator and the BibTeX Navigator in order to correctly parse information. <em>The project files</em> is a term used in these instructions to refer to the set of files that include the Main file and all files imported by files in the set.
49 </P>
68 <h3>Compilation</h3>
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!).
72 <h3>Project Management</h3>
edge.n (https://freespeech.svn.sourceforge.net/svnroot/freespeech) Unknown · 35 lines
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.
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.
1 <body><h2>Creating custom actions.</h2>
3 <p>ProjectViewer allows other plugin developers too interact with the file trees
4 by creating custom actions to be executed on the nodes. Actions can be added
5 to the tree's context menu or to the viewer's toolbar. It's recommended to
56 <p>Another important thing to notice in the prepareForNode() method is that
57 the actions should check is the node is of a certain type, and not if the
58 node is not of a certain type. For example, use "node.isFile()" and not
59 "!node.isDirectory()". This ensures that the action will not do anything
60 wrong if a different node type is added in the future to PV, or if another
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.
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.
board-ap325rxa.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 567 lines
✨ Summary
This C code is a board-specific initialization and configuration for an embedded system, likely a SoC (System-on-Chip) based device. It sets up various peripherals such as GPIO pins, I2C, SPI, and CEU interfaces, and configures the boot mode pin settings. The code also defines a machine vector that identifies the specific hardware configuration of the AP-325RXA board.
This C code is a board-specific initialization and configuration for an embedded system, likely a SoC (System-on-Chip) based device. It sets up various peripherals such as GPIO pins, I2C, SPI, and CEU interfaces, and configures the boot mode pin settings. The code also defines a machine vector that identifies the specific hardware configuration of the AP-325RXA board.
VPTGroup.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 87 lines
✨ Summary
This Java class, VPTGroup
, represents a container for groups and projects in a file system viewer. It extends another class, VPTNode
, and provides methods to display an icon, get its path, compare with other nodes, and convert to a string representation. The class is part of the Project Viewer (PV) software and follows the GNU General Public License.
This Java class, VPTGroup
, represents a container for groups and projects in a file system viewer. It extends another class, VPTNode
, and provides methods to display an icon, get its path, compare with other nodes, and convert to a string representation. The class is part of the Project Viewer (PV) software and follows the GNU General Public License.
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 470 lines
59 <quote>Invariant Sections</quote>, <quote>Front-Cover Texts</quote> or
60 <quote>Back-Cover Texts</quote>, each as defined in the license. A copy of
61 the license can be found in the file <filename>COPYING.DOC.txt</filename>
62 included with jEdit.
63 </para>
223 <listitem><para><guibutton>Remove</guibutton> - removes the currently selected build
224 file from the tree. This does not affect the build file itself in any way.
225 </para></listitem>
328 </para></listitem>
329 <listitem><para>
330 <command>=<literal>build_file_number</literal></command> -- changes the current build file to the number identified by "?"
331 </para></listitem>
335 file into Ant Farm. Searches up the current buffer's directory tree for a
336 "build.xml" file to load if a file is not specified. Re-loads the build file if it is already loaded.
337 </para></listitem>
338 </itemizedlist>
AntFarmPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 223 lines
✨ Summary
This Java code is a plugin for the jEdit text editor, specifically designed to integrate with the Ant build tool. It creates a dockable window and handles build messages from Ant, displaying them in the editor’s output area. It also publishes error messages to an “error-list” dockable window.
This Java code is a plugin for the jEdit text editor, specifically designed to integrate with the Ant build tool. It creates a dockable window and handles build messages from Ant, displaying them in the editor’s output area. It also publishes error messages to an “error-list” dockable window.
159 * Handle all of ANT's build messages including System.out and System.err
160 *
161 * Each build message filename, line no, column, of the error that it is
162 * reporting if it in fact is an Error. You can use this info some how
163 * to publish an event to the Error List
175 {
176 // publish this message to the ErrorList
177 addError( ErrorSource.ERROR, message.getAbsoluteFilename(),
178 message.getLine(), message.getColumn(),
179 message.toString() ); //message.getMessage() );
185 {
186 // publish this message to the ErrorList
187 addError( ErrorSource.WARNING, message.getAbsoluteFilename(),
188 message.getLine(), message.getColumn(),
189 message.toString() ); //message.getMessage() );
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 98 lines
✨ Summary
This HTML code generates a help page for a plugin called HexTools, which extracts data from a hex dump and saves it to a file or clipboard. The page provides information on how to use the plugin, its license, and contact options for feedback and bug reports. It includes images and links to external resources.
This HTML code generates a help page for a plugin called HexTools, which extracts data from a hex dump and saves it to a file or clipboard. The page provides information on how to use the plugin, its license, and contact options for feedback and bug reports. It includes images and links to external resources.
17 Foundation; with no Invariant Sections, Front-Cover Texts or
18 Back-Cover Texts, each as defined in the license. A copy of the
19 license can be found in the file COPYING.DOC.txt included with
20 jEdit.</p>
21 <hr>
31 <h3>Presentation</h3>
33 <p>HexTools Plugin extracts data from a hex dump and saves into a file or into the clipboard.</p>
35 <a name="operation">
38 Say you have a hex dump like this in a jEdit buffer and you'd like to save the
39 data as binary file (e.g. because your <a href="http://www.jacorb.org/">favorite ORB</a> only saves message data to the log).
41 <pre>
word_count_functor.flex (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 #include <boost/timer.hpp>
38 yyin = fopen(1 == argc ? "word_count.input" : argv[1], "r");
39 if (NULL == yyin) {
40 fprintf(stderr, "Couldn't open input file!\n");
41 exit(-1);
42 }
demo_FlickrStoreWire.html
(http://enginey.googlecode.com/svn/trunk/)
HTML · 228 lines
✨ Summary
This HTML code is a demo of the FlickrStore, a simple wrapper to the public feed service of Flickr. It allows users to search for images on Flickr by specifying tags and other parameters. The results are displayed in a table below the search box. The demo uses Wire, a declarative data binding system, to connect the user input fields to the FlickrStore instance and display the search results.
This HTML code is a demo of the FlickrStore, a simple wrapper to the public feed service of Flickr. It allows users to search for images on Flickr by specifying tags and other parameters. The results are displayed in a table below the search box. The demo uses Wire, a declarative data binding system, to connect the user input fields to the FlickrStore instance and display the search results.
journal.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 2456 lines
✨ Summary
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.
776 };
778 static int jbd2_seq_history_open(struct inode *inode, struct file *file)
779 {
780 journal_t *journal = PDE(inode)->data;
902 rc = seq_open(file, &jbd2_seq_info_ops);
903 if (rc == 0) {
904 struct seq_file *m = file->private_data;
905 m->private = s;
906 } else {
914 static int jbd2_seq_info_release(struct inode *inode, struct file *file)
915 {
916 struct seq_file *seq = file->private_data;
917 struct jbd2_stats_proc_session *s = seq->private;
918 kfree(s->stats);
year.hpp (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
8 <MODES>
10 <MODE NAME="actionscript" FILE="actionscript.xml"
11 FILE_NAME_GLOB="*.as" />
13 <MODE NAME="ada" FILE="ada.xml"
14 FILE_NAME_GLOB="*.{ada,adb,ads}"/>
16 <MODE NAME="ada95" FILE="ada95.xml" />
18 <MODE NAME="antlr" FILE="antlr.xml"
132 <MODE NAME="doxygen" FILE="doxygen.xml"
133 FILE_NAME_GLOB="doxyfile*" />
135 <MODE NAME="dsssl" FILE="dsssl.xml"
ImageDecoderQt.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 81 lines
numerics_fwd.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file defines a set of parsers for numerical data types, including unsigned integers, signed integers, and real numbers with various policies for decimal point handling. It provides a framework for parsing numerical values in different formats and allows users to customize the parsing behavior through template parameters. The code is part of the Boost Spirit library.
This C++ header file defines a set of parsers for numerical data types, including unsigned integers, signed integers, and real numbers with various policies for decimal point handling. It provides a framework for parsing numerical values in different formats and allows users to customize the parsing behavior through template parameters. The code is part of the Boost Spirit library.
porting.qbk (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
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.
231 {
233 File oldDtdFile = new File((String)resourceCache.get(e));
235 File newFile = copyToLocalFile(new URL(e.id));
338 if(obj instanceof String)
339 {
340 String file = (String)XmlPlugin.uriToFile((String)obj);
341 Log.log(Log.NOTICE,CatalogManager.class,"Deleting " + file);
406 //{{{ copyToLocalFile() method
407 private static File copyToLocalFile(Object session, VFS vfs, String path)
408 throws IOException
409 {
423 vfs._createInputStream(session,path,false,null));
425 File localFile = File.createTempFile("cache", ".xml", _resourceDir);
427 BufferedOutputStream out = new BufferedOutputStream(
qscreen_qws.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 392 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the QtGui module of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** GNU General Public License Usage
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.
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.
237 try {
238 File ff = new File(filename);
239 String parent = ff.getParent();
416 }
418 class JavaFilenameFilter implements java.io.FilenameFilter
419 {
428 String clazzName = name.substring(0, name.length()-5) + ".class";
430 File clazzFile = new File(dir, clazzName);
431 if (clazzFile.exists() == false)
433 return true;
434 }
435 File srcFile = new File(dir, name);
436 if (srcFile.exists() == false)
AssemblyInfo.cs
(http://google-gdata.googlecode.com/svn/trunk/)
C# · 23 lines
✨ Summary
This C# code is a part of an assembly definition, specifying metadata about the assembly. It includes copyright information and licensing details under the Apache License 2.0. The AssemblyDelaySign
attribute sets the delay signing behavior to false, while AssemblyKeyName
specifies an empty key name. Finally, it defines the assembly’s title as “Google Data API Contacts Library”.
This C# code is a part of an assembly definition, specifying metadata about the assembly. It includes copyright information and licensing details under the Apache License 2.0. The AssemblyDelaySign
attribute sets the delay signing behavior to false, while AssemblyKeyName
specifies an empty key name. Finally, it defines the assembly’s title as “Google Data API Contacts Library”.
qUI2Events.self (git://github.com/ticking/self.git) Unknown · 284 lines
2 '
3 Copyright 1992-2006 Sun Microsystems, Inc. and Stanford University.
4 See the LICENSE file for license information.
5 '
13 qUI2Events = bootstrap define: bootstrap stub -> 'globals' -> 'modules' -> 'qUI2Events' -> () ToBe: bootstrap addSlotsTo: (
14 bootstrap remove: 'directory' From:
15 bootstrap remove: 'fileInTimeString' From:
16 bootstrap remove: 'myComment' From:
17 bootstrap remove: 'postFileIn' From:
23 CopyDowns:
24 globals modules init. copy
25 SlotsToOmit: directory fileInTimeString myComment postFileIn revision subpartNames.
27 \x7fIsComplete: '.
shtml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 117 lines
TODO.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 20 lines
commandoFILE_ENTRY.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 41 lines
1 commandoFILE_ENTRY(view,pane,ns,label,var,options)
2 {
3 entry = new JTextField(20);
21 btn = new RolloverButton(GUIUtilities.loadIcon("Open.png"));
22 btn.setToolTipText("Choose a file");
23 listener = new ActionListener()
24 {
25 actionPerformed(evt)
26 {
27 files = GUIUtilities.showVFSFileDialog(view,
28 entry.getText(),VFSBrowser.OPEN_DIALOG,
29 false);
30 if(files != null)
31 entry.setText(files[0]);
mk_filelist.sh
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Shell · 75 lines
✨ Summary
This shell script creates a set of archives for a jEdit distribution, including Windows, macOS, and Linux versions. It gathers files from various directories, calculates their sizes, and prints them to the console. The script then compresses each archive using bzip2 and removes the original files. The output shows the size of each file in bytes and kilobytes.
This shell script creates a set of archives for a jEdit distribution, including Windows, macOS, and Linux versions. It gathers files from various directories, calculates their sizes, and prints them to the console. The script then compresses each archive using bzip2 and removes the original files. The output shows the size of each file in bytes and kilobytes.
9 # directory!!!
11 # jedit-program fileset
12 echo jedit.jar > installer/jedit-program
13 echo jars/LatestVersion.jar >> installer/jedit-program
24 print_size jedit-program
26 # jedit-macros fileset
27 find macros -name \*.bsh > installer/jedit-macros
29 print_size jedit-macros
31 # jedit-api fileset
32 find doc/api \( -name \*.html -o -name toc.xml \) > installer/jedit-api
33 echo doc/api/stylesheet.css >> installer/jedit-api
71 echo "creating $file.tar.bz2"
72 tar cfj $file.tar.bz2 `cat $file`
73 rm $file
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 121 lines
3 <!--
4 This build.xml file for building the SuperAbbrevs plugin is based
5 upon the model file used for building the QuickNotepad plugin.
7 The 'dist' target compiles the plugin and creates the JAR file.
8 Before running the 'dist' target, you will need to generate the
9 documentation using one of these two targets:
16 - Change definition of 'jedit.install.dir' to point to the directory
17 containing jedit.jar
18 - Change definition of 'jar.name' to the name of your plugin's JAR file
19 - If necessary, add any dependencies to the 'project.class.path'
20 definition
21 - If necessary, change the list of files in the 'dist' targtet
22 - If your plugin has documentation generated using the DocBook XSL
23 stylesheets, change the 'docs-xalan' and 'docs-xsltproc' targets
multiple_defs1.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code defines a regular expression pattern using Boost.Xpressive library. It creates two regex objects: srx
which matches one or more of any character (+_
) and drx
which matches one or more of any character (compiled from the string “.+”). The program then calls an external function f()
and returns its result, but does not print anything.
This C++ code defines a regular expression pattern using Boost.Xpressive library. It creates two regex objects: srx
which matches one or more of any character (+_
) and drx
which matches one or more of any character (compiled from the string “.+”). The program then calls an external function f()
and returns its result, but does not print anything.
scoped_ptr_example.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file demonstrates the usage of boost::scoped_ptr
with an incomplete type, example::implementation
. The example
class uses a private nested class implementation
and a boost::scoped_ptr
to manage its lifetime. Despite being an incomplete type in translation units using this header, boost::scoped_ptr< implementation >
is still valid due to the completeness of the type in the implementation unit where destruction is instantiated.
This C++ header file demonstrates the usage of boost::scoped_ptr
with an incomplete type, example::implementation
. The example
class uses a private nested class implementation
and a boost::scoped_ptr
to manage its lifetime. Despite being an incomplete type in translation units using this header, boost::scoped_ptr< implementation >
is still valid due to the completeness of the type in the implementation unit where destruction is instantiated.
qnodefns_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 176 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** GNU General Public License Usage
ConfigurableFoldHandlerPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 209 lines
✨ Summary
This Java code defines a plugin for the jEdit text editor, allowing users to configure fold handling settings. It reads and stores these settings in properties files, and provides methods for accessing and modifying them. The plugin also handles changes to fold string settings by unregistering and re-registering the fold handler with the jEdit buffer.
This Java code defines a plugin for the jEdit text editor, allowing users to configure fold handling settings. It reads and stores these settings in properties files, and provides methods for accessing and modifying them. The plugin also handles changes to fold string settings by unregistering and re-registering the fold handler with the jEdit buffer.
listitem.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 109 lines
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
6 **
7 ** This file is part of the examples of the Qt Toolkit.
8 **
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** GNU Lesser General Public License Usage
11 ** This file may be used under the terms of the GNU Lesser General Public
12 ** License version 2.1 as published by the Free Software Foundation and
13 ** appearing in the file LICENSE.LGPL included in the packaging of this
14 ** file. Please review the following information to ensure the GNU Lesser
15 ** General Public License version 2.1 requirements will be met:
16 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
18 ** In addition, as a special exception, Nokia gives you certain additional
19 ** rights. These rights are described in the Nokia Qt LGPL Exception
20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
21 **
22 ** GNU General Public License Usage
Include_Guard.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 97 lines
1 /*
2 * Include_Guard.bsh - a BeanShell macro script for the
3 * jEdit text editor - for C/C++ header files: inserts preprocessor
4 * directive in current buffer to ensure that header is included only
5 * once per compilation unit
27 *
28 * An "include guard" is a conventional mechanism for reducing
29 * compilation time for C/C++ source files by ensuring that the
30 * substance of a header file is read by the preprocessor only once
31 * for each compilation unit. The usual reason this is necessary is
32 * the presence of nested include files, sometimes an unavoidable
33 * circumstance when creating a hierarchy of classes.
34 *
77 <listitem>
78 <para><filename>Include_Guard.bsh</filename></para>
79 <abstract><para>
80 Intended for C/C++ header files, this macro inserts a preprocessor
SplashScreen.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 155 lines
✨ Summary
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
This Java code creates a splash screen for a graphical user interface (GUI) application, displaying an image and a progress bar with version information. It uses AWT APIs to create the GUI components and waits for the image to load before showing the splash screen. The advance()
method updates the progress bar over time.
InstallPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1155 lines
✨ Summary
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
This Java code is part of a plugin manager for an IDE (Integrated Development Environment). It provides functionality to manage plugins, including sorting and filtering plugin information, displaying plugin details in a table, and handling keyboard and mouse events. The code also includes rendering and focus management for the plugin table.
50 import java.awt.*;
51 import java.awt.event.*;
52 import java.io.File;
53 import java.io.InputStream;
54 import java.text.NumberFormat;
174 //{{{ loadPluginSet() method
175 /** loads a pluginSet xml file and updates the model to reflect
176 certain checked selections
177 @since jEdit 4.3pre10
776 //{{{ StringMapHandler class
777 /** For parsing the pluginset xml files into pluginSet */
778 private class StringMapHandler extends DefaultHandler
779 {
823 jEdit.getSettingsDirectory() + File.separator);
824 String[] selectedFiles = GUIUtilities.showVFSFileDialog(InstallPanel.this.window,
825 jEdit.getActiveView(), path, VFSBrowser.OPEN_DIALOG, false);
826 if (selectedFiles == null || selectedFiles.length != 1) return;
HistoryModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 320 lines
✨ Summary
This Java class, HistoryModel
, is a list model for storing and managing a history of text input. It allows multiple instances to be created with unique names, and provides methods for adding, retrieving, and saving entries in the history. The data is stored in a vector and can be loaded from a file when the application starts.
This Java class, HistoryModel
, is a list model for storing and managing a history of text input. It allows multiple instances to be created with unique names, and provides methods for adding, retrieving, and saving entries in the history. The data is stored in a vector and can be loaded from a file when the application starts.
155 return;
157 history = new File(PythonDebugParameters.ideFront.constructPath(
158 settingsDirectory,"history"));
159 if(!history.exists())
239 //Log.log(Log.MESSAGE,HistoryModel.class,"Saving history");
240 File file1 = new File(PythonDebugParameters.ideFront.constructPath(
241 PythonDebugParameters.ideFront.getSettingsDirectory(), "#history"));
247 try
248 {
249 out = new BufferedWriter(new FileWriter(file1));
251 if(models != null)
ellint_3.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
Makefile
(http://omnia2droid.googlecode.com/svn/trunk/)
Makefile · 14 lines
✨ Summary
This Makefile specifies object files to be generated when certain configuration options are enabled. It links specific object files (s3cfb.o
, s3cfb_spi.o
, etc.) to the corresponding configuration options, indicating that these objects should be included in the build process for those configurations. This allows the kernel to use different framebuffer drivers depending on the hardware and configuration of the system.
This Makefile specifies object files to be generated when certain configuration options are enabled. It links specific object files (s3cfb.o
, s3cfb_spi.o
, etc.) to the corresponding configuration options, indicating that these objects should be included in the build process for those configurations. This allows the kernel to use different framebuffer drivers depending on the hardware and configuration of the system.
thread_data.hpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ Header · 0 lines
✨ Summary
This C++ header file provides a thread management system for Windows, including thread creation, interruption, and waiting. It defines a thread_data_base
class that manages thread-specific data, such as handles and callbacks. The this_thread
namespace provides functions for yielding control to other threads, interruptible waiting, and sleeping with optional timeouts.
This C++ header file provides a thread management system for Windows, including thread creation, interruption, and waiting. It defines a thread_data_base
class that manages thread-specific data, such as handles and callbacks. The this_thread
namespace provides functions for yielding control to other threads, interruptible waiting, and sleeping with optional timeouts.
index.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 74 lines
✨ Summary
This HTML code outputs a documentation page for the BufferLocal Plugin, a jEdit plugin that saves and restores settings made using the Buffer Options dialog box. It explains how to use the plugin, its features, and configuration options, including automatic buffer closing with a time limit. The plugin stores settings in a file named .bufferlocalplugin.cfg in the user’s jEdit settings directory.
This HTML code outputs a documentation page for the BufferLocal Plugin, a jEdit plugin that saves and restores settings made using the Buffer Options dialog box. It explains how to use the plugin, its features, and configuration options, including automatic buffer closing with a time limit. The plugin stores settings in a file named .bufferlocalplugin.cfg in the user’s jEdit settings directory.
12 you don't have to manually change the settings each time the file is opened. The
13 motivation for this comes from jEdit itself... </p>
14 <p> The file that is used to store bufferlocal properties is in your jEdit settings directory,
15 and named <tt>.bufferlocalplugin.cfg</tt>. </p>
16 <p>
22 per-buffer basis. <b><i>While changes made in the Buffer Options dialog box are lost
23 after the buffer is closed,</i></b> buffer-local properties take effect each time the
24 file is opened, because they are embedded in the file itself.
25 <p>
26 When jEdit loads a file, it checks the first and last 10 lines for colon-enclosed
44 <p>
45 There is no set up or configuration required for this plugin, once installed, it is active.
46 Use the Buffer Option dialog to adjust the settings for a file, and those settings
47 will automatically be saved and applied to the file the next time it is opened.
54 never made it into the initial release, but others have requested it, so it's back now.
55 It is off by default, use the Plugin Options to turn it on and to adjust
56 how long a file should be unused before it is closed. Files that need saved will
57 not be closed, you'll need to save first.
58 <p>
WebOpenPanelParameters.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 57 lines
47 void WebOpenPanelParameters::Data::encode(CoreIPC::ArgumentEncoder* encoder) const
48 {
49 encoder->encode(CoreIPC::In(allowMultipleFiles, allowsDirectoryUpload, acceptTypes, filenames));
50 }
52 bool WebOpenPanelParameters::Data::decode(CoreIPC::ArgumentDecoder* decoder, Data& result)
53 {
54 return decoder->decode(CoreIPC::Out(result.allowMultipleFiles, result.allowsDirectoryUpload, result.acceptTypes, result.filenames));
55 }
javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 560 lines
271 <LITERAL2>adLongVarBinary</LITERAL2>
272 <LITERAL2>adChapter</LITERAL2>
273 <LITERAL2>adFileTime</LITERAL2>
274 <LITERAL2>adDBFileTime</LITERAL2>
453 <LITERAL2>adCmdTable</LITERAL2>
454 <LITERAL2>adCmdStoredProc</LITERAL2>
455 <LITERAL2>adCmdFile</LITERAL2>
456 <LITERAL2>adCmdTableDirect</LITERAL2>
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 41 lines
ScriptingCore.cpp (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ · 882 lines
248 {
249 jsval rval;
250 const char *fname = (filename ? filename : "noname");
251 uint32_t lineno = 1;
252 if (outVal == NULL) {
301 CCLOG("ScriptingCore::runScript(%s)", path);
303 cocos2d::CCFileUtils *futil = cocos2d::CCFileUtils::sharedFileUtils();
305 const char *realPath = futil->fullPathFromRelativePath(path);
341 {
342 js_log("%s:%u:%s\n",
343 report->filename ? report->filename : "<no filename=\"filename\">",
344 (unsigned int) report->lineno,
345 message);
BaseCheckinHandlerFactory.java (https://bitbucket.org/nbargnesi/idea.git) Java · 46 lines
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
31 public interface BaseCheckinHandlerFactory {
32 /**
33 * Creates a handler for a single Checkin Project or Checkin File operation.
34 *
35 *
36 * @param panel the class which can be used to retrieve information about the files to be committed,
37 * and to get or set the commit message.
38 * @param commitContext
VcsChangeDetailsManager.java (https://bitbucket.org/nbargnesi/idea.git) Java · 365 lines
151 private static boolean canBeShownInBinaryDiff(Change change, final Project project) {
152 FilePath path = ChangesUtil.getFilePath(change);
153 if (path != null && path.isDirectory()) return false;
154 if (change.isTreeConflict() || change.isPhantom()) return false;
160 private final Project myProject;
161 private final ChangeListManager myChangeListManager;
162 private final FilePath myFilePath;
163 private Change myChange;
164 private final DiffPanel myPanel;
167 super(project, "Loading change content", queue);
168 myProject = project;
169 myFilePath = ChangesUtil.getFilePath(change);
170 myRequestFromChange = new BinaryDiffRequestFromChange(myProject);
171 myChangeListManager = ChangeListManager.getInstance(myProject);
plugin.xml (https://bitbucket.org/nbargnesi/idea.git) XML · 27 lines
binary.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code is a documentation page for the Boost C++ Libraries, specifically the Qi parser library. It displays information about the available parsers and their corresponding endianness settings, along with copyright and licensing information. The page includes navigation links to related pages and a table of contents.
This HTML code is a documentation page for the Boost C++ Libraries, specifically the Qi parser library. It displays information about the available parsers and their corresponding endianness settings, along with copyright and licensing information. The page includes navigation links to related pages and a table of contents.
229 <td align="right"><div class="copyright-footer">Copyright © 2001-2011 Joel de Guzman, Hartmut Kaiser<p>
230 Distributed under the Boost Software License, Version 1.0. (See accompanying
231 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
232 </p>
233 </div></td>
ClearCaseConstants.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 84 lines
✨ Summary
This Java code defines an interface named ClearCaseConstants
that provides a set of constants for ClearCase commands and options. It includes strings representing various commands, such as COMMAND_CLEARTOOL
, COMMAND_CLEARFINDCO
, and option flags like OPTION_KEEP_FILE
. The constants are likely used to interact with the ClearCase version control system in a Java application.
This Java code defines an interface named ClearCaseConstants
that provides a set of constants for ClearCase commands and options. It includes strings representing various commands, such as COMMAND_CLEARTOOL
, COMMAND_CLEARFINDCO
, and option flags like OPTION_KEEP_FILE
. The constants are likely used to interact with the ClearCase version control system in a Java application.
SecondUnsafeCallTest.java (https://bitbucket.org/nbargnesi/idea.git) Java · 53 lines
NT_MAKEFILE (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
1 # Makefile for Windows NT. Assumes Microsoft compiler, and a single thread.
2 # DLLs are included in the root set under NT, but not under win32S.
3 # Use "nmake nodebug=1 all" for optimized versions of library, gctest and editor.
26 # The following works for win32 debugging. For win32s debugging use debugtype:coff
27 # and add mapsympe line.
28 # This produces a "GUI" applications that opens no windows and writes to the log file
29 # "gc.log". This is done to make the result runnable under win32s.
30 $(link) -debug:full -debugtype:cv $(guiflags) -stack:131072 -out:$*.exe tests\test.obj $(guilibs) gc.lib
53 # This generates the C++ test executable. The executable expects
54 # a single numeric argument, which is the number of iterations.
55 # The output appears in the file "gc.log".
56 test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
57 $(link) -debug:full -debugtype:cv $(guiflags) -stack:16384 -out:test_cpp.exe test_cpp.obj gc.lib $(guilibs)
c_file.py
(http://hadesmem.googlecode.com/svn/trunk/)
Python · 0 lines
✨ Summary
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
This Python script tests a BoostBuild system by creating a project with two C files (hello.cpp
and a.c
) and an executable that depends on both. The test verifies that the executable is compiled correctly, specifically that the C file a.c
is compiled in C mode to avoid compilation errors.
Makefile
(https://swig.svn.sourceforge.net/svnroot/swig)
Makefile · 19 lines
✨ Summary
This Makefile generates a Ruby extension module from a C source file using SWIG. It creates a target called example
and another called myruby
, depending on whether you run make all
or make static
. The all
target builds the standard example
module, while the static
target builds a statically linked version of myruby
. The clean
target removes generated files.
This Makefile generates a Ruby extension module from a C source file using SWIG. It creates a target called example
and another called myruby
, depending on whether you run make all
or make static
. The all
target builds the standard example
module, while the static
target builds a statically linked version of myruby
. The clean
target removes generated files.
RoleVoter.php
(git://github.com/symfony/symfony.git)
PHP · 62 lines
✨ Summary
This PHP class, RoleVoter
, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN
by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED
.
This PHP class, RoleVoter
, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN
by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED
.
Makefile.old (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 16 lines
2 SWIG = $(TOP)/../swig
3 SRCS = example.c
4 TARGET = php_example
5 INTERFACE = example.i
6 SWIGOPT = -noproxy
8 all::
9 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
10 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4
12 clean::
13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h
15 check: all
OgreBlendMode.h
(https://bitbucket.org/ZCube/ogre-android/)
C++ Header · 267 lines
✨ Summary
This C++ header file defines various classes and enumerations for handling blending modes in graphics rendering, specifically in the context of OGRE (Object-Oriented Graphics Rendering Engine). It provides a way to specify blending operations between objects and the existing scene content, including transparency, color, and alpha values.
This C++ header file defines various classes and enumerations for handling blending modes in graphics rendering, specifically in the context of OGRE (Object-Oriented Graphics Rendering Engine). It provides a way to specify blending operations between objects and the existing scene content, including transparency, color, and alpha values.
1 /*
2 -----------------------------------------------------------------------------
3 This source file is part of OGRE
4 (Object-oriented Graphics Rendering Engine)
5 For the latest info, see http://www.ogre3d.org/
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
rawread.cpp
(git://github.com/xbmc/xbmc.git)
C++ · 102 lines
✨ Summary
This C++ code defines a class RawRead
that reads data from a file and provides methods to access the read data in various formats, such as bytes, shorts, integers, and wide characters. It also includes encryption and decryption functionality for certain types of files. The class uses a buffer to store the read data and provides methods to retrieve specific fields or ranges of data from the buffer.
This C++ code defines a class RawRead
that reads data from a file and provides methods to access the read data in various formats, such as bytes, shorts, integers, and wide characters. It also includes encryption and decryption functionality for certain types of files. The class uses a buffer to store the read data and provides methods to retrieve specific fields or ranges of data from the buffer.
1 #include "rar.hpp"
3 RawRead::RawRead(File *SrcFile)
4 {
5 RawRead::SrcFile=SrcFile;
23 int AlignedReadSize=SizeToRead+((~SizeToRead+1)&0xf);
24 Data.Add(AlignedReadSize);
25 int ReadSize=SrcFile->Read(&Data[CurSize],AlignedReadSize);
26 Crypt->DecryptBlock(&Data[CurSize],AlignedReadSize);
27 DataSize+=ReadSize==0 ? 0:Size;
35 {
36 Data.Add(Size);
37 DataSize+=SrcFile->Read(&Data[DataSize],Size);
38 }
39 }
LICENSE (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 23 lines
2 under the terms of the GNU General Public License as published by
3 the Free Software Foundation, either version 3 of the License, or
4 (at your option) any later version. See the LICENSE-GPL file for
5 the full terms of the GNU General Public license version 3.
7 Portions of SWIG are also licensed under the terms of the licenses
8 in the file LICENSE-UNIVERSITIES. You must observe the terms of
9 these licenses, as well as the terms of the GNU General Public License,
10 when you distribute SWIG.
19 is, without warranty of any kind.
21 See the COPYRIGHT file for a list of contributors to SWIG and their
22 copyright notices.
example.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 5 lines
version.js
(git://github.com/isaacs/npm.git)
JavaScript · 290 lines
✨ Summary
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
6 var path = require('path')
7 var fs = require('graceful-fs')
8 var writeFileAtomic = require('write-file-atomic')
9 var chain = require('slide').chain
10 var log = require('npmlog')
108 function readPackage (cb) {
109 var packagePath = path.join(npm.localPrefix, 'package.json')
110 fs.readFile(packagePath, function (er, data) {
111 if (er) return cb(new Error(er))
112 if (data) data = data.toString()
279 function write (data, file, cb) {
280 assert(data && typeof data === 'object', 'must pass data to version write')
281 assert(typeof file === 'string', 'must pass filename to write to version write')
283 log.verbose('version.write', 'data', data, 'to', file)
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
105_chunk_size.t
(http://maatkit.googlecode.com/svn/trunk/)
Perl · 53 lines
✨ Summary
This Perl script tests a Maatkit tool, mk-table-checksum
, by creating a sandbox database, loading data into it, and verifying that chunking works correctly. It checks for chunk boundaries being stored in the test.checksum
file and ensures that the replication process is working as expected. The test creates temporary databases, loads data, runs the Maatkit tool with various options, and verifies the output to ensure the tool behaves as expected.
This Perl script tests a Maatkit tool, mk-table-checksum
, by creating a sandbox database, loading data into it, and verifying that chunking works correctly. It checks for chunk boundaries being stored in the test.checksum
file and ensures that the replication process is working as expected. The test creates temporary databases, loads data, runs the Maatkit tool with various options, and verifies the output to ensure the tool behaves as expected.
DRIV2.LST (git://github.com/AnimatorPro/Animator-Pro.git) Unknown · 209 lines
7 PICDRIVE\*.bat
8 PICDRIVE\*.mak
9 PICDRIVE\makefile
10 PICDRIVE\makefile.*
23 PICDRIVE\ANIM\*.bat
24 PICDRIVE\ANIM\*.mak
25 PICDRIVE\ANIM\makefile
26 PICDRIVE\ANIM\makefile.*
39 PICDRIVE\BMP\*.bat
40 PICDRIVE\BMP\*.mak
41 PICDRIVE\BMP\makefile
42 PICDRIVE\BMP\makefile.*
55 PICDRIVE\DEGAS\*.bat
56 PICDRIVE\DEGAS\*.mak
57 PICDRIVE\DEGAS\makefile
58 PICDRIVE\DEGAS\makefile.*
CMaterial.h
(https://jetpp.svn.sourceforge.net/svnroot/jetpp)
C++ Header · 67 lines
✨ Summary
This is a C++ header file that defines a class CMaterial
which inherits from CStatic
. It contains the class’s declaration, including its constructor, attributes, operations, and overrides. The code also includes message map functions for handling events and a macro to insert additional declarations. It appears to be part of a larger project, likely a graphical user interface (GUI) application.
This is a C++ header file that defines a class CMaterial
which inherits from CStatic
. It contains the class’s declaration, including its constructor, attributes, operations, and overrides. The code also includes message map functions for handling events and a macro to insert additional declarations. It appears to be part of a larger project, likely a graphical user interface (GUI) application.
nsViewSourceHTML.h
(git://github.com/zpao/v8monkey.git)
C Header · 167 lines
✨ Summary
This C++ header file defines a class CViewSourceHTML
that generates HTML content based on a given input. It includes features like syntax highlighting, tokenization, and entity expansion. The class is designed to work with Mozilla’s HTML parser and provides methods for writing tags, attributes, and text content. It also handles errors and verification of the context stack.
This C++ header file defines a class CViewSourceHTML
that generates HTML content based on a given input. It includes features like syntax highlighting, tokenization, and entity expansion. The class is designed to work with Mozilla’s HTML parser and provides methods for writing tags, attributes, and text content. It also handles errors and verification of the context stack.
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
22 * Contributor(s):
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either of the GNU General Public License Version 2 or later (the "GPL"),
26 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
gtkmm2.spec (git://github.com/repoforge/rpms.git) Unknown · 116 lines
34 can be freely combined to quickly create complex user interfaces.
36 The gtkmm devel package contains the static libraries and header files
37 needed for developing GTK+ (GIMP ToolKit) applications in C++.
68 %files
69 %defattr(-, root, root, 0755)
70 %doc AUTHORS ChangeLog CHANGES COPYING NEWS README
74 %files devel
75 %defattr(-, root, root, 0755)
76 %doc docs-to-include/*
CCQuicktimeCaptureDataTest.java
(http://creativecomputing.googlecode.com/svn/trunk/)
Java · 72 lines
✨ Summary
This Java code creates a graphical application that captures video frames from a QuickTime capture device and displays them as a grayscale ellipse pattern on the screen, with the brightness of each pixel affecting its radius. The frame rate is printed to the console during runtime. It uses the CCQuicktimeCaptureData class to interact with the capture device and the CCApp class for general application functionality.
This Java code creates a graphical application that captures video frames from a QuickTime capture device and displays them as a grayscale ellipse pattern on the screen, with the brightness of each pixel affecting its radius. The frame rate is printed to the console during runtime. It uses the CCQuicktimeCaptureData class to interact with the capture device and the CCApp class for general application functionality.
2 * Copyright (c) 2009 Christian Riekoff <info@texone.org>
3 *
4 * This file is free software: you may copy, redistribute and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation, either version 2 of the License, or (at your
7 * option) any later version.
8 *
9 * This file is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 *
17 * This file incorporates work covered by the following copyright and
18 * permission notice:
19 */
textFieldBackground.gif (https://bitbucket.org/davcar/bvcms/) Unknown · 34 lines
help-doc.html (https://svn.apache.org/repos/asf/incubator/droids/) text · 0 lines
HTTP.java
(http://ftr-gwt-library.googlecode.com/svn/trunk/)
Java · 167 lines
✨ Summary
This Java code converts between HTTP header strings and JSON objects. It can parse an HTTP header string into a JSON object, and vice versa. The toJSONObject
method takes an HTTP header string and returns a JSON object containing its elements and attributes, while the toString
method takes a JSON object and returns an equivalent HTTP header string.
This Java code converts between HTTP header strings and JSON objects. It can parse an HTTP header string into a JSON object, and vice versa. The toJSONObject
method takes an HTTP header string and returns a JSON object containing its elements and attributes, while the toString
method takes a JSON object and returns an equivalent HTTP header string.
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
example.i (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 8 lines
CCMenu.h
(git://github.com/kstenerud/ObjectAL-for-iPhone.git)
C Header · 0 lines
✨ Summary
This is a C header file for a CCMenu class, which is part of the cocos2d framework for iPhone development. It defines a menu system that can be customized with various alignment options and has properties such as opacity and color. The class allows adding items dynamically and conforms to certain protocols.
This is a C header file for a CCMenu class, which is part of the cocos2d framework for iPhone development. It defines a menu system that can be customized with various alignment options and has properties such as opacity and color. The class allows adding items dynamically and conforms to certain protocols.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
WInZipAesKeyStrength.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 14 lines
HEX-M1-V1-P1_FE.aux (git://github.com/xyan075/examples.git) Unknown · 147 lines
DragImageWin.cpp
(git://github.com/CyanogenMod/android_external_webkit.git)
C++ · 84 lines
✨ Summary
This C++ code is part of a web browser’s implementation, specifically for handling drag-and-drop operations on Windows platforms. It provides functions to manage drag images, including creating an icon from a cached image file and deleting a drag image reference. The code also handles the blending of drag images by the operating system.
This C++ code is part of a web browser’s implementation, specifically for handling drag-and-drop operations on Windows platforms. It provides functions to manage drag images, including creating an icon from a cached image file and deleting a drag image reference. The code also handles the blending of drag images by the operating system.
nsUniscribeBreaker.cpp
(git://github.com/zpao/v8monkey.git)
C++ · 92 lines
✨ Summary
This C++ code extracts complex line breaks from a given text and stores them in an array. It uses the ScriptItemize function to break down the text into individual items, then checks each item for a soft break using the ScriptBreak function. The results are stored in an array of boolean values indicating whether each character is a soft break or not.
This C++ code extracts complex line breaks from a given text and stores them in an array. It uses the ScriptItemize function to break down the text into individual items, then checks each item for a soft break using the ScriptBreak function. The results are stored in an array of boolean values indicating whether each character is a soft break or not.
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
26 * - Pattara Kiatisevi <ott@linux.thai.net>
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * either of the GNU General Public License Version 2 or later (the "GPL"),
30 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
31 * in which case the provisions of the GPL or the LGPL are applicable instead
32 * of those above. If you wish to allow use of your version of this file only
33 * under the terms of either the GPL or the LGPL, and not to allow others to
34 * use your version of this file under the terms of the MPL, indicate your
35 * decision by deleting the provisions above and replace them with the notice
36 * and other provisions required by the GPL or the LGPL. If you do not delete
37 * the provisions above, a recipient may use your version of this file under
38 * the terms of any one of the MPL, the GPL or the LGPL.
39 *
Header.pl
(git://github.com/zpao/v8monkey.git)
Perl · 183 lines
✨ Summary
The Perl code generates a table with various metrics related to web page loading times, including parsing, content creation, frame creation, style resolution, reflow, total layout time, and total page load time. The table is formatted in a specific way, with columns for the metric name, percentage of total time spent on that task, and a brief description.
The Perl code generates a table with various metrics related to web page loading times, including parsing, content creation, frame creation, style resolution, reflow, total layout time, and total page load time. The table is formatted in a specific way, with columns for the metric name, percentage of total time spent on that task, and a brief description.
4 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
5 #
6 # The contents of this file are subject to the Mozilla Public License Version
7 # 1.1 (the "License"); you may not use this file except in compliance with
24 # 2/10/00 attinasi
25 #
26 # Alternatively, the contents of this file may be used under the terms of
27 # either the GNU General Public License Version 2 or later (the "GPL"), or
28 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
57 $useClockTime = $ARGV[2];
59 #open (XUL_FILE, $buildIDFile) or die "Unable to open BuildID file $buildIDFile (header.pl)";
60 #$BuildNo = "";
61 #$LineList;
91 open (TABLE_FILE, ">table.html");
93 print (TABLE_FILE "<center><b><font size=+2>Top 40 Sites - File Load Performance Metrics</font></b></center>");
94 print (TABLE_FILE "<center><b><font size=+2>Seamonkey Win32</font></B></Center>");
pickle.h
(git://github.com/zpao/v8monkey.git)
C Header · 278 lines
✨ Summary
This C header file defines a class Pickle
that represents a serialized data structure. It provides methods for reading and writing data, including allocation and resizing of the buffer, alignment, and padding with null bytes. The class also includes functions for finding the end of the pickled data within a given range and updating iterators by a specified number of bytes.
This C header file defines a class Pickle
that represents a serialized data structure. It provides methods for reading and writing data, including allocation and resizing of the buffer, alignment, and padding with null bytes. The class also includes functions for finding the end of the pickled data within a given range and updating iterators by a specified number of bytes.