100+ results for 'php sin'

Not the results you expected?

Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines

1 <?php

2

3 /*

34

35 // Required classes

36 require_once MAX_PATH . '/lib/OA/Dal/Statistics.php';

37

38 /**

49 * @param date $oStartDate The date from which to get statistics (inclusive)

50 * @param date $oEndDate The date to which to get statistics (inclusive)

51 * @param bool $localTZ Should stats be using the manager TZ or UTC?

52 *

53 * @return array Each row containing:

108 * @param date $oStartDate The date from which to get statistics (inclusive)

109 * @param date $oEndDate The date to which to get statistics (inclusive)

110 * @param bool $localTZ Should stats be using the manager TZ or UTC?

111 *

112 * @return RecordSet

InstallSchema.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 407 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

18 /**

19 * {@inheritdoc}

20 * @SuppressWarnings(PHPMD.ExcessiveMethodLength)

21 */

22 public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)

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 *

101 */

102 #[@test]

103 public function equalsMethodIsInvoked() {

104 $instance= newinstance('lang.Object', array(), '{

105 public $equalsInvoked= 0;

108 $this->equalsInvoked++;

109 return $other instanceof self && $this->equalsInvoked == $other->equalsInvoked;

110 }

111 }');

113 $this->assertEquals($instance, $instance);

114 $this->assertNotEquals($instance, NULL);

115 $this->assertEquals(2, $instance->equalsInvoked);

116 }

117

faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines

14 <!-- all <h1> headings should be changed to <h2> -->

15

16 <!-- Command line for processing: -->

17 <!-- -->

18 <!-- xsltproc -catalogs -output .\html\ faq.xsl faq.xml -->

99 This draft incorporates material from the Interactive FAQ section

100 of the <ulink url=

101 "http://community.jedit.org/modules.php?op=modload&amp;name=faq&amp;file=index"

102 >jEdit Community web site</ulink>.

103 </releaseinfo>

