100+ results for 'php glob'
Not the results you expected?
scripts.php (https://github.com/Canuckaholic/Pop-Digital.git) PHP · 397 lines
ascii_colossal.py (https://github.com/al8/sublimetext-colossal.git) Python · 201 lines
function_n_test.cpp (https://github.com/LeifAndersen/Android-Supertux.git) C++ · 648 lines
18 using std::negate;
20 int global_int;
22 struct write_five_obj { void operator()() const { global_int = 5; } };
23 struct write_three_obj { int operator()() const { global_int = 3; return 7; }};
24 static void write_five() { global_int = 5; }
25 static void write_three() { global_int = 3; }
26 struct generate_five_obj { int operator()() const { return 5; } };
27 struct generate_three_obj { int operator()() const { return 3; } };
34 struct write_const_1_nonconst_2
35 {
36 void operator()() { global_int = 2; }
37 void operator()() const { global_int = 1; }
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
45 */
46 public function __construct( $args = array() ) {
47 global $wpdb;
49 $this->table = $wpdb->base_prefix . 'cp_relationships';
176 */
177 public function add( $args = array() ) {
178 global $wpdb;
180 $r = array_intersect_key( $args, array(
227 */
228 public function update( $args = array(), $where = array() ) {
229 global $wpdb;
231 $r = array_intersect_key( $args, array(
external_test.php (https://github.com/markn86/moodle.git) PHP · 200 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
27 defined('MOODLE_INTERNAL') || die();
29 global $CFG;
31 require_once($CFG->dirroot . '/webservice/tests/helpers.php');
47 */
48 public function test_get_available_in_context_system() {
49 global $DB;
51 $this->resetAfterTest(true);
60 */
61 public function test_get_available_in_context_category() {
62 global $DB;
64 $this->resetAfterTest(true);
migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
297 function migrateDayHour($table)
298 {
299 $prefix = $GLOBALS['_MAX']['CONF']['table']['prefix'];
300 $tableName = $this->oDBH->quoteIdentifier($prefix.$table, true);
gen_initialized.c (https://github.com/Frama-C/Frama-C-snapshot.git) C · 365 lines
Input.php (https://gitlab.com/dleonov/my-framework-two) PHP · 419 lines
121 $superGlobal = '_' . strtoupper($name);
123 if (isset($GLOBALS[$superGlobal]))
124 {
125 $this->inputs[$name] = new Input($GLOBALS[$superGlobal], $this->options);
380 /**
381 * Method to load all of the global inputs.
382 *
383 * @return void
393 // Load up all the globals.
394 foreach ($GLOBALS as $global => $data)
395 {
396 // Check if the global starts with an underscore.
399 // Convert global name to input name.
400 $global = strtolower($global);
401 $global = substr($global, 1);
ResponseEmitterTest.php (https://github.com/LubosRemplik/cakephp.git) PHP · 366 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
11 * @link https://cakephp.org CakePHP(tm) Project
12 * @since 3.3.5
13 * @license https://opensource.org/licenses/mit-license.php MIT License
39 $GLOBALS['mockedHeadersSent'] = false;
40 $GLOBALS['mockedHeaders'] = $GLOBALS['mockedCookies'] = [];
41 $this->emitter = new ResponseEmitter();
42 }
76 'Location: http://example.com/cake/1'
77 ];
78 $this->assertEquals($expected, $GLOBALS['mockedHeaders']);
79 }
VoteTest.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 536 lines
1 <?php
2 /**
3 * SemanticScuttle - your social bookmark manager.
4 *
5 * PHP version 5.
6 *
7 * @category Bookmarking
41 public function setUp()
42 {
43 $GLOBALS['enableVoting'] = true;
44 //FIXME: create true new instance
45 $this->vs = SemanticScuttle_Service_Factory::get('Vote');
287 public function testVoteVotingDeactivated()
288 {
289 $GLOBALS['enableVoting'] = false;
291 $uid = 1;
event.php (https://github.com/livinglab/openlab.git) PHP · 185 lines
1 <?php
2 /**
3 * Functions and template tags dedicated to Events.
14 * @since 4.9.7
15 *
16 * @param null|int|WP_Post $event The event ID or post object or `null` to use the global one.
17 * @param string|null $output The required return type. One of `OBJECT`, `ARRAY_A`, or `ARRAY_N`, which
18 * correspond to a WP_Post object, an associative array, or a numeric array,
setupPostdata.php (https://gitlab.com/morganestes/wordpress-develop) PHP · 419 lines
14 return;
16 foreach ( $this->global_keys as $global_key ) {
17 if ( isset( $GLOBALS[ $global_key ] ) ) {
18 $this->global_data[ $global_key ] = $GLOBALS[ $global_key ];
19 unset( $GLOBALS[ $global_key ] );
20 } else {
21 $this->global_data[ $global_key ] = null;
22 }
23 }
398 *
399 * setup_postdata( $a_post ) followed by the_content() in a loop that does not update
400 * global $post should use the content of $a_post rather then the global post.
401 */
402 function test_setup_postdata_loop() {
mcb_menu.php (https://github.com/shykre/ProjetZ.git) PHP · 254 lines
1 <?php
3 $config = array(
70 'title' => 'payment_methods',
71 'href' => 'payments/payment_methods',
72 'global_admin' => TRUE
73 ),
74 'templates/index/type/payment_receipts' => array(
75 'title' => 'receipt_templates',
76 'href' => 'templates/index/type/payment_receipts',
77 'global_admin' => TRUE
78 )
79 )
86 'title' => 'invoice_templates',
87 'href' => 'templates/index/type/invoices',
88 'global_admin' => TRUE
89 )
90 )
migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
297 function migrateDayHour($table)
298 {
299 $prefix = $GLOBALS['_MAX']['CONF']['table']['prefix'];
300 $tableName = $this->oDBH->quoteIdentifier($prefix.$table, true);
Configuration.php (https://github.com/GunioRobot/phpca.git) PHP · 444 lines
1 <?php
2 /**
3 * Copyright (c) 2009 Stefan Priebsch <stefan@priebsch.de>
30 * POSSIBILITY OF SUCH DAMAGE.
31 *
32 * @package PHPca
33 * @author Stefan Priebsch <stefan@priebsch.de>
34 * @copyright Stefan Priebsch <stefan@priebsch.de>. All rights reserved.
36 */
38 namespace spriebsch\PHPca;
40 /**
41 * The PHPca configuration.
42 *
43 * @author Stefan Priebsch <stefan@priebsch.de>
options.php (https://github.com/livinglab/openlab.git) PHP · 316 lines
1 <?php
2 /**
3 * Genesis Framework.
147 function genesis_get_cpt_option( $key, $post_type_name = '', $use_cache = true ) {
149 $post_type_name = genesis_get_global_post_type_name( $post_type_name );
151 return genesis_get_option( $key, GENESIS_CPT_ARCHIVE_SETTINGS_FIELD_PREFIX . $post_type_name, $use_cache );
half_float.hpp (https://github.com/Funto/Tohoku-Engine.git) C++ Header · 407 lines
site_main.tpl (https://gitlab.com/raku.takayama/eccube-2_13) Smarty Template · 199 lines
39 <!--{if $HeaderTopNaviItem.php_path != ""}-->
40 <!--{include_php file=$HeaderTopNaviItem.php_path items=$HeaderTopNaviItem}-->
41 <!--{else}-->
42 <!--{include file=$HeaderTopNaviItem.tpl_path items=$HeaderTopNaviItem}-->
106 <!--{if $MainHeadItem.php_path != ""}-->
107 <!--{include_php file=$MainHeadItem.php_path items=$MainHeadItem}-->
108 <!--{else}-->
109 <!--{include file=$MainHeadItem.tpl_path items=$MainHeadItem}-->
124 <!--{if $MainFootItem.php_path != ""}-->
125 <!--{include_php file=$MainFootItem.php_path items=$MainFootItem}-->
126 <!--{else}-->
127 <!--{include file=$MainFootItem.tpl_path items=$MainFootItem}-->
185 <!--{if $FooterBottomNaviItem.php_path != ""}-->
186 <!--{include_php file=$FooterBottomNaviItem.php_path items=$FooterBottomNaviItem}-->
187 <!--{else}-->
188 <!--{include file=$FooterBottomNaviItem.tpl_path items=$FooterBottomNaviItem}-->
HttpTestCaseTest.php (https://github.com/jupeter/zf1.git) PHP · 316 lines
1 <?php
2 /**
3 * Zend Framework
23 // Call Zend_Controller_Request_HttpTestCaseTest::main() if this source file is executed directly.
24 if (!defined("PHPUnit_MAIN_METHOD")) {
25 define("PHPUnit_MAIN_METHOD", "Zend_Controller_Request_HttpTestCaseTest::main");
28 /** Zend_Controller_Request_HttpTestCase */
29 require_once 'Zend/Controller/Request/HttpTestCase.php';
31 /**
40 * @group Zend_Controller_Request
41 */
42 class Zend_Controller_Request_HttpTestCaseTest extends PHPUnit_Framework_TestCase
43 {
44 /**
Config.php (https://github.com/harleyflh75/ZF_Framework.git) PHP · 514 lines
376 }
378 if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
379 return $_null;
380 }
431 {
432 if (!isset($this->_accessControlConfigCache)) {
433 $this->_accessControlConfigCache = new CKFinder_Connector_Core_AccessControlConfig(isset($GLOBALS['config']['AccessControl']) ? $GLOBALS['config']['AccessControl'] : array());
434 }
499 function getResourceTypeNames()
500 {
501 if (!isset($GLOBALS['config']['ResourceType']) || !is_array($GLOBALS['config']['ResourceType'])) {
502 return array();
503 }
db_helper.php (https://github.com/mrbmc/erector.git) PHP · 338 lines
1 <?php
2 /**
3 * This file houses the MpmDbHelper class.
4 *
5 * @package mysql_php_migrations
6 * @subpackage Helpers
7 * @license http://www.opensource.org/licenses/bsd-license.php The New BSD License
8 * @link http://code.google.com/p/mysql-php-migrations/
9 */
12 * The MpmDbHelper class is used to fetch database objects (PDO or Mysqli right now) and perform basic database actions.
13 *
14 * @package mysql_php_migrations
15 * @subpackage Helpers
16 */
XML.php (https://bitbucket.org/stager94/skmz-joomla.git) PHP · 377 lines
1 <?php
3 /**
4 * XML-parsing classes to wrap the domxml and DOM extensions for PHP 4
5 * and 5, respectively.
6 *
13 /**
14 * The base class for wrappers for available PHP XML-parsing
15 * extensions. To work with this Yadis library, subclasses of this
16 * class MUST implement the API as defined in the remarks for this
17 * class. Subclasses of Auth_Yadis_XMLParser are used to wrap
18 * particular PHP XML extensions such as 'domxml'. These are used
19 * internally by the library depending on the availability of
20 * supported PHP XML extensions.
Projection.java (https://github.com/nathanjordan/NeuroTranslate.git) Java · 389 lines
35 * <element name="source" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
36 * <element name="target" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
37 * <element name="synapse_props" type="{http://morphml.org/networkml/schema}GlobalSynapticProperties" maxOccurs="unbounded"/>
38 * <choice>
39 * <element name="connections" type="{http://morphml.org/networkml/schema}Connections"/>
78 protected String projectionTarget;
79 @XmlElement(name = "synapse_props", required = true)
80 protected List<GlobalSynapticProperties> synapseProps;
81 @XmlElement(name = "connectivity_pattern")
82 protected ConnectivityPattern connectivityPattern;
256 * <p>
257 * Objects of the following type(s) are allowed in the list
258 * {@link GlobalSynapticProperties }
259 *
260 *
Relation.php (https://gitlab.com/madwanz64/laravel) PHP · 403 lines
tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 686 lines
10 - Added recursive in-string substituted command and variable analysis.
11 - Added numerous missing tcl keywords and variables up to version 8.4.14.
12 - Removed $ on global variable keywords, as they're often used with $::.
13 - Added Expect keywords, as KEYWORD2. (send was already in tk as KEYWORD2)
14 - Avoid colouring substituted variables that are homonyms of a keyword.
133 <KEYWORD1>expr</KEYWORD1>
134 <KEYWORD1>format</KEYWORD1>
135 <KEYWORD1>global</KEYWORD1>
136 <KEYWORD1>set</KEYWORD1>
137 <KEYWORD1>trace</KEYWORD1>
173 <KEYWORD1>flush</KEYWORD1>
174 <KEYWORD1>gets</KEYWORD1>
175 <KEYWORD1>glob</KEYWORD1>
176 <KEYWORD1>open</KEYWORD1>
177 <KEYWORD1>read</KEYWORD1>
subscription.php (https://github.com/kainbacher/Notethrower.git) PHP · 273 lines
3 include_once('../Includes/Init.php'); // must be included first
5 include_once('../Includes/Config.php');
6 include_once('../Includes/Snippets.php');
7 include_once('../Includes/TemplateUtil.php');
8 include_once('../Includes/DB/Subscription.php');
9 include_once('../Includes/Mailer/MailUtil.php');
11 if(get_param('referrer') == 'batcholdartists'){
225 '${Optional/referrerId}' => get_param('referrerid'),
226 '${Optional/error}' => $error,
227 '${phpSelf}' => basename($_SERVER['PHP_SELF'], '.php'),
228 '${userName}' => get_param('username'),
229 '${Common/pageFooter}' => buildPageFooter()
api.php (https://gitlab.com/mostafame/team_website) PHP · 344 lines
Clover.php (https://gitlab.com/Pasantias/pasantiasASLG) PHP · 284 lines
1 <?php
2 /*
3 * This file is part of the PHP_CodeCoverage package.
4 *
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
6 *
7 * For the full copyright and license information, please view the LICENSE
11 /**
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
13 *
14 * @since Class available since Release 1.0.0
15 */
16 class PHP_CodeCoverage_Report_Clover
17 {
18 /**
class-mb-include-exclude.php (https://gitlab.com/code26/selah) PHP · 379 lines
273 * This is required for MB User Meta extension.
274 */
275 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
276 // If edit other's profile, check edited user.
277 $user_id = intval( $_REQUEST['user_id'] );
283 return ! empty( $roles );
284 } elseif ( isset( $GLOBALS['pagenow'] ) && 'profile.php' === $GLOBALS['pagenow'] ) {
285 // If edit profile, check current user.
286 return self::check_user_role( $roles );
297 */
298 protected static function check_edited_user_id( $user_ids ) {
299 if ( isset( $GLOBALS['pagenow'] ) && 'user-edit.php' === $GLOBALS['pagenow'] ) {
300 // If edit other's profile, check edited user.
301 $user_id = intval( $_REQUEST['user_id'] );
helper.php (https://github.com/pollen8/joomla-platform.git) PHP · 370 lines
1 <?php
2 /**
3 * @package Joomla.Platform
102 }
104 // If user and pass are not set in global config lets see if they are in the session
105 <<<<<<< HEAD
106 if ($options['enabled'] == true && ($options['user'] == '' || $options['pass'] == '')) {
269 if ($options['enabled'] == false) {
270 // The client is disabled in global config, so let's pretend we are OK
271 $return = true;
272 } else if ($options['user'] != '' && $options['pass'] != '') {
273 // Login credentials are available in global config
274 $return = true;
275 } else {
plugins.php (https://github.com/sarriaroman/Cronos-Aion.git) PHP · 389 lines
1 <?php
3 /**
78 * Add a setting for plugin
79 *
80 * @global <type> $dbprefix
81 * @param <String> $key identifier
82 * @param <String> $default default value
178 $plg = Plugin::getByPath($plugin);
180 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section );
181 } else {
182 $permalink = getPermalink(0);
204 $plg = Plugin::getByPath($plugin);
206 return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '§ion=' . $section . "&module=" . $module );
207 } else {
208 $permalink = getPermalink(0);
arrayptr_runme.php4 (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 16 lines
Provider.class.php (https://github.com/md-tech/openemr.git) PHP · 629 lines
1 <?php
2 require_once("DataObjectBase.class.php");
63 $sql = "SELECT * FROM users where id = '" . $key . "'";
64 //echo $sql;
65 $db = $GLOBALS['adodb']['db'];
66 $results = $db->Execute($sql);
95 $sql = "SELECT * FROM users where id = '" . $key . "'";
96 //echo $sql;
97 $db = $GLOBALS['adodb']['db'];
98 $results = $db->Execute($sql);
128 $sql = "SELECT * FROM users where id = '" . $key . "'";
129 //echo $sql;
130 $db = $GLOBALS['adodb']['db'];
131 $results = $db->Execute($sql);
shapes_test.php (https://github.com/markn86/moodle.git) PHP · 165 lines
HookApi.php (https://gitlab.com/iamgraeme/royalmile) PHP · 337 lines
1 <?php
2 namespace WebSharks\HtmlCompressor;
36 public function __construct()
37 {
38 if (empty($GLOBALS[__NAMESPACE__.'_early_hooks'])) {
39 return; // Nothing more to do here.
40 }
41 $GLOBALS[__NAMESPACE__.'_early_hooks'] = (array) $GLOBALS[__NAMESPACE__.'_early_hooks'];
42 $early_hooks = &$GLOBALS[__NAMESPACE__.'_early_hooks'];
resultslib.php (https://github.com/jarednipper/HSU-common-code.git) PHP · 251 lines
1 <?php // $Id: resultslib.php,v 1.5 2007/06/12 17:04:48 mchurch Exp $
3 // Written by James Flemer
124 <?php } ?>
125 </table>
126 <?php
127 }
128 /* }}} */
180 ?>
181 <table width="90%" border="0" cellpadding="1">
182 <tr><th align="left"><?php print_string('num', 'questionnaire'); ?></th><th><?php print_string('response', 'questionnaire'); ?></th></tr>
183 <?php
208 <tr>
209 <td></td>
210 <td align="center" colspan="<?php echo($length+2); ?>"><?php print_string('averagerank', 'questionnaire'); ?></td>
211 </tr>
212 <tr>
Relationship.php (https://github.com/bhirsch/voipdrupal-4.7-1.0.git) PHP · 210 lines
1 <?php
2 /*
3 +--------------------------------------------------------------------+
36 */
38 $GLOBALS['_CRM_CONTACT_PAGE_VIEW_RELATIONSHIP']['_links'] = null;
40 require_once 'CRM/Contact/Page/View.php';
162 function &links()
163 {
164 if (!($GLOBALS['_CRM_CONTACT_PAGE_VIEW_RELATIONSHIP']['_links'])) {
165 $deleteExtra = ts('Are you sure you want to delete this relationship?');
166 $disableExtra = ts('Are you sure you want to disable this relationship?');
167 $enableExtra = ts('Are you sure you want to re-enable this relationship?');
169 $GLOBALS['_CRM_CONTACT_PAGE_VIEW_RELATIONSHIP']['_links'] = array(
170 CRM_CORE_ACTION_VIEW => array(
171 'name' => ts('View'),
octave.cxx
(https://swig.svn.sourceforge.net/svnroot/swig)
C++ · 1411 lines
✨ Summary
This C++ code is a part of the SWIG (Simplified Interface to GNU Compiler Collection) compiler, specifically for generating an interface between C++ and Octave. It defines a class OCTAVE
that inherits from Language
, which represents a programming language. The class contains methods for compiling and linking the generated code, as well as functions for including system files and determining default runtime filenames.
This C++ code is a part of the SWIG (Simplified Interface to GNU Compiler Collection) compiler, specifically for generating an interface between C++ and Octave. It defines a class OCTAVE
that inherits from Language
, which represents a programming language. The class contains methods for compiling and linking the generated code, as well as functions for including system files and determining default runtime filenames.
27 File *f_directors;
28 File *f_directors_h;
29 String *s_global_tab;
30 String *s_members_tab;
31 String *class_name;
40 OCTAVE():f_runtime(0), f_header(0), f_doc(0), f_wrappers(0),
41 f_init(0), f_initbeforefunc(0), f_directors(0), f_directors_h(0),
42 s_global_tab(0), s_members_tab(0), class_name(0) {
43 /* Add code to manage protected constructors and directors */
44 director_prot_ctor_code = NewString("");
134 Printf(f_runtime, "\n");
136 Printf(s_global_tab, "\nstatic const struct swig_octave_member swig_globals[] = {\n");
137 Printf(f_init, "static void SWIG_init_user(octave_swig_type* module_ns)\n{\n");
head.S
(http://omnia2droid.googlecode.com/svn/trunk/)
Assembly · 233 lines
✨ Summary
This Assembly code initializes and sets up the kernel for a MIPS-based system. It performs CPU-specific setup, enables interrupts, clears exception flags, and reserves space for exception handlers. The code also handles booting on different platforms, including SMP (Symmetric Multi-Processing) and SMTC (Symmetric Multi-Threading with Cores). It jumps to the kernel entry point and initializes the stack and GP registers before starting the kernel execution.
This Assembly code initializes and sets up the kernel for a MIPS-based system. It performs CPU-specific setup, enables interrupts, clears exception flags, and reserves space for exception handlers. The code also handles booting on different platforms, including SMP (Symmetric Multi-Processing) and SMTC (Symmetric Multi-Threading with Cores). It jumps to the kernel entry point and initializes the stack and GP registers before starting the kernel execution.
50 dsll t1, 6 # Get pfn into place
51 dsll t2, 6 # Get pfn into place
52 li t0, ((_PAGE_GLOBAL|_PAGE_VALID| _CACHE_CACHABLE_COW) >> 6)
53 or t0, t0, t1
54 mtc0 t0, CP0_ENTRYLO0 # physaddr, VG, cach exlwr
55 li t0, ((_PAGE_GLOBAL|_PAGE_VALID| _PAGE_DIRTY|_CACHE_CACHABLE_COW) >> 6)
56 or t0, t0, t2
57 mtc0 t0, CP0_ENTRYLO1 # physaddr, DVG, cach exlwr
90 mtc0 t0, CP0_TCSTATUS
91 _ehb
92 /* We need to leave the global IE bit set, but clear EXL...*/
93 mfc0 t0, CP0_STATUS
94 or t0, ST0_CU0 | ST0_EXL | ST0_ERL | \set | \clr
JavaScriptShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 114 lines
✨ Summary
This Java code implements a JavaScript shell for an integrated development environment (IDE). It allows users to execute JavaScript commands, print output, and run scripts from files. The shell uses a ScriptEngineManager to manage the JavaScript engine and provides a way to set global variables and interact with the IDE’s view and text area.
This Java code implements a JavaScript shell for an integrated development environment (IDE). It allows users to execute JavaScript commands, print output, and run scripts from files. The shell uses a ScriptEngineManager to manage the JavaScript engine and provides a way to set global variables and interact with the IDE’s view and text area.
54 return;
55 }
56 setGlobals(console.getView());
57 try {
58 Object retVal = engine.eval(command);
77 }
79 private static void setGlobals(View view) {
80 engine.put("view", view);
81 engine.put("textArea", view == null ? null : view.getTextArea());
96 }
97 //Log.log(Log.DEBUG, JavaScriptShell.class, code.toString());
98 setGlobals(view);
99 engine.eval(code.toString());
100 } catch (Exception e) {
getuser.S
(http://omnia2droid.googlecode.com/svn/trunk/)
Assembly · 68 lines
✨ Summary
This Assembly code implements a set of functions for getting user input on ARM architectures, specifically designed to be efficient and non-standard. It provides four variants (__get_user_1
, __get_user_2
, __get_user_4
) that handle different types of input, as well as an error handling function (__get_user_bad
). The code is part of the Linux kernel’s architecture-specific implementation for user access control.
This Assembly code implements a set of functions for getting user input on ARM architectures, specifically designed to be efficient and non-standard. It provides four variants (__get_user_1
, __get_user_2
, __get_user_4
) that handle different types of input, as well as an error handling function (__get_user_bad
). The code is part of the Linux kernel’s architecture-specific implementation for user access control.
ar.h
(https://bitbucket.org/freebsd/freebsd-head/)
C++ Header · 126 lines
✨ Summary
This is a C header file that defines an implementation of the ar
(archive) command, used for managing and extracting archives. It provides functions and data structures for handling archive members, symbol tables, and error handling. The code also includes constants for various options and modes, such as compression, verbosity, and extraction behavior.
This is a C header file that defines an implementation of the ar
(archive) command, used for managing and extracting archives. It provides functions and data structures for handling archive members, symbol tables, and error handling. The code also includes constants for various options and modes, such as compression, verbosity, and extraction behavior.
MonkeyModule.cpp
(git://github.com/appcelerator/titanium_desktop.git)
C++ · 39 lines
✨ Summary
This C++ code defines a module for the Titanium framework, specifically for interacting with the Monkey JavaScript engine. It initializes and sets up the Monkey binding, making it available as a global object in the Titanium environment. The Initialize
method loads variables and sets the “Monkey” property on the global object, while the Stop
method is empty and does nothing.
This C++ code defines a module for the Titanium framework, specifically for interacting with the Monkey JavaScript engine. It initializes and sets up the Monkey binding, making it available as a global object in the Titanium environment. The Initialize
method loads variables and sets the “Monkey” property on the global object, while the Stop
method is empty and does nothing.
InclusionExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 261 lines
✨ Summary
This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression
and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.
This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression
and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20 package net.sourceforge.phpdt.internal.compiler.ast;
22 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;
23 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
25 import java.util.List;
27 import gatchan.phpparser.project.itemfinder.PHPItem;
28 import gatchan.phpparser.parser.PHPParserConstants;
29 import gatchan.phpparser.parser.PHPParser;
30 import sidekick.IAsset;
BeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 815 lines
✨ Summary
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides a framework for executing scripts and managing class loading, exception handling, and other runtime operations. The code defines various classes and methods that work together to provide a robust and flexible scripting environment.
This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides a framework for executing scripts and managing class loading, exception handling, and other runtime operations. The code defines various classes and methods that work together to provide a robust and flexible scripting environment.
74 return;
75 }
76 Object returnValue = eval(view,global,command);
77 if(returnValue != null)
78 textArea.setSelectedText(returnValue.toString());
104 for(int i = 0; i < repeat; i++)
105 {
106 returnValue = _eval(view,global,command);
107 }
108 }
170 buffer.beginCompoundEdit();
172 BeanShell.eval(view,global,script);
173 }
174 finally
shortcuts.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 671 lines
JSCSSStyleSheet.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 82 lines
38 static const JSC::ClassInfo s_info;
40 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
41 {
42 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
56 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
57 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
58 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
59 {
60 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
61 }
62 JSCSSStyleSheetPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
63 protected:
64 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
JSHTMLBlockquoteElement.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 179 lines
71 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
72 static const JSC::ClassInfo s_info;
73 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
74 {
75 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
121 const ClassInfo JSHTMLBlockquoteElement::s_info = { "HTMLBlockquoteElement", &JSHTMLElement::s_info, &JSHTMLBlockquoteElementTable, 0 };
123 JSHTMLBlockquoteElement::JSHTMLBlockquoteElement(Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<HTMLBlockquoteElement> impl)
124 : JSHTMLElement(structure, globalObject, impl)
129 JSObject* JSHTMLBlockquoteElement::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
130 {
131 return new (exec) JSHTMLBlockquoteElementPrototype(exec->globalData(), globalObject, JSHTMLBlockquoteElementPrototype::createStructure(exec->globalData(), JSHTMLElementPrototype::self(exec, globalObject)));
132 }
173 JSValue JSHTMLBlockquoteElement::getConstructor(ExecState* exec, JSGlobalObject* globalObject)
174 {
175 return getDOMConstructor<JSHTMLBlockquoteElementConstructor>(exec, static_cast<JSDOMGlobalObject*>(globalObject));
176 }
background_page.htm
(http://onlinedict.googlecode.com/svn/trunk/)
HTML · 80 lines
✨ Summary
This HTML code is a basic structure for a web page that interacts with a Chrome extension. It loads JavaScript files, initializes a dictionary database, and defines functions to save new words and update existing ones. The code also handles color options and communicates with the Chrome extension through event listeners, sending data back and forth between the webpage and the extension.
This HTML code is a basic structure for a web page that interacts with a Chrome extension. It loads JavaScript files, initializes a dictionary database, and defines functions to save new words and update existing ones. The code also handles color options and communicates with the Chrome extension through event listeners, sending data back and forth between the webpage and the extension.
generated_by_smalltalk.self (git://github.com/ticking/self.git) Unknown · 78 lines
8 '-- Module body'
10 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'modules' -> () From: ( | {
11 'ModuleInfo: Module: generated_by_smalltalk InitialContents: FollowSlot'
13 generated_by_smalltalk = bootstrap define: bootstrap stub -> 'globals' -> 'modules' -> 'generated_by_smalltalk' -> () ToBe: bootstrap addSlotsTo: (
14 bootstrap remove: 'comment' From:
15 bootstrap remove: 'directory' From:
18 bootstrap remove: 'revision' From:
19 bootstrap remove: 'subpartNames' From:
20 globals modules init copy ) From: bootstrap setObjectAnnotationOf: bootstrap stub -> 'globals' -> 'modules' -> 'generated_by_smalltalk' -> () From: ( |
21 {} = 'ModuleInfo: Creator: globals modules generated_by_smalltalk.
23 CopyDowns:
24 globals modules init. copy
25 SlotsToOmit: comment directory fileInTimeString postFileIn revision subpartNames.
actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines
134 <LITERAL2>undefined</LITERAL2>
136 <!-- Global functions -->
137 <LITERAL2>Boolean</LITERAL2>
138 <LITERAL2>call</LITERAL2>
208 <LITERAL2>getBytesTotal</LITERAL2>
209 <LITERAL2>getDepth</LITERAL2>
210 <LITERAL2>globalToLocal</LITERAL2>
211 <LITERAL2>hitTest</LITERAL2>
212 <LITERAL2>localToGlobal</LITERAL2>
419 <!-- Function -->
420 <LITERAL2>_global</LITERAL2>
421 <LITERAL2>apply</LITERAL2>
JSRealtimeAnalyserNode.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 317 lines
80 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
81 static const JSC::ClassInfo s_info;
82 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
83 {
84 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
151 JSObject* JSRealtimeAnalyserNode::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
152 {
153 return new (exec) JSRealtimeAnalyserNodePrototype(exec->globalData(), globalObject, JSRealtimeAnalyserNodePrototype::createStructure(exec->globalData(), JSAudioNodePrototype::self(exec, globalObject)));
154 }
307 }
309 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, RealtimeAnalyserNode* impl)
310 {
311 return wrap<JSRealtimeAnalyserNode>(exec, globalObject, impl);
director_frob_runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 20 lines
✨ Summary
This PHP code is a test script that verifies the functionality of various functions, classes, and global variables in a specific context. It creates an instance of the Bravo
class, calls its abs_method()
function, and checks if the result matches the expected output using assertions. If all tests pass, it outputs “done”.
This PHP code is a test script that verifies the functionality of various functions, classes, and global variables in a specific context. It creates an instance of the Bravo
class, calls its abs_method()
function, and checks if the result matches the expected output using assertions. If all tests pass, it outputs “done”.
1 <?php
3 require "tests.php";
4 require "director_frob.php";
6 // No new functions
9 check::classes(array(Alpha,Bravo,Charlie,Delta,Ops,Prims,corePoint3d,coreCallbacks_On3dEngineRedrawnData,coreCallbacksOn3dEngineRedrawnData,coreCallbacks));
10 // now new vars
11 check::globals(array(corecallbacks_on3dengineredrawndata__eye,corecallbacks_on3dengineredrawndata__at,corecallbackson3dengineredrawndata__eye,corecallbackson3dengineredrawndata__at));
13 $foo = new Bravo();
start_em.F
(git://github.com/jbeezley/wrf-fire.git)
FORTRAN Legacy · 1385 lines
✨ Summary
This FORTRAN legacy code initializes and sets up a domain for a weather forecasting model, specifically the Weather Research and Forecasting (WRF) model with chemical components. It allocates memory, calls various initialization subroutines, and performs halo operations to handle parallel processing. The code also handles fire-related features and debug messages, indicating its role in preparing the model’s internal state for simulation.
This FORTRAN legacy code initializes and sets up a domain for a weather forecasting model, specifically the Weather Research and Forecasting (WRF) model with chemical components. It allocates memory, calls various initialization subroutines, and performs halo operations to handle parallel processing. The code also handles fire-related features and debug messages, indicating its role in preparing the model’s internal state for simulation.
93 CHARACTER (LEN=132) :: message
94 TYPE(WRFU_TimeInterval) :: stepTime
95 REAL, DIMENSION(:,:), ALLOCATABLE :: clat_glob
96 logical :: f_flux ! flag for computing averaged fluxes in cu_gd
141 ALLOCATE( clat_glob(ids:ide,jds:jde) )
143 CALL wrf_patch_to_global_real ( grid%clat, clat_glob, grid%domdesc, 'xy', 'xy', &
144 ids, ide, jds, jde, 1, 1, &
145 ims, ime, jms, jme, 1, 1, &
146 its, ite, jts, jte, 1, 1 )
148 CALL wrf_dm_bcast_real ( clat_glob , (ide-ids+1)*(jde-jds+1) )
150 grid%clat_xxx(ipsx:ipex,jpsx:jpex) = clat_glob(ipsx:ipex,jpsx:jpex)
qUI2Events.self (git://github.com/ticking/self.git) Unknown · 284 lines
18 bootstrap remove: 'revision' From:
19 bootstrap remove: 'subpartNames' From:
20 globals modules init copy ) From: bootstrap setObjectAnnotationOf: bootstrap stub -> 'globals' -> 'modules' -> 'qUI2Events' -> () From: ( |
21 {} = 'ModuleInfo: Creator: globals modules qUI2Events.
66 } | )
68 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'quartzGlobals' -> () From: ( | {
69 'Comment: Supports platform independent usage of events
70 combined with platform specific initialization:
75 ui2Event = bootstrap define: bootstrap stub -> 'globals' -> 'quartzGlobals' -> 'ui2Event' -> () ToBe: bootstrap addSlotsTo: (
76 bootstrap remove: 'parent' From:
77 globals abstractUI2Event copy ) From: bootstrap setObjectAnnotationOf: bootstrap stub -> 'globals' -> 'quartzGlobals' -> 'ui2Event' -> () From: ( |
78 {} = 'ModuleInfo: Creator: globals quartzGlobals ui2Event.
99 } | )
101 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'quartzGlobals' -> 'ui2Event' -> () From: ( | {
102 'ModuleInfo: Module: qUI2Events InitialContents: FollowSlot\x7fVisibility: public'
qsql_psql.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1372 lines
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.
65 String filenameGlob = (String)getProperty("filenameGlob");
66 if(filenameGlob != null && filenameGlob.length() != 0)
67 {
68 filenameRE = new RE(MiscUtilities.globToRE(
226 String filenameGlob = (String)this.props.get("filenameGlob");
227 String firstlineGlob = (String)this.props.get("firstlineGlob");
228 String filename = (String)this.props.get("file");
229 this.props = props;
230 if(filenameGlob != null)
231 props.put("filenameGlob",filenameGlob);
232 if(firstlineGlob != null)
233 props.put("firstlineGlob",firstlineGlob);
234 if(filename != null)
235 props.put("file",filename);
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 470 lines
101 <sect1 id="configuration"><title>Configuring Ant Farm</title>
102 <para>To configure Ant Farm, access <guimenu>Global Options</guimenu> ->
103 <guilabel>Plugin Options</guilabel> -> <guilabel>Ant Farm</guilabel> ->
104 <guilabel>Build Options</guilabel>.
136 </para>
137 <para>
138 Additionally, you can specify global properties that will be passed to Ant.
139 Access <guimenu>Global Options</guimenu> ->
143 you run a target. To turn this feature off, click <guilabel>Do not prompt for
144 properties when running targets</guilabel>. Properties specified at target
145 runtime are not added to the global properties list.
146 </para>
147 <para>
180 displays the AntFarm window. This window is floating by default, but can be
181 made to dock into the view in the <guilabel>Docking</guilabel> pane of the
182 <guimenuitem>Global Options</guimenuitem> dialog box.
183 </para>
qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines
ComplexSchemaValidation19.xsd (https://bitbucket.org/nbargnesi/idea.git) XML Schema · 14453 lines
949 <xs:annotation>
950 <xs:documentation>Type:Boolean - When this is true any XML object that has an id attribute will create a
951 global reference to the object created from this XML element. This property
952 is mapped to the xmlResourceParser as well as the resource
953 loader used to load the resources.
makefile.jmk (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 76 lines
23 packages = "astyleplugin" "astyle" "astyle/util" "org/gjt/sp/jedit/gui" "org/gjt/sp/jedit/options" ".";
24 sources = (glob (join packages, "/*.java"));
25 classes = (subst ".java", ".class", sources);
33 {
34 exec jar_cmd @
35 (glob
36 (join packages, "/*.class")
37 (join packages, "/*.gif")
65 {
66 -delete
67 (glob
68 (join packages, "/*.class")
69 (join packages, "/*~")
JSSVGFontFaceNameElement.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 76 lines
41 static const JSC::ClassInfo s_info;
43 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
44 {
45 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
57 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
58 static const JSC::ClassInfo s_info;
59 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
60 {
61 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
62 }
63 JSSVGFontFaceNameElementPrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure) : JSC::JSObjectWithGlobalObject(globalData, globalObject, structure) { }
64 protected:
65 static const unsigned StructureFlags = Base::StructureFlags;
JSWebGLUniformLocation.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 167 lines
70 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
71 static const JSC::ClassInfo s_info;
72 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)
73 {
74 return JSC::Structure::create(globalData, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), AnonymousSlotCount, &s_info);
129 JSObject* JSWebGLUniformLocation::createPrototype(ExecState* exec, JSGlobalObject* globalObject)
130 {
131 return new (exec) JSWebGLUniformLocationPrototype(exec->globalData(), globalObject, JSWebGLUniformLocationPrototype::createStructure(globalObject->globalData(), globalObject->objectPrototype()));
132 }
153 }
155 JSC::JSValue toJS(JSC::ExecState* exec, JSDOMGlobalObject* globalObject, WebGLUniformLocation* impl)
156 {
157 return wrap<JSWebGLUniformLocation>(exec, globalObject, impl);
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
OSXAdapter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java code creates an adapter that communicates with native functions of macOS, allowing for custom application behavior. It sets up event listeners to handle various application events, such as quit, about, and preferences menus, and allows developers to override these behaviors by providing their own implementation methods. The adapter uses reflection to interact with the native macOS API.
This Java code creates an adapter that communicates with native functions of macOS, allowing for custom application behavior. It sets up event listeners to handle various application events, such as quit, about, and preferences menus, and allows developers to override these behaviors by providing their own implementation methods. The adapter uses reflection to interact with the native macOS API.
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 992 lines
✨ Summary
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.
176 if ( namespace == null )
177 this.globalNameSpace = new NameSpace("global");
178 else
179 this.globalNameSpace = namespace;
294 public void setNameSpace( NameSpace globalNameSpace ) {
295 this.globalNameSpace = globalNameSpace;
296 }
492 if ( callstack.depth() > 1 ) {
493 callstack.clear();
494 callstack.push( globalNameSpace );
495 }
496 }
834 public void setVariable(String name, Object value)
835 {
836 try { globalNameSpace.setVariable(name, value); }
837 catch(EvalError e) { error(e.toString()); }
838 }
assembly-r2000.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 258 lines
AnnotatedMembersSearcher.java (https://bitbucket.org/nbargnesi/idea.git) Java · 136 lines
22 import com.intellij.psi.*;
23 import com.intellij.psi.impl.search.AnnotatedElementsSearcher;
24 import com.intellij.psi.search.GlobalSearchScope;
25 import com.intellij.psi.search.LocalSearchScope;
26 import com.intellij.psi.search.SearchScope;
49 @NotNull
50 private static List<PsiModifierListOwner> getAnnotatedMemberCandidates(final PsiClass clazz, final GlobalSearchScope scope) {
51 final String name = clazz.getName();
52 if (name == null) return Collections.emptyList();
91 final List<PsiModifierListOwner> candidates;
92 if (scope instanceof GlobalSearchScope) {
93 candidates = getAnnotatedMemberCandidates(annClass, ((GlobalSearchScope)scope));
AddAbbrevDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 124 lines
✨ Summary
This Java code creates a dialog box for adding abbreviations to a text editor, specifically JEdit. The dialog allows users to input an abbreviation and its expansion, with options to apply the abbreviation globally or in a specific mode. It also includes buttons for canceling and expanding the abbreviation if it matches the one being edited.
This Java code creates a dialog box for adding abbreviations to a text editor, specifically JEdit. The dialog allows users to input an abbreviation and its expansion, with options to apply the abbreviation globally or in a specific mode. It also includes buttons for canceling and expanding the abbreviation if it matches the one being edited.
20 private View view;
21 private AbbrevEditor editor;
22 private JButton global;
23 private JButton modeSpecific;
24 private JButton cancel;
46 Box box = new Box(BoxLayout.X_AXIS);
47 box.add(Box.createGlue());
48 global = new JButton(jEdit.getProperty("add-abbrev.global"));
49 global.addActionListener(new ActionHandler());
50 box.add(global);
51 box.add(Box.createHorizontalStrut(6));
52 modeSpecific = new JButton(jEdit.getProperty("add-abbrev.mode"));
73 modeSpecific.setMnemonic(KeyEvent.VK_M);
74 global.setMnemonic(KeyEvent.VK_G);
75 cancel.setMnemonic(KeyEvent.VK_C);
assembly-parrot.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 139 lines
starting.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 320 lines
43 jEdit remembers open buffers, views and split window configurations between editing sessions, so you can get back to work immediately after starting jEdit. This feature can be
44 disabled in the <guibutton>General</guibutton> pane of the
45 <guimenu>Utilities</guimenu>><guimenuitem>Global Options</guimenuitem>
46 dialog box see <xref linkend="general-pane" />.
47 </para>
188 This feature can also be set permanently in the
189 <guibutton>General</guibutton> pane of the
190 <guimenu>Utilities</guimenu>><guimenuitem>Global Options</guimenuitem>
191 dialog box; see <xref linkend="general-pane" />.
192 </entry>
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
1 <?php
3 /**
31 // Legacy bbPress config location
32 'bb-config-location' => ABSPATH . 'bb-config.php',
34 /** XProfile **********************************************************/
165 * @since BuddyPress (1.6)
166 *
167 * @global BuddyPress $bp
168 * @param bool $value Optional. Default value false
169 * @return mixed false if not overloaded, mixed if set
170 */
171 function bp_pre_get_option( $value = false ) {
172 global $bp;
174 // Get the name of the current filter so we can manipulate it
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines
53 list window. This window is floating by default, but it can be made to
54 dock into the view in the <guibutton>Docking</guibutton> pane of the
55 <guimenuitem>Global Options</guimenuitem> dialog box.
56 </para>
90 <para>
91 Error highlighting can be disabled in the <guibutton>Error List</guibutton> pane
92 of the <guimenuitem>Global Options</guimenuitem> dialog box. The colors of
93 the underlines can also be changed in that same option pane.
94 </para>
101 The ErrorList plugin provides a few additional commands that can be bound to
102 keyboard shortcuts in the <guibutton>Shortcuts</guibutton> pane of the
103 <guimenuitem>Global Options</guimenuitem> dialog box.
104 </para>
configurablefolding.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 109 lines
✨ Summary
This HTML code outputs a documentation page for a jEdit plugin, “Configurable Fold Handler”. It explains how to enable and configure folding in jEdit, including setting fold strings, using regular expressions, and handling multiple fold strings. The page provides examples of valid and invalid fold strings, as well as instructions on how to use the plugin’s settings.
This HTML code outputs a documentation page for a jEdit plugin, “Configurable Fold Handler”. It explains how to enable and configure folding in jEdit, including setting fold strings, using regular expressions, and handling multiple fold strings. The page provides examples of valid and invalid fold strings, as well as instructions on how to use the plugin’s settings.
20 "custom". This is done from the folding mode drop downs
21 in the buffer options dialog or by setting the default folding mode
22 in global options->editing or global options->mode-specific options
23 panes.
24 </p>
27 Different fold strings can be specified for each edit mode and for
28 individual buffers. Fold settings work in the same way as for other
29 buffer settings. Global and mode-specific options are retained
30 between jEdit sessions but buffer-specific fold strings are only
31 retained as long as the buffer remains open.
Jump.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 166 lines
✨ Summary
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
This Java code is part of a plugin for the JEdit text editor, providing functionality for jumping between different parts of a project, such as files, tags, and folds. It checks if the plugin is enabled and if a project is loaded before performing actions like showing lists of files, tags, or jumps to specific locations in the text.
IURIResolver.as
(http://flowplayer-core.googlecode.com/svn/)
ActionScript · 79 lines
✨ Summary
This ActionScript code defines an interface IURIResolver
that provides a custom URI resolution mechanism for the URI
class. It allows applications to resolve DNS aliases, virtual hosts, and symbolic links before comparing URIs. The interface has a single method resolve(uri:URI) : URI
that returns a resolved URI.
This ActionScript code defines an interface IURIResolver
that provides a custom URI resolution mechanism for the URI
class. It allows applications to resolve DNS aliases, virtual hosts, and symbolic links before comparing URIs. The interface has a single method resolve(uri:URI) : URI
that returns a resolved URI.
tree.h (https://bitbucket.org/Tsiannian/cocos2d-x.git) C++ Header · 1253 lines
350 struct _xmlNs {
351 struct _xmlNs *next; /* next Ns link for this node */
352 xmlNsType type; /* global or local */
353 const xmlChar *href; /* URL for the namespace */
354 const xmlChar *prefix; /* prefix for the namespace */
531 struct _xmlDtd *intSubset; /* the document internal subset */
532 struct _xmlDtd *extSubset; /* the document external subset */
533 struct _xmlNs *oldNs; /* Global namespace, the old way */
534 const xmlChar *version; /* the XML version string */
535 const xmlChar *encoding; /* external initial encoding, if any */
720 #ifdef LIBXML_LEGACY_ENABLED
721 XMLPUBFUN xmlNsPtr XMLCALL
722 xmlNewGlobalNs (xmlDocPtr doc,
723 const xmlChar *href,
724 const xmlChar *prefix);
rolelist.aspx.designer.cs
(http://uniquestudiocms.googlecode.com/svn/trunk/)
C# · 53 lines
✨ Summary
This C# code defines a class rolelist
within the namespace UniqueStudio.Admin.admin.background
. It contains three auto-generated fields: message
, rptList
, and ddlOperation
, as well as a button btnExcute
. These controls are likely part of an ASP.NET web page, used for displaying and interacting with data related to roles.
This C# code defines a class rolelist
within the namespace UniqueStudio.Admin.admin.background
. It contains three auto-generated fields: message
, rptList
, and ddlOperation
, as well as a button btnExcute
. These controls are likely part of an ASP.NET web page, used for displaying and interacting with data related to roles.
21 /// To modify move field declaration from designer file to code-behind file.
22 /// </remarks>
23 protected global::UniqueStudio.Admin.admin.controls.Message message;
25 /// <summary>
30 /// To modify move field declaration from designer file to code-behind file.
31 /// </remarks>
32 protected global::System.Web.UI.WebControls.Repeater rptList;
34 /// <summary>
39 /// To modify move field declaration from designer file to code-behind file.
40 /// </remarks>
41 protected global::System.Web.UI.WebControls.DropDownList ddlOperation;
43 /// <summary>
assembly-macro32.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 578 lines
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 171 lines
KeyEventTranslator.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 533 lines
✨ Summary
This Java code is part of a key event handling system, specifically designed for the JEdit text editor. It maps keyboard events to their corresponding key codes and provides methods to convert these codes back into human-readable strings. The code also handles modifier keys (Ctrl, Alt, Meta) and provides a way to identify whether an event applies to all JEdit windows or not.
This Java code is part of a key event handling system, specifically designed for the JEdit text editor. It maps keyboard events to their corresponding key codes and provides methods to convert these codes back into human-readable strings. The code also handles modifier keys (Ctrl, Alt, Meta) and provides a way to identify whether an event applies to all JEdit windows or not.
470 Wether this Key event applies to all jEdit windows (and not only a specific jEdit GUI component).
471 */
472 protected boolean isFromGlobalContext;
474 public Key(String modifiers, int key, char input)
514 }
516 public void setIsFromGlobalContext(boolean to)
517 {
518 isFromGlobalContext = to;
519 }
521 public boolean isFromGlobalContext()
522 {
523 return isFromGlobalContext;
php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines
11 </PROPS>
12 <RULES IGNORE_CASE="TRUE">
13 <SPAN TYPE="MARKUP" DELEGATE="PHP">
14 <BEGIN><?php</BEGIN>
16 </SPAN>
18 <SPAN TYPE="MARKUP" DELEGATE="PHP">
19 <BEGIN><?</BEGIN>
20 <END>?></END>
21 </SPAN>
23 <SPAN TYPE="MARKUP" DELEGATE="PHP">
24 <BEGIN><%=</BEGIN>
25 <END>%></END>
65 <RULES SET="TAGS" DEFAULT="MARKUP">
66 <SPAN TYPE="MARKUP" DELEGATE="PHP">
67 <BEGIN><?php</BEGIN>
jeBSP_HW.cpp
(https://jetpp.svn.sourceforge.net/svnroot/jetpp)
C++ · 597 lines
✨ Summary
This C++ code is part of a 3D graphics rendering engine, specifically handling the generation and management of geometry data for a BSP (Binary Space Partitioning) tree. It creates a mapping between materials and their corresponding vertex and index data, allowing for efficient rendering of 3D models with varying material properties.
This C++ code is part of a 3D graphics rendering engine, specifically handling the generation and management of geometry data for a BSP (Binary Space Partitioning) tree. It creates a mapping between materials and their corresponding vertex and index data, allowing for efficient rendering of 3D models with varying material properties.
483 }
484 BSP->HWPolyDatas = jeChain_Create();
485 BSP->HWHelper->GeneratePrimitive(BSP, &globalInfo);
487 if (BSP->Engine)
497 // Create a new geometry buffer
498 BSP->HWVertexBuffer = Driver->GeometryBuffer_Create(globalInfo.vertices.size(), globalInfo.indices.size(), JE_FALSE, jeBSP_HWXF_ResetListener, BSP);
500 // Move the jeHWVertex std::vector to a C array
504 }
505 // Copy the array to the Driver and free it
506 Driver->GeometryBuffer_AddVertices(BSP->HWVertexBuffer, pHWVertices, globalInfo.vertices.size(), JE_TRUE);
507 jeRam_Free(pHWVertices);
510 uint16* pIndices = JE_RAM_ALLOCATE_ARRAY(uint16, globalInfo.indices.size());
511 for (uint32 idx = 0; idx<globalInfo.indices.size(); idx++) {
512 pIndices[idx] = globalInfo.indices[idx];
VFS.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1149 lines
✨ Summary
This Java code is part of a file system browser for a text editor, likely NetBeans. It provides functionality to list files and directories in a file system, filter by type and name, and colorize file names based on regular expressions. The code also handles recursive directory traversal, symlinks, and binary files. It uses an internal configuration system to store user preferences, such as colorizing file names.
This Java code is part of a file system browser for a text editor, likely NetBeans. It provides functionality to list files and directories in a file system, filter by type and name, and colorize file names based on regular expressions. The code also handles recursive directory traversal, symlinks, and binary files. It uses an internal configuration system to store user preferences, such as colorizing file names.
614 * username and password (if needed by the VFS) is obtained from the
615 * session instance.
616 * @param glob Only file names matching this glob will be returned
617 * @param recursive If true, subdirectories will also be listed.
618 * @param comp The component that will parent error dialog boxes
639 * username and password (if needed by the VFS) is obtained from the
640 * session instance.
641 * @param glob Only file names matching this glob will be returned
642 * @param recursive If true, subdirectories will also be listed.
643 * @param comp The component that will parent error dialog boxes
657 throws IOException
658 {
659 VFSFileFilter filter = new GlobVFSFileFilter(glob);
660 return _listDirectory(session, directory, filter,
661 recursive, comp, skipBinary,
index-15.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 295 lines
✨ Summary
This HTML code is a navigation bar for a documentation website. It displays links to previous and next letters, as well as frames and no frames options. Below the navigation bar, there are links to various pages such as an overview, all classes, and help documentation. The page also includes a table of contents and a copyright notice at the bottom.
This HTML code is a navigation bar for a documentation website. It displays links to previous and next letters, as well as frames and no frames options. Below the navigation bar, there are links to various pages such as an overview, all classes, and help documentation. The page also includes a table of contents and a copyright notice at the bottom.
230 Static variable in interface org.gjt.sp.jedit.bsh.<A HREF="../org/gjt/sp/jedit/bsh/ParserConstants.html" title="interface in org.gjt.sp.jedit.bsh">ParserConstants</A>
231 <DD>
232 <DT><A HREF="../org/gjt/sp/jedit/package-summary.html"><B>org.gjt.sp.jedit</B></A> - package org.gjt.sp.jedit<DD>This package contains jEdit's core classes.<DT><A HREF="../org/gjt/sp/jedit/browser/package-summary.html"><B>org.gjt.sp.jedit.browser</B></A> - package org.gjt.sp.jedit.browser<DD>jEdit's file system browser.<DT><A HREF="../org/gjt/sp/jedit/bsh/package-summary.html"><B>org.gjt.sp.jedit.bsh</B></A> - package org.gjt.sp.jedit.bsh<DD> <DT><A HREF="../org/gjt/sp/jedit/bsh/classpath/package-summary.html"><B>org.gjt.sp.jedit.bsh.classpath</B></A> - package org.gjt.sp.jedit.bsh.classpath<DD> <DT><A HREF="../org/gjt/sp/jedit/bsh/collection/package-summary.html"><B>org.gjt.sp.jedit.bsh.collection</B></A> - package org.gjt.sp.jedit.bsh.collection<DD> <DT><A HREF="../org/gjt/sp/jedit/bsh/commands/package-summary.html"><B>org.gjt.sp.jedit.bsh.commands</B></A> - package org.gjt.sp.jedit.bsh.commands<DD> <DT><A HREF="../org/gjt/sp/jedit/bsh/org/objectweb/asm/package-summary.html"><B>org.gjt.sp.jedit.bsh.org.objectweb.asm</B></A> - package org.gjt.sp.jedit.bsh.org.objectweb.asm<DD> <DT><A HREF="../org/gjt/sp/jedit/bsh/reflect/package-summary.html"><B>org.gjt.sp.jedit.bsh.reflect</B></A> - package org.gjt.sp.jedit.bsh.reflect<DD> <DT><A HREF="../org/gjt/sp/jedit/buffer/package-summary.html"><B>org.gjt.sp.jedit.buffer</B></A> - package org.gjt.sp.jedit.buffer<DD>Buffer event listeners, and classes used to implement jEdit's document model.<DT><A HREF="../org/gjt/sp/jedit/bufferio/package-summary.html"><B>org.gjt.sp.jedit.bufferio</B></A> - package org.gjt.sp.jedit.bufferio<DD> <DT><A HREF="../org/gjt/sp/jedit/bufferset/package-summary.html"><B>org.gjt.sp.jedit.bufferset</B></A> - package org.gjt.sp.jedit.bufferset<DD> <DT><A HREF="../org/gjt/sp/jedit/gui/package-summary.html"><B>org.gjt.sp.jedit.gui</B></A> - package org.gjt.sp.jedit.gui<DD>Various GUI controls and dialog boxes.<DT><A HREF="../org/gjt/sp/jedit/gui/statusbar/package-summary.html"><B>org.gjt.sp.jedit.gui.statusbar</B></A> - package org.gjt.sp.jedit.gui.statusbar<DD> <DT><A HREF="../org/gjt/sp/jedit/help/package-summary.html"><B>org.gjt.sp.jedit.help</B></A> - package org.gjt.sp.jedit.help<DD>The jEdit help viewer.<DT><A HREF="../org/gjt/sp/jedit/indent/package-summary.html"><B>org.gjt.sp.jedit.indent</B></A> - package org.gjt.sp.jedit.indent<DD> <DT><A HREF="../org/gjt/sp/jedit/input/package-summary.html"><B>org.gjt.sp.jedit.input</B></A> - package org.gjt.sp.jedit.input<DD> <DT><A HREF="../org/gjt/sp/jedit/io/package-summary.html"><B>org.gjt.sp.jedit.io</B></A> - package org.gjt.sp.jedit.io<DD>Virtual file system and multi-threaded I/O.<DT><A HREF="../org/gjt/sp/jedit/menu/package-summary.html"><B>org.gjt.sp.jedit.menu</B></A> - package org.gjt.sp.jedit.menu<DD> <DT><A HREF="../org/gjt/sp/jedit/msg/package-summary.html"><B>org.gjt.sp.jedit.msg</B></A> - package org.gjt.sp.jedit.msg<DD>EditBus messages.<DT><A HREF="../org/gjt/sp/jedit/options/package-summary.html"><B>org.gjt.sp.jedit.options</B></A> - package org.gjt.sp.jedit.options<DD>Global Options dialog box panes.<DT><A HREF="../org/gjt/sp/jedit/pluginmgr/package-summary.html"><B>org.gjt.sp.jedit.pluginmgr</B></A> - package org.gjt.sp.jedit.pluginmgr<DD>The plugin manager.<DT><A HREF="../org/gjt/sp/jedit/print/package-summary.html"><B>org.gjt.sp.jedit.print</B></A> - package org.gjt.sp.jedit.print<DD>Printing.<DT><A HREF="../org/gjt/sp/jedit/proto/jeditresource/package-summary.html"><B>org.gjt.sp.jedit.proto.jeditresource</B></A> - package org.gjt.sp.jedit.proto.jeditresource<DD><code>jeditresource:</code> URL protocol handler, used to load
233 resources from plugin JAR files.<DT><A HREF="../org/gjt/sp/jedit/search/package-summary.html"><B>org.gjt.sp.jedit.search</B></A> - package org.gjt.sp.jedit.search<DD>Search and replace classes.<DT><A HREF="../org/gjt/sp/jedit/syntax/package-summary.html"><B>org.gjt.sp.jedit.syntax</B></A> - package org.gjt.sp.jedit.syntax<DD>The jEdit syntax highlighting engine.<DT><A HREF="../org/gjt/sp/jedit/textarea/package-summary.html"><B>org.gjt.sp.jedit.textarea</B></A> - package org.gjt.sp.jedit.textarea<DD> The classes in this package are in the process of being refactored, for jedit 4.3final.<DT><A HREF="../org/gjt/sp/jedit/visitors/package-summary.html"><B>org.gjt.sp.jedit.visitors</B></A> - package org.gjt.sp.jedit.visitors<DD> <DT><A HREF="../org/gjt/sp/util/package-summary.html"><B>org.gjt.sp.util</B></A> - package org.gjt.sp.util<DD>Utility classes used by jEdit but that do not depend on jEdit
234 itself.<DT><A HREF="../org/gjt/sp/jedit/textarea/Selection.html#overlaps(org.gjt.sp.jedit.textarea.Selection)"><B>overlaps(Selection)</B></A> -
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.
81 A prerequisite is that you assigned a keyboard shortcut to the plugin action
82 <B>Go to Buffer List</B>. You can assign keyboard shortcut to this action under
83 <B>Utilities>Global options>Shortcuts</B>. I suggest that you use
84 <B>"A+b"</B>.
85 </P>
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
141 <P>
142 Open <b>Utilities>Global options>Docking</b> to define
143 the position, where the Buffer List will be docked.
144 </P>
ErrorItem.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 94 lines
timezone.xml (git://github.com/landgraf/matreshka.git) XML · 451 lines
inform.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 206 lines
globals_eval_0x77.html
(http://micropolis.googlecode.com/svn/trunk/)
HTML · 72 lines
✨ Summary
This is a Doxygen-generated documentation file for a C++ project, specifically for Micropolis. It contains information about the classes and functions in the project, including their parameters, return types, and descriptions. The HTML code output includes navigation links to other pages in the documentation, as well as a list of all files included in the project.
This is a Doxygen-generated documentation file for a C++ project, specifically for Micropolis. It contains information about the classes and functions in the project, including their parameters, return types, and descriptions. The HTML code output includes navigation links to other pages in the documentation, as well as a list of all files included in the project.
19 <ul>
20 <li><a href="files.html"><span>File List</span></a></li>
21 <li class="current"><a href="globals.html"><span>File Members</span></a></li>
22 </ul>
23 </div>
24 <div class="tabs">
25 <ul>
26 <li><a href="globals.html"><span>All</span></a></li>
27 <li><a href="globals_func.html"><span>Functions</span></a></li>
28 <li><a href="globals_vars.html"><span>Variables</span></a></li>
29 <li><a href="globals_type.html"><span>Typedefs</span></a></li>
30 <li><a href="globals_enum.html"><span>Enumerations</span></a></li>
31 <li class="current"><a href="globals_eval.html"><span>Enumerator</span></a></li>
winfuncs.c (https://bitbucket.org/clivecrous/ruhack.git) C · 2451 lines
.cvsignore (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 336 lines
if_cscop.txt (https://code.google.com/p/msysgit/) Unknown · 491 lines
45 an argument to an existing function.
47 Rename a global variable in all source files.
49 Change a constant to a preprocessor symbol in selected lines of files.
53 Where is it defined?
54 Where did this variable get its value?
55 What is this global symbol's definition?
56 Where is this function in the source files?
57 What functions call this function?
156 Cscope tag: DEFAULT_TERM
157 # line filename / context / line
158 1 1009 vim-5.1-gtk/src/term.c <<GLOBAL>>
159 #define DEFAULT_TERM (char_u *)"amiga"
160 2 1013 vim-5.1-gtk/src/term.c <<GLOBAL>>
opl3.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 394 lines
✨ Summary
This is a C header file for an Open Sound System (OSS) module, specifically for the OPL3 sound chip. It defines data structures and functions for managing the OPL3’s hardware and software resources, including voice allocation, patch loading, and MIDI channel management. The code provides an interface between the OSS kernel and user-level applications that use the OPL3 sound chip.
This is a C header file for an Open Sound System (OSS) module, specifically for the OPL3 sound chip. It defines data structures and functions for managing the OPL3’s hardware and software resources, including voice allocation, patch loading, and MIDI channel management. The code provides an interface between the OSS kernel and user-level applications that use the OPL3 sound chip.
World.h
(git://github.com/SingularityCore/Singularity.git)
C Header · 829 lines
✨ Summary
This is a header file for the World class in the ACE library. It defines various constants and variables used by the World class, as well as some functions that are called by the World class to perform certain tasks.
This is a header file for the World class in the ACE library. It defines various constants and variables used by the World class, as well as some functions that are called by the World class to perform certain tasks.
618 void SendWorldText(int32 string_id, ...);
619 void SendGlobalText(const char* text, WorldSession* self);
620 void SendGMText(int32 string_id, ...);
621 void SendGlobalMessage(WorldPacket* packet, WorldSession* self = 0, uint32 team = 0);
622 void SendGlobalGMMessage(WorldPacket* packet, WorldSession* self = 0, uint32 team = 0);
623 void SendZoneMessage(uint32 zone, WorldPacket* packet, WorldSession* self = 0, uint32 team = 0);
624 void SendZoneText(uint32 zone, const char *text, WorldSession* self = 0, uint32 team = 0);
Modules.html
(https://swig.svn.sourceforge.net/svnroot/swig)
HTML · 350 lines
✨ Summary
This HTML code outputs a documentation page for SWIG, a software development tool that generates wrappers for C and C++ code to interface with multiple programming languages. The page explains various aspects of using SWIG, including importing modules, generating wrapper files, and optimizing their size. It also provides references and cautions about working with shared libraries and dynamically loaded modules.
This HTML code outputs a documentation page for SWIG, a software development tool that generates wrappers for C and C++ code to interface with multiple programming languages. The page explains various aspects of using SWIG, including importing modules, generating wrapper files, and optimizing their size. It also provides references and cautions about working with shared libraries and dynamically loaded modules.
33 depends on the target language, for example the name can define
34 a target language namespace or merely be a useful name for naming files or helper classes.
35 Essentially, a module comprises target language wrappers for a chosen collection of global variables/functions, structs/classes and other C/C++ types.
36 </p>
202 <p>
203 To solve the problem of sharing information across modules, a pointer to the
204 type information is stored in a global variable in the target language
205 namespace. During module initialization, type information is loaded into the
206 global data structure of type information from all modules.
209 <p>
210 There are a few trade offs with this approach. This type information is global
211 across all SWIG modules loaded, and can cause type conflicts between modules
212 that were not designed to work together. To solve this approach, the SWIG
313173-1-inner.xul (git://github.com/zpao/v8monkey.git) Unknown · 42 lines
matreshka-internals-atomics.ads
(git://github.com/landgraf/matreshka.git)
Ada · 50 lines
✨ Summary
This Ada code defines a package named Matreshka.Internals.Atomics
. It contains a single statement, pragma Pure;
, which is used to specify that all entities declared in this package are pure, meaning they have no side effects and always return the same result given the same inputs. This helps ensure predictable behavior in concurrent programs.
This Ada code defines a package named Matreshka.Internals.Atomics
. It contains a single statement, pragma Pure;
, which is used to specify that all entities declared in this package are pure, meaning they have no side effects and always return the same result given the same inputs. This helps ensure predictable behavior in concurrent programs.
ftpwindow.py
(http://editra-plugins.googlecode.com/svn/trunk/)
Python · 695 lines
✨ Summary
This is a Python class that implements a graphical user interface (GUI) component, specifically a file explorer widget. It displays a list of files and folders, allowing users to interact with them through context menus and keyboard shortcuts. The GUI updates dynamically in response to changes in the underlying data structure, such as when new files or folders are added or removed.
This is a Python class that implements a graphical user interface (GUI) component, specifically a file explorer widget. It displays a list of files and folders, allowing users to interact with them through context menus and keyboard shortcuts. The GUI updates dynamically in response to changes in the underlying data structure, such as when new files or folders are added or removed.
21 # Editra Libraries
22 import ed_glob
23 import ed_msg
24 from profiler import Profile_Get, Profile_Set
35 #-----------------------------------------------------------------------------#
36 # Globals
37 CONFIG_KEY = u"FtpEdit.Sites"
38 ID_SITES = wx.NewId()
121 # Preferences
122 self.prefbtn = self.AddPlateButton(u"", ed_glob.ID_PREF, wx.ALIGN_LEFT)
123 btn.SetToolTipString(_("Configuration"))
debugcom.ml
(git://github.com/multani/ocaml-mirror.git)
OCaml · 299 lines
✨ Summary
This OCaml code is a low-level interface for interacting with a remote system, likely a distributed computing environment. It provides functions for sending and receiving data, including values of various types (e.g., integers, strings), as well as remote references to objects. The code also handles marshalling and unmarshalling of data between the local and remote systems.
This OCaml code is a low-level interface for interacting with a remote system, likely a distributed computing environment. It provides functions for sending and receiving data, including values of various types (e.g., integers, strings), as well as remote references to objects. The code also handles marshalling and unmarshalling of data between the local and remote systems.