100+ results for 'php system'
Not the results you expected?
TPagedDataSource.php (https://bitbucket.org/volatileeight/prado.git) PHP · 442 lines
1 <?php
2 /**
3 * TPagedDataSource, TPagedListIterator, TPagedMapIterator classes
7 * @copyright Copyright © 2005-2014 PradoSoft
8 * @license http://www.pradosoft.com/license/
9 * @package System.Collections
10 */
16 *
17 * Data items in TPagedDataSource can be traversed using <b>foreach</b>
18 * PHP statement like the following,
19 * <code>
20 * foreach($pagedDataSource as $dataItem)
24 *
25 * @author Qiang Xue <qiang.xue@gmail.com>
26 * @package System.Collections
27 * @since 3.0
28 */
infplist.xml (https://bitbucket.org/ultra_iter/vim-qt.git) XML · 74 lines
Subscription.php (https://github.com/mondomon916/LYBC.git) PHP · 491 lines
nand_osal_boot0.c (https://gitlab.com/pine64-android/brandy) C · 454 lines
m_courses.php (https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework) PHP · 329 lines
1 <?php
3 class M_courses Extends MY_Model
318 }
320 public function get_all_courses($block_system_setting_id)
321 {
322 $sql = "select *
323 FROM $this->_table
324 ORDER BY id";
325 $query = $this->db->query($sql, array($block_system_setting_id));
326 return $query->num_rows() > 0 ? $query->result() : FALSE;
327 }
Pack200.java (https://bitbucket.org/festevezga/xobotos.git) Java · 315 lines
29 public abstract class Pack200 {
31 private static final String SYSTEM_PROPERTY_PACKER = "java.util.jar.Pack200.Packer";
33 private static final String SYSTEM_PROPERTY_UNPACKER = "java.util.jar.Pack200.Unpacker";
51 */
52 public static Pack200.Packer newPacker() {
53 String className = System.getProperty(SYSTEM_PROPERTY_PACKER, "org.apache.harmony.pack200.Pack200PackerAdapter");
54 try {
55 // TODO Not sure if this will cause problems with
72 */
73 public static Pack200.Unpacker newUnpacker() {
74 String className = System.getProperty(SYSTEM_PROPERTY_UNPACKER, "org.apache.harmony.unpack200.Pack200UnpackerAdapter");
75 try {
76 return (Unpacker) ClassLoader.getSystemClassLoader().loadClass(className).newInstance();
bug_revision_api.php (https://github.com/fusenigk/mantisbt-1.git) PHP · 360 lines
1 <?php
2 # Mantis - a php based bugtracking system
4 # Mantis is free software: you can redistribute it and/or modify
23 * @link http://www.mantisbt.org
24 *
25 * @uses constant_inc.php
26 * @uses database_api.php
27 */
29 require_api( 'constant_inc.php' );
30 require_api( 'database_api.php' );
127 /**
128 * Get the name of the type of a bug revision.
129 * @param int $p_revision_id Revision type ID (see constant_inc.php for possible values)
130 * @return string Name of the type of the bug revision
131 */
dlantr.c (https://bitbucket.org/jeromerobert/starpu.git) C · 398 lines
1 /* dlantr.f -- translated by f2c (version 20061008).
2 You must link the resulting object file with libf2c:
3 on Microsoft Windows system, link with libf2c.lib;
4 on Linux or Unix systems, link with .../path/to/libf2c.a -lm
21 doublereal *a, integer *lda, doublereal *work)
22 {
23 /* System generated locals */
24 integer a_dim1, a_offset, i__1, i__2, i__3, i__4;
25 doublereal ret_val, d__1, d__2, d__3;
ParticipantStatusType.php (https://github.com/michaelmcandrew/vaw.git) PHP · 331 lines
TimeZones.cs (https://bitbucket.org/starup/android-rdp.git) C# · 255 lines
18 */
20 using System;
21 using System.IO;
22 using System.Globalization;
23 using System.Collections.ObjectModel;
25 namespace TimeZones
26 {
27 struct SYSTEM_TIME_ENTRY
28 {
29 public UInt16 wYear;
82 stream.WriteLine("\tuint16 wMilliseconds;");
83 stream.WriteLine("};");
84 stream.WriteLine("typedef struct _SYSTEM_TIME_ENTRY SYSTEM_TIME_ENTRY;");
85 stream.WriteLine();
tuner_drv_wrap.c (https://gitlab.com/SerenityS/android_kernel_jalteskt) C · 334 lines
model_field_11.cache.php (https://github.com/hxzyzz/ddc.git) PHP · 1976 lines
1 <?php
2 return array (
3 'title' =>
20 'unsetroleids' => '',
21 'iscore' => '0',
22 'issystem' => '1',
23 'isunique' => '0',
24 'isbase' => '1',
54 'unsetroleids' => '',
55 'iscore' => '0',
56 'issystem' => '0',
57 'isunique' => '0',
58 'isbase' => '1',
98 'unsetroleids' => '',
99 'iscore' => '0',
100 'issystem' => '0',
101 'isunique' => '0',
102 'isbase' => '1',
apb_dualtimer.c (https://github.com/adamgreen/gcc4mbed.git) C · 413 lines
CommitInfo.Designer.cs (https://github.com/otac0n/gitextensions.git) C# · 235 lines
54 // tableLayout
55 //
56 this.tableLayout.BackColor = System.Drawing.SystemColors.Window;
57 this.tableLayout.ColumnCount = 2;
58 this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
59 this.tableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
60 this.tableLayout.Controls.Add(this.gravatar1, 0, 0);
61 this.tableLayout.Controls.Add(this.splitContainer1, 1, 0);
65 this.tableLayout.Name = "tableLayout";
66 this.tableLayout.RowCount = 1;
67 this.tableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
68 this.tableLayout.Size = new System.Drawing.Size(766, 334);
72 // gravatar1
73 //
74 this.gravatar1.BackColor = System.Drawing.SystemColors.Window;
75 this.gravatar1.Dock = System.Windows.Forms.DockStyle.Fill;
iwl-tx.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1478 lines
✨ Summary
This C code is part of a wireless networking driver, specifically for Intel Wi-Fi adapters. It handles transmission and reception of data packets between devices on a network. The code includes functions to manage transmission queues, handle packet errors, and update driver records with status information. It also provides debugging tools to diagnose issues with the wireless connection.
This C code is part of a wireless networking driver, specifically for Intel Wi-Fi adapters. It handles transmission and reception of data packets between devices on a network. The code includes functions to manage transmission queues, handle packet errors, and update driver records with status information. It also provides debugging tools to diagnose issues with the wireless connection.
4 *
5 * Portions of this file are derived from the ipw3945 project, as well
6 * as portions of the ieee80211 subsystem header files.
7 *
8 * This program is free software; you can redistribute it and/or modify it
323 * Alloc buffer array for commands (Tx or other types of commands).
324 * For the command queue (#4), allocate command space + one big
325 * command for scan, since scan command is very huge; the system will
326 * not have two scans at the same time, so only one is needed.
327 * For normal Tx queues (all other queues), no super-size command
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.
29 multiple polygons are present in each input polygon set.</p>
30 <p><img border="0" src="images/convolution2.PNG" width="547" height="432"></p>
31 <p>In each of these examples the origin of the coordinate system is in the lower
32 left corner of the image and the sum of the x and y locations of the input
33 polygons places the result in the upper right hand corner of the images.
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
21 * Include access control config class
22 */
23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";
24 /**
25 * Include resource type config class
26 */
27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";
28 /**
29 * Include thumbnails config class
455 if (isset($GLOBALS['config']['FilesystemEncoding'])) {
456 $this->_filesystemEncoding = (string)$GLOBALS['config']['FilesystemEncoding'];
457 }
458 if (isset($GLOBALS['config']['RoleSessionVar'])) {
DataGridViewCellStyle.cs (https://github.com/iainlane/mono.git) C# · 388 lines
27 using System.Drawing;
28 using System.ComponentModel;
29 using System.Globalization;
31 namespace System.Windows.Forms {
33 [Editor ("System.Windows.Forms.Design.DataGridViewCellStyleEditor, " + Consts.AssemblySystem_Design,
34 "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
142 [DefaultValue ("")]
143 [Editor ("System.Windows.Forms.Design.FormatStringEditor, " + Consts.AssemblySystem_Design,
144 "System.Drawing.Design.UITypeEditor, " + Consts.AssemblySystem_Drawing)]
mavlink_msg_sensor_offsets.h (https://github.com/pchickey/purple-ardupilot-mega.git) C Header · 386 lines
45 /**
46 * @brief Pack a sensor_offsets message
47 * @param system_id ID of this system
48 * @param component_id ID of this component (e.g. 200 for IMU)
49 * @param msg The MAVLink message to compress the data into
106 /**
107 * @brief Pack a sensor_offsets message on a channel
108 * @param system_id ID of this system
109 * @param component_id ID of this component (e.g. 200 for IMU)
110 * @param chan The MAVLink channel this message was sent over
169 * @brief Encode a sensor_offsets struct into a message
170 *
171 * @param system_id ID of this system
172 * @param component_id ID of this component (e.g. 200 for IMU)
173 * @param msg The MAVLink message to compress the data into
PeakShapeEllipsoidTest.h (https://github.com/wdzhou/mantid.git) C Header · 281 lines
13 using Mantid::DataObjects::PeakShapeEllipsoid;
14 using Mantid::Kernel::SpecialCoordinateSystem;
15 using namespace Mantid;
16 using namespace Mantid::Kernel;
30 const MantidVec abcInnerRadii = {5, 6, 7};
31 const MantidVec abcOuterRadii = {8, 9, 10};
32 const SpecialCoordinateSystem frame = Mantid::Kernel::HKL;
33 const std::string algorithmName = "foo";
34 const int algorithmVersion = 3;
56 const MantidVec abcOuterRadii = {8, 9, 10};
57 const MantidVec bad_abcOuterRadii = {8, 9, 10, 11};
58 const SpecialCoordinateSystem frame = Mantid::Kernel::HKL;
60 TSM_ASSERT_THROWS("Should throw, bad directions",
VoteTest.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 536 lines
ast_tree_output.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 550 lines
CMakeLists.txt
(git://github.com/hpcc-systems/HPCC-Platform.git)
CMake · 55 lines
✨ Summary
This CMake code defines a build configuration for the configgen
project, which is part of the HPCC Systems software. It sets up the necessary directories and libraries, links against specific targets, and installs the resulting executable in the /sbin
directory. The code also conditionally includes additional libraries based on the presence of OpenSSL.
This CMake code defines a build configuration for the configgen
project, which is part of the HPCC Systems software. It sets up the necessary directories and libraries, links against specific targets, and installs the resulting executable in the /sbin
directory. The code also conditionally includes additional libraries based on the presence of OpenSSL.
1 ################################################################################
2 # HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
29 include_directories (
30 ./../../system/include
31 ./../../system/jlib
32 ./../../system/mp
33 ./../../common/environment
34 ./../deploy/
36 ${CMAKE_BINARY_DIR}
37 ${CMAKE_BINARY_DIR}/oss
38 ./../../system/security/shared
39 )
hint.ecl (git://github.com/hpcc-systems/HPCC-Platform.git) Unknown · 31 lines
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
magician.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 827 lines
✨ Summary
This C code initializes and configures various hardware components for a HTC Magician device, including GPIO pins, I2C interfaces, USB OHCI controllers, StrataFlash memory, and LCD displays. It also sets up platform devices, timer, and boot parameters. The code is part of the Linux kernel’s machine initialization process, allowing the operating system to interact with the device’s hardware components.
This C code initializes and configures various hardware components for a HTC Magician device, including GPIO pins, I2C interfaces, USB OHCI controllers, StrataFlash memory, and LCD displays. It also sets up platform devices, timer, and boot parameters. The code is part of the Linux kernel’s machine initialization process, allowing the operating system to interact with the device’s hardware components.
322 if (on) {
323 pr_debug("on\n");
324 if (system_rev < 3)
325 gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 1);
326 else
342 gpio_set_value(GPIO106_MAGICIAN_LCD_POWER_3, 0);
343 mdelay(10);
344 if (system_rev < 3)
345 gpio_set_value(GPIO75_MAGICIAN_SAMSUNG_POWER, 0);
346 else
797 u8 board_id = __raw_readb(cpld+0x14);
798 iounmap(cpld);
799 system_rev = board_id & 0x7;
800 lcd_select = board_id & 0x8;
801 pr_info("LCD type: %s\n", lcd_select ? "Samsung" : "Toppoly");
octrun.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 1433 lines
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 781 lines
57 added to the project (or to any directory in the project),
58 allowing you to organize your files however you find most
59 convenient, independently of the file system layout. The
60 project root and the files and directories below it have a
61 special treatment not given to others, though.
143 The files in the different views are colored according to
144 the patterns and colors you have choosen for the
145 filesystem-browser. Furthermore currently open files are
146 highlighted by underlining their names.
147 </para>
525 icons, uses the system provided icon for each
526 individual files. The jEdit icon will still be used
527 when the file is opened. In some systems, the system
528 icons may not be accessible from Java, so this
529 option may not work as expected. Also, this option
CompletionInfoHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 161 lines
✨ Summary
This Java class, CompletionInfoHandler
, extends the default handler for XML parsing and provides a custom implementation to handle completion information. It processes XML elements, attributes, and entities to populate a CompletionInfo
object with relevant data, such as entity declarations, element definitions, and attribute specifications.
This Java class, CompletionInfoHandler
, extends the default handler for XML parsing and provides a custom implementation to handle completion information. It processes XML elements, attributes, and entities to populate a CompletionInfo
object with relevant data, such as entity declarations, element definitions, and attribute specifications.
xfs_qm.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 189 lines
✨ Summary
This C++ header file defines a set of functions and data structures for managing disk quotas on a Linux system. It provides an interface for checking quota usage, setting limits, and controlling quota operations. The code is designed to be used by the Linux kernel’s quota subsystem, allowing it to interact with user-space applications that manage disk space.
This C++ header file defines a set of functions and data structures for managing disk quotas on a Linux system. It provides an interface for checking quota usage, setting limits, and controlling quota operations. The code is designed to be used by the Linux kernel’s quota subsystem, allowing it to interact with user-space applications that manage disk space.
58 /*
59 * This defines the unit of allocation of dquots.
60 * Currently, it is just one file system block, and a 4K blk contains 30
61 * (136 * 30 = 4080) dquots. It's probably not worth trying to make
62 * this more dynamic.
63 * XXXsup However, if this number is changed, we have to make sure that we don't
64 * implicitly assume that we do allocations in chunks of a single filesystem
65 * block in the dquot/xqm code.
66 */
94 xfs_frlist_t qm_dqfreelist; /* freelist of dquots */
95 atomic_t qm_totaldquots; /* total incore dquots */
96 uint qm_nrefs; /* file systems with quota on */
97 int qm_dqfree_ratio;/* ratio of free to inuse dquots */
98 kmem_zone_t *qm_dqzone; /* dquot mem-alloc zone */
Install.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 122 lines
✨ Summary
This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments to determine installation mode (text-only or non-interactive), loads configuration properties from “install.props”, and copies files to a specified output directory using a progress bar.
This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments to determine installation mode (text-only or non-interactive), loads configuration properties from “install.props”, and copies files to a specified output directory using a progress bar.
22 public static void main(String[] args)
23 {
24 String javaVersion = System.getProperty("java.version");
25 if(javaVersion.compareTo("1.3") < 0)
26 {
27 System.err.println("You are running Java version "
28 + javaVersion + ".");
29 System.err.println("This installer requires Java 1.3 or later.");
94 File outFile = new File(outfile);
96 OperatingSystem.getOperatingSystem().mkdirs(outFile.getParent());
98 BufferedOutputStream out = new BufferedOutputStream(
OptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 68 lines
✨ Summary
This Java code defines a custom option pane for an image viewer application, allowing users to toggle two settings: “Show images on mouse over in File System Browser” and “Show images on mouse over in ProjectViewer”. The options are stored in a configuration file and can be saved when the user closes the option pane.
This Java code defines a custom option pane for an image viewer application, allowing users to toggle two settings: “Show images on mouse over in File System Browser” and “Show images on mouse over in ProjectViewer”. The options are stored in a configuration file and can be saved when the user closes the option pane.
54 setBorder( BorderFactory.createEmptyBorder( 6, 6, 6, 6 ) );
55 addComponent( new JLabel( "<html><h3>Image Viewer</h3>" ) );
56 vfsMouseOver = new JCheckBox( jEdit.getProperty( "imageviewer.allowVFSMouseOver.label", "Show images on mouse over in File System Browser" ) );
57 vfsMouseOver.setSelected( jEdit.getBooleanProperty( "imageviewer.allowVFSMouseOver", true ) );
58 pvMouseOver = new JCheckBox( jEdit.getProperty( "imageviewer.allowPVMouseOver.label", "Show images on mouse over in ProjectViewer" ) );
ServiceHandler.java
(http://keywatch.googlecode.com/svn/trunk/)
Java · 316 lines
✨ Summary
This Java code is part of a service handler that manages tasks and jobs for an agent. It registers an agent with the system, sets its properties, and starts monitoring its activity. The code handles agent registration, job management, and property updates, ensuring seamless interaction between the agent and the system. It also logs events and errors to facilitate debugging and troubleshooting.
This Java code is part of a service handler that manages tasks and jobs for an agent. It registers an agent with the system, sets its properties, and starts monitoring its activity. The code handles agent registration, job management, and property updates, ensuring seamless interaction between the agent and the system. It also logs events and errors to facilitate debugging and troubleshooting.
malloc.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 5515 lines
32 ftp://gee.cs.oswego.edu/pub/misc/malloc-2.8.3.h
33 You don't really need this .h file unless you call functions not
34 defined in your system include files. The .h file contains only the
35 excerpts from this file needed for using this malloc on ANSI C/C++
36 systems, so long as you haven't changed compile-time options about
47 Supported pointer/size_t representation: 4 or 8 bytes
48 size_t MUST be an unsigned type of the same width as
49 pointers. (If you are using an ancient system that declares
50 size_t as a signed type, or need it to be a different width
51 than pointers, you can use a previous release of this malloc
455 requests to the same locations). Segregating space in this way has
456 the benefits that: Mmapped space can always be individually released
457 back to the system, which helps keep the system level memory demands
458 of a long-lived program low. Also, mapped memory doesn't become
459 `locked' between other chunks, as can happen with normally allocated
PropertySideKickParsedData.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 52 lines
✨ Summary
This Java class, PropertySideKickParsedData
, extends another class called SideKickParsedData
. It stores a buffer structure tree and provides a constructor that takes a file name as an argument. The commented-out method getAssetAtOffset
is not currently being used. The class allows plugins to extend it for plugin-specific information storage.
This Java class, PropertySideKickParsedData
, extends another class called SideKickParsedData
. It stores a buffer structure tree and provides a constructor that takes a file name as an argument. The commented-out method getAssetAtOffset
is not currently being used. The class allows plugins to extend it for plugin-specific information storage.
g_i_l_0375.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code generates a documentation page for a software library, specifically the “Member List” section of the “Regular” class. It displays a table with member functions and their corresponding classes, along with links to related pages. The page also includes metadata, such as copyright information and a generated timestamp, indicating that it was created by Doxygen version 1.5.6.
This HTML code generates a documentation page for a software library, specifically the “Member List” section of the “Regular” class. It displays a table with member functions and their corresponding classes, along with links to related pages. The page also includes metadata, such as copyright information and a generated timestamp, indicating that it was created by Doxygen version 1.5.6.
sh7763rdp_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 1237 lines
dynamic_link_test.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
The code tests for a known issue with GCC where a system_error
exception thrown from a DLL is not caught. The program attempts to catch boost::system::system_error
, but instead catches std::runtime_error
. It then reports the expected behavior, indicating that it did not catch the intended exception and failed to catch the unexpected one.
The code tests for a known issue with GCC where a system_error
exception thrown from a DLL is not caught. The program attempts to catch boost::system::system_error
, but instead catches std::runtime_error
. It then reports the expected behavior, indicating that it did not catch the intended exception and failed to catch the unexpected one.
19 //--------------------------------------------------------------------------------------//
21 #include <boost/system/system_error.hpp>
23 #include <iostream>
37 boost::system::throw_test();
38 }
39 catch (const boost::system::system_error& ex)
40 {
41 std::cout << " caught boost::system::system_error as expected\n";
46 catch (const std::runtime_error& ex)
47 {
48 std::cout << " error: caught std::runtime_error instead of boost::system::system_error\n";
49 std::cout << " what() reports " << ex.what() << '\n';
50 return 1;
HyperSearchOperationNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 237 lines
✨ Summary
This Java class represents a node in a HyperSearch operation, which is used to search for files based on a given string. It maintains a cache of result nodes and provides methods to restore flat nodes, cache result nodes, remove nodes from the cache, insert tree nodes, and get the search matcher and search string.
This Java class represents a node in a HyperSearch operation, which is used to search for files based on a given string. It maintains a cache of result nodes and provides methods to restore flat nodes, cache result nodes, remove nodes from the cache, insert tree nodes, and get the search matcher and search string.
ar_KW.xml (git://github.com/landgraf/matreshka.git) XML · 11 lines
netx_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 925 lines
HyperSearchFileNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 117 lines
✨ Summary
This Java class represents a node in a HyperSearch results window, which is part of the jEdit text editor. It stores information about a file, such as its path and buffer (the actual content), and provides methods to navigate to that file and compare with other nodes. The class also implements the equals
method for comparing nodes.
This Java class represents a node in a HyperSearch results window, which is part of the jEdit text editor. It stores information about a file, such as its path and buffer (the actual content), and provides methods to navigate to that file and compare with other nodes. The class also implements the equals
method for comparing nodes.
actions-xml.vm (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 10 lines
GeneratorUtil.cs
(git://github.com/castleproject/Castle.Core-READONLY.git)
C# · 70 lines
✨ Summary
This C# code is part of a dynamic proxy generator, specifically responsible for handling method invocation arguments. It copies out and references parameters from the invoked method, storing them in local variables to be used within the generated code. The CopyOutAndRefParameters
method handles this process, utilizing other helper methods to create expressions and statements that assign values to these local variables.
This C# code is part of a dynamic proxy generator, specifically responsible for handling method invocation arguments. It copies out and references parameters from the invoked method, storing them in local variables to be used within the generated code. The CopyOutAndRefParameters
method handles this process, utilizing other helper methods to create expressions and statements that assign values to these local variables.
DatePrototype.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1096 lines
253 // Convert multi-byte result to UNICODE.
254 // If __STDC_ISO_10646__ is defined, wide character represents
255 // UTF-16 (or UTF-32) code point. In most modern Unix like system
256 // (e.g. Linux with glibc 2.2 and above) the macro is defined,
257 // and wide character represents UTF-32 code point.
faq-use.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 715 lines
130 name. This procedure minimizes the risk of crashes causing
131 loss of data, and works without reported problems on local
132 file systems. However, when files are served remotely by
133 FTP, Samba or other means, it may not be possible to
134 preserve file attributes on the server because the newly
169 For other encodings, you must specify the encoding when the
170 file is loaded if you do not wish to use the default
171 encoding for your operating system.</para>
173 <para>There are a few features that can help you navigate
174 through encoding issues. You can select the encoding you
175 wish to use from <guisubmenu> Encoding</guisubmenu> in the
176 <guimenu>Commands</guimenu> menu of the File System Browser.
177 You can also designate a default encoding in the
178 <guimenuitem>Loading & Saving</guimenuitem> pane of the
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”.
YouTubeSampleWindowController.m
(http://update-engine.googlecode.com/svn/trunk/)
Objective C · 908 lines
✨ Summary
This Objective C code is a part of a YouTube API client application. It handles various tasks such as fetching categories, entries, and uploading videos to YouTube. The code uses the Google Data Services framework to interact with the YouTube API. It also manages data feeds, tickets, and errors, providing a structured way to handle the API’s responses and errors.
This Objective C code is a part of a YouTube API client application. It handles various tasks such as fetching categories, entries, and uploading videos to YouTube. The code uses the Google Data Services framework to interact with the YouTube API. It also manages data feeds, tickets, and errors, providing a structured way to handle the API’s responses and errors.
Java14.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 190 lines
✨ Summary
This Java code initializes and configures various components of the jEdit text editor, including keyboard focus management, clipboard handling, and mouse wheel event processing. It sets up a custom focus manager to prioritize views over other components, adds a mouse wheel listener to edit panes, and registers a system selection clipboard.
This Java code initializes and configures various components of the jEdit text editor, including keyboard focus management, clipboard handling, and mouse wheel event processing. It sets up a custom focus manager to prioritize views over other components, adds a mouse wheel listener to edit panes, and registers a system selection clipboard.
qUI2Events.self (git://github.com/ticking/self.git) Unknown · 284 lines
1 '$Revision: 30.1 $'
2 '
3 Copyright 1992-2006 Sun Microsystems, Inc. and Stanford University.
4 See the LICENSE file for license information.
5 '
88 bootstrap addSlotsTo: bootstrap stub -> 'traits' -> () From: ( | {
89 'Category: ui2\x7fCategory: System\x7fCategory: Events\x7fModuleInfo: Module: qUI2Events InitialContents: FollowSlot\x7fVisibility: public'
91 ui2QuartzEvent = bootstrap setObjectAnnotationOf: bootstrap stub -> 'traits' -> 'ui2QuartzEvent' -> () From: ( |
makefile.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 96 lines
CommandLineReader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 108 lines
✨ Summary
This Java code creates a custom Reader
class called CommandLineReader
that modifies the behavior of the standard input stream when reading from the command line. It treats empty lines as ‘;\n’ to make the interpreter more user-friendly, but ignores this behavior when reading from files non-interactively.
This Java code creates a custom Reader
class called CommandLineReader
that modifies the behavior of the standard input stream when reading from the command line. It treats empty lines as ‘;\n’ to make the interpreter more user-friendly, but ignores this behavior when reading from files non-interactively.
Kconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 14 lines
dockables.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 10 lines
progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1060 lines
1 <?xml version="1.0"?>
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
5 <!-- Progress v9.1d mode by Patrick Tingen -->
88 <COMMENT2>&OPSYS</COMMENT2>
89 <COMMENT2>&SEQUENCE</COMMENT2>
90 <COMMENT2>&WINDOW-SYSTEM</COMMENT2>
91 <COMMENT2>&LIST-1</COMMENT2>
92 <COMMENT2>&LIST-2</COMMENT2>
421 <KEYWORD1>SUBSTRING</KEYWORD1>
422 <KEYWORD1>SUPER</KEYWORD1>
423 <KEYWORD1>SYSTEM-DIALOG</KEYWORD1>
424 <KEYWORD1>SYSTEM-HELP</KEYWORD1>
743 <KEYWORD2>SUBTYPE</KEYWORD2>
744 <KEYWORD2>SUPPRESS-WARNINGS</KEYWORD2>
745 <KEYWORD2>SYSTEM-ALERT-BOXES</KEYWORD2>
746 <KEYWORD2>TAB-POSITION</KEYWORD2>
747 <KEYWORD2>TABLE</KEYWORD2>
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 219 lines
1 <?xml version="1.0"?>
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
5 <!-- Written By: Wojciech Stryjewski - thvortex@sourceforge.net -->
40 <SEQ TYPE="DIGIT">'o</SEQ>
42 <!-- Function calls, module instantiation, system tasks with args -->
43 <MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
170 <KEYWORD3>large</KEYWORD3>
172 <!-- System Tasks With No/Optional Arguments -->
173 <FUNCTION>$stop</FUNCTION>
174 <FUNCTION>$finish</FUNCTION>
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 47 lines
BibTeXPanel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 428 lines
✨ Summary
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
This Java code is a part of a LaTeX bibliography management system for a text editor. It loads and processes bibliographic data from LaTeX files, extracting references and titles to create a list of citations that can be used in the document. The code also allows users to add referenced BibTeX files to a list and sorts them alphabetically by reference title.
TiledLayer.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 229 lines
✨ Summary
This Java class represents a TiledLayer, which is a type of layer in a game that can be used to display images in a grid-like pattern. It allows for static and animated tiles to be set, and provides methods for painting the layer onto a graphics context. The layer’s size and tile dimensions are adjustable, and it supports transparency and animation.
This Java class represents a TiledLayer, which is a type of layer in a game that can be used to display images in a grid-like pattern. It allows for static and animated tiles to be set, and provides methods for painting the layer onto a graphics context. The layer’s size and tile dimensions are adjustable, and it supports transparency and animation.
verilog.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 220 lines
1 <?xml version="1.0"?>
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
5 <!-- Written By: Wojciech Stryjewski - thvortex@sourceforge.net -->
40 <SEQ TYPE="DIGIT">'o</SEQ>
42 <!-- Function calls, module instantiation, system tasks with args -->
43 <MARK_PREVIOUS TYPE="FUNCTION" MATCH_TYPE="OPERATOR">(</MARK_PREVIOUS>
44 <SEQ TYPE="OPERATOR">)</SEQ>
171 <KEYWORD3>large</KEYWORD3>
173 <!-- System Tasks With No/Optional Arguments -->
174 <FUNCTION>$stop</FUNCTION>
175 <FUNCTION>$finish</FUNCTION>
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.
75 uintmax_t milliseconds;
76 bool relative;
77 boost::system_time abs_time;
79 static unsigned long const max_non_infinite_wait=0xfffffffe;
83 milliseconds(milliseconds_),
84 relative(true),
85 abs_time(boost::get_system_time())
86 {}
118 else
119 {
120 system_time const now=get_system_time();
121 if(abs_time<=now)
122 {
BufferList.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 432 lines
✨ Summary
This HTML code outputs a changelog for a plugin called “BufferList” for the text editor jEdit. It displays version history, changes made in each release, and requirements for compatible versions of jEdit. The output is presented in a table format with detailed information about each version, including bug fixes and new features.
This HTML code outputs a changelog for a plugin called “BufferList” for the text editor jEdit. It displays version history, changes made in each release, and requirements for compatible versions of jEdit. The output is presented in a table format with detailed information about each version, including bug fixes and new features.
115 All entries will be shown with a color that matches one of the regular
116 expressions in
117 <B>Utilities>Global options>File System Browser>Colors</B>.</LI>
118 <LI><B>Auto-Show on buffer change</B><BR>
119 If checked, the Buffer List is automatically shown, if the current buffer
234 <LI>Tree display instead of table display; the files are grouped by directory.</LI>
235 <LI>Removed list of recent files</LI>
236 <LI>Entries are shown in the color specified by File System Browser colors.</LI>
237 <LI>Allow multiple selections of open buffers: popup operations are: save, close
238 and reload. This allows you to close, for example, all files of one directory
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 67 lines
dockables.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 10 lines
VPTFilteredModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 325 lines
✨ Summary
This Java code defines a custom tree model for displaying files and directories in a graphical user interface. It extends the standard TreeModel
class to filter nodes based on file names, allowing users to select specific files and directories to display. The model also handles node changes, updates, and sorting of child nodes.
This Java code defines a custom tree model for displaying files and directories in a graphical user interface. It extends the standard TreeModel
class to filter nodes based on file names, allowing users to select specific files and directories to display. The model also handles node changes, updates, and sorting of child nodes.
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 241 lines
TargetExecutor.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 241 lines
✨ Summary
This Java code is part of an Ant build utility plugin for jEdit, a text editor. It executes a target from an Ant build file and displays output to the console, including success or failure messages, with customizable debug mode. The class handles build process timing, error handling, and output redirection.
This Java code is part of an Ant build utility plugin for jEdit, a text editor. It executes a target from an Ant build file and displays output to the console, including success or failure messages, with customizable debug mode. The class handles build process timing, error handling, and output redirection.
107 );
109 PrintStream out = System.out;
110 PrintStream err = System.err;
112 if ( !debug )
113 {
114 System.setOut( this.getStdOut() );
115 System.setErr( this.getStdErr() );
183 catch (BuildException be)
184 {
185 System.err.println(be.getMessage());
186 farm.handleBuildMessage( window, new BuildMessage( "\nBUILD FAILED: " +
187 be.toString()), Color.red );
194 finally
195 {
196 System.setOut( out );
197 System.setErr( err );
IOProgressMonitor.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 217 lines
✨ Summary
This Java code creates a GUI panel, IOProgressMonitor
, that displays the progress of I/O operations on multiple threads. It uses a JProgressBar
to show the progress and a button to abort the operation. The panel updates in real-time as new progress information is received from the underlying thread pool.
This Java code creates a GUI panel, IOProgressMonitor
, that displays the progress of I/O operations on multiple threads. It uses a JProgressBar
to show the progress and a button to abort the operation. The panel updates in real-time as new progress information is received from the underlying thread pool.
qscreen_qws.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 392 lines
63 class QWSWindow;
64 class QWSWindowSurface;
65 class QGraphicsSystem;
66 class QPixmapData;
293 QPixmapDataFactory* pixmapDataFactory() const; // Deprecated, will be removed in 4.6
294 QGraphicsSystem* graphicsSystem() const;
296 #ifdef QT_QWS_CLIENTBLIT
304 void setPixelFormat(QImage::Format format);
305 void setPixmapDataFactory(QPixmapDataFactory *factory); // Deprecated, will be removed in 4.6
306 void setGraphicsSystem(QGraphicsSystem* system);
308 QRgb screenclut[256];
CurveLink.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 116 lines
✨ Summary
This Java class represents a link in a curve, used for rendering graphics. It contains information about the curve and its bounds (ytop and ybot), as well as an edge tag. The class provides methods to absorb other links into itself, check if it’s empty, retrieve the underlying curve and sub-curve, and set the next link in the chain.
This Java class represents a link in a curve, used for rendering graphics. It contains information about the curve and its bounds (ytop and ybot), as well as an edge tag. The class provides methods to absorb other links into itself, check if it’s empty, retrieve the underlying curve and sub-curve, and set the next link in the chain.
1 /*
2 * Copyright 1998 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
Utils.cs
(http://garminworkouts.googlecode.com/svn/trunk/)
C# · 484 lines
✨ Summary
This C# code is part of a fitness tracking application, providing various utility methods for data processing and conversion. It handles tasks such as serializing step information to XML, converting between different workout file formats, calculating pace and speed, and formatting names with special characters. The code also includes helper functions for working with Garmin-specific data types and units.
This C# code is part of a fitness tracking application, providing various utility methods for data processing and conversion. It handles tasks such as serializing step information to XML, converting between different workout file formats, calculating pace and speed, and formatting names with special characters. The code also includes helper functions for working with Garmin-specific data types and units.
1 using System;
2 using System.Collections.Generic;
3 using System.Diagnostics;
4 using System.Drawing;
5 using System.Globalization;
6 using System.IO;
7 using System.Runtime.InteropServices;
8 using System.Text;
9 using System.Threading;
10 using System.Windows.Forms;
11 using System.Xml;
12 using ZoneFiveSoftware.Common.Data.Fitness;
13 using ZoneFiveSoftware.Common.Data.Measurement;
actions.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 30 lines
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 470 lines
131 <para>
132 To run Ant builds outside of the current JVM, specify the build file you wish
133 to use. Default build files for multiple operating systems are included with
134 the binary distribution of the
135 <ulink url="http://ant.apache.org">Jakarta-Ant project</ulink>.
359 tree and select the <guimenu>Browse project files</guimenu> item. Each
360 <application>Ant</application> project has a base directory. This command opens
361 that directory in the <application>File System Browser</application>.
362 </para></listitem>
363 </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.
85 private static DefaultErrorSource errorSource;
87 static PrintStream out = System.out;
88 static PrintStream err = System.err;
101 EditBus.addToNamedList(DockableWindow.DOCKABLE_WINDOW_LIST,NAME);
103 // save System.out and err in case we need them
104 //out = System.out;
105 //err = System.err;
106 }
158 /**
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
perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 595 lines
1 <?xml version="1.0"?>
3 <!DOCTYPE MODE SYSTEM "xmode.dtd">
5 <MODE>
346 <KEYWORD3>setpriority</KEYWORD3>
347 <KEYWORD3>sleep</KEYWORD3>
348 <KEYWORD3>system</KEYWORD3>
349 <KEYWORD3>times</KEYWORD3>
350 <KEYWORD3>wait</KEYWORD3>
385 <KEYWORD3>socketpair</KEYWORD3>
387 <!-- System V interprocess communication functions -->
388 <KEYWORD3>msgctl</KEYWORD3>
389 <KEYWORD3>msgget</KEYWORD3>
wkt.vcproj (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
qmake.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 33 lines
LICENSE-2.0.txt (https://bitbucket.org/nbargnesi/idea.git) Plain Text · 202 lines
faq-plugins.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 232 lines
tip18.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 4 lines
v3.4beta028.html (https://bitbucket.org/ultra_iter/qt-vtl.git) HTML · 146 lines
chef-server-webui.gemspec (git://github.com/opscode/chef.git) Unknown · 29 lines
ohai.rb
(git://github.com/opscode/chef.git)
Ruby · 43 lines
✨ Summary
This Ruby code defines a custom Chef provider for Ohai, a monitoring system. It allows Chef to reload Ohai plugins and data on demand, updating the node’s attributes accordingly. The action_reload
method is responsible for reloading Ohai, requiring or loading plugins as needed, and merging the updated data with the node’s automatic attributes.
This Ruby code defines a custom Chef provider for Ohai, a monitoring system. It allows Chef to reload Ohai plugins and data on demand, updating the node’s attributes accordingly. The action_reload
method is responsible for reloading Ohai, requiring or loading plugins as needed, and merging the updated data with the node’s automatic attributes.
ftcache.h
(http://angel-engine.googlecode.com/svn/trunk/)
C++ Header · 1122 lines
✨ Summary
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
This is a C++ header file that defines various data structures and functions for font management, caching, and optimization. It provides classes and functions for managing fonts, faces, sizes, and bitmaps, as well as caching and lookup functionality. The code appears to be part of the FreeType library, which is used for rendering and manipulating fonts in graphics applications.
Resolver.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 969 lines
✨ Summary
This Java code is part of a JEdit plugin that manages external resources, such as XML files. It handles caching, network modes, and resource updates. The code provides methods for adding, updating, and removing resources from the cache, as well as handling changes to the user’s settings and file system. It also includes a class for handling VFS (Virtual File System) updates.
This Java code is part of a JEdit plugin that manages external resources, such as XML files. It handles caching, network modes, and resource updates. The code provides methods for adding, updating, and removing resources from the cache, as well as handling changes to the user’s settings and file system. It also includes a class for handling VFS (Virtual File System) updates.
497 // try the catalog
498 if(publicId == null)
499 newSystemId = resolvePublicOrSystem(systemId,false);
500 else
501 {
502 newSystemId = resolvePublicOrSystem(publicId,true);
503 if(newSystemId == null && systemId != null){
504 //try the systemId as a backup
506 // the systemId is in cache
507 newSystemId = resolvePublicOrSystem(systemId,false);
508 }
509 }
567 }
569 return new String[]{systemId,newSystemId};
570 }
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
tip51.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 2 lines
RegexEncodingDetector.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 101 lines
✨ Summary
This Java class implements an encoding detector that uses a regular expression to find a specific pattern in a given input stream, which is assumed to be the encoding declaration of the file. It reads the first few lines of the stream and searches for this pattern, returning the detected encoding if found. If not found, it returns null.
This Java class implements an encoding detector that uses a regular expression to find a specific pattern in a given input stream, which is assumed to be the encoding declaration of the file. It reads the first few lines of the stream and searches for this pattern, returning the detected encoding if found. If not found, it returns 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.
126 These functions are computed using only basic arithmetic operations, so
127 there isn't much variation in accuracy over differing platforms. Note that
128 only results for the widest floating point type on the system are given
129 as narrower types have <a class="link" href="../../backgrounders/relative_error.html#zero_error">effectively zero error</a>.
130 All values are relative errors in units of epsilon.
JSONDecoder.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 225 lines
✨ Summary
This ActionScript code defines a JSONDecoder
class that parses JSON strings into native objects. It uses a tokenizer to read the input string and then attempts to parse an array, object, or value based on the token type. The decoder returns the parsed object, which can be accessed through its getValue()
method.
This ActionScript code defines a JSONDecoder
class that parses JSON strings into native objects. It uses a tokenizer to read the input string and then attempts to parse an array, object, or value based on the token type. The decoder returns the parsed object, which can be accessed through its getValue()
method.
1 /*
2 Adobe Systems Incorporated(r) Source Code License Agreement
3 Copyright(c) 2005 Adobe Systems Incorporated. All rights reserved.
6 the source code.
8 Adobe Systems Incorporated grants to you a perpetual, worldwide, non-exclusive,
9 no-charge, royalty-free, irrevocable copyright license, to reproduce,
10 prepare derivative works of, publicly display, publicly perform, and
12 object code form without any attribution requirements.
14 The name "Adobe Systems Incorporated" must not be used to endorse or promote products
15 derived from the source code without prior written permission.
17 You agree to indemnify, hold harmless and defend Adobe Systems Incorporated from and
18 against any loss, damage, claims or lawsuits, including attorney's
19 fees that arise or result from your use or distribution of the source
sourcedoc.xml (git://github.com/hpcc-systems/HPCC-Platform.git) XML · 27 lines
AntDomBasenameTask.java (https://bitbucket.org/nbargnesi/idea.git) Java · 44 lines
16 package com.intellij.lang.ant.dom;
18 import com.intellij.psi.PsiFileSystemItem;
19 import com.intellij.util.xml.Attribute;
20 import com.intellij.util.xml.Convert;
28 @Attribute("file")
29 @Convert(value = AntPathConverter.class)
30 public abstract GenericAttributeValue<PsiFileSystemItem> getFile();
32 @Attribute("suffix")
35 protected String calcPropertyValue(String propertyName) {
36 final PsiFileSystemItem item = getFile().getValue();
37 if (item != null) {
38 final String name = item.getName();
Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines
208 String versionStr = "1.1";
209 String SYSTEM_TEMP_DIR = System.getProperty("java.io.tmpdir");
210 String SYSTEM_FILE_SEPERATOR = File.separator;
211 String SYSTEM_PATH_SEPERATOR = System.getProperty("path.separator");
213 // first, check if the plugin is installed.
351 // The buffer file is not in an appropriate named dir
352 // copy and work on it in temp
353 if (!SYSTEM_TEMP_DIR.endsWith(SYSTEM_FILE_SEPERATOR))
354 tmpBufferName.append(SYSTEM_FILE_SEPERATOR);
440 command.append("-docletpath \"");
441 command.append(jedit_userdir);
442 command.append(SYSTEM_FILE_SEPERATOR);
443 command.append("jars");
444 command.append(SYSTEM_FILE_SEPERATOR);
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.
ModeCatalogHandler.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 107 lines
✨ Summary
This Java code defines a class ModeCatalogHandler
that handles XML files for mode catalogs in a text editor. It resolves entities, starts parsing elements, and initializes modes based on attributes from the XML file. The handler is responsible for loading and configuring modes, including their properties such as file paths and glob patterns.
This Java code defines a class ModeCatalogHandler
that handles XML files for mode catalogs in a text editor. It resolves entities, starts parsing elements, and initializes modes based on attributes from the XML file. The handler is responsible for loading and configuring modes, including their properties such as file paths and glob patterns.
Capabilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 126 lines
✨ Summary
This Java code defines a class called Capabilities
that checks for the availability of certain features and packages in the runtime environment, such as Swing and accessibility. It uses a cache to store results of previous checks and throws an exception if a capability is not available. The class also provides methods to set accessibility and test for class existence.
This Java code defines a class called Capabilities
that checks for the availability of certain features and packages in the runtime environment, such as Swing and accessibility. It uses a cache to store results of previous checks and throws an exception if a capability is not available. The class also provides methods to set accessibility and test for class existence.
85 Use direct Class.forName() to test for the existence of a class.
86 We should not use BshClassManager here because:
87 a) the systems using these tests would probably not load the
88 classes through it anyway.
89 b) bshclassmanager is heavy and touches other class files.
90 this capabilities code must be light enough to be used by any
91 system **including the remote applet**.
92 */
93 public static boolean classExists( String name )
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
qtopiacore-opengl.sk (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 39 lines
system_msvc.sln (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines
7 EndProjectSection
8 EndProject
9 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "system_error_test", "system_error_test\system_error_test.vcproj", "{CBD12E59-99E5-4F35-9B66-0554D0FBDB76}"
10 ProjectSection(ProjectDependencies) = postProject
11 {22892211-A1F3-435B-8B97-A12E8772599E} = {22892211-A1F3-435B-8B97-A12E8772599E}
18 EndProjectSection
19 EndProject
20 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "system_dll", "system_dll\system_dll.vcproj", "{22892211-A1F3-435B-8B97-A12E8772599E}"
21 EndProject
22 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "throw_test_dll", "throw_test_dll\throw_test_dll.vcproj", "{F6D9B408-84A3-405A-93ED-DE5AA8CF84D7}"
json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines
47 // buffer settings. Of course, it may be the same as what the buffer
48 // uses anyway.
49 String lineSep = System.getProperty("line.separator");
51 public void setIndentWidth(int i) {
111 JsonParser parser;
112 if (args.length == 0) {
113 System.out.println("JSON Parser: Reading from standard input . . .");
114 parser = new JsonParser(System.in);
115 } else if (args.length == 1) {
116 System.out.println("JSON Parser: Reading from file " + args[0] + " . . .");
117 try {
118 parser = new JsonParser(new java.io.FileInputStream(args[0]));
119 } catch (java.io.FileNotFoundException e) {
120 System.out.println("JSON Parser: File " + args[0] + " not found.");
121 return;
122 }
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.
10 * option, any later version, incorporated herein by reference.
11 *
12 * Generic filesystem journal-writing code; part of the ext2fs
13 * journaling system.
19 * We do not actually manage the physical storage of the journal in this
20 * file: that is left to a per-journal policy function, which allows us
21 * to store the journal within a filesystem-specified area for ext2
22 * journaling (ext2 can use a reserved inode for storing the log).
23 */
112 *
113 * 1) COMMIT: Every so often we need to commit the current state of the
114 * filesystem to disk. The journal thread is responsible for writing
115 * all of the metadata buffers to disk.
116 *
649 * the buffer's contents they really should run flush_dcache_page(bh->b_page).
650 * But we don't bother doing that, so there will be coherency problems with
651 * mmaps of blockdevs which hold live JBD-controlled filesystems.
652 */
653 struct journal_head *jbd2_journal_get_descriptor_buffer(journal_t *journal)
PathIterator.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 203 lines
✨ Summary
The Java code defines an interface for a path iterator, which allows iterating over the coordinates of a path defined by a series of segments (e.g., lines, curves). The iterator provides methods to move to the next segment, check if iteration is complete, and retrieve the current segment’s type and coordinates.
The Java code defines an interface for a path iterator, which allows iterating over the coordinates of a path defined by a series of segments (e.g., lines, curves). The iterator provides methods to move to the next segment, check if iteration is complete, and retrieve the current segment’s type and coordinates.
1 /*
2 * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
config.h.in (http://angel-engine.googlecode.com/svn/trunk/) Unknown · 78 lines
AUTHORS (http://angel-engine.googlecode.com/svn/trunk/) Unknown · 36 lines
15 Marcelo E. Magallon <mmagallo@debian.org> (original autoconf, bug fixes)
16 Robert Bell (pixmap font modifications)
17 Sam Hocevar <sam@zoy.org> (build system, new maintainer)
18 Éric Beets <ericbeets@free.fr> (C bindings)
19 Christopher Sean Morrison <learner@brlcad.org> (bug fixes, new maintainer)
luafilesystem-cvs-2.rockspec (http://angel-engine.googlecode.com/svn/trunk/) Unknown · 27 lines
1 package = "LuaFileSystem"
3 version = "cvs-2"
5 source = {
6 url = "git://github.com/keplerproject/luafilesystem.git",
7 }
9 description = {
10 summary = "File System Library for the Lua Programming Language",
11 detailed = [[
12 LuaFileSystem is a Lua library developed to complement the set of
13 functions related to file systems offered by the standard Lua
14 distribution. LuaFileSystem offers a portable way to access the
README.txt (http://angel-engine.googlecode.com/svn/trunk/) Plain Text · 20 lines
guidelines.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.
ContainerCallerGxp.gxp (http://gxp.googlecode.com/svn/trunk/) text · 0 lines
p76pass1.xml (git://github.com/landgraf/matreshka.git) XML · 12 lines
README (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 14 lines
README.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 126 lines
z.fsi
(git://github.com/fsharp/fsharp.git)
F# · 108 lines
✨ Summary
This F# code defines a BigInteger
type, which is an arbitrary-sized integer type. It provides various operations and functions for working with big integers, such as arithmetic, comparison, and parsing from strings. The code also includes implementations of F# numeric literal syntax for literals of the form ‘dddI’.
This F# code defines a BigInteger
type, which is an arbitrary-sized integer type. It provides various operations and functions for working with big integers, such as arithmetic, comparison, and parsing from strings. The code also includes implementations of F# numeric literal syntax for literals of the form ‘dddI’.
1 // Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
3 namespace System.Numerics
4 #if FX_NO_BIGINT
6 open System
7 open Microsoft.FSharp.Collections
8 open Microsoft.FSharp.Core
37 member Sign : int
38 /// Compute the ratio and remainder of two big integers
39 static member DivRem : x:BigInteger * y:BigInteger * [<System.Runtime.InteropServices.Out>]rem:BigInteger byref -> BigInteger
41 /// This operator is for consistency when this type be used from other CLI languages
modula3.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 179 lines
XMLUtilities.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 203 lines
✨ Summary
This Java class provides utility methods for working with XML files, including converting special characters to HTML entities, parsing XML files, and resolving entity references. It uses the SAX API to parse XML files and handles errors by logging them to a log file. The class is designed to be used internally within an application, such as jEdit, but can also be used by other developers.
This Java class provides utility methods for working with XML files, including converting special characters to HTML entities, parsing XML files, and resolving entity references. It uses the SAX API to parse XML files and handles errors by logging them to a log file. The class is designed to be used internally within an application, such as jEdit, but can also be used by other developers.
111 * Convenience method for parsing an XML file. This method will
112 * wrap the resource in an InputSource and set the source's
113 * systemId to "jedit.jar" (so the source should be able to
114 * handle any external entities by itself).
115 *
132 InputSource isrc = new InputSource(
133 new BufferedInputStream(in));
134 isrc.setSystemId("jedit.jar");
135 parser.setContentHandler(handler);
136 parser.setDTDHandler(handler);
180 public static InputSource findEntity(String systemId, String test, Class where)
181 {
182 if (systemId != null && systemId.endsWith(test))
183 {
184 try
SimpleNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 225 lines
✨ Summary
This Java class represents a node in an abstract syntax tree (AST) used for parsing and evaluating programming languages. It provides methods for managing child nodes, accessing source file information, and evaluating expressions. The class is designed to be reusable and customizable, with features such as recursive dumping of child nodes and support for BeanShell-specific functionality.
This Java class represents a node in an abstract syntax tree (AST) used for parsing and evaluating programming languages. It provides methods for managing child nodes, accessing source file information, and evaluating expressions. The class is designed to be reusable and customizable, with features such as recursive dumping of child nodes and support for BeanShell-specific functionality.
BaseCheckinHandlerFactory.java (https://bitbucket.org/nbargnesi/idea.git) Java · 46 lines
ml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 211 lines
Password.java
(git://github.com/unclebob/fitnesse.git)
Java · 113 lines
✨ Summary
This Java code is a simple password manager that allows users to set and save passwords for different usernames. It takes command-line arguments to specify a custom password file and cipher, or uses default values if none are provided. The program prompts the user to enter their password twice to confirm it, then saves the password in a specified file using a chosen cipher.
This Java code is a simple password manager that allows users to set and save passwords for different usernames. It takes command-line arguments to specify a custom password file and cipher, or uses default values if none are provided. The program prompts the user to enter their password twice to confirm it, then saves the password in a specified file using a chosen cipher.
22 printUsage();
24 input = new BufferedReader(new InputStreamReader(System.in));
25 password.interactForPassword();
27 password.savePassword();
28 System.out.println("password saved in " + password.passwords.getName());
29 }
31 public static void printUsage() {
32 System.err.println("Usage: java fitnesse.authentication.Password [-f <password file>] [-c <password cipher>] <user>");
33 System.err.println("\t-f <password file> {" + defaultFile + "}");
34 System.err.println("\t-c <password cipher> {" + defaultCipher + "}");
35 System.exit(-1);
cpuprofile.html
(http://google-perftools.googlecode.com/svn/trunk/)
HTML · 521 lines
✨ Summary
This is a documentation page for the gprof
command, explaining its usage and options. It provides detailed information on how to use gprof
, including various flags and heuristics that control the output of the profiling tool. The text also notes potential limitations and caveats of using gprof
.
This is a documentation page for the gprof
command, explaining its usage and options. It provides detailed information on how to use gprof
, including various flags and heuristics that control the output of the profiling tool. The text also notes potential limitations and caveats of using gprof
.
m4aread.m
(git://github.com/simon-r/Audio-Tools.git)
Objective C · 338 lines
✨ Summary
This code is a MATLAB implementation of a command-line audio decoder, specifically designed to decode MP4 files using the faac library. It reads an input file, decodes its audio data, and returns the decoded audio as a matrix. The function can also be used to read audio from a temporary file created by the decoding process.
This code is a MATLAB implementation of a command-line audio decoder, specifically designed to decode MP4 files using the faac library. It reads an input file, decodes its audio data, and returns the decoded audio as a matrix. The function can also be used to read audio from a temporary file created by the decoding process.
170 %%%%%% Probe file to find format, size, etc.
171 cmd = ['"',faad, '" -i "', FILE,'"'];
172 [s,w] = system(cmd);
173 % Break into lines
174 rp = [0,find(w==10)];
254 % Temporary file to use
255 %tmpfile = fullfile(tmpdir, ['tmp',num2str(round(1000*rand(1))),'.wav']);
256 [s,upid] = system('echo $$');
257 % remove final CR
258 upid = upid(1:end-1);
271 cmd=['"',faad,'" -o "', tmpfile,'" "',FILE,'"'];
272 %w =
273 mysystem(cmd);
275 sttfrm = sttfrm + delay;
pointer_reference_runme.java
(https://swig.svn.sourceforge.net/svnroot/swig)
Java · 24 lines
✨ Summary
This Java code loads a native library called “pointer_reference” and tests its functionality using two methods: get
and set
. It verifies that the returned value from get
is 10 and sets a new value of 20 using set
, then checks if the updated value is indeed 20. If any test fails, it prints an error message and exits with a non-zero status code.
This Java code loads a native library called “pointer_reference” and tests its functionality using two methods: get
and set
. It verifies that the returned value from get
is 10 and sets a new value of 20 using set
, then checks if the updated value is indeed 20. If any test fails, it prints an error message and exits with a non-zero status code.
gtkmm2.spec (git://github.com/repoforge/rpms.git) Unknown · 116 lines
CollectionUtils.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 366 lines
✨ Summary
This Java code provides a collection of methods for copying arrays of various data types, including primitive types (int, double, float, byte, char) and reference types (String). The methods take an array as input and return a new array with the same elements, allowing for efficient duplication of arrays.
This Java code provides a collection of methods for copying arrays of various data types, including primitive types (int, double, float, byte, char) and reference types (String). The methods take an array as input and return a new array with the same elements, allowing for efficient duplication of arrays.
86 Object obj1 = Array.newInstance(obj.getClass().getComponentType(), j
87 + i);
88 System.arraycopy(obj, 0, obj1, flag ? 0 : i, j);
89 return obj1;
90 }
133 int k;
134 if ((k = j - size - 1) > 0) {
135 System.arraycopy(obj, size + 1, obj, size, k);
136 }
137 j--;
138 Object obj1 = Array.newInstance(obj.getClass().getComponentType(), j);
139 System.arraycopy(obj, 0, obj1, 0, j);
140 return obj1;
141 }