class-cp-user-relationships.php (https://gitlab.com/dev73/clusterpress) PHP · 543 lines

91 * @type string $name The name of the relationship.

92 * @type string $cluster The Cluster ID.

93 * @type string $singular The singular label for the relationship.

94 * @type string $plural The plural label for the relationship.

95 * @type string $description The description of the relationship.

112 'name' => '',

113 'cluster' => $cluster,

114 'singular' => '',

115 'plural' => '',

116 'description' => '',

163 * Add a relationship entry for the user.

164 *

165 * @since 1.0.0

166 *

167 * @param array $args The query arguments {

Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines

1 <?php

2 /**

3 * Zend Framework

46

47 /**

48 * Add a single event to connect to the editing area

49 *

50 * @param string $event

145

146 /**

147 * Add a single event to the dijit

148 *

149 * @param string $event

243

244 /**

245 * Add a single editor plugin

246 *

247 * @param string $plugin

ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines

1 <?php

2 /**

3 * File containing the eZISBN10To13Converter class.

36 /*!

37 Add all classes. Will fetch all class attributes from the database that has the ISBN

38 datatype and register it in a class variable AttributeArray for later processing.

39

40 \return true if successfull and false if not.

77 /*!

78 Add all ezisbn class attributes from a class with a specific id and register them

79 in a class variable AttributeArray for later processing.

80

81 \return true if successfull and false if not.

135 /*!

136 Add one ezisbn class attribute with a specific class attribute id and register it

137 in a class variable AttributeArray for later processing.

138

139 \return true if successfull and false if not.

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>

43 {

44 $lightboxID = false;

45 $error_message = ezpI18n::tr( 'lightbox/error', 'Missing or invalid lightbox ID %1.',

46 null, array( $lightboxID )

47 );

321 }

322 $targetLightboxID = false;

323 $error_message = ezpI18n::tr( 'lightbox/error', 'Missing target lightbox ID.' );

324 if ( $http->hasPostVariable( 'MoveToLightboxID' ) )

325 {

pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines

1 <?php

2

3 return [

132 'enter_a_name' => 'Enter a Name',

133 'video' => 'Video',

134 'processing_subtitles' => 'Processing Subtitles',

135 'not_translated_rows' => 'Not Translated Rows',

136 'you_can_lock_the_rows' => 'You can lock the rows in here.',

DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines

1 <?php

2

3 /**

4 * Admin ajax functions to be tested

5 */

6 require_once( ABSPATH . 'wp-admin/includes/ajax-actions.php' );

7

8 /**

11 * @package WordPress

12 * @subpackage UnitTests

13 * @since 3.4.0

14 * @group ajax

15 */

70 $_POST['_per_page'] = 100;

71 $_POST['_page'] = 1;

72 $_POST['_url'] = admin_url( 'edit-comments.php' );

73

74 // Make the request

orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines

1 <?php

2 namespace Bitrix\Sale\Exchange\OneC;

3

17 * @return array

18 */

19 static public function getFieldsInfo()

20 {

21 if(!self::$FIELD_INFOS)

592 );

593

594 static::unitFieldsInfo(self::$FIELD_INFOS);

595 static::koefFieldsInfo(self::$FIELD_INFOS);

598 }

599

600 static protected function unitFieldsInfo(&$info)

601 {

602 $info['ITEMS']['FIELDS']['ITEM_UNIT'] = array(

SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines

1 <?php

2

3 /**

4 * Purge using AmazonSNS object

5 */

6

7 w3_require_once(W3TC_LIB_W3_DIR . '/Enterprise/SnsBase.php');

8

9 /**

181

182 /**

183 * Reloads/compiles a PHP file.

184 * @param string $filename

185 * @return mixed

Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Tag_Item

25 */

26 #require_once 'Zend/Tag/Item.php';

27

28 /**

131 * Set the tags for the tag cloud.

132 *

133 * $tags should be an array containing single tags as array. Each tag

134 * array should at least contain the keys 'title' and 'weight'. Optionally

135 * you may supply the key 'url', to which the tag links to. Any additional

151 $itemList[] = new Zend_Tag_Item($tag);

152 } else {

153 #require_once 'Zend/Tag/Cloud/Exception.php';

154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

155 }

Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

400 }

401

402 // If the item is just a file, we can go ahead and delete it since we're

403 // just looping through and waxing all of the files in this directory

404 // and calling directories recursively, so we delete the real path.

JFacebookNoteTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 467 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

13 * @package Joomla.UnitTest

14 * @subpackage Facebook

15 * @since 13.1

16 */

17 class JFacebookNoteTest extends TestCase

19 /**

20 * @var JRegistry Options for the Facebook object.

21 * @since 13.1

22 */

23 protected $options;

25 /**

26 * @var JHttp Mock client object.

27 * @since 13.1

28 */

29 protected $client;

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

21 * http://www.horde.org/licenses/lgpl21.

22 *

23 * @since Horde_Kolab_Format 1.1.0

24 *

25 * @category Kolab

43 * @var int

44 */

45 protected $value = Horde_Kolab_Format_Xml::VALUE_MAYBE_MISSING;

46

47 /**

YamlFileLoader.php (https://bitbucket.org/cryofrost/portal.git) PHP · 339 lines

1 <?php

2

3 /*

212 foreach ($service['tags'] as $tag) {

213 if (!isset($tag['name'])) {

214 throw new InvalidArgumentException(sprintf('A "tags" entry is missing a "name" key for service "%s" in %s.', $id, $file));

215 }

216

fengoffice.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 121 lines

1 <?php return array(

2 'chelp add event invitation' => 'Velg brukerene du vil invitere til arrangementet.',

3 'how to purchase' => 'Hvordan kjøpe',

46 'chelp add milestone reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

47 'chelp add event reminders' => 'Du kan velge om du vil motta en påminnelse når hendelsen starter. Velg om du vil ha påminnelser som sprettopp-beskjeder i systemet eller om du vil motta e-postvarsel.',

48 'free trial upgrade' => 'Dette er en 30-dagers prøveinstallasjon. Dersom du vil beholde informasjonen og fortsette å bruke våre tjenester: <a class="dashboard-link" href="http://www.fengoffice.com/web/pricing.php">Oppgrader til et abonnement</a>',

49 'chelp personal account' => '<b>Velkommen til kontopanelet</b><br/>

50 I dette menyvalget kan du redigere din personlige informasjon.<br/>

93 <b>Legg til kontakt:</b> Velg å legge til kontakten.<br/>

94 Definer mer informasjon i alternativ-listen.',

95 'chelp add company' => 'I dette skjermbildet kan du skrive inn foretaksinformasjonen.<br/>

96 <br/>

97 <b>Egendefinerte egenskaper:</b> Lar deg opprette et nytt informasjonsfelt. (For eksempel: Foretakstype)<br/>

DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines

1 <?php

2

3 /*

18 * Helper for specifying and resolving inter-dependent options.

19 *

20 * Options are a common pattern for initializing classes in PHP. Avoiding the

21 * problems related to this approach is however a non-trivial task. Usually,

22 * both classes and subclasses should be able to set default option values.

33 * - Define default values for options that depend on the <em>concrete</em>

34 * values of other options.

35 * - Resolve the concrete option values by passing the options set by the

36 * user.

37 *

Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_Tag_Item

25 */

26 require_once 'Zend/Tag/Item.php';

27

28 /**

131 * Set the tags for the tag cloud.

132 *

133 * $tags should be an array containing single tags as array. Each tag

134 * array should at least contain the keys 'title' and 'weight'. Optionally

135 * you may supply the key 'url', to which the tag links to. Any additional

151 $itemList[] = new Zend_Tag_Item($tag);

152 } else {

153 require_once 'Zend/Tag/Cloud/Exception.php';

154 throw new Zend_Tag_Cloud_Exception('Tag must be an instance of Zend_Tag_Taggable or an array');

155 }

GlyphPacker.cs (https://github.com/virtualglobebook/OpenGlobe.git) C# · 270 lines

20 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT

21 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

22 // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

23 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

24 // OTHER DEALINGS IN THE SOFTWARE.

26 #endregion

27

28 using System;

29 using System.Collections.Generic;

30 using System.Text;

31 using System.Drawing;

33 namespace OpenTK.Graphics.Text

34 {

35 class GlyphPacker

36 {

37 Node root;

TSqlMapGateway.php (https://bitbucket.org/volatileeight/prado.git) PHP · 259 lines

1 <?php

2 /**

3 * TSqlMapGateway class file.

10 */

11

12 Prado::using('System.Data.SqlMap.TSqlMapManager');

13

14 /**

17 *

18 * # execute an update query (including insert and delete).

19 * # execute a select query for a single object

20 * # execute a select query for a list of objects

21 *

24 * @author Wei Zhuo <weizhuo[at]gmail[dot]com>

25 * @package System.Data.SqlMap

26 * @since 3.1

27 */

28 class TSqlMapGateway extends TComponent

Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines

1 <?php

2

3 namespace User;

57 public function getConfig()

58 {

59 return include __DIR__.'/../../config/module.config.php';

60 }

61

223

224 /**

225 * Return an array for passing to Zend\Loader\AutoloaderFactory.

226 *

227 * @return array

Set.php (https://github.com/eexit/Smak.git) PHP · 362 lines

1 <?php

2

3 namespace Smak\Portfolio\tests\units;

8 use tests\units\Smak\Portfolio\Fs;

9

10 require_once __DIR__ . '/../../../../vendor/autoload.php';

11

12 class Set extends Fs\FsAdapter

62

63 $this->object($set)

64 ->isInstanceOf('\Symfony\Component\Finder\Finder');

65

66 $this->object($set)

67 ->isInstanceOf('\Smak\Portfolio\Portfolio');

68

69 $this->class('\Smak\Portfolio\Set')

BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines

1 <?php

2

3

47 *

48 * @param string $dbName The dabase name

49 * @param string $modelName The phpName of a model, e.g. 'Book'

50 * @param string $modelAlias The alias for the model in this query, e.g. 'b'

51 */

131 public function filterByPrimaryKey($key)

132 {

133 return $this->addUsingAlias(CcBackupPeer::TOKEN, $key, Criteria::EQUAL);

134 }

135

143 public function filterByPrimaryKeys($keys)

144 {

145 return $this->addUsingAlias(CcBackupPeer::TOKEN, $keys, Criteria::IN);

146 }

147

ConfigListener.php (https://bitbucket.org/juan_sanchez/aiyellow.git) PHP · 383 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

351 case self::GLOB_PATH:

352 // We want to keep track of where each value came from so we don't

353 // use ConfigFactory::fromFiles() since it does merging internally.

354 foreach (Glob::glob($path, Glob::GLOB_BRACE) as $file) {

355 $this->addConfig($file, ConfigFactory::fromFile($file));

class-cp-interactions-cluster.php (https://gitlab.com/dev73/clusterpress) PHP · 345 lines

1 <?php

2 /**

3 * Interactions Cluster.

6 * @subpackage interactions-cluster

7 *

8 * @since 1.0.0

9 */

10

15 * The Interactions CLuster Class.

16 *

17 * @since 1.0.0

18 */

19 class CP_Interactions_Cluster extends CP_Cluster {

22 * The constructor

23 *

24 * @since 1.0.0

25 *

26 * @param array args The Interactions Cluster arguments.

SimpleHeaderSet.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 387 lines

1 <?php

2

3 /*

72

73 /**

74 * Add a new Date header using $timestamp (UNIX time).

75 *

76 * @param string $name

ClientUsageTest.java (https://bitbucket.org/beginnerjyh/jetty.project.git) Java · 260 lines

11 //

12 // The Apache License v2.0 is available at

13 // http://www.opensource.org/licenses/apache2.0.php

14 //

15 // You may elect to redistribute this code under either of these licenses.

194 {

195 // Differently from JDK 7 AIO, there is no need to

196 // have an explicit parameter for the context since

197 // that is captured while the handler is created anyway,

198 // and it is used only by the handler as parameter

199

200 // The style below is fire-and-forget, since

201 // we do not pass the handler nor we call get()

202 // to wait for the data to be sent

Type.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 344 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_Eav

23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

326 public function getEntity()

327 {

328 return Mage::getResourceSingleton($this->_data['entity_model']);

329 }

330

modules-defaults.php (https://gitlab.com/Magi1053/Extra) PHP · 250 lines

1 <?php

2 // Prevent file from being loaded directly

3 if ( ! defined( 'ABSPATH' ) ) {

Form.class.php (https://github.com/bassta/onphp-framework.git) PHP · 498 lines

1 <?php

2 /****************************************************************************

3 * Copyright (C) 2004-2009 by Konstantin V. Arkhipov, Anton E. Lebedevich *

16 * @ingroup Module

17 *

18 * @see http://onphp.org/examples.Form.en.html

19 **/

20 final class Form extends RegulatedForm

21 {

22 const WRONG = 0x0001;

23 const MISSING = 0x0002;

24

25 private $errors = array();

121 * @return Form

122 **/

123 public function markMissing($primitiveName, $label = null)

124 {

125 return $this->markCustom($primitiveName, Form::MISSING, $label);

sale.php (https://github.com/sansanwawa/e-commerse.git) PHP · 307 lines

1 <?php

2 class ModelReportSale extends Model {

3 public function getOrders($data = array()) {

Clinic.php (https://gitlab.com/jeamar1234/medicloud) PHP · 242 lines

1 <?php

2

3 use Illuminate\Auth\UserTrait;

86 cos( radians( lat ) )

87 * cos( radians( lng ) - radians({$lng})

88 ) + sin( radians({$lat}) ) *

89 sin( radians( lat ) ) )

109 cos( radians( lat ) )

110 * cos( radians( lng ) - radians({$lng})

111 ) + sin( radians({$lat}) ) *

112 sin( radians( lat ) ) )

131 cos( radians( lat ) )

132 * cos( radians( lng ) - radians({$lng})

133 ) + sin( radians({$lat}) ) *

134 sin( radians( lat ) ) )

vfsStreamWrapperFileTestCase.php (https://github.com/acoulton/vfsStream.git) PHP · 335 lines

1 <?php

2 /**

3 * Test for org::bovigo::vfs::vfsStreamWrapper.

9 require_once 'org/bovigo/vfs/vfsStream.php';

10 require_once 'PHPUnit/Framework/TestCase.php';

11 require_once dirname(__FILE__) . '/vfsStreamWrapperBaseTestCase.php';

116

117 /**

118 * using a file pointer should work without any problems

119 *

120 * @test

121 */

122 public function usingFilePointer()

123 {

124 $fp = fopen($this->baz1URL, 'r');

SimpleHeaderSet.php (https://gitlab.com/madwanz64/laravel) PHP · 399 lines

1 <?php

2

3 /*

73

74 /**

75 * Add a new Date header using $dateTime.

76 *

77 * @param string $name

NullTest.php (https://github.com/bruisedlee/zf2.git) PHP · 329 lines

1 <?php

2 /**

3 * Zend Framework

32 * @group Zend_Filter

33 */

34 class NullTest extends \PHPUnit_Framework_TestCase

35 {

36 /**

265 * @return void

266 */

267 public function testSingleStringNotation()

268 {

269 $filter = new NullFilter(

query_builder.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 302 lines

1 <?php

2 /**

3 * File containing the ezcSearchQueryBuilder class.

226 if ( $this->stackType[$this->stackLevel] === 'and' )

227 {

228 throw new ezcSearchBuildQueryException( 'You can not mix AND and OR without using "(" and ")".' );

229 }

230 else

237 if ( $this->stackType[$this->stackLevel] === 'or' )

238 {

239 throw new ezcSearchBuildQueryException( 'You can not mix OR and AND without using "(" and ")".' );

240 }

241 else

class-wp-customize-setting.php (https://gitlab.com/Blueprint-Marketing/WordPress-1) PHP · 439 lines

1 <?php

2 /**

3 * Customize Setting Class.

5 * @package WordPress

6 * @subpackage Customize

7 * @since 3.4.0

8 */

9 class WP_Customize_Setting {

26 * Constructor.

27 *

28 * @since 3.4.0

29 *

30 * @param WP_Customize_Manager $manager

65 * Handle previewing the setting.

66 *

67 * @since 3.4.0

68 */

69 public function preview() {

ListenerOptions.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 396 lines

1 <?php

2 /**

3 * Zend Framework (http://framework.zend.com/)

268 {

269 if ($this->getConfigCacheKey()) {

270 return $this->getCacheDir() . '/module-config-cache.' . $this->getConfigCacheKey().'.php';

271 }

272

273 return $this->getCacheDir() . '/module-config-cache.php';

274 }

275

352 {

353 if ($this->getModuleMapCacheKey()) {

354 return $this->getCacheDir() . '/module-classmap-cache.' . $this->getModuleMapCacheKey() . '.php';

355 }

356

ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines

61 * library.

62 * @param int $encoding_mode - The encoding mode. Can be FORCE_GZIP (the

63 * default) or FORCE_DEFLATE. Prior to PHP 5.4.0, using FORCE_DEFLATE

64 * results in a standard zlib deflated string (inclusive zlib headers)

65 * after a gzip file header but without the trailing crc32 checksum. In

307 * This function compresses the given string using the nzlib data format, which

308 * is primarily used for compressing and uncompressing memcache values.

309 *

310 * @param string $uncompressed - The uncompressed data

317 /**

318 * This function uncompresses the given string given that it is in the nzlib

319 * data format, which is primarily used for compressing and uncompressing

320 * memcache values

321 *

330 * This function compresses the given string using the lz4lib data format, which

331 * is primarily used for compressing and uncompressing memcache values.

332 *

333 * @param string $uncompressed - The uncompressed data

FingersCrossedHandlerTest.php (https://gitlab.com/techniconline/kmc) PHP · 255 lines

1 <?php

2

3 /*

31 $handler->handle($this->getRecord(Logger::INFO));

32 $this->assertFalse($test->hasDebugRecords());

33 $this->assertFalse($test->hasInfoRecords());

34 $handler->handle($this->getRecord(Logger::WARNING));

35 $handler->close();

36 $this->assertTrue($test->hasInfoRecords());

37 $this->assertTrue(count($test->getRecords()) === 3);

38 }

67 $this->assertTrue($test->hasWarningRecords());

68 $this->assertTrue($test->hasDebugRecords());

69 $this->assertFalse($test->hasInfoRecords());

70 }

71

CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines

1 <?php

2 /**

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

16 * @license http://www.opensource.org/licenses/mit-license.php MIT License

17 */

18

JErrorTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 470 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

8 */

9

10 require_once __DIR__ . '/JErrorInspector.php';

11

12 /**

15 * @package Joomla.UnitTest

16 * @subpackage Error

17 * @since 12.3

18 */

19 class JErrorTest extends TestCase

test.php (https://github.com/F5/zetacomponents.git) PHP · 297 lines

1 <?php

2 /**

3 *

59

60 /**

61 * Tests assigning a value to a missing property.

62 *

63 * Expects that an ezcBasePropertyNotFoundException is raised by the missing

67 * @param string $property The property of the $properties object to test

68 */

69 protected function missingPropertyTest( $properties, $property )

70 {

71 try

112 * Tests assigning a non-existent path to a property.

113 *

114 * Expects that an ezcBaseFileNotFoundException is raised by the missing

115 * path.

116 *

4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines

1 <?php

2 /**

3 * Changes major.minor revisions to single revision numbers.

13 * @package Wicked

14 */

15 class WickedSingleRevisions extends Horde_Db_Migration_Base

16 {

17 private $_vfs;

20 {

21 parent::__construct($connection, $version);

22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';

23 $this->_vfs = $GLOBALS['injector']

24 ->getInstance('Horde_Core_Factory_Vfs')

AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines

32

33 /**

34 * Responsible for parsing a php class

35 *

36 * @author Richard Downes <richard@sculpt.ie>

44 * Responsible for storing the information about the structure being parsed

45 *

46 * @var \Meta\AbstractPHPStructure $structure Stores meta information about the structure

47 */

48 protected $structure;

313 $parser->phpFunction()->setAbstract($this->abstractMember);

314 $parser->phpFunction()->setDocBlock($this->docBlock);

315

316 // parse the function

480

481 /**

482 * Responsible for parsing the inheritance of a structure

483 *

484 * @param string $text The text to parse

Tag.php (https://github.com/michaelmcandrew/vaw.git) PHP · 215 lines

1 <?php

2

3 /*

11 | CiviCRM is free software; you can copy, modify, and distribute it |

12 | under the terms of the GNU Affero General Public License |

13 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |

14 | |

15 | CiviCRM is distributed in the hope that it will be useful, but |

19 | |

20 | You should have received a copy of the GNU Affero General Public |

21 | License and the CiviCRM Licensing Exception along |

22 | with this program; if not, contact CiviCRM LLC |

23 | at info[AT]civicrm[DOT]org. If you have questions about the |

24 | GNU Affero General Public License or the licensing of CiviCRM, |

25 | see the CiviCRM license FAQ at http://civicrm.org/licensing |

EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines

1 <?php

2

3 namespace Drupal\Tests\Core\Entity;

6 use Drupal\Core\Cache\Cache;

7 use Drupal\Core\Cache\CacheBackendInterface;

8 use Drupal\Core\Cache\CacheTagsInvalidatorInterface;

9 use Drupal\Core\Entity\EntityInterface;

10 use Drupal\Core\Entity\EntityTypeBundleInfo;

42 * The cache tags invalidator.

43 *

44 * @var \Drupal\Core\Cache\CacheTagsInvalidatorInterface|\Prophecy\Prophecy\ProphecyInterface

45 */

46 protected $cacheTagsInvalidator;

88 $this->entityTypeManager = $this->prophesize(EntityTypeManagerInterface::class);

89

90 $this->cacheTagsInvalidator = $this->prophesize(CacheTagsInvalidatorInterface::class);

91

92 $language = new Language(['id' => 'en']);

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 |

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 //

215 $approvedlist = new approved_userlist($usercontext1, $component, $userlist1->get_userids());

216

217 // Delete user data using delete_data_for_user for usercontext1.

218 provider::delete_data_for_users($approvedlist);

219

231 // Add userlist2 to the approved user list in the system context.

232 $approvedlist = new approved_userlist($systemcontext, $component, $userlist2->get_userids());

233 // Delete user1 data using delete_data_for_user.

234 provider::delete_data_for_users($approvedlist);

235 // Re-fetch users in usercontext2 - The user list should not be empty (user2).

registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines

1 <?php

2 /**

3 * @package Joomla.Platform

17 * @package Joomla.Platform

18 * @subpackage Registry

19 * @since 11.1

20 */

21 class JRegistry implements JsonSerializable

25 *

26 * @var object

27 * @since 11.1

28 */

29 protected $data;

31 /**

32 * @var array JRegistry instances container.

33 * @since 11.3

34 */

35 protected static $instances = array();

PublisherTest.php (https://github.com/leerbag/zf2.git) PHP · 329 lines

1 <?php

2 /**

3 * Zend Framework

35 * @license http://framework.zend.com/license/new-bsd New BSD License

36 */

37 class PublisherTest extends \PHPUnit_Framework_TestCase

38 {

39

66 }

67

68 public function testAddsHubServerUrlsFromArrayUsingSetConfig()

69 {

70 $this->_publisher->setConfig(array('hubUrls' => array(

140 }

141

142 public function testAddsUpdatedTopicUrlsFromArrayUsingSetConfig()

143 {

144 $this->_publisher->setConfig(array('updatedTopicUrls' => array(

MultishippingTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 271 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

6 namespace Magento\Multishipping\Test\Unit\Model\Checkout\Type;

7

8 class MultishippingTest extends \PHPUnit_Framework_TestCase

9 {

10 /**

14

15 /**

16 * @var \PHPUnit_Framework_MockObject_MockObject

17 */

18 protected $checkoutSessionMock;

19

20 /**

21 * @var \PHPUnit_Framework_MockObject_MockObject

22 */

23 protected $customerSessionMock;

RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines

1 <?php

2

3 namespace Guzzle\Tests\Plugin\Redirect;

80 }

81

82 public function testDefaultBehaviorIsToRedirectWithGetForEntityEnclosingRequests()

83 {

84 $this->getServer()->flush();

shipping.php (https://gitlab.com/reclamare/mao) PHP · 268 lines

1 <?php

2 class ControllerApiShipping extends Controller {

3 public function address() {

15 $json['error']['warning'] = $this->language->get('error_permission');

16 } else {

17 // Add keys for missing post vars

18 $keys = array(

19 'firstname',

PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines

1 <?php

2 /*

3 * This file is a part of Mibew Messenger.

225 * @return bool

226 */

227 public function isInstalled()

228 {

229 return $this->getState()->installed;

237 public function needsUpdate()

238 {

239 return $this->isInstalled()

240 && (version_compare($this->getVersion(), $this->getInstalledVersion()) > 0);

241 }

289 }

290 $plugin = new PluginInfo($plugin_name);

291 if (!$plugin->isInstalled() || !$plugin->isEnabled()) {

292 return false;

293 }

Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines

1 <?php

2 /*

3 * CKFinder

7 *

8 * The software, this file and its contents are subject to the CKFinder

9 * License. Please read the license.txt file before using, installing, copying,

10 * modifying or distribute this file or part of its contents. The contents of

11 * this file is part of the Source Code of CKFinder.

21 * Include access control config class

22 */

23 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/AccessControlConfig.php";

24 /**

25 * Include resource type config class

26 */

27 require_once CKFINDER_CONNECTOR_LIB_DIR . "/Core/ResourceTypeConfig.php";

28 /**

29 * Include thumbnails config class

HelperRegistryTest.php (https://gitlab.com/0072016/0072016-fbphp) PHP · 334 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 2.0.0

13 * @license http://www.opensource.org/licenses/mit-license.php MIT License

14 */

15 namespace Cake\Test\TestCase\View;

102 * test lazy loading of helpers

103 *

104 * @expectedException \Cake\View\Exception\MissingHelperException

105 * @return void

106 */

errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines

1 <?php

2

3 /**

56

57 // Login form

58 'username value missing' => 'Please insert your username',

59 'password value missing' => 'Please insert your password',

database.php (https://github.com/dionyziz/blogcube.git) PHP · 258 lines

1 <?php

2 /*

3 Module: Database stabilization

4 File: /modules/stabilize/database.php

5 Developers: dionyziz, feedWARd

6 */

115 // in simple words, LCS_OK means include this character and move backwards in both strings

116 // while LCS_LEFT and LCS_UP means move backwards only in one of the two strings and do

117 // not any character (since it's not a common character)

118

119 // initialize the arrays, make them two-dimentional

134 }

135 // the character is not the same, we have to compare the lengths of the two possible sub-LCSs

136 // and use the greater one (since we want to construct as long a string as possible)

137 else if ($c[$i - 1][$j] >= $c[$i][$j - 1]) {

138 // skip one character upwards

NestedSetBehaviorPeerBuilderModifierWithScopeTest.php (https://github.com/apinstein/Propel2.git) PHP · 262 lines

1 <?php

2

3 /*

32 public function testConstants()

33 {

34 $this->assertEquals(Table10Peer::LEFT_COL, 'table10.MY_LEFT_COLUMN', 'nested_set adds a LEFT_COL constant using the custom left_column parameter');

35 $this->assertEquals(Table10Peer::RIGHT_COL, 'table10.MY_RIGHT_COLUMN', 'nested_set adds a RIGHT_COL constant using the custom right_column parameter');

36 $this->assertEquals(Table10Peer::LEVEL_COL, 'table10.MY_LEVEL_COLUMN', 'nested_set adds a LEVEL_COL constant using the custom level_column parameter');

37 $this->assertEquals(Table10Peer::SCOPE_COL, 'table10.MY_SCOPE_COLUMN', 'nested_set adds a SCOPE_COL constant when the use_scope parameter is true');

38 }

TargetCpaSimulationPoint.php (https://gitlab.com/remyvianne/krowkaramel) PHP · 488 lines

1 <?php

2 # Generated by the protocol buffer compiler. DO NOT EDIT!

3 # source: google/ads/googleads/v9/common/simulation.proto

67 /**

68 * Projected number of top slot impressions.

69 * Only search advertising channel type supports this field.

70 *

71 * Generated from protobuf field <code>optional int64 top_slot_impressions = 14;</code>

99 * @type int|string $top_slot_impressions

100 * Projected number of top slot impressions.

101 * Only search advertising channel type supports this field.

102 * @type int|string $target_cpa_micros

103 * The simulated target CPA upon which projected metrics are based.

375 /**

376 * Projected number of top slot impressions.

377 * Only search advertising channel type supports this field.

378 *

379 * Generated from protobuf field <code>optional int64 top_slot_impressions = 14;</code>

User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines

1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');

2 /**

3 * CodeIgniter

4 *

5 * An open source application development framework for PHP 4.3.2 or newer

6 *

7 * @package CodeIgniter

10 * @license http://codeigniter.com/user_guide/license.html

11 * @link http://codeigniter.com

12 * @since Version 1.0

13 * @filesource

14 */

19 * User Agent Class

20 *

21 * Identifies the platform, browser, robot, or mobile devise of the browsing agent

22 *

23 * @package CodeIgniter

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.

37

42 filepath is to a file so you can copy this file in a place you want,

43 original_filename is the original filename of uploaded files. This might be needed for export

44 since it is not nice to have file name as md5 of something.

45 if you want to import binary file to the attribute you need to supply it with full path

46 to the image argument.

MajoritySelector.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: MajoritySelector.php 123 2006-09-14 20:19:08Z mrook $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT

12 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,

13 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY

14 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE

rr-090923-header.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 102 lines

1 <?php

2 require_once("utils.php");

7 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

8

9 <?php if(!processLanguageURL())

10 {

11 if ($_SESSION["CurrentLanguage"]==0){

17 <head>

18

19 <title><?php echo getMessage("website.title");?></title>

20

21 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />

22

23 <?php

24 if (AUTO_REFRESH_DELAY>0 && !adminMode())

25 echo '<meta http-equiv="refresh" content="'.AUTO_REFRESH_DELAY.'"/>';

PHPParserListener.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 15 lines ✨ Summary

This Java interface defines a listener for PHP parsing events, specifically parseError and parseMessage. It extends the built-in EventListener interface, allowing classes to implement this listener and receive notifications when errors or messages occur during PHP parsing.

1 package gatchan.phpparser.parser;

2

3 import java.util.EventListener;

4

5 /**

6 * The listener to listen to the PHPParserListener

7 *

8 * @author Matthieu Casanova

9 */

10 public interface PHPParserListener extends EventListener {

11

12 void parseError(PHPParseErrorEvent e);

13 void parseMessage(PHPParseMessageEvent e);

14 }

15

RoleVoter.php (git://github.com/symfony/symfony.git) PHP · 62 lines ✨ Summary

This PHP class, RoleVoter, implements a voter for Symfony’s security system. It checks if any attribute of an object starts with a given prefix (‘ROLE_’) and grants access if the role is present in the token’s roles. If the attribute is ‘ROLE_PREVIOUS_ADMIN’, it triggers deprecation warnings. The voter returns ACCESS_ABSTAIN by default, unless the attribute matches one of the token’s roles, in which case it returns ACCESS_GRANTED.

1 <?php

2

3 /*

devel.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 204 lines ✨ Summary

This is a documentation page for the jEdit project, written in HTML. It provides instructions on how to migrate plugins from CVS to Subversion, and explains the process of setting up a new plugin repository on SourceForge. The content includes step-by-step guides, technical details, and links to relevant resources.

10 <ul>

11

12 <li><a href="index.php?page=feedback">Mailing list subscription</a>

13 </li>

14 <li> <a href="http://subversion.tigris.org">Subversion</a>: <a href="https://sourceforge.net/svn/?group_id=588">Help</a>, <a href="#migration">Migration</a>, <a href="http://jedit.svn.sourceforge.net/viewvc/jedit/">Browse SVN</a>, <a href="http://jedit.cvs.sourceforge.net/jedit/">Browse CVS</a> </li>

23 <a href="https://sourceforge.net/tracker/?group_id=588&atid=300588">Patches</a>, <a href="https://sourceforge.net/tracker/?group_id=588&atid=997936">Plugin Patches</a></li>

24 <li> <a href="#patches">Creating</a> and <a href="https://sourceforge.net/tracker/?group_id=588&atid=300588">Submitting</a> patches. </li>

25 <li> <a href="http://plugins.jedit.org/releasing.php">Releasing plugins</a></li>

26 <li> <a href="#help">Want to join us? Help wanted!</a> </li>

27 <li> <a href="http://jedit.wiki.sourceforge.net/Developers+zone">Developers Zone</a> - the Wiki community. </li>

139

140 <p>Once you feel your plugin is reasonably complete (this should be determined partly by feedback you get during the development process), you can post your submission on the submissions tracker. At this point, it will become a candidate for release on <a href="http://plugins.jedit.org">plugin central</a>.

141 See <a href="http://plugins.jedit.org/releasing.php">this page</a> to find out how.</p>

142

143

tip2.html (https://jedit.svn.sourceforge.net/svnroot/jedit) HTML · 18 lines ✨ Summary

This HTML code describes a basic code completion feature. It explains how pressing <b>C+b</b> searches for words starting with the input before the caret in the current buffer and mode’s keyword list, providing suggestions to auto-complete previously-declared identifier names, Javadoc tags, or PHP function names.

1 <html><body>Pressing <b>C+b</b> searches the current

2 buffer and the current mode's keyword list for words beginning with

3 the one before the caret.<p>

11 <li>When editing Javadoc comments in Java source code,

12 enter "@" then press <b>C+b</b> to get a list of Javadoc tags.

13 <li>In a PHP file, enter a few characters and press <b>C+b</b> to see

14 a list of functions whose names start with what you entered.

15 </ul>

el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines

5 <head>

6 <title>Dummy</title>

7 <link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet();?>"/>

8 </head>

9 <body>

question44504-folding.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 29 lines

6 <tr>

7 <td width='50' colspan='1' class='men-met'>

8 <input type='button' value=' < ' onClick='goLastMonth(<?php echo date("t", strtotime("$year1-$month1-$day1")).", ".$month . ", " . $year.", ".date("w", strtotime("$year-$month-$day1")); ?>)' />

9 </td>

10 <td width='250' colspan='5' class='men-met'>

11 <span class='title'><?php echo $men . " " . $year; ?></span><br />

12 </td>

13 <td width='50' colspan='1' align='right' class='men-met'>

14 <input type='button' value=' > ' onClick='goNextMonth(1, <?php echo $month . ", " . $year.", ".date("w", strtotime("$year2-$month2-$day1")); ?>)' />

15 </td>

16 </tr>

Makefile.old (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 16 lines

2 SWIG = $(TOP)/../swig

3 SRCS = example.c

4 TARGET = php_example

5 INTERFACE = example.i

6 SWIGOPT = -noproxy

8 all::

9 $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \

10 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' php4

11

12 clean::

13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h

14

15 check: all

Preview_Javadoc_of_Buffer.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 609 lines

9 * - Includes the ability to use the Bouvard Doclet.

10 * Visit

11 * http://community.jedit.org/modules.php?

12 * op=modload&name=web_links&file=index&req=viewlink&cid=6

13 * for the Bouvard link

22 * - default Doclet is the standard Java Doclet

23 *

24 * - doclet choice dialog can be bypassed if using the

25 * default doclet

26 * by setting a boolean macro flag in the code

167 console.Shell _shell = console.Shell.getShell(shell);

168 _console = manager.getDockable("console");

169 // Ensure we are using the console shell

170 _console.setShell(_shell);

171 // Call its run() method

_dynamic.js (http://enginey.googlecode.com/svn/trunk/) JavaScript · 19 lines ✨ Summary

This JavaScript code checks if a specific resource is loaded and provides the Dojo toolkit with a reference to it. If not, it sets the resource as loaded and defines a new module named “dojox.highlight.languages._dynamic”. It then requires other languages (Python, Perl, PHP, Ruby) from the same module, making them available for use in the application.

13 dojo.require("dojox.highlight.languages.python");

14 // dojo.require("dojox.highlight.languages.perl");

15 // dojo.require("dojox.highlight.languages.php");

16 // dojo.require("dojox.highlight.languages.ruby");

17

README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines

1 Using Amazon S3 with Dojo has the following prerequisites:

2 * You must be signed up to use Amazon S3. You can sign up for Amazon S3 at http://aws.amazon.com/s3.

3 * Use the provided proxy (/dojox/rpc/s3/proxy.php) with PHP 5.

4 * proxy.php requires the following modules:

8

9 To use S3 from Dojo, you need a proxy. You can use the provided proxy example file by renaming

10 proxy.example-php to proxy.php and then you must enter your Amazon access key and secret access key

11 into the proxy.php file on line 3 and 4:

20 var s3Buckets = new dojox.rpc.Service({

21 target:"http://s3.amazonaws.com/",

22 proxyUrl:"../s3/proxy.php", // the path to the proxy

23 transport:"REST",

24 envelope:"PROXIED-PATH",

htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines

528

529 <!-- Apache 1.x -->

530 <!-- using 4 for apache 1.x vs 2.x -->

531 <KEYWORD4>AddModule</KEYWORD4>

532 <KEYWORD4>ClearModuleList</KEYWORD4>

541 <KEYWORD3>PythonDebug</KEYWORD3>

542

543 <!-- mod_php -->

544 <KEYWORD3>php_value</KEYWORD3>

545 <!-- using 4 for apache 1.x vs 2.x -->

546 <KEYWORD4>php_flag</KEYWORD4>

DefaultInputHandler.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: DefaultInputHandler.php 293 2007-11-04 16:51:45Z hans $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT

12 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,

13 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY

14 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE

21 */

22

23 require_once 'phing/input/InputHandler.php';

24 include_once 'phing/system/io/ConsoleReader.php';

Condition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines

1 <?php

2

3 /*

4 * $Id: Condition.php 325 2007-12-20 15:44:58Z hans $

5 *

6 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS

11 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT

12 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,

13 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY

14 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT

15 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE

frame_9.svg (https://bitbucket.org/atchariya/nokia.git) SVG · 3078 lines

105 cd7plK/3PXdF+HEX/lky5nnif+4DX+sDazEOvCqdHJitNqFrnCMxLgR+t+/Z9co1L7ySCp9x45mS

106 Ghyceb0EXo0Lvh6cb6mywREpiMEfdJHjnPhicQwjuIMpOSZyXCAC62nHy75i1y3AnHU7gy9VSOog

107 9d+LVSXtwgrBUv2eR0wqpyMuCEpSp58mohQj6Yx7qEoqNcgFD5GxGFsH7wLPhp5rrqQ8MZeCSGDd

108 r1mlpspSw01AAyaKiSGe+bIbbxfhonOGUsfIYxKvEVnlwkeufHeh3BVl17D0ocFJjkMOTRUizEq9

109 MUV4EDp+RZVRhS9NueK/JaEaySaIGtGVqcxYKKzCkpwzOzNcCrigqrVj9qqeQpUsRpR6LCRrr0GE

262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn

263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR

264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF

265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW

266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy

556 d1ozopWgoIVYLcSK5IR4SdlkUWx3D65cIx4ecen4hHz7fbI5lralOVIDU2m5QuJlG/g68EPJvBYa

557 vpgj/4X17IjwHs7faFr+JAd8zuBJ2nI2DKzHnicSGGoX+nNhwlwCpVNOWbqxIfPQRh7iRIl8Tju+

558 4WtUI/+6TPhpn/PusOZv64YvascfzsrcjNRpCT57QxxLeLWftNxXY7ldMfNarVylT3UnLBO2XOBj

559 wadsY8vBMJClxBMepBX5HPZnM5pYYJxNdm5N9rigkdPtkseeuS/CrheTy8oyUZVJrkSIWrUwTcKr

560 lOdkquV5QoxszqBK0oBX2vW1pmHtzn1PtWtIyChDKGReCYFrlST9Xq3PGCSQRWuGysGNA0JdvyMx

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.

1 package net.sourceforge.phpdt.internal.compiler.ast;

2

3 import java.util.List;

SimpleListModel.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 106 lines ✨ Summary

This Java class, SimpleListModel, extends AbstractListModel and provides a custom list model for displaying PHP items. It filters items based on a search string and mode settings, allowing users to narrow down results by type and name. The class uses a TreeSet to store the filtered items and updates the list when the filter or mode changes.

37 this.list.clear();

38 for (int i = 0; i < list.size(); i++) {

39 PHPItem phpItem = (PHPItem) list.get(i);

40 if (accept(phpItem, searchString)) {

53 Iterator iterator = list.iterator();

54 while (iterator.hasNext()) {

55 PHPItem phpItem = (PHPItem) iterator.next();

56 if (!accept(phpItem, searchString)) {

74 private boolean accept(PHPItem phpItem, String searchText) {

75 return (mode & phpItem.getItemType()) == phpItem.getItemType() && phpItem.getNameLowerCase().indexOf(searchText) != -1;

76 }

77

88 private static class SimpleComparator implements Comparator {

89 public int compare(Object o1, Object o2) {

90 PHPItem item1 = (PHPItem) o1;

91 PHPItem item2 = (PHPItem) o2;

Archive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 29 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 namespace CleanZip.Test.Mock1

_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.

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

gfortran.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 27 lines

3 " Version: 0.1.3

4 " Last Change: 2012 Apr 30

5 " Homepage: http://www.vim.org/scripts/script.php?script_id=3496

6 " https://bitbucket.org/xuhdev/compiler-gfortran.vim

7 " License: Same as Vim

catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines

327 <MODE NAME="php" FILE="php.xml"

328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"

329 FIRST_LINE_GLOB="{&lt;?php*,#!/*php*}" />

DateUtils.java (http://wogwt.googlecode.com/svn/trunk/) Java · 231 lines ✨ Summary

This Java class, DateUtils, provides utility methods for working with dates, including formatting and parsing date strings according to various formats (e.g., RFC 1123, W3C, etc.). It also includes comparison methods for dates and a method to get the time zone offset. The class is designed as a utility class, providing static methods that can be used without creating an instance of the class.

11 *

12 * You can obtain a copy of the LGPL 2.1 license at

13 * http://www.opensource.org/licenses/lgpl-2.1.php

14 *

15 * You can obtain a copy of the CDDL 1.0 license at

16 * http://www.opensource.org/licenses/cddl1.php

17 *

18 * You can obtain a copy of the EPL 1.0 license at

19 * http://www.opensource.org/licenses/eclipse-1.0.php

20 *

21 * See the Licenses for the specific language governing permissions and

RemotePagingSample.java.html (http://gwt-ext.googlecode.com/svn/trunk/) HTML · 207 lines ✨ Summary

This HTML code is for a GWT (Google Web Toolkit) application that displays a grid of topics with various details, such as title, author, and last post date. The grid has features like paging, sorting, and filtering. A toggle button allows the user to show or hide the excerpt of each topic. The code uses HTML, CSS, JavaScript, and GWT libraries to create the interactive grid.

73 public String render(Object value, CellMetadata cellMetadata, Record record,

74 int rowIndex, int colNum, Store store) {

75 return Format.format("<b><a href=\"http://extjs.com/forum/showthread.php?t={2}\"

76 target=\"_blank\">{0}</a></b>

77 <a href=\"http://extjs.com/forum/forumdisplay.php?f={3}\" target=\"_blank\">{1} Forum</a>",

98 panel.setPaddings(15);

99

100 DataProxy dataProxy = new ScriptTagProxy("http://extjs.com/forum/topics-browse-remote.php");

101

102 final RecordDef recordDef = new RecordDef(new FieldDef[]{

sidebar.php (https://bitbucket.org/jesseterry/myclientbase/) PHP · 14 lines ✨ Summary

This PHP code outputs a section of HTML content that displays a title and a list of links. The title is “system” in black, and the links are to various settings pages within an application, including system settings, user accounts, tax rates, invoice statuses, and modules. Each link is generated using the anchor function and includes a translated label from a language file.

1 <div class="section_wrapper">

2

3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>

4

5 <ul class="quicklinks content toggle">

6 <li><?php echo anchor('settings', $this->lang->line('system_settings')); ?></li>

7 <li><?php echo anchor('users', $this->lang->line('user_accounts')); ?></li>

8 <li><?php echo anchor('tax_rates', $this->lang->line('tax_rates')); ?></li>

9 <li><?php echo anchor('invoice_statuses', $this->lang->line('invoice_statuses')); ?></li>

10 <li><?php echo anchor('invoices/invoice_groups', $this->lang->line('invoice_groups')); ?></li>

11 <li class="last"><?php echo anchor('mcb_modules', $this->lang->line('modules')); ?></li>

categories.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 86 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

14 * @package Joomla.Administrator

15 * @subpackage com_categories

16 * @since 1.6

17 */

18 class CategoriesControllerCategories extends JControllerAdmin

25 *

26 * @return object The model.

27 * @since 1.6

28 */

29 function getModel($name = 'Category', $prefix = 'CategoriesModel', $config = array('ignore_request' => true))

37 *

38 * @return bool False on failure or error, true on success.

39 * @since 1.6

40 */

41 public function rebuild()

bannerclient.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 41 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.

9 JFormHelper::loadFieldClass('list');

10

11 require_once dirname(__FILE__) . '/../../helpers/banners.php';

12

13 /**

16 * @package Joomla.Administrator

17 * @subpackage com_banners

18 * @since 1.6

19 */

20 class JFormFieldBannerClient extends JFormFieldList

24 *

25 * @var string

26 * @since 1.6

27 */

28 protected $type = 'BannerClient';

compil_modules1_1.com (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 133 lines

42 $ call make swig_root:[vms.o_alpha]perl5.obj -

43 "cxx ''cxxflags'" perl5.cxx

44 $ call make swig_root:[vms.o_alpha]php4.obj -

45 "cxx ''cxxflags'" php4.cxx

home.ctp (https://bitbucket.org/floresj/notetime.git) Unknown · 189 lines

44 else:

45 echo '<span class="notice">';

46 echo __d('cake_dev', 'Your version of PHP is too low. You need PHP 5.2.8 or higher to use CakePHP.');

47 echo '</span>';

48 endif;

169 <ul><li><?php echo __d('cake_dev', 'Promoting development related to CakePHP'); ?></li></ul></li>

170 <li><a href="http://www.cakephp.org"><?php echo __d('cake_dev', 'CakePHP'); ?> </a>

171 <ul><li><?php echo __d('cake_dev', 'The Rapid Development Framework'); ?></li></ul></li>

172 <li><a href="http://book.cakephp.org"><?php echo __d('cake_dev', 'CakePHP Documentation'); ?> </a>

173 <ul><li><?php echo __d('cake_dev', 'Your Rapid Development Cookbook'); ?></li></ul></li>

174 <li><a href="http://api20.cakephp.org"><?php echo __d('cake_dev', 'CakePHP API'); ?> </a>

175 <ul><li><?php echo __d('cake_dev', 'Quick Reference'); ?></li></ul></li>

183 <ul><li><?php echo __d('cake_dev', 'Live chat about CakePHP'); ?></li></ul></li>

184 <li><a href="http://github.com/cakephp/"><?php echo __d('cake_dev', 'CakePHP Code'); ?> </a>

185 <ul><li><?php echo __d('cake_dev', 'For the Development of CakePHP Git repository, Downloads'); ?></li></ul></li>

default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines

1 msgid ""

2 msgstr ""

3 "Project-Id-Version: CakePHP Testsuite\n"

4 "POT-Creation-Date: 2008-05-15 02:51-0700\n"

5 "PO-Revision-Date: \n"

6 "Last-Translator: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

7 "Language-Team: CakePHP I18N & I10N Team <i10n.cakephp@gmail.com>\n"

InclusionExpression.java (https://jedit.svn.sourceforge.net/svnroot/jedit) Java · 261 lines ✨ Summary

This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.

18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

19 */

20 package net.sourceforge.phpdt.internal.compiler.ast;

21

22 import net.sourceforge.phpdt.internal.compiler.ast.declarations.VariableUsage;

23 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;

24

25 import java.util.List;

26

27 import gatchan.phpparser.project.itemfinder.PHPItem;

28 import gatchan.phpparser.parser.PHPParserConstants;

29 import gatchan.phpparser.parser.PHPParser;

30 import sidekick.IAsset;

31

SimpleKeyCacheInputStream.php (http://2moons.googlecode.com/svn/trunk/) PHP · 130 lines

1 <?php

2

3 /*

10

11 /**

12 * Writes data to a KeyCache using a stream.

13 *

14 * @package Swift

director_string_runme.php (https://swig.svn.sourceforge.net/svnroot/swig) PHP · 35 lines ✨ Summary

This PHP code tests a set of functions, classes, and global variables to ensure they are working as expected. It creates an instance of class B, which extends class A, and calls various methods on it to verify their behavior. The test checks for equality with expected results, indicating that the code passes the tests successfully.

1 <?php

2

3 require "tests.php";

4 require "director_string.php";

5

6 // No new functions

en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines

1 ; Joomla! Project

2 ; Copyright (C) 2005 - 2012 Open Source Matters. All rights reserved.

3 ; License GNU General Public License version 2 or later; see LICENSE.txt, see LICENSE.php

4 ; Note : All ini files need to be saved as UTF-8

5

067.factor (git://github.com/x6j8x/factor.git) Unknown · 63 lines

1 ! Copyright (c) 2007 Samuel Tardieu, Aaron Schaefer.

2 ! See http://factorcode.org/license.txt for BSD license.

3 USING: io.files math.parser namespaces project-euler.common

4 io.encodings.ascii sequences splitting ;

5 IN: project-euler.067

6

7 ! http://projecteuler.net/index.php?section=problems&id=67

8

9 ! DESCRIPTION

i2c-ali1535 (http://photon-android.googlecode.com/svn/) Unknown · 43 lines

4 * Acer Labs, Inc. ALI 1535 (south bridge)

5 Datasheet: Now under NDA

6 http://www.ali.com.tw/eng/support/datasheet_request.php

7

8 Authors:

cap_inline.h (http://photon-android.googlecode.com/svn/) C++ Header · 410 lines ✨ Summary

This C++ header file defines a set of functions for interacting with various components of a system, such as the ARM CPU, VPM, LCD, and others. It provides functions to check if certain features are present, retrieve maximum clock speeds, and determine LCD resolutions. The code is likely used in a low-level system or embedded device application.

5 * agreement governing use of this software, this software is licensed to you

6 * under the terms of the GNU General Public License version 2, available at

7 * http://www.broadcom.com/licenses/GPLv2.php (the "GPL").

8 *

9 * Notwithstanding the above, under no circumstances may you combine this

ZipEntryTest.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 193 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using System;

7 using System.Collections.Generic;

8 using System.Diagnostics;

9 using System.IO;

10 using System.Linq;

11 using System.Text;

12 using System.Threading;

13 using CleanZip.Compression;

14 using Xunit;

TwitterAlikeExample.html (http://redis.googlecode.com/svn/trunk/) HTML · 253 lines ✨ Summary

This HTML code outputs a blog post about Redis, a popular in-memory data store. The content explains how to implement a Twitter-like clone using Redis, including setting up followers and posting messages. It also discusses horizontal scaling of the system, including hashing keys, distributing user data across servers, and handling special cases like incrementing IDs and retrieving timeline data.

27

28 <div class="narrow">

29 <h1><a name="A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP">A case study: Design and implementation of a simple Twitter clone using only the Redis key-value store as database and PHP</a></h1>In this article I'll explain the design and the implementation of a <a href="http://retwis.antirez.com" target="_blank">simple clone of Twitter</a> written using PHP and <a href="http://code.google.com/p/redis/" target="_blank">Redis</a> as only database. The programming community uses to look at key-value stores like special databases that can't be used as drop in replacement for a relational database for the development of web applications. This article will try to prove the contrary.<br/><br/>Our Twitter clone, <a href="http://retwis.antirez.com" target="_blank">called Retwis</a>, is structurally simple, has very good performances, and can be distributed among N web servers and M Redis servers with very little efforts. You can find the source code <a href="http://code.google.com/p/redis/downloads/list" target="_blank">here</a>.<br/><br/>We use PHP for the example since it can be read by everybody. The same (or... much better) results can be obtained using Ruby, Python, Erlang, and so on.

30 <h1><a name="Key-value stores basics">Key-value stores basics</a></h1>

31 The essence of a key-value store is the ability to store some data, called <i>value</i>, inside a key. This data can later be retrieved only if we know the exact key used to store it. There is no way to search something by value. So for example I can use the command SET to store the value <b>bar</b> at key <b>foo</b>:<br/><br/><pre class="codeblock python" name="code">

236 SADD uid:1000:following 1001

237 SADD uid:1001:followers 1000

238 </pre>Note the same pattern again and again, in theory with a relational database the list of following and followers is a single table with fields like <code name="code" class="python">following_id</code> and <code name="code" class="python">follower_id</code>. With queries you can extract the followers or following of every user. With a key-value DB that's a bit different as we need to set both the <code name="code" class="python">1000 is following 1001</code> and <code name="code" class="python">1001 is followed by 1000</code> relations. This is the price to pay, but on the other side accessing the data is simpler and ultra-fast. And having this things as separated sets allows us to do interesting stuff, for example using SINTER we can have the intersection of 'following' of two different users, so we may add a feature to our Twitter clone so that it is able to say you at warp speed, when you visit somebody' else profile, &quot;you and foobar have 34 followers in common&quot; and things like that.<br/><br/>You can find the code that sets or removes a following/follower relation at follow.php. It is trivial as you can see.

239 <h1><a name="Making it horizontally scalable">Making it horizontally scalable</a></h1>

240 Gentle reader, if you reached this point you are already an hero, thank you. Before to talk about scaling horizontally it is worth to check the performances on a single server. Retwis is <b>amazingly fast</b>, without any kind of cache. On a very slow and loaded server, apache benchmark with 100 parallel clients issuing 100000 requests measured the average pageview to take 5 milliseconds. This means you can serve millions of users every day with just a single Linux box, and this one was monkey asses slow! Go figure with more recent hardware.<br/><br/>So, first of all, probably you will not need more than one server for a lot of applications, even when you have a lot of users. But let's assume we <b>are</b> Twitter and need to handle a huge amount of traffic. What to do?

242 The first thing to do is to hash the key and issue the request on different servers based on the key hash. There are a lot of well known algorithms to do so, for example check the Redis Ruby library client that implements <i>consistent hashing</i>, but the general idea is that you can turn your key into a number, and than take the reminder of the division of this number by the number of servers you have:<br/><br/><pre class="codeblock python python python python python python python python python python python python python python python python python python python python python python python python" name="code">

243 server_id = crc32(key) % number_of_servers

244 </pre>This has a lot of problems since if you add one server you need to move too much keys and so on, but this is the general idea even if you use a better hashing scheme like consistent hashing.<br/><br/>Ok, are key accesses distributed among the key space? Well, all the user data will be partitioned among different servers. There are no inter-keys operations used (like SINTER, otherwise you need to care that things you want to intersect will end in the same server. <b>This is why Redis unlike memcached does not force a specific hashing scheme, it's application specific</b>). Btw there are keys that are accessed more frequently.<h3><a name="Special keys">Special keys</a></h3>For example every time we post a new message, we <b>need</b> to increment the <code name="code" class="python">global:nextPostId</code> key. How to fix this problem? A Single server will get a lot if increments. The simplest way to handle this is to have a dedicated server just for increments. This is probably an overkill btw unless you have really a lot of traffic. There is another trick. The ID does not really need to be an incremental number, but just <b>it needs to be unique</b>. So you can get a random string long enough to be unlikely (almost impossible, if it's md5-size) to collide, and you are done. We successfully eliminated our main problem to make it really horizontally scalable!<br/><br/>There is another one: global:timeline. There is no fix for this, if you need to take something in order you can split among different servers and <b>then merge</b> when you need to get the data back, or take it ordered and use a single key. Again if you really have so much posts per second, you can use a single server just for this. Remember that with commodity hardware Redis is able to handle 100000 writes for second, that's enough even for Twitter, I guess.<br/><br/>Please feel free to use the comments below for questions and feedbacks.

245

246 </div>

exploretags.js (https://code.google.com/p/ontowiki/) JavaScript · 249 lines ✨ Summary

This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.

5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>

6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}

7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)

8 * @version $Id: $

9 *

10 */

11 function reloadExploreTagsModule(param){

12 taglistContainer.addClass("is-processing");

13 var checkedparam = (typeof param != 'undefined') ? param : "";

14 taglistContainer.load(

15 urlBase+"tagging/explore" + checkedparam,

16 function() {

17 taglistContainer.removeClass("is-processing");

18 }

19 );

ZipArchive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 34 lines

2 // Distributed under the New BSD License.

3 // (See accompanying file notice.txt or at

4 // http://www.opensource.org/licenses/bsd-license.php)

5

6 using CleanZip.Compression;