100+ results for 'php hash'
Not the results you expected?
Store.php (https://github.com/speedupmate/Magento-CE-Mirror.git) PHP · 510 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://opensource.org/licenses/osl-3.0.php
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Adminhtml
23 * @copyright Copyright (c) 2006-2020 Magento, Inc. (http://www.magento.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
283 * @return array
284 */
285 public function getWebsiteOptionHash($withDefault = false, $attribute = 'name')
286 {
287 $options = array();
ValueTaskTests.cs (https://gitlab.com/0072016/0072016-corefx-) C# · 380 lines
CsrfComponentTest.php (https://github.com/fiblan/cakephp.git) PHP · 308 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
72 $cookie = $controller->response->cookie('csrfToken');
73 $this->assertNotEmpty($cookie, 'Should set a token.');
74 $this->assertRegExp('/^[a-f0-9]+$/', $cookie['value'], 'Should look like a hash.');
75 $this->assertEquals(0, $cookie['expiry'], 'session duration.');
76 $this->assertEquals('/dir/', $cookie['path'], 'session path.');
CsrfComponentTest.php (https://gitlab.com/vannh/portal_training) PHP · 308 lines
1 <?php
2 /**
3 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
4 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
5 *
9 *
10 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
11 * @link http://cakephp.org CakePHP(tm) Project
12 * @since 3.0.0
13 * @license http://www.opensource.org/licenses/mit-license.php MIT License
72 $cookie = $controller->response->cookie('csrfToken');
73 $this->assertNotEmpty($cookie, 'Should set a token.');
74 $this->assertRegExp('/^[a-f0-9]+$/', $cookie['value'], 'Should look like a hash.');
75 $this->assertEquals(0, $cookie['expire'], 'session duration.');
76 $this->assertEquals('/dir/', $cookie['path'], 'session path.');
MappingTest.php (https://bitbucket.org/openplacement/sherlock.git) PHP · 306 lines
102 //no type, hashmap of properties
103 $hash = array("field" => 'testField');
104 $this->assertThrowsException(
105 '\sherlock\common\exceptions\BadMethodCallException',
111 //type, hashmap of properties
112 $hash = array("field" => 'testField');
113 $mapping = Sherlock::mappingBuilder('testType')->String($hash);
116 $this->assertEquals($expected, $data);
118 //type, hashmap of properties, but override the hashmap with a new value
119 $hash = array("field" => 'testField');
123 $this->assertEquals($expected, $data);
125 //type, hashmap of properties, but override the hashmap with a new value, add a boost
126 $hash = array("field" => 'testField');
hashtable.mzscheme.ss (https://github.com/LFY/bpm.git) Scheme · 270 lines
7 hash-table-ref hash-table-ref/default hash-table-set! hash-table-delete! hash-table-exists? hash-table-update! hash-table-update!/default
8 hash-table-size hash-table-keys hash-table-values hash-table-walk hash-table-fold hash-table->alist hash-table-copy hash-table-merge!
9 hash string-hash string-ci-hash hash-by-identity)
10 (import (except (rnrs) define-record-type error string-hash string-ci-hash symbol-hash)
11 (rnrs mutable-pairs (6))
12 (only (mzscheme) modulo)
63 ((>= index len) (modulo hashvalue bound))
64 (set! hashvalue (modulo (+ (* 257 hashvalue) (hash (vector-ref v index)))
65 *default-bound*)))))
153 (let* ((new-length (* 2 hash-length))
154 (new-entries (make-vector new-length '()))
155 (hash (hash-table-hash-function hash-table)))
156 (%hash-table-walk
176 (define (hash-table-set! hash-table key value)
177 (let ((hash (%hash-table-hash hash-table key))
178 (entries (hash-table-entries hash-table)))
class-Shoestrap_Color.php (https://gitlab.com/aristath/shoestrap-3) PHP · 481 lines
1 <?php
14 *
15 * @var string The hex value of a color
16 * @param boolean Whether we want to include a hash (#) at the beginning or not
17 * @return string The sanitized hex color.
18 */
19 public static function sanitize_hex( $color = '#FFFFFF', $hash = true ) {
21 // Remove any spaces and special characters before and after the string
38 $hex = implode( '', $substr );
40 return ( ! $hash ) ? $hex : '#' . $hex;
42 }
hashtable.ikarus.ss (https://github.com/EgoIncarnate/bpm.git) Scheme · 270 lines
7 hash-table-ref hash-table-ref/default hash-table-set! hash-table-delete! hash-table-exists? hash-table-update! hash-table-update!/default
8 hash-table-size hash-table-keys hash-table-values hash-table-walk hash-table-fold hash-table->alist hash-table-copy hash-table-merge!
9 hash string-hash string-ci-hash hash-by-identity)
10 (import (except (rnrs) define-record-type error string-hash string-ci-hash symbol-hash)
11 (rnrs mutable-pairs (6))
12 (only (ikarus) modulo)
63 ((>= index len) (modulo hashvalue bound))
64 (set! hashvalue (modulo (+ (* 257 hashvalue) (hash (vector-ref v index)))
65 *default-bound*)))))
153 (let* ((new-length (* 2 hash-length))
154 (new-entries (make-vector new-length '()))
155 (hash (hash-table-hash-function hash-table)))
156 (%hash-table-walk
176 (define (hash-table-set! hash-table key value)
177 (let ((hash (%hash-table-hash hash-table key))
178 (entries (hash-table-entries hash-table)))
AssertionsTest.class.php (https://github.com/treuter/xp-framework.git) PHP · 617 lines
1 <?php
2 /* This class is part of the XP framework
3 *
146 /**
147 * Test assertEquals() for hashes
148 */
149 #[@test, @values(array(
152 # array(array(array('bar' => 'baz'), array(), array('bool' => TRUE, 'bar' => new String('baz'))))
153 #))]
154 public function hashesAreEqual($hash) {
155 $this->assertEquals($hash, $hash);
164 $hash= array('&' => '&', '"' => '"');
165 $this->assertEquals($hash, array_reverse($hash, TRUE), xp::stringOf($hash));
166 }
Protection.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 581 lines
22 * @package PHPExcel_Worksheet
23 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
33 * @package PHPExcel_Worksheet
34 * @copyright Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Worksheet_Protection
553 *
554 * @param string $pValue
555 * @param boolean $pAlreadyHashed If the password has already been hashed, set this to true
556 * @return PHPExcel_Worksheet_Protection
560 if (!$pAlreadyHashed) {
561 $pValue = PHPExcel_Shared_PasswordHasher::hashPassword($pValue);
562 }
563 $this->password = $pValue;
content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines
1 <?php
2 //
3 // Created on: <2007-11-21 13:01:28 ab>
76 {
77 $http = eZHTTPTool::instance();
78 $http->removeSessionVariable( eZLightbox::PREFERENCE_SESSION_HASHKEY );
79 eZPreferences::setValue( 'currentLightboxID', $http->postVariable( 'newLightboxID' ) );
80 $redirectURI = $http->hasPostVariable( 'redirectAfterSelectionURI' ) ?
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
232 private function sendPasswordResetToUser($property) {
233 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
234 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
235 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/
289 private function sendReminderforredemptionToUser($property) {
290 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
291 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
292 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/
379 /*$this->msgBody = $htmlCT . $this->msgBody;
380 $this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
381 $this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
382 }
bench_internal.c (https://gitlab.com/vectorci/rippled) C · 318 lines
2 * Copyright (c) 2014-2015 Pieter Wuille *
3 * Distributed under the MIT software license, see the accompanying *
4 * file COPYING or http://www.opensource.org/licenses/mit-license.php.*
5 **********************************************************************/
6 #include <stdio.h>
10 #include "util.h"
11 #include "hash_impl.h"
12 #include "num_impl.h"
13 #include "field_impl.h"
312 if (have_flag(argc, argv, "ecmult") || have_flag(argc, argv, "wnaf")) run_benchmark("ecmult_wnaf", bench_ecmult_wnaf, bench_setup, NULL, &data, 10, 20000);
314 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "sha256")) run_benchmark("hash_sha256", bench_sha256, bench_setup, NULL, &data, 10, 20000);
315 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "hmac")) run_benchmark("hash_hmac_sha256", bench_hmac_sha256, bench_setup, NULL, &data, 10, 20000);
316 if (have_flag(argc, argv, "hash") || have_flag(argc, argv, "rng6979")) run_benchmark("hash_rfc6979_hmac_sha256", bench_rfc6979_hmac_sha256, bench_setup, NULL, &data, 10, 20000);
317 return 0;
318 }
userdata.sql (https://github.com/nikolasco/zotero-oac.git) SQL · 375 lines
Adapter.php (https://github.com/imr/horde.git) PHP · 314 lines
xm_xpath_date_time_value.e (git://github.com/gobo-eiffel/gobo.git) Specman e · 428 lines
19 is_xpath_date_time, as_xpath_date_time
20 redefine
21 is_date_time_value, as_date_time_value, hash_code
22 end
145 end
147 hash_code: INTEGER
148 -- Hash code value
149 do
150 if attached local_date_time as l_local_date_time then
151 Result := l_local_date_time.hash_code
152 else
154 -- Equality implies same `hash_code', but
155 -- not vice-versa:
TestRetryFlowFile.java (https://github.com/apache/nifi.git) Java · 257 lines
26 import java.util.Collections;
27 import java.util.HashMap;
28 import java.util.Map;
169 public void testReuseFail() {
170 runner.setProperty(RetryFlowFile.REUSE_MODE, RetryFlowFile.FAIL_ON_REUSE.getValue());
171 Map<String, String> inputAttributes = new HashMap<>();
172 inputAttributes.put("flowfile.retries", "2");
173 inputAttributes.put("flowfile.retries.uuid", "1122334455");
183 public void testReuseWarn() {
184 runner.setProperty(RetryFlowFile.REUSE_MODE, RetryFlowFile.WARN_ON_REUSE.getValue());
185 Map<String, String> inputAttributes = new HashMap<>();
186 inputAttributes.put("flowfile.retries", "2");
187 inputAttributes.put("flowfile.retries.uuid", "1122334455");
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines
10 * License, Version 2 (the "License"); you may not use this file
11 * except in compliance with the License. A copy of the License is
12 * available at http://www.opensource.org/licenses/gpl-license.php.
13 *
14 * Sun designates this particular file as subject to the "Classpath"
264 @Override
265 public int hashCode() {
266 int hash = 7;
267 hash = 79 * hash + (this.protocol != null ? this.protocol.hashCode() : 0);
268 hash = 79 * hash + (this.root != null ? this.root.hashCode() : 0);
269 hash = 79 * hash + (this.assetPath != null ? this.assetPath.hashCode() : 0);
270 return hash;
ConstraintType.java (https://gitlab.com/Codeaurora/platform_sdk) Java · 237 lines
6 * You may obtain a copy of the License at
7 *
8 * http://www.eclipse.org/org/documents/epl-v10.php
9 *
10 * Unless required by applicable law or agreed to in writing, software
43 import com.android.ide.common.api.SegmentType;
45 import java.util.HashMap;
46 import java.util.Map;
142 if (sNameToType == null) {
143 ConstraintType[] types = ConstraintType.values();
144 Map<String, ConstraintType> map = new HashMap<String, ConstraintType>(types.length);
145 for (ConstraintType type : types) {
146 map.put(type.name, type);
rmd128.c (https://gitlab.com/Skylake/Staging) C · 327 lines
14 *
15 */
16 #include <crypto/internal/hash.h>
17 #include <linux/init.h>
18 #include <linux/module.h>
216 }
218 static int rmd128_init(struct shash_desc *desc)
219 {
220 struct rmd128_ctx *rctx = shash_desc_ctx(desc);
232 }
234 static int rmd128_update(struct shash_desc *desc, const u8 *data,
235 unsigned int len)
236 {
Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines
1 <?php
3 namespace User;
57 public function getConfig()
58 {
59 return include __DIR__.'/../../config/module.config.php';
60 }
195 /** @var $pm PasswordManager */
196 $pm = $sm->get('User\Service\PasswordManager');
197 $adapter->setCredentialChecker(function ($plain, $hash) use ($pm) {
198 return $pm->checkPassword($plain, $hash);
schema.yml (https://github.com/eurotux/ETVA.git) YAML · 204 lines
4 package: lib.model
5 network:
6 _attributes: { phpName: EtvaNetwork }
7 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }
8 vlan_id: { type: INTEGER, required: true, foreignTable: vlan, foreignReference: id, onDelete: cascade }
15 intf_model: { type: VARCHAR, size: '255' }
16 server:
17 _attributes: { phpName: EtvaServer }
18 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }
19 name: { type: VARCHAR, size: '255', required: true }
51 ga_info: { type: LONGVARCHAR }
52 ga_state: { type: VARCHAR, size: '255' }
53 hasHA: { type: INTEGER, default: '0' }
54 priority_ha: { type: INTEGER, default: '0' }
55 heartbeat: { type: TIMESTAMP }
Borders.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 411 lines
3 namespace PhpOffice\PhpSpreadsheet\Style;
5 use PhpOffice\PhpSpreadsheet\Exception as PhpSpreadsheetException;
7 class Borders extends Supervisor
290 {
291 if (!$this->isSupervisor) {
292 throw new PhpSpreadsheetException('Can only get pseudo-border for supervisor.');
293 }
390 /**
391 * Get hash code.
392 *
393 * @return string Hash code
TernaryAnalyzer.php (https://github.com/vimeo/psalm.git) PHP · 294 lines
1 <?php
2 namespace Psalm\Internal\Analyzer\Statements\Expression;
4 use PhpParser;
5 use Psalm\Internal\Analyzer\AlgebraAnalyzer;
6 use Psalm\Internal\Analyzer\Statements\ExpressionAnalyzer;
29 public static function analyze(
30 StatementsAnalyzer $statements_analyzer,
31 PhpParser\Node\Expr\Ternary $stmt,
32 Context $context
33 ) : bool {
123 $ternary_clauses,
124 function ($c) use ($reconciled_expression_clauses): bool {
125 return !\in_array($c->hash, $reconciled_expression_clauses);
126 }
127 )
parseDiffWithMockFiles.pl (https://gitlab.com/brian0218/rk3066_r-box_android4.2.2_sdk) Perl · 305 lines
96 # The array of test cases.
97 my @testCaseHashRefs = (
98 ###
99 # SVN test cases
268 );
270 my $testCasesCount = @testCaseHashRefs;
271 plan(tests => 2 * $testCasesCount); # Total number of assertions.
273 my $savedCWD = getcwd();
274 chdir($mockDir) or die;
275 foreach my $testCase (@testCaseHashRefs) {
276 my $testNameStart = "parseDiff(): $testCase->{diffName}: comparing";
Alignment.php (https://gitlab.com/ptisky/API_prestashop) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version 1.7.9, 2013-06-02
34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
180 }
181 } else {
182 throw new PHPExcel_Exception("Invalid style array passed.");
183 }
184 return $this;
multisig_tests.cpp (https://github.com/superbitcoin/SuperBitcoin.git) C++ · 245 lines
22 sign_multisig(CScript scriptPubKey, std::vector<CKey> keys, CTransaction transaction, int whichIn)
23 {
24 uint256 hash = SignatureHash(scriptPubKey, transaction, whichIn, SIGHASH_ALL, 0, SIGVERSION_BASE);
26 CScript result;
70 txTo[i].vout.resize(1);
71 txTo[i].vin[0].prevout.n = i;
72 txTo[i].vin[0].prevout.hash = txFrom.GetHash();
73 txTo[i].vout[0].nValue = 1;
74 }
231 txTo[i].vout.resize(1);
232 txTo[i].vin[0].prevout.n = i;
233 txTo[i].vin[0].prevout.hash = txFrom.GetHash();
234 txTo[i].vout[0].nValue = 1;
235 }
History.php (https://github.com/finger2000/horde.git) PHP · 274 lines
1 <?php
2 /**
3 * The Horde_History:: system.
4 *
5 * PHP version 5
6 *
7 * @category Horde
10 * @author Gunnar Wrobel <wrobel@pardus.de>
11 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
12 * @link http://pear.horde.org/index.php?package=History
13 */
27 * @author Gunnar Wrobel <wrobel@pardus.de>
28 * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
29 * @link http://pear.horde.org/index.php?package=History
30 */
31 abstract class Horde_History
WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines
85 /**
86 * Gets all entries from a given form or report by url or hash. Remember, the URL changes with the form/report title, so it's best to use the hash.
87 *
88 * @param string $identifier a URL or Hash
177 * Gets all entries for a given report by url or hash. Notice this is a facade for getFields() call.
178 *
179 * @param string $reportIdentifier can be the url or hash. Remember, the URL changes with the report title, so it's best to use the hash.
180 * @param string $getArgs a URL encoded string to filter entries.
181 * @return array of Entry Value Objects by EntryId.
189 * Gets entry count for a given report by url or hash. Notice this is a facade for getEntryCount.
190 *
191 * @param string $reportIdentifier can be the url or hash. Remember, the URL changes with the report title, so it's best to use the hash.
192 * @param string $getArgs a URL encoded string to filter entries.
193 * @return array of Entry Value Objects by EntryId.
263 $url = $this->getFullUrl('forms/'.$formIdentifier.'/webhooks');
264 $this->curl = new WufooCurl();
265 $result = json_decode($this->curl->deleteAuthenticated(array('hash' => $hash), $url, $this->apiKey));
266 return new WebHookResponse($result->WebHookDeleteResult->Hash);
JARClassLoader.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 478 lines
✨ Summary
This Java class implements a custom ClassLoader for loading classes from a JAR file. It provides methods for defining packages, loading classes, and resolving class names. The class loader delegates to other ClassLoaders if necessary, allowing it to load classes from parent ClassLoaders or the system’s classpath.
This Java class implements a custom ClassLoader for loading classes from a JAR file. It provides methods for defining packages, loading classes, and resolving class names. The class loader delegates to other ClassLoaders if necessary, allowing it to load classes from parent ClassLoaders or the system’s classpath.
93 }
95 Object obj = classHash.get(clazz);
96 if(obj == NO_CLASS)
97 {
109 } catch (ClassNotFoundException cnf2)
110 {
111 classHash.put(clazz,NO_CLASS);
112 throw cnf2;
113 }
332 private static int INDEX;
333 private static int live;
334 private static Hashtable classHash = new Hashtable();
336 private int id;
DisassembledInstruction.java (https://github.com/eclipse/lsp4j.git) Java · 346 lines
6 * http://www.eclipse.org/legal/epl-2.0,
7 * or the Eclipse Distribution License v. 1.0 which is available at
8 * http://www.eclipse.org/org/documents/edl-v10.php.
9 *
10 * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
331 @Override
332 @Pure
333 public int hashCode() {
334 final int prime = 31;
335 int result = 1;
336 result = prime * result + ((this.address== null) ? 0 : this.address.hashCode());
337 result = prime * result + ((this.instructionBytes== null) ? 0 : this.instructionBytes.hashCode());
338 result = prime * result + ((this.instruction== null) ? 0 : this.instruction.hashCode());
339 result = prime * result + ((this.symbol== null) ? 0 : this.symbol.hashCode());
provider_test.php (https://github.com/sbourget/moodle.git) PHP · 240 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
78 $data = $writer->get_data([get_string('privacy:metadata:auth_lti', 'auth_lti'), 'https://lms.example.com']);
79 $this->assertEquals('https://lms.example.com', $data->issuer);
80 $this->assertEquals(hash('sha256', 'https://lms.example.com'), $data->issuer256);
81 $this->assertEquals('abc123', $data->sub);
82 $this->assertEquals(hash('sha256', 'abc123'), $data->sub256);
datacache.hh (https://github.com/apontes/RouteFlow.git) C++ Header · 215 lines
78 typedef boost::function<void(const Principal&)> PrincipalDeletedFn;
79 typedef boost::function<void(const
80 hash_set<int64_t>&)> MembersUpdatedFn;
81 typedef boost::function<void(const PrincipalSet&)> GroupsUpdatedFn;
82 typedef boost::function<void(AddressType,
110 struct ModifiedState {
111 PrincipalSet principals;
112 hash_set<int64_t> groups;
113 hash_set<int64_t> processed;
146 typedef std::list<int64_t> Parents;
147 typedef std::list<Principal> Members;
148 typedef hash_map<Principal, Parents, PrincipalHash, PrincipalEq> ParentMap;
149 typedef hash_map<Principal, std::string, PrincipalHash, PrincipalEq> IDMap;
164 std::list<AddrGroupsUpdatedFn> addr_groups_updated_fns;
166 hash_map<int64_t, Membership> memberships; // key is ID
167 hash_map<int64_t, Members> members; // key is GROUP_ID
Alignment.php (https://gitlab.com/dmsapiens/physicians) PHP · 409 lines
22 * @package PHPExcel_Style
23 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25 * @version ##VERSION##, ##DATE##
34 * @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
35 */
36 class PHPExcel_Style_Alignment extends PHPExcel_Style_Supervisor implements PHPExcel_IComparable
37 {
38 /* Horizontal alignment styles */
151 *
152 * @param array $pStyles Array containing style information
153 * @throws PHPExcel_Exception
154 * @return PHPExcel_Style_Alignment
180 }
181 } else {
182 throw new PHPExcel_Exception("Invalid style array passed.");
183 }
184 return $this;
ExternalDatabaseShadow.java (https://github.com/sierramoxon/ZFINmine.git) Java · 232 lines
35 public boolean equals(Object o) { return (o instanceof ExternalDatabase && id != null) ? id.equals(((ExternalDatabase)o).getId()) : this == o; }
36 public int hashCode() { return (id != null) ? id.hashCode() : super.hashCode(); }
37 public String toString() { return "ExternalDatabase [id=\"" + id + "\", name=\"" + name + "\", primaryIdentifier=\"" + primaryIdentifier + "\", url=\"" + url + "\"]"; }
38 public Object getFieldValue(final String fieldName) throws IllegalAccessException {
q_term.c (https://github.com/ekcell/lovdbyless.git) C · 337 lines
285 }
287 static void tq_extract_terms(Query *self, HashSet *terms)
288 {
289 hs_add(terms, term_new(TQ(self)->field, TQ(self)->term));
292 static unsigned long tq_hash(Query *self)
293 {
294 return str_hash(TQ(self)->term) ^ str_hash(TQ(self)->field);
295 }
327 self->extract_terms = &tq_extract_terms;
328 self->to_s = &tq_to_s;
329 self->hash = &tq_hash;
330 self->eq = &tq_eq;
LessonsManagementImpl.java (https://github.com/dyreschlock/schlock-website.git) Java · 361 lines
221 public LessonPost getPost(String lesson, String grade, String year)
222 {
223 final String hash = year + grade + lesson;
224 if (cachedPosts.containsKey(hash))
225 {
226 return cachedPosts.get(hash);
227 }
236 }
238 cachedPosts.put(hash, post);
239 return post;
240 }
242 public void resetPostCache()
243 {
244 cachedPosts = new HashMap<String, LessonPost>();
245 }
Siprec.java (git://github.com/twilio/twilio-java.git) Java · 331 lines
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1196 lines
107 */
108 <SINGLE_LINE_COMMENT: "//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")>
109 | <HASH_BANG_COMMENT: "#!" (~["\n","\r"])* ("\n"|"\r"|"\r\n")>
110 | <FORMAL_COMMENT: "/**" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/">
111 | <MULTI_LINE_COMMENT: "/*" (~["*"])* "*" ("*" | (~["*","/"] (~["*"])* "*"))* "/">
odbc_arginfo.h (https://github.com/php/php-src.git) C Header · 377 lines
40 #define arginfo_odbc_do arginfo_odbc_prepare
42 #if defined(PHP_ODBC_HAVE_FETCH_HASH)
43 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_odbc_fetch_object, 0, 1, stdClass, MAY_BE_FALSE)
44 ZEND_ARG_INFO(0, statement)
47 #endif
49 #if defined(PHP_ODBC_HAVE_FETCH_HASH)
50 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_odbc_fetch_array, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
51 ZEND_ARG_INFO(0, statement)
257 #endif
258 ZEND_FUNCTION(odbc_exec);
259 #if defined(PHP_ODBC_HAVE_FETCH_HASH)
260 ZEND_FUNCTION(odbc_fetch_object);
261 #endif
CountGraphErrors.java (https://github.com/societies/SOCIETIES-Platform.git) Java · 371 lines
18 private int[][] current;
20 private Hashtable nodenames;
21 private Hashtable mapped;
44 current = new int[size][size];
46 nodenames = new Hashtable();
47 mapped = new Hashtable();
49 populateHash();
50 }
75 current = new int[size][size];
77 nodenames = new Hashtable();
78 mapped = new Hashtable();
tabs_helper.php (https://github.com/rickogden/joind.in.git) PHP · 337 lines
1 <?php
2 /**
3 * Helpers for creating Accessible Tabs.
4 *
5 * PHP version 5
6 *
7 * @category Joind.in
73 /**
74 * Set this tab instance's Selected Tab.
75 * @param string $hash the hash of the tab to make selected
76 * @return joindIn_Tabs Itself for a fluid chainable instance
77 **/
160 ?>
161 </ul>
162 <?php foreach($contentList as $hash=>$tabContent):
163 echo $tabContent;
164 endforeach; ?>
History.php (https://github.com/sgtcarneiro/horde.git) PHP · 274 lines
1 <?php
2 /**
3 * The Horde_History:: system.
4 *
5 * PHP version 5
6 *
7 * @category Horde
10 * @author Gunnar Wrobel <wrobel@pardus.de>
11 * @license http://www.fsf.org/copyleft/lgpl.html LGPL
12 * @link http://pear.horde.org/index.php?package=History
13 */
27 * @author Gunnar Wrobel <wrobel@pardus.de>
28 * @license http://www.fsf.org/copyleft/lgpl.html LGPL
29 * @link http://pear.horde.org/index.php?package=History
30 */
31 abstract class Horde_History
QtGui.4.2.0.macx-gcc-ppc32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 13187 lines
qstatemachine_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 250 lines
58 #include <QtCore/qcoreevent.h>
59 #include <QtCore/qhash.h>
60 #include <QtCore/qlist.h>
61 #include <QtCore/qmutex.h>
182 #ifndef QT_NO_PROPERTIES
183 typedef QPair<QObject *, QByteArray> RestorableId;
184 QHash<RestorableId, QVariant> registeredRestorables;
185 void registerRestorable(QObject *object, const QByteArray &propertyName);
186 void unregisterRestorable(QObject *object, const QByteArray &propertyName);
231 QHash<const QObject*, QVector<int> > connections;
232 #ifndef QT_NO_STATEMACHINE_EVENTFILTER
233 QHash<QObject*, QHash<QEvent::Type, int> > qobjectEvents;
234 #endif
235 QHash<int, QEvent*> delayedEvents;
ProjectFile.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 226 lines
✨ Summary
This Java class represents a project file, providing methods to manage its properties and behavior. It implements the Transferable interface for data transfer and includes features like path comparison, buffer management, and key assignment. The class is designed to work with JEdit, a text editor software.
This Java class represents a project file, providing methods to manage its properties and behavior. It implements the Transferable interface for data transfer and includes features like path comparison, buffer management, and key assignment. The class is designed to work with JEdit, a text editor software.
IntegrationManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java code is a part of an Integrated Development Environment (IDE) plugin system, specifically designed for the jEdit editor. It manages bridges between plugins, enabling communication and data exchange between them. The IntegrationManager
class handles bridge creation, loading, and enabling/disabling based on the target plugin’s availability.
This Java code is a part of an Integrated Development Environment (IDE) plugin system, specifically designed for the jEdit editor. It manages bridges between plugins, enabling communication and data exchange between them. The IntegrationManager
class handles bridge creation, loading, and enabling/disabling based on the target plugin’s availability.
initramfs.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 609 lines
✨ Summary
This C code is part of a Linux kernel module that initializes and populates the root file system during boot-up. It decompresses an internal initramfs image, which contains the root file system, and unpacks its contents into the root directory. If the initramfs image is not valid, it falls back to using the internal initramfs as the root file system. The code also handles cases where the initrd region overlaps with crashkernel reserved regions.
This C code is part of a Linux kernel module that initializes and populates the root file system during boot-up. It decompresses an internal initramfs image, which contains the root file system, and unpacks its contents into the root directory. If the initramfs image is not valid, it falls back to using the internal initramfs as the root file system. The code also handles cases where the initrd region overlaps with crashkernel reserved regions.
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.
53 * Dquot hashtable constants/threshold values.
54 */
55 #define XFS_QM_HASHSIZE_LOW (PAGE_SIZE / sizeof(xfs_dqhash_t))
56 #define XFS_QM_HASHSIZE_HIGH ((PAGE_SIZE * 4) / sizeof(xfs_dqhash_t))
72 #define XFS_QM_MAX_DQCLUSTER_LOGSZ 3
74 typedef xfs_dqhash_t xfs_dqlist_t;
75 /*
76 * The freelist head. The first two fields match the first two in the
89 */
90 typedef struct xfs_qm {
91 xfs_dqlist_t *qm_usr_dqhtable;/* udquot hash table */
92 xfs_dqlist_t *qm_grp_dqhtable;/* gdquot hash table */
93 uint qm_dqhashmask; /* # buckets in dq hashtab - 1 */
94 xfs_frlist_t qm_dqfreelist; /* freelist of dquots */
95 atomic_t qm_totaldquots; /* total incore dquots */
qlistmodelinterface_p.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 84 lines
symbols.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 147 lines
45 #include "token.h"
46 #include <QString>
47 #include <QHash>
48 #include <QVector>
49 #include <QDebug>
71 };
73 inline uint qHash(const SubArray &key)
74 {
75 const uchar *p = reinterpret_cast<const uchar *>(key.array.data() + key.from);
93 #ifdef USE_LEXEM_STORE
94 typedef QHash<SubArray, QHashDummyValue> LexemStore;
95 static LexemStore lexemStore;
ArEntry.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 356 lines
✨ Summary
This Java class represents an archive entry in a tar file. It provides methods to set and get various attributes of the entry, such as its name, modification time, user and group IDs, mode, size, and magic number. The class also includes methods for writing and parsing the entry’s header information to/from a byte array.
This Java class represents an archive entry in a tar file. It provides methods to set and get various attributes of the entry, such as its name, modification time, user and group IDs, mode, size, and magic number. The class also includes methods for writing and parsing the entry’s header information to/from a byte array.
ical.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 205 lines
VFSFileNameField.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 287 lines
✨ Summary
This Java class, VFSFileNameField
, extends a text field to provide file name completion and navigation for a file system browser. It processes key events, such as TAB presses, to suggest completions and navigate through directories. When the user selects a directory, it updates the text field with the selected path or file name.
This Java class, VFSFileNameField
, extends a text field to provide file name completion and navigation for a file system browser. It processes key events, such as TAB presses, to suggest completions and navigate through directories. When the user selects a directory, it updates the text field with the selected path or file name.
25 //{{{ Imports
26 import java.util.HashSet;
27 import java.awt.event.*;
28 import java.awt.*;
56 // focas traversal.
57 final int FORWARD = KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS;
58 HashSet<AWTKeyStroke> keys = new HashSet<AWTKeyStroke>(
59 getFocusTraversalKeys(FORWARD));
60 keys.remove(AWTKeyStroke.getAWTKeyStroke("pressed TAB"));
serialization.cpp
(http://hadesmem.googlecode.com/svn/trunk/)
C++ · 0 lines
✨ Summary
This C++ code implements a Most Recently Used (MRU) list, which stores a limited number of items and keeps track of the most recently inserted ones. It uses Boost’s Multi-Index container to efficiently manage the list. The program allows users to insert new terms, displays the most recent entries, and persists the MRU list to a file for later retrieval.
This C++ code implements a Most Recently Used (MRU) list, which stores a limited number of items and keeps track of the most recently inserted ones. It uses Boost’s Multi-Index container to efficiently manage the list. The program allows users to insert new terms, displays the most recent entries, and persists the MRU list to a file for later retrieval.
19 #include <boost/archive/text_iarchive.hpp>
20 #include <boost/multi_index_container.hpp>
21 #include <boost/multi_index/hashed_index.hpp>
22 #include <boost/multi_index/identity.hpp>
23 #include <boost/multi_index/sequenced_index.hpp>
43 indexed_by<
44 sequenced<>,
45 hashed_unique<identity<Item> >
46 >
47 > item_list;
RootPaneTitlePaneUiDebugger.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 445 lines
✨ Summary
This Java code creates a debug UI for a graphical user interface (GUI) application, specifically for the Substance framework. It provides various options to customize and inspect the GUI, such as changing the skin, animation duration, focus kind, and cache statistics. The UI is displayed in a dialog box that can be shown or hidden at will.
This Java code creates a debug UI for a graphical user interface (GUI) application, specifically for the Substance framework. It provides various options to customize and inspect the GUI, such as changing the skin, animation duration, focus kind, and cache statistics. The UI is displayed in a dialog box that can be shown or hidden at will.
37 import org.pushingpixels.substance.api.SubstanceSkin;
38 import org.pushingpixels.substance.api.SubstanceConstants.FocusKind;
39 import org.pushingpixels.substance.internal.utils.LazyResettableHashMap;
40 import org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities;
278 public void run() {
279 final JTextArea textArea = new JTextArea();
280 java.util.List<String> stats = LazyResettableHashMap
281 .getStats();
282 if (stats != null) {
CompletionInfo.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 258 lines
✨ Summary
This Java class, CompletionInfo
, provides a data structure for storing and managing XML completion information. It allows loading completion info from resources, namespaces, and global properties, and provides methods for adding entities, elements, and retrieving completion info for buffers and namespaces. The class is designed to be used in an XML editor or IDE.
This Java class, CompletionInfo
, provides a data structure for storing and managing XML completion information. It allows loading completion info from resources, namespaces, and global properties, and provides methods for adding entities, elements, and retrieving completion info for buffers and namespaces. The class is designed to be used in an XML editor or IDE.
37 public CompletionInfo()
38 {
39 this(new ArrayList(), new HashMap(),
40 new ArrayList(), new HashMap(),
50 //{{{ CompletionInfo constructor
51 public CompletionInfo(List elements, Map elementHash,
52 List entities, Map entityHash,
54 {
55 this.elements = elements;
56 this.elementHash = elementHash;
57 this.entities = entities;
58 this.entityHash = entityHash;
80 {
81 Character ch = new Character(entity.value.charAt(0));
82 entityHash.put(entity.name,ch);
83 entityHash.put(ch,entity.name);
ASTFunctionDeclaration.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 74 lines
✨ Summary
This Java class represents an Abstract Syntax Tree (AST) node for a function declaration in ECMAScript. It extends SimpleNode
and provides methods to accept visitors, set and get local variables, and generate a string representation of the node. The node’s visibility is always true, and it can be used to parse and analyze ECMAScript code.
This Java class represents an Abstract Syntax Tree (AST) node for a function declaration in ECMAScript. It extends SimpleNode
and provides methods to accept visitors, set and get local variables, and generate a string representation of the node. The node’s visibility is always true, and it can be used to parse and analyze ECMAScript code.
HtmlParser.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 620 lines
192 | <UNPARSED_TEXT_NO_SINGLE_QUOTES:
193 ( (~["$", "#", "'"]) | (["$", "#"] ~["{", "'"]) | <EL_ESCAPE> )+ >
194 | <DOLLAR_OR_HASH_SINGLE_QUOTE: ["$", "#"] "'" > : LexInTag
195 }
199 <ENDING_DOUBLE_QUOTE: "\""> : LexInTag
200 | <UNPARSED_TEXT_NO_DOUBLE_QUOTES: ( (~["<", "$", "#", "\""]) | (["$", "#"] ~["{", "\""]) | <EL_ESCAPE> )+ > : AttrValueBetweenDoubleQuotesState
201 | <DOLLAR_OR_HASH_DOUBLE_QUOTE: ["$", "#"] "\"" > : LexInTag
202 }
342 )*
343 ( <ENDING_DOUBLE_QUOTE>
344 | t = <DOLLAR_OR_HASH_DOUBLE_QUOTE> { content.append(t.image.substring(0, 1)); }
345 )
346 [ t=<ATTR_VAL> { content.append( t.image ); } ]
Location.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 88 lines
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines
31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
33 - PHP mode now recognizes <script language="PHP">...</script>.
35 - Updated Omnimark syntax highlighting (Lionel Fiol).
398 For example:
400 importObject( new HashMap() );
401 put("foo", "bar");
402 print( get("foo") ); // prints "bar"
836 modes.
838 - SCRIPT tags in HTML files no longer recognize <?php ... ?>.
840 }}}
DirTreeNode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 127 lines
✨ Summary
This Java class represents a node in a repository tree, specifically for SVN (Subversion) repositories. It extends DefaultMutableTreeNode
and overrides methods to customize its behavior, such as displaying directories as folders instead of files. The class provides properties like external URLs and sorting capabilities.
This Java class represents a node in a repository tree, specifically for SVN (Subversion) repositories. It extends DefaultMutableTreeNode
and overrides methods to customize its behavior, such as displaying directories as folders instead of files. The class provides properties like external URLs and sorting capabilities.
JEditActionSet.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 874 lines
✨ Summary
This HTML code is a documentation page for a Java class called JEditActionSet
. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated from a tool like Javadoc or Doxygen, providing a structured and formatted view of the class’s documentation.
This HTML code is a documentation page for a Java class called JEditActionSet
. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated from a tool like Javadoc or Doxygen, providing a structured and formatted view of the class’s documentation.
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218 <CODE>protected java.util.Hashtable<java.lang.String,java.lang.Object></CODE></FONT></TD>
219 <TD><CODE><B><A HREF="../../../../org/gjt/sp/jedit/JEditActionSet.html#actions">actions</A></B></CODE>
413 </TR>
414 <TR BGCOLOR="white" CLASS="TableRowColor">
415 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
416 </TR>
417 </TABLE>
441 actions</H3>
442 <PRE>
443 protected java.util.Hashtable<java.lang.String,java.lang.Object> <B>actions</B></PRE>
444 <DL>
445 <DL>
SystemShellBuiltIn.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 741 lines
✨ Summary
This Java code defines a set of shell commands for a console plugin, mimicking the behavior of the Bash shell. It provides basic commands like cd
, pwd
, set
, and unset
to manage directories and variables, as well as more advanced features like alias management and version checking. The code is likely used in an integrated development environment (IDE) or a custom console application.
This Java code defines a set of shell commands for a console plugin, mimicking the behavior of the Bash shell. It provides basic commands like cd
, pwd
, set
, and unset
to manage directories and variables, as well as more advanced features like alias management and version checking. The code is likely used in an integrated development environment (IDE) or a custom console application.
93 public void execute(Console console, Output output, Output error, Vector args)
94 {
95 Hashtable values = new Hashtable();
96 Option[] options = getOptions();
233 //{{{ execute() method
234 protected abstract void execute(Console console, Output output,
235 Output error, Vector args, Hashtable values); //}}}
237 //}}}
259 public void execute(Console console, Output output,
260 Output error, Vector args, Hashtable values)
261 {
262 Hashtable aliases = ConsolePlugin.getSystemShell()
assembly-parrot.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 139 lines
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
17 </SPAN>
19 <SPAN_REGEXP HASH_CHAR="<" TYPE="MARKUP" DELEGATE="DIRECTIVE">
20 <BEGIN><![CDATA[<(\w+)[^>]*>]]></BEGIN>
21 <END><![CDATA[</$1>]]></END>
192 </SPAN>
194 <SPAN_REGEXP HASH_CHAR="<" TYPE="MARKUP" DELEGATE="DIRECTIVE">
195 <BEGIN><![CDATA[<(\w+)[^>]*>]]></BEGIN>
196 <END><![CDATA[</$1>]]></END>
541 <KEYWORD3>PythonDebug</KEYWORD3>
543 <!-- mod_php -->
544 <KEYWORD3>php_value</KEYWORD3>
545 <!-- using 4 for apache 1.x vs 2.x -->
546 <KEYWORD4>php_flag</KEYWORD4>
548 <LITERAL2>All</LITERAL2>
to_from_string_datatype_functionality.txt (git://github.com/ezsystems/ezpublish.git) Plain Text · 154 lines
12 and ezpackage which is not used.
13 To show possibilities of these functionality two scripts have been added
14 under bin/php/. These scripts are very simple CSV import/export scripts:
15 - ezcsvimport.php
16 - ezcsvexport.php
17 They are very basic and do not pretend to be fully functional CSV import/export
18 for ezpublish though you can use them to do real import/export.
33 lib/ezutils. It has to functions as a members.
34 explodeStr( $str, $delimiter = '|' ) and implodeStr( $str, $delimiter = '|' ). The first one
35 explodes string to an array with delimiter char, the difference from PHP explode/implode is
36 that these functions do propper escaping/unescaping of all values.
148 string containing the url
149 ezuser
150 '|' separated string with user login, email, password hash, and password hash type
152 ezxmltext
macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 921 lines
machine.config (https://github.com/AbhiLegend/Intel_Perceptual_Prototype_Unity.git) ASP.NET · 274 lines
236 <membership>
237 <providers>
238 <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="LocalSqlServer" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="/" requiresUniqueEmail="false" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="1" passwordAttemptWindow="10" passwordStrengthRegularExpression=""/>
239 <!-- <add name="AspNetSqlMembershipProvider" type="Mainsoft.Web.Security.GenericMembershipProvider, Mainsoft.Web.Security" applicationName="/" connectionStringName="LocalSqlServer" /> -->
240 </providers>
HardKeyboardSequenceHandler.java
(http://softkeyboard.googlecode.com/svn/)
Java · 210 lines
✨ Summary
This Java class, HardKeyboardSequenceHandler
, is a part of an Android keyboard implementation. It manages sequences of key events and maps them to characters. The class stores these sequences in a HashMap and uses them to predict the next character based on the input key event. It also keeps track of the last typed key event time and resets the sequence if it exceeds a certain living time threshold.
This Java class, HardKeyboardSequenceHandler
, is a part of an Android keyboard implementation. It manages sequences of key events and maps them to characters. The class stores these sequences in a HashMap and uses them to predict the next character based on the input key event. It also keeps track of the last typed key event time and resets the sequence if it exceeds a certain living time threshold.
32 {
33 KeyEventSequenceBase other = (KeyEventSequenceBase)o;
34 if (other.hashCode() != hashCode())
35 return false;
36 if (other.getSequenceLength() != getSequenceLength())
63 hashCode+=mSequence[i];
65 mHashCode = hashCode;
66 }
86 {
87 private final int[] mSequence;
88 private int mHashCode;
89 private int mCurrentSequenceLength;
BudgetOrderError.html (http://google-api-adwords-java.googlecode.com/svn/trunk/) HTML · 405 lines
186 <tr class="rowColor">
187 <td class="colFirst"><code>int</code></td>
188 <td class="colLast"><code><strong><a href="../../../../../../com/google/api/adwords/v201206/billing/BudgetOrderError.html#hashCode()">hashCode</a></strong>()</code> </td>
189 </tr>
190 <tr class="altColor">
288 </li>
289 </ul>
290 <a name="hashCode()">
291 <!-- -->
292 </a>
297 <dl>
298 <dt><strong>Overrides:</strong></dt>
299 <dd><code><a href="../../../../../../com/google/api/adwords/v201206/cm/ApiError.html#hashCode()">hashCode</a></code> in class <code><a href="../../../../../../com/google/api/adwords/v201206/cm/ApiError.html" title="class in com.google.api.adwords.v201206.cm">ApiError</a></code></dd>
300 </dl>
301 </li>
wl_iw.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 7875 lines
✨ Summary
This C code initializes and manages wireless networking functionality for a Linux system. It sets up network devices, handles device attachment and detachment, and manages various components such as scanning, softap, and hotspot events. The code also includes error handling and synchronization mechanisms to ensure thread-safe operation. It appears to be part of a larger wireless networking framework or driver.
This C code initializes and manages wireless networking functionality for a Linux system. It sets up network devices, handles device attachment and detachment, and manages various components such as scanning, softap, and hotspot events. The code also includes error handling and synchronization mechanisms to ensure thread-safe operation. It appears to be part of a larger wireless networking framework or driver.
SideKickOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 167 lines
✨ Summary
This Java code defines a custom options panel for a text editor, specifically SideKick. It allows users to configure various settings, such as tree-following and keystroke parsing, and sets up event listeners to update these settings when the corresponding checkboxes are selected or deselected. The changes are then saved back to the text editor’s configuration.
This Java code defines a custom options panel for a text editor, specifically SideKick. It allows users to configure various settings, such as tree-following and keystroke parsing, and sets up event listeners to update these settings when the corresponding checkboxes are selected or deselected. The changes are then saved back to the text editor’s configuration.
27 import java.awt.event.*;
28 import java.awt.*;
29 import java.util.Hashtable;
30 import org.gjt.sp.jedit.gui.*;
31 import org.gjt.sp.jedit.*;
74 addComponent(autoParseDelay = new JSlider(500,3000,autoParseDelayValue),
75 GridBagConstraints.BOTH);
76 Hashtable labelTable = new Hashtable();
77 for(int i = 500; i <= 3000; i += 500)
78 {
103 GridBagConstraints.BOTH);
105 labelTable = new Hashtable();
106 for(int i = 0; i <= 1500; i += 250)
107 {
base2.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 973 lines
✨ Summary
This JavaScript code defines a set of modules and namespaces for a programming language, including Base
, Abstract
, Module
, Enumerable
, Array2
, Hash
, Collection
, RegGrp
, and Namespace
. It sets up the namespace hierarchy and exports functions from each module. The code also includes some utility functions like extend
and format
.
This JavaScript code defines a set of modules and namespaces for a programming language, including Base
, Abstract
, Module
, Enumerable
, Array2
, Hash
, Collection
, RegGrp
, and Namespace
. It sets up the namespace hierarchy and exports functions from each module. The code also includes some utility functions like extend
and format
.
474 var IArray = Module.extend({
475 combine: function(keys, values) {
476 // combine two arrays to make a hash
477 if (!values) values = keys;
478 return this.reduce(keys, {}, function(object, key, index) {
572 // =========================================================================
573 // base2/Hash.js
574 // =========================================================================
576 var HASH = "#" + Number(new Date);
577 var KEYS = HASH + "keys";
578 var VALUES = HASH + "values";
580 var Hash = Base.extend({
sas.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 442 lines
51 <!-- case1: two COMMENT2 range comments in a row at the start of a line: -->
52 <SPAN_REGEXP TYPE="COMMENT2" HASH_CHAR="*" AT_WHITESPACE_END="TRUE" EXCLUDE_MATCH="FALSE">
53 <BEGIN>[*][^;]*[;][\s]*[*]</BEGIN>
54 <END>;</END>
57 <!-- case2: one COMMENT2 at the start of a line: -->
58 <SPAN_REGEXP TYPE="COMMENT2" HASH_CHAR="*" AT_WHITESPACE_END="TRUE" EXCLUDE_MATCH="FALSE">
59 <BEGIN>[*]</BEGIN>
60 <END>;</END>
63 <!-- case3: two COMMENT2 range comments in a row after SAS-code: -->
64 <SPAN_REGEXP TYPE="COMMENT2" HASH_CHAR=";" EXCLUDE_MATCH="FALSE">
65 <BEGIN>[;][\s]*[*][^;]*[;][\s]*[*]</BEGIN>
66 <END>;</END>
sh7763rdp_defconfig (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 1237 lines
JEditActionContext.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 182 lines
✨ Summary
This Java class, JEditActionContext
, manages a collection of action sets for a text editor. It provides methods to add, remove, and retrieve action sets, as well as actions within those sets. The class also keeps track of overridden built-in actions by plugins. It’s designed to be used in the jEdit text editor and its browser component.
This Java class, JEditActionContext
, manages a collection of action sets for a text editor. It provides methods to add, remove, and retrieve action sets, as well as actions within those sets. The class also keeps track of overridden built-in actions by plugins. It’s designed to be used in the jEdit text editor and its browser component.
68 {
69 /* Is it already there? */
70 if (actionHash.containsKey(actions[i]))
71 {
72 /* Save it for plugin unloading time */
170 * and as value the JEditActionSet that contains this action
171 */
172 Hashtable<String, E> actionHash = new Hashtable<String, E>();
174 /** A map of built-in actions that were overridden by plugins. */
175 Hashtable<String, E> overriddenActions = new Hashtable<String, E>();
176 //}}}
OptionsDialog.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 696 lines
✨ Summary
This Java code defines a custom tree model for displaying options in a graphical user interface (GUI). It creates an OptionTreeModel
class that extends the standard TreeModel
class, providing a way to display and manage options as nodes in a tree structure. The model is used with a GUI component, such as a JTree
, to display and interact with the options.
This Java code defines a custom tree model for displaying options in a graphical user interface (GUI). It creates an OptionTreeModel
class that extends the standard TreeModel
class, providing a way to display and manage options as nodes in a tree structure. The model is used with a GUI component, such as a JTree
, to display and interact with the options.
ArchiveCommand.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 51 lines
✨ Summary
This Java code defines an abstract class ArchiveCommand
that provides a common interface for working with different types of archives (tar and zip). It includes methods to get directories from an archive, create input streams for archive paths, and a static method to determine the type of archive based on the input stream.
This Java code defines an abstract class ArchiveCommand
that provides a common interface for working with different types of archives (tar and zip). It includes methods to get directories from an archive, create input streams for archive paths, and a static method to determine the type of archive based on the input stream.
IconComposer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 292 lines
✨ Summary
This Java code is part of an icon composer, responsible for managing icons and their states. It retrieves file states, gets error messages, and composes icons from images based on these states. The Helper
class provides a way to access classes that may not be available in certain environments, allowing the icon composer to behave correctly.
This Java code is part of an icon composer, responsible for managing icons and their states. It retrieves file states, gets error messages, and composes icons from images based on these states. The Helper
class provides a way to access classes that may not be available in certain environments, allowing the icon composer to behave correctly.
Insert_Buffer_Properties.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 251 lines
28 import java.awt.BorderLayout;
29 import java.awt.event.ActionEvent;
30 import java.util.Hashtable;
31 import java.util.StringTokenizer;
32 import java.util.Vector;
47 mode = buffer.getMode().name;
49 props = new Hashtable();
50 props.put("mode","");
51 props.put("indentSize","int");
65 _checked = jEdit.getProperty("macro.insert-buffer-properties." + mode,"");
66 tokens = new StringTokenizer(_checked,",");
67 checkedProps = new Hashtable();
68 while(tokens.hasMoreTokens())
69 {
DefaultErrorSource.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 543 lines
✨ Summary
This Java code defines a class CompilerError
that represents an error in a compiler. It tracks information about the source file, line number, and offset of the error, as well as any additional messages. The class provides methods for notifying the compiler when a buffer is opened or closed, and for accessing the error information.
This Java code defines a class CompilerError
that represents an error in a compiler. It tracks information about the source file, line number, and offset of the error, as well as any additional messages. The class provides methods for notifying the compiler when a buffer is opened or closed, and for accessing the error information.
CVSEntriesFilter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 196 lines
✨ Summary
This Java code defines a file filter for importing files into a project viewer. It checks if a file is listed in the CVS/Entries file and, if so, imports it. The filter also supports .svn/Entries files from Subversion version control systems. It caches entries to improve performance and provides options for customizing its behavior.
This Java code defines a file filter for importing files into a project viewer. It checks if a file is listed in the CVS/Entries file and, if so, imports it. The filter also supports .svn/Entries files from Subversion version control systems. It caches entries to improve performance and provides options for customizing its behavior.
26 import java.io.FileNotFoundException;
28 import java.util.HashMap;
29 import java.util.HashSet;
59 //{{{ Private members
60 private HashMap entries = new HashMap();
61 //}}}
93 } //}}}
95 //{{{ -getEntries(String) : HashSet
96 /**
97 * Returns the set of files from the CVS/Entries file for the given path.
100 private HashSet getEntries(String dirPath) {
101 HashSet h = (HashSet) entries.get(dirPath);
102 if (h == null) {
103 // parse file
TemplateDir.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 138 lines
✨ Summary
This Java code defines a TemplateDir
class, which represents a directory within a templates hierarchy. It scans the templates directory, creates a Hashtable mapping template names to files, and refreshes menus accordingly. The class handles directories and files, ignoring backup files based on predefined filters. It provides methods for creating menus and accessing template information.
This Java code defines a TemplateDir
class, which represents a directory within a templates hierarchy. It scans the templates directory, creates a Hashtable mapping template names to files, and refreshes menus accordingly. The class handles directories and files, ignoring backup files based on predefined filters. It provides methods for creating menus and accessing template information.
35 public class TemplateDir extends TemplateFile
36 {
37 private Hashtable templateFiles;
38 private static RE backupFilter;
50 /**
51 * Scans the templates directory and creates a Hashtable
52 * mapping template names to template files. Backup files are ignored
53 * based on the values of the backup prefix and suffix in the "Global
56 public void refreshTemplates() {
57 File f;
58 this.templateFiles = new Hashtable();
59 try {
60 if (backupFilter == null)
PluginJAR.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1746 lines
✨ Summary
This Java code defines a class that manages plugins for a text editor. It reads and writes plugin data to a file, including plugin names, URLs, boolean flags, and string values. The class also handles plugin installation, uninstallation, and updates. It uses a proprietary format for storing plugin data, which is specific to the text editor’s architecture.
This Java code defines a class that manages plugins for a text editor. It reads and writes plugin data to a file, including plugin names, URLs, boolean flags, and string values. The class also handles plugin installation, uninstallation, and updates. It uses a proprietary format for storing plugin data, which is specific to the text editor’s architecture.
37 import java.net.URL;
38 import java.util.Enumeration;
39 import java.util.LinkedHashSet;
40 import java.util.LinkedList;
41 import java.util.List;
152 // Lists of jarPaths
153 private final Set<String> theseRequireMe = new LinkedHashSet<String>();
154 /** The plugins that uses me as optional dependency. */
155 private final Set<String> theseUseMe = new LinkedHashSet<String>();
156 private final Set<String> weRequireThese = new LinkedHashSet<String>();
157 private final Set<String> weUseThese = new LinkedHashSet<String>();
300 {
301 String dep;
302 Set<String> retval = new LinkedHashSet<String>();
303 int i=0;
304 while((dep = jEdit.getProperty("plugin." + className + ".depend." + i++)) != null)
jfs_imap.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 3189 lines
✨ Summary
This C code appears to be part of a JFS (Journaling File System) implementation, specifically handling inode operations. It provides functions for copying data between in-memory and disk-based inode structures, as well as updating inode metadata such as permissions, timestamps, and device numbers. The code seems to be focused on ensuring consistency and accuracy when working with JFS file system data.
This C code appears to be part of a JFS (Journaling File System) implementation, specifically handling inode operations. It provides functions for copying data between in-memory and disk-based inode structures, as well as updating inode metadata such as permissions, timestamps, and device numbers. The code seems to be focused on ensuring consistency and accuracy when working with JFS file system data.
493 /*
494 * __mark_inode_dirty expects inodes to be hashed. Since we don't
495 * want special inodes in the fileset inode space, we make them
496 * appear hashed, but do not put on any lists. hlist_del()
497 * will work fine and require no locking.
498 */
499 ip->i_hash.pprev = &ip->i_hash.next;
501 return (ip);
Display_Abbreviations.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 392 lines
70 if(EXCLUDE_EMPTY_SETS)
71 {
72 Hashtable ht = Abbrevs.getModeAbbrevs().get(name);
73 if( ht == null || ht.isEmpty())
74 continue;
91 if(name.equals(currentSet))
92 return v;
93 Hashtable htable = null;
94 if(name.equals("global"))
95 {
98 else
99 {
100 Hashtable modeAbbrevs = Abbrevs.getModeAbbrevs();
101 htable = modeAbbrevs.get(name);
102 }
HistoryModel.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 334 lines
✨ Summary
This Java code defines a HistoryModel
class that manages a list of history entries for a text editor. It allows loading and saving history data to a file, trimming the list to a maximum size, and providing methods for accessing individual entries. The model is designed to be used by multiple text editors, with features like automatic backup and versioning.
This Java code defines a HistoryModel
class that manages a list of history entries for a text editor. It allows loading and saving history data to a file, trimming the list to a maximum size, and providing methods for accessing individual entries. The model is designed to be used by multiple text editors, with features like automatic backup and versioning.
138 {
139 if(models == null)
140 models = new Hashtable();
142 HistoryModel model = (HistoryModel)models.get(name);
168 if(models == null)
169 models = new Hashtable();
171 BufferedReader in = null;
325 private String name;
326 private Vector data;
327 private static Hashtable models;
329 private static boolean modified;
TMXTileSet.java
(http://loon-simple.googlecode.com/svn/trunk/)
Java · 191 lines
✨ Summary
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
This Java class represents a tile set in a TMX (Tiled Map eXchange) file format, used for creating maps in games. It loads and parses the tile set data from an XML file, storing information such as tile dimensions, spacing, and properties. The class provides methods to access and manipulate this data, including getting tile coordinates and checking if a given GID (global ID) is within the tile set’s range.
JavaI18nUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 344 lines
34 import com.intellij.psi.util.*;
35 import com.intellij.util.IncorrectOperationException;
36 import com.intellij.util.containers.HashMap;
37 import gnu.trove.THashSet;
176 }
177 else {
178 processed = new THashSet<PsiMethod>();
179 }
180 processed.add(method);
231 @NotNull String key,
232 @NotNull Ref<String> outResourceBundle) {
233 final HashMap<String, Object> annotationAttributeValues = new HashMap<String, Object>();
234 annotationAttributeValues.put(AnnotationUtil.PROPERTY_KEY_RESOURCE_BUNDLE_PARAMETER, null);
235 if (mustBePropertyKey(project, expression, annotationAttributeValues)) {
266 public static Set<String> suggestExpressionOfType(final PsiClassType type, final PsiLiteralExpression context) {
267 PsiVariable[] variables = MacroUtil.getVariablesVisibleAt(context, "");
268 Set<String> result = new LinkedHashSet<String>();
269 for (PsiVariable var : variables) {
270 PsiType varType = var.getType();
JEditBuffer.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 2670 lines
✨ Summary
This Java code is part of a text editor implementation, specifically handling buffer-local properties and indentation rules. It parses property values from a string, stores them in a map, and applies indentation rules based on the current line’s mode and context. The code also manages transactions, undoing, and dirty state for the editor.
This Java code is part of a text editor implementation, specifically handling buffer-local properties and indentation rules. It parses property values from a string, stores them in a map, and applies indentation rules based on the current line’s mode and context. The code also manages transactions, undoing, and dirty state for the editor.
92 integerArray = new IntegerArray();
93 propertyLock = new Object();
94 properties = new HashMap<Object, PropValue>();
96 //{{{ need to convert entries of 'props' to PropValue instances
125 integerArray = new IntegerArray();
126 propertyLock = new Object();
127 properties = new HashMap<Object, PropValue>();
129 properties.put("wrap",new PropValue("none",false));
RadioButtonMenuItemIcon.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 235 lines
✨ Summary
This Java code defines a custom icon for JRadioButtonMenuItem
s, which are used to represent radio buttons in a menu. The icon is dynamically generated based on the current state of the button and its associated color schemes. It takes into account various factors such as selection, disabled states, and active layers to create a visually appealing representation.
This Java code defines a custom icon for JRadioButtonMenuItem
s, which are used to represent radio buttons in a menu. The icon is dynamically generated based on the current state of the button and its associated color schemes. It takes into account various factors such as selection, disabled states, and active layers to create a visually appealing representation.
77 * Icon cache to speed up the painting.
78 */
79 private static LazyResettableHashMap<Icon> iconMap = new LazyResettableHashMap<Icon>(
80 "RadioButtonMenuItemIcon");
132 .getFacetStrength(ComponentStateFacet.SELECTION);
134 HashMapKey keyBase = SubstanceCoreUtilities.getHashKey(fontSize,
135 checkMarkSize, fillPainter.getDisplayName(), borderPainter
136 .getDisplayName(),
179 ColorSchemeAssociationKind.BORDER, activeState);
181 HashMapKey keyLayer = SubstanceCoreUtilities.getHashKey(
182 fontSize, checkMarkSize, fillPainter.getDisplayName(),
183 borderPainter.getDisplayName(), fillColorScheme
VcsChangeDetailsManager.java (https://bitbucket.org/nbargnesi/idea.git) Java · 365 lines
qdesktopservices.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 312 lines
58 #endif
60 #include <qhash.h>
61 #include <qobject.h>
62 #include <qcoreapplication.h>
79 QByteArray name;
80 };
81 typedef QHash<QString, Handler> HandlerHash;
82 HandlerHash handlers;
91 void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler)
92 {
93 HandlerHash::Iterator it = handlers.begin();
94 while (it != handlers.end()) {
95 if (it->receiver == handler) {
191 if (!insideOpenUrlHandler) {
192 QOpenUrlHandlerRegistry::HandlerHash::ConstIterator handler = registry->handlers.constFind(url.scheme());
193 if (handler != registry->handlers.constEnd()) {
194 insideOpenUrlHandler = true;
painting.pri (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 277 lines
XmlActions.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1218 lines
✨ Summary
This Java code is part of an XML editor plugin, providing functionality for editing and manipulating XML documents. It includes methods for copying XPath expressions, opening schema files, generating DTDs, and handling buffer properties. The code also includes utility methods for working with buffers and segments, such as counting newlines and finding non-whitespace characters.
This Java code is part of an XML editor plugin, providing functionality for editing and manipulating XML documents. It includes methods for copying XPath expressions, opening schema files, generating DTDs, and handling buffer properties. The code also includes utility methods for working with buffers and segments, such as counting newlines and finding non-whitespace characters.
112 // use a StringTokenizer to parse the tag - WTF?!?? Why not find data?
113 HashMap attributes = new HashMap();
114 String attributeName = null;
115 boolean seenEquals = false;
131 st.ordinaryChar('=');
133 Map entityHash = data.getNoNamespaceCompletionInfo().entityHash;
135 //{{{ parse tag
990 XmlParsedData data = (XmlParsedData)_data;
992 Map entityHash = data.getNoNamespaceCompletionInfo().entityHash;
994 Selection[] selection = textArea.getSelection();
cvfont.h
(git://github.com/ryanfb/ruby-opencv.git)
C Header · 57 lines
✨ Summary
This C header file defines a Ruby extension for OpenCV’s font functionality. It provides constants and functions to interact with OpenCV fonts, such as FONT_OPTION
, FO_ITALIC
, and rb_face
. The code also includes data structures and functions for initializing and manipulating the font objects, allowing Ruby developers to use OpenCV fonts in their applications.
This C header file defines a Ruby extension for OpenCV’s font functionality. It provides constants and functions to interact with OpenCV fonts, such as FONT_OPTION
, FO_ITALIC
, and rb_face
. The code also includes data structures and functions for initializing and manipulating the font objects, allowing Ruby developers to use OpenCV fonts in their applications.
21 #define FONT_OPTION(op) NIL_P(op) ? rb_const_get(rb_class(), rb_intern("FONT_OPTION")) : rb_funcall(rb_const_get(rb_class(), rb_intern("FONT_OPTION")), rb_intern("merge"), 1, font_option)
22 #define FO_ITALIC(op) ({VALUE _italic = rb_hash_aref(op, ID2SYM(rb_intern("italic"))); NIL_P(_italic) ? 0 : _italic == Qfalse ? 0 : CV_FONT_ITALIC;})
23 #define FO_HSCALE(op) NUM2DBL(rb_hash_aref(op, ID2SYM(rb_intern("hscale"))))
24 #define FO_VSCALE(op) NUM2DBL(rb_hash_aref(op, ID2SYM(rb_intern("vscale"))))
25 #define FO_SHEAR(op) NUM2DBL(rb_hash_aref(op, ID2SYM(rb_intern("shear"))))
26 #define FO_THICKNESS(op) FIX2INT(rb_hash_aref(op, ID2SYM(rb_intern("thickness"))))
27 #define FO_LINE_TYPE(op) FIX2INT(rb_hash_aref(op, ID2SYM(rb_intern("line_type"))))
AppBundleProperties.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 338 lines
✨ Summary
This Java class, AppBundleProperties
, represents a bundle of properties for an application on Mac OS X. It provides various setter and getter methods to configure properties such as application name, main class, CFBundleName, JVM version, and more. The class also includes lists for class path, extra class path, document types, services, and Java properties.
This Java class, AppBundleProperties
, represents a bundle of properties for an application on Mac OS X. It provides various setter and getter methods to configure properties such as application name, main class, CFBundleName, JVM version, and more. The class also includes lists for class path, extra class path, document types, services, and Java properties.
24 // Java Utility
25 import java.util.ArrayList;
26 import java.util.Hashtable;
27 import java.util.List;
28 import java.util.LinkedList;
90 // Java properties
91 private Hashtable mJavaProperties = new Hashtable();
93 // Document types
101 /**
102 * Add a Java runtime property to the properties hashtable.
103 */
FormatterImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 807 lines
37 import org.jetbrains.annotations.Nullable;
39 import java.util.HashMap;
40 import java.util.Map;
41 import java.util.concurrent.atomic.AtomicInteger;
698 }
700 private final Map<SpacingImpl,SpacingImpl> ourSharedProperties = new HashMap<SpacingImpl,SpacingImpl>();
701 private final SpacingImpl ourSharedSpacing = new SpacingImpl(-1,-1,-1,false,false,false,-1,false,0);
AbbrevsOptionPane.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 512 lines
✨ Summary
This Java code defines a GUI application for managing abbreviations and expansions. It creates a table model AbbrevsModel
that stores abbreviations and their corresponding expansions in a vector. The table is displayed in a GUI with two columns, one for the abbreviation and one for the expansion. Users can add, remove, and sort abbreviations and expansions using various methods and properties.
This Java code defines a GUI application for managing abbreviations and expansions. It creates a table model AbbrevsModel
that stores abbreviations and their corresponding expansions in a vector. The table is displayed in a GUI with two columns, one for the abbreviation and one for the expansion. Users can add, remove, and sort abbreviations and expansions using various methods and properties.
143 Abbrevs.setGlobalAbbrevs(globalAbbrevs.toHashtable());
145 Hashtable modeHash = new Hashtable();
146 Enumeration keys = modeAbbrevs.keys();
147 Enumeration values = modeAbbrevs.elements();
342 //{{{ AbbrevsModel constructor
343 AbbrevsModel(Hashtable abbrevHash)
344 {
345 abbrevs = new Vector();
385 public Hashtable toHashtable()
386 {
387 Hashtable hash = new Hashtable();
388 for(int i = 0; i < abbrevs.size(); i++)
389 {
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.
21 //{{{ Imports
22 import java.util.ArrayList;
23 import java.util.HashMap;
24 import java.util.List;
25 import java.util.Collections;
62 //{{{ Private members
63 private static final String SEPARATOR = "/";
64 private Map cache = new HashMap();
65 // private List filterList = new ArrayList();
66 //}}}
JSOESStandardDerivatives.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 125 lines
34 ASSERT_CLASS_FITS_IN_CELL(JSOESStandardDerivatives);
36 /* Hash table for prototype */
37 #if ENABLE(JIT)
38 #define THUNK_GENERATOR(generator) , generator
41 #endif
43 static const HashTableValue JSOESStandardDerivativesPrototypeTableValues[2] =
44 {
45 { "FRAGMENT_SHADER_DERIVATIVE_HINT_OES", DontDelete | ReadOnly, (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsOESStandardDerivativesFRAGMENT_SHADER_DERIVATIVE_HINT_OES), (intptr_t)0 THUNK_GENERATOR(0) },
49 #undef THUNK_GENERATOR
50 static JSC_CONST_HASHTABLE HashTable JSOESStandardDerivativesPrototypeTable = { 2, 1, JSOESStandardDerivativesPrototypeTableValues, 0 };
51 const ClassInfo JSOESStandardDerivativesPrototype::s_info = { "OESStandardDerivativesPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSOESStandardDerivativesPrototypeTable, 0 };
JSWebGLUniformLocation.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 167 lines
34 ASSERT_CLASS_FITS_IN_CELL(JSWebGLUniformLocation);
36 /* Hash table */
37 #if ENABLE(JIT)
38 #define THUNK_GENERATOR(generator) , generator
49 #undef THUNK_GENERATOR
50 static JSC_CONST_HASHTABLE HashTable JSWebGLUniformLocationTable = { 2, 1, JSWebGLUniformLocationTableValues, 0 };
51 /* Hash table for constructor */
63 #undef THUNK_GENERATOR
64 static JSC_CONST_HASHTABLE HashTable JSWebGLUniformLocationConstructorTable = { 1, 0, JSWebGLUniformLocationConstructorTableValues, 0 };
65 class JSWebGLUniformLocationConstructor : public DOMConstructorObject {
66 public:
111 #undef THUNK_GENERATOR
112 static JSC_CONST_HASHTABLE HashTable JSWebGLUniformLocationPrototypeTable = { 1, 0, JSWebGLUniformLocationPrototypeTableValues, 0 };
113 const ClassInfo JSWebGLUniformLocationPrototype::s_info = { "WebGLUniformLocationPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSWebGLUniformLocationPrototypeTable, 0 };
LinkableRunEngine.cs (https://hg01.codeplex.com/hydrodesktop) C# · 849 lines
350 public override void Initialize(IArgument[] properties)
351 {
352 System.Collections.Hashtable hashtable =new Hashtable();
353 for(int i = 0; i < properties.Length;i++)
354 {
355 hashtable.Add(properties[i].Key,properties[i].Value);
356 }
358 SetEngineApiAccess();
359 this._engineWasAssigned = true;
360 _engineApiAccess.Initialize(hashtable);
362 if (!_engineWasAssigned)
DictionarySQLiteConnection.java
(http://softkeyboard.googlecode.com/svn/)
Java · 105 lines
✨ Summary
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
This Java code defines a SQLite database connection for storing and retrieving dictionary words with their frequencies. It provides methods to add new words, retrieve all existing words, and handle database upgrades and downgrades. The data is stored in a table with columns for word, frequency, and an auto-incrementing ID.
23 {
24 Log.e("AnySoftKeyboard", "Got a NULL word from dictionary! This is illegal!");
25 word = "" + this.hashCode();
26 }
27 mWord = word;
67 ContentValues values = new ContentValues();
68 values.put("Id", word.hashCode());//ensuring that any word is inserted once
69 values.put(mWordsColumnName, word);
70 values.put(mFrequencyColumnName, freq);
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
des_ver.h (http://opensource.apple.com/release/mac-os-x-1074/) C Header · 86 lines
32 * the following conditions are aheared to. The following conditions
33 * apply to all code found in this distribution, be it the RC4, RSA,
34 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
35 * included with this distribution is covered by the same copyright terms
36 * except that the holder is Tim Hudson (<a href="mailto:tjh@cryptsoft.com">tjh@cryptsoft.com</a>).
MavenDomElementDescriptorHolder.java (https://bitbucket.org/nbargnesi/idea.git) Java · 139 lines
33 import com.intellij.xml.XmlElementDescriptor;
34 import com.intellij.xml.impl.schema.XmlNSDescriptorImpl;
35 import gnu.trove.THashMap;
36 import org.jetbrains.annotations.NotNull;
37 import org.jetbrains.annotations.Nullable;
66 private final Project myProject;
67 private final Map<FileKind, CachedValue<XmlNSDescriptorImpl>> myDescriptorsMap =
68 new THashMap<FileKind, CachedValue<XmlNSDescriptorImpl>>();
70 public MavenDomElementDescriptorHolder(Project project) {
FtpPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 169 lines
✨ Summary
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
This Java code defines a plugin for the JEdit text editor, specifically an FTP (File Transfer Protocol) plugin. It provides methods to open and save files from an FTP server, as well as initialize the SSH tools home directory with default configuration files. The plugin uses various utility classes and logging mechanisms to handle file operations and errors.
FtpPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 175 lines
✨ Summary
This Java code implements an FTP plugin for a text editor, providing functionality such as browsing and saving files on FTP servers, displaying login dialogs, and managing saved passwords. It integrates with the editor’s virtual file system (VFS) to allow users to interact with FTP servers within the editor.
This Java code implements an FTP plugin for a text editor, providing functionality such as browsing and saving files on FTP servers, displaying login dialogs, and managing saved passwords. It integrates with the editor’s virtual file system (VFS) to allow users to interact with FTP servers within the editor.
20 import java.awt.Component;
21 import java.util.Hashtable;
22 import java.util.Vector;
23 import org.gjt.sp.jedit.browser.VFSBrowser;
30 public void start()
31 {
32 loginHash = new Hashtable();
33 VFSManager.registerVFS(FtpVFS.PROTOCOL,new FtpVFS());
34 }
171 }
173 private static Hashtable loginHash;
174 }
GraphicsContext3D.h (git://pkgs.fedoraproject.org/qtwebkit) C++ Header · 941 lines
32 #include "PlatformString.h"
34 #include <wtf/HashMap.h>
35 #include <wtf/ListHashSet.h>
899 bool isValid;
900 } ShaderSourceEntry;
901 HashMap<Platform3DObject, ShaderSourceEntry> m_shaderSourceMap;
903 friend class Extensions3DOpenGL;
927 // Errors raised by synthesizeGLError().
928 ListHashSet<GC3Denum> m_syntheticErrors;
929 #endif
TestDynamicWeaver.java
(git://github.com/kilim/kilim.git)
Java · 97 lines
✨ Summary
This Java code tests a dynamic weaver tool, Kilim, by compiling and weaving two sample Java classes. It verifies that the compiled classes are correctly woven into a new class hierarchy, ensuring that the original classes remain loadable while the new classes are not. The test also checks that the woven classes have been successfully loaded by a custom ClassLoader.
This Java code tests a dynamic weaver tool, Kilim, by compiling and weaving two sample Java classes. It verifies that the compiled classes are correctly woven into a new class hierarchy, ensuring that the original classes remain loadable while the new classes are not. The test also checks that the woven classes have been successfully loaded by a custom ClassLoader.
3 import java.util.Arrays;
4 import java.util.HashSet;
5 import java.util.List;
44 List<ClassInfo> classes = Javac.compile(Arrays.asList(code1, code2));
45 assertTrue(classes.size() == 4);
46 HashSet<String> expectedClasses = new HashSet<String>(
47 Arrays.asList("code1.A", "code1.A$Inner", "code1.Outer", "code2.B"));
62 HashSet<String> expectedClasses = new HashSet<String>(
63 Arrays.asList("kilim.S_I", "code1.A$Inner", "code1.Outer"));