100+ results for 'php pow'

Not the results you expected?

Location.js (https://github.com/stephaneerard/qooxdoo.git) JavaScript · 406 lines

10 License:

11 LGPL: http://www.gnu.org/licenses/lgpl.html

12 EPL: http://www.eclipse.org/org/documents/epl-v10.php

13 See the LICENSE file in the project's top-level directory for details.

14

Relyingparty.php (https://gitlab.com/efabian/maya) PHP · 292 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

BaseMataPelajaranQuery.php (https://bitbucket.org/faisaluje/tugasku.git) PHP · 362 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 */

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"

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

1 <?php

2 /**

3 * File containing the eZISBN10To13Converter class.

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,

277 precisionBits = (instruction === 'f')?23:52;

278

279 bias = Math.pow(2, exponentBits - 1) - 1;

280 signal = readBits(precisionBits + exponentBits, 1, b);

281 exponent = readBits(precisionBits, exponentBits, b);

310 if ((1 + signal * -2) * (exponent || significand)) {

311 if (!exponent) {

312 currentResult = Math.pow(2, -bias + 1) *

313 significand;

314 } else {

sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines

1 <?php

2 class SiteMailer

3 {

51

52 $this->headers .= "MIME-Version: 1.0\r\n";

53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";

54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";

55 }

89 /*if ($this->attachment != '')

90 {

91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

92 $this->msgBody .= $this->attachment;

93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";

155

156 private function sendActivationToCustomer($property) {

157 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";

158 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";

159 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/

class-Shoestrap_Color.php (https://gitlab.com/aristath/shoestrap-3) PHP · 481 lines

1 <?php

2

3

468 $b2 = $color_2_rgb[2];

469

470 $l1 = 0.2126 * pow( $r1 / 255, 2.2 ) + 0.7152 * pow( $g1 / 255, 2.2 ) + 0.0722 * pow( $b1 / 255, 2.2 );

471 $l2 = 0.2126 * pow( $r2 / 255, 2.2 ) + 0.7152 * pow( $g2 / 255, 2.2 ) + 0.0722 * pow( $b2 / 255, 2.2 );

RTDAO.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 605 lines

1 <?php

2

3 /**

4 * RTDAO.inc.php

5 *

6 * Copyright (c) 2003-2005 The Public Knowledge Project

11 * DAO operations for the OJS Reading Tools interface.

12 *

13 * $Id: RTDAO.inc.php,v 1.20 2005/07/16 03:52:02 alec Exp $

14 */

15

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

1 <?php

2 /**

3 * Customize Setting Class.

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

1 <?php

2 /**

3 * File containing the ezcTemplateAstNodeGenerator class

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.

SiteVerification.php (https://github.com/orangehrm/OrangeHRM.git) PHP · 404 lines

1 <?php

2 /*

3 * Copyright 2010 Google Inc.

EntityRevisionsTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 264 lines

1 <?php

2

3 namespace Drupal\KernelTests\Core\Entity;

RbacController.php (https://gitlab.com/Georgiy.Zhegusov/museum_documents) PHP · 399 lines

1 <?php

2 namespace app\commands;

3

PKPGiftDAO.inc.php (https://github.com/davekisly/pkp-lib.git) PHP · 497 lines

1 <?php

2

3 /**

4 * @file classes/gift/PKPGiftDAO.inc.php

5 *

6 * Copyright (c) 2000-2011 John Willinsky

Navigation.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 346 lines

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

26 require_once 'Zend/View/Helper/Navigation/HelperAbstract.php';

27

28 /**

183 if (!$helper instanceof Zend_View_Helper_Navigation_Helper) {

184 if ($strict) {

185 require_once 'Zend/View/Exception.php';

186 $e = new Zend_View_Exception(sprintf(

187 'Proxy helper "%s" is not an instance of ' .

style.php (https://github.com/shafiqissani/Jewelery-Ecommerce-.git) PHP · 262 lines

47 float: right;

48 position: relative;

49 <?php if($_GET['wrapper_border'] > 0) : ?>border: <?php echo $_GET['wrapper_border']; ?>px solid #e6e6e6;<?php endif; ?>

50 }

51

83 <?php endif; ?>

84 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width; ?>px;<?php else : ?>width: <?php echo $_GET['slide_width'];?>px;<?php endif; ?>

85 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $_GET['slide_height']; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

88 <?php if($_GET['text_block_position'] == 0) : ?>bottom: <?php echo $_GET['module_height']-$_GET['slide_height']-$_GET['image_y'];?>px;<?php endif; ?>

89 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php else : ?>left: <?php echo $_GET['image_x']; ?>px;<?php endif; ?>

90 background-color: <?php echo $text_overlay_bgcolor;?>;

97 <?php if($_GET['text_block_position'] == 1) : ?>width: <?php echo $text_block_width-10; ?>px;<?php else : ?>width: 90%;margin: 0 5%;<?php endif; ?>

98 <?php if($_GET['text_block_position'] == 1) : ?>height: <?php echo $text_block_height-10; ?>px;<?php else : ?>height: <?php echo $_GET['text_block_height']; ?>px;<?php endif; ?>

99 <?php if($_GET['text_block_position'] == 1) : ?>left: <?php echo $_GET['text_block_margin']; ?>px;<?php endif; ?>

100 position: absolute;

101 <?php if($_GET['text_block_position'] == 1) : ?>top: <?php echo $text_block_top; ?>px;<?php else : ?>bottom: 0;<?php endif; ?>

102 }

103

RuntimeDefinition.php (https://github.com/leerbag/zf2.git) PHP · 359 lines

1 <?php

2

3 namespace Zend\Di\Definition;

Installerold.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 232 lines

1 <?php

2

3 /**

4 * Test class for Core_Model_User_Service.

5 * Generated by PHPUnit on 2011-06-22 at 18:34:04.

6 */

7

8 require_once '../Installer.php';

9

10 class Core_Model_Installer {

42

43 $result = $gService->create($owner);

44 Core_Installer::$groupOwner = $result->id;

45 $group_acls[] = array('group' => $result->id, 'module' => null, 'controller' => null, 'action' => 'edit', 'permission' => 1);

46 $group_acls[] = array('group' => $result->id, 'module' => null, 'controller' => null, 'action' => 'delete', 'permission' => 1);

Module.php (https://bitbucket.org/mrblackus/micro-muffin.git) PHP · 383 lines

1 <?php

2

3 /*

30

31 /**

32 * Compiles the node to PHP.

33 *

34 * @param Twig_Compiler A Twig_Compiler instance

48 if (!$this->getAttribute('index'))

49 {

50 $compiler->write('<?php');

51 }

52

131 $compiler

132 ->write("\n\n")

133 // if the filename contains */, add a blank to avoid a PHP parse error

134 ->write("/* " . str_replace('*/', '* /', $this->getAttribute('filename')) . " */\n")

135 ->write('class ' . $compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))

BodyTest.php (https://gitlab.com/leon0399/damnit-engine) PHP · 401 lines

1 <?php

2 /**

3 * Slim Framework (http://slimframework.com)

4 *

5 * @link https://github.com/slimphp/Slim

6 * @copyright Copyright (c) 2011-2015 Josh Lockhart

7 * @license https://github.com/slimphp/Slim/blob/master/LICENSE.md (MIT License)

12 use Slim\Http\Body;

13

14 class BodyTest extends \PHPUnit_Framework_TestCase

15 {

16 /**

41 public function resourceFactory($mode = 'r+')

42 {

43 $stream = fopen('php://temp', $mode);

44 fwrite($stream, $this->text);

45 rewind($stream);

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

1 <?php

2

3 namespace Guzzle\Tests\Plugin\Redirect;

menu.tpl (https://gitlab.com/reclamare/mao) Smarty Template · 202 lines

3 <li id="catalog"><a class="parent"><i class="fa fa-tags fa-fw"></i> <span><?php echo $text_catalog; ?></span></a>

4 <ul>

5 <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>

6 <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>

7 <li><a href="<?php echo $recurring; ?>"><?php echo $text_recurring; ?></a></li>

8 <li><a href="<?php echo $filter; ?>"><?php echo $text_filter; ?></a></li>

141 <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>

142 <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>

143 </ul>

144 </li>

145 <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>

146 <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>

schema.yml (https://github.com/eurotux/ETVA.git) YAML · 204 lines

4 package: lib.model

5 network:

6 _attributes: { phpName: EtvaNetwork }

7 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

8 vlan_id: { type: INTEGER, required: true, foreignTable: vlan, foreignReference: id, onDelete: cascade }

15 intf_model: { type: VARCHAR, size: '255' }

16 server:

17 _attributes: { phpName: EtvaServer }

18 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

19 name: { type: VARCHAR, size: '255', required: true }

58 hbnrestarts: { type: INTEGER, default: '0' }

59 node:

60 _attributes: { phpName: EtvaNode }

61 id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true }

62 cluster_id: { type: INTEGER, required: true, foreignTable: cluster, foreignReference: id, onDelete: restrict }

SortableBehaviorObjectBuilderModifierTest.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 279 lines

1 <?php

2

3 /*

4 * $Id: SortableBehaviorTest.php 1356 2009-12-11 16:36:55Z francois $

5 * This file is part of the Propel package.

6 * For the full copyright and license information, please view the LICENSE

10 */

11

12 require_once 'tools/helpers/bookstore/behavior/BookstoreSortableTestBase.php';

13

14 /**

cqhostel.inc.php (https://gitlab.com/nacridan/Nacridan) PHP · 160 lines

1 <?php

2

3 /**

12 *@subpackage Conquest

13 */

14 require_once (HOMEPATH . "/factory/CityFactory.inc.php");

15 require_once (HOMEPATH . "/factory/MailFactory.inc.php");

53 $inhostel = $_POST['inhostel'];

54

55 $str .= "<form name='form' method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?action=act" . "' target='_self'>";

56 $str .= "<table class='maintable insidebuildingleftwidth'>\n";

57

139 $str .= "</table></form>";

140 } else {

141 $str .= "<form method='POST' action='" . CONFIG_HOST . "/conquest/conquest.php?center=view2d&bottom=viewpanel' target='_self'>\n";

142 $str .= "<table class='maintable insidebuildingleftwidth' >\n";

143 $str .= "<tr><td class='mainbglabel'>" . 'Vous désirez ... ?' . "</td></tr>";

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

MaintenanceDocumentDictionaryService.java (https://github.com/sbower/kuali-rice-1.git) Java · 305 lines

6 * You may obtain a copy of the License at

7 *

8 * http://www.opensource.org/licenses/ecl2.php

9 *

10 * Unless required by applicable law or agreed to in writing, software

Guard.php (https://bitbucket.org/helfreire/tccsite.git) PHP · 557 lines

1 <?php namespace Illuminate\Auth;

2

3 use Illuminate\Cookie\CookieJar;

categories.php (https://github.com/tomtom127/oscommerce.git) PHP · 247 lines

1 <?php

2 /*

3 $Id: $

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.

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')

AbstractPaginator.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 487 lines

1 <?php

2

3 namespace Illuminate\Pagination;

CmdSpheroid.cs (https://github.com/cazzar/MCaznowl-Build.git) C# · 241 lines

7 obtain a copy of the Licenses at

8

9 http://www.opensource.org/licenses/ecl2.php

10 http://www.gnu.org/licenses/gpl-3.0.html

11

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

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

1 <?php

2 /**

3 * @package Joomla.Platform

89 *

90 * @since 12.2

91 * @note The interface is only present in PHP 5.4 and up.

92 */

93 public function jsonSerialize()

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

ConfigListener.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 383 lines

1 <?php

2 /**

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

options.php (https://github.com/livinglab/openlab.git) PHP · 316 lines

1 <?php

2 /**

3 * Genesis Framework.

map.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 138 lines

1 <?php

2

3 $sliderPage = new QodeAdminPage("_slider", "Qode Slider", "fa fa-sliders");

special.php (https://github.com/smadi/arabian-land.git) PHP · 297 lines

1 <?php

2 class ControllerProductSpecial extends Controller {

3 public function index() {

XML.php (https://bitbucket.org/stager94/skmz-joomla.git) PHP · 377 lines

1 <?php

2

3 /**

4 * XML-parsing classes to wrap the domxml and DOM extensions for PHP 4

5 * and 5, respectively.

6 *

12

13 /**

14 * The base class for wrappers for available PHP XML-parsing

15 * extensions. To work with this Yadis library, subclasses of this

16 * class MUST implement the API as defined in the remarks for this

17 * class. Subclasses of Auth_Yadis_XMLParser are used to wrap

18 * particular PHP XML extensions such as 'domxml'. These are used

19 * internally by the library depending on the availability of

20 * supported PHP XML extensions.

LocalApicLib.h (https://gitlab.com/envieidoc/Clover) C Header · 372 lines

9 are licensed and made available under the terms and conditions of the BSD License

10 which accompanies this distribution. The full text of the license may be found at

11 http://opensource.org/licenses/bsd-license.php

12

13 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

51

52 /**

53 Get the initial local APIC ID of the executing processor assigned by hardware upon power on or reset.

54

55 In xAPIC mode, the initial local APIC ID is 8-bit, and may be different from current APIC ID.

OptionRepositoryTest.php (https://gitlab.com/axeltizon/magento-demopoweraccess) PHP · 288 lines

1 <?php

2 /**

3 *

17

18 /**

19 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php

20 */

21 public function testGet()

50

51 /**

52 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php

53 */

54 public function testGetList()

98

99 /**

100 * @magentoApiDataFixture Magento/ConfigurableProduct/_files/product_configurable.php

101 */

102 public function testGetUndefinedOption()

ComponentName.c (https://gitlab.com/envieidoc/Clover) C · 243 lines

7 of the BSD License which accompanies this distribution. The

8 full text of the license may be found at

9 http://opensource.org/licenses/bsd-license.php

10

11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

li_Structures_CSS.html (https://github.com/sergiosgc/Structures_CSS.git) HTML · 114 lines

66 <dd><a href='Structures_CSS/Structures_CSS_Value_URI.html' target='right'>Structures_CSS_Value_URI</a></dd>

67 <dt class="folder-title">Files</dt>

68 <dd><a href='Structures_CSS/_CSS---Iterator---Array.php.html' target='right'>Array.php</a></dd>

69 <dd><a href='Structures_CSS/_CSS---Rule---AtImport.php.html' target='right'>AtImport.php</a></dd>

70 <dd><a href='Structures_CSS/_CSS---Rule---AtMedia.php.html' target='right'>AtMedia.php</a></dd>

71 <dd><a href='Structures_CSS/_CSS---Iterator---AtMediaRules.php.html' target='right'>AtMediaRules.php</a></dd>

72 <dd><a href='Structures_CSS/_CSS---Rule---AtPage.php.html' target='right'>AtPage.php</a></dd>

73 <dd><a href='Structures_CSS/_CSS---Declaration---Background.php.html' target='right'>Background.php</a></dd>

74 <dd><a href='Structures_CSS/_CSS---Declaration---Border.php.html' target='right'>Border.php</a></dd>

75 <dd><a href='Structures_CSS/_CSS---Declaration---BorderBottom.php.html' target='right'>BorderBottom.php</a></dd>

76 <dd><a href='Structures_CSS/_CSS---Declaration---BorderColor.php.html' target='right'>BorderColor.php</a></dd>

77 <dd><a href='Structures_CSS/_CSS---Declaration---BorderLeft.php.html' target='right'>BorderLeft.php</a></dd>

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>

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

README.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 189 lines

54

55 There are several mailing lists dedicated to jEdit; for details, visit

56 <http://www.jedit.org/index.php?page=lists>. The mailing lists are the

57 preferred place to post feature suggestions, questions, and the like.

58

59 If you would like to report a bug, first read the `Common Problems'

60 section below. If that doesn't answer your question, report a bug with

61 our bug tracker, located at <http://www.jedit.org/index.php?page=bugs>.

62

63 When writing a bug report, please try to be as specific as possible. You

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

1 <?php

2 /*

3 * $Id: AndCondition.php 43 2006-03-10 14:31:51Z mrook $

20 */

21

22 require_once 'phing/tasks/system/condition/ConditionBase.php';

23

24 /**

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

pear-phing.bat (git://github.com/alexgorbatchev/SyntaxHighlighter.git) Batch · 0 lines ✨ Summary

This batch script checks if a PHP CLI executable exists and, if so, runs the phing.php file with the specified arguments. If the executable is not found, it displays an error message instructing the user to edit the script to point to their PHP CLI version. The script then pauses for the user’s input.

9 :: Please set following to PHP's CLI

10 :: NOTE: In PHP 4.2.x the PHP-CLI used to be named php-cli.exe.

11 :: PHP 4.3.x names it php.exe but stores it in a subdir called /cli/php.exe

12 :: E.g. for PHP 4.2 C:\phpdev\php-4.2-Win32\php-cli.exe

13 :: for PHP 4.3 C:\phpdev\php-4.3-Win32\cli\php.exe

14

15 SET phpCli=@PHP-BIN@

21 ::---------------------------------------------------------------------------------

22

23 :: Check existence of php.exe

24 IF EXIST "%phpCli%" (

26 ) ELSE GOTO :NoPhpCli

27

28 "%phpCli%" -d html_errors=off -qC "@PEAR-DIR@\phing.php" %*

29 GOTO :EOF

30

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

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

122 This draft incorporates material from the Interactive FAQ section

123 of the <ulink url=

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

125 >jEdit Community web site</ulink>.

126 </releaseinfo>

go7007.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 482 lines

4

5 The driver was originally released under the GPL and is currently hosted at:

6 http://nikosapi.org/wiki/index.php/WIS_Go7007_Linux_driver

7 The go7007 firmware can be acquired from the package on the site above.

8

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

This Java class represents an “else” statement in a PHP script. It extends another class called Statement and contains an array of statements that follow the “else”. The class provides methods to convert itself to a string, get variables used by its child statements, analyze code with a PHP parser, and more.

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

2

3 import gatchan.phpparser.parser.PHPParser;

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

133

134 @Override

135 public void analyzeCode(PHPParser parser)

136 {

137 for (int i = 0; i < statements.length; i++)

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;

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;

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

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

This Java class represents a postfix unary expression in an abstract syntax tree (AST). It extends the UnaryExpression class and adds a specific implementation for postfix unary expressions. The class has a constructor that initializes its fields, including the operator, source end position, line number, and column number. The toStringExpression() method returns a string representation of the expression by concatenating the original expression’s string with the operator’s string.

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

2

3 /**

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

This Java class represents a PHP document, which is an outlineable object containing HTML and PHP nodes. It provides methods to analyze code, get statements at specific positions, and manage its structure, including adding and retrieving children (e.g., classes, methods). The class also implements the IAsset interface and has properties for its name, start and end positions, and nodes.

7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;

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

9 import gatchan.phpparser.parser.PHPParser;

14

15 /**

16 * It's a php document. This class is an outlineable object It will contains html and php

17 *

18 * @author Matthieu Casanova

109 * Analyze the code of a php document.

110 *

111 * @param phpParser the php parser

112 */

113 public void analyzeCode(PHPParser phpParser) {

155 for (int i = 0; i < children.size(); i++) {

156 Outlineable outlineable = (Outlineable) children.get(i);

157 if (outlineable.getItemType() == PHPItem.METHOD) {

158 MethodDeclaration methodDeclaration = (MethodDeclaration) outlineable;

159 if (line == methodDeclaration.getBodyLineStart() && column > methodDeclaration.getBodyColumnStart()) return methodDeclaration;

writing-modes.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 910 lines

763 to the end of the containing ruleset. This has implications with

764 rule-ordering; see <xref linkend="rule-ordering" />.</para>

765 <para>Here is an example from the PHP mode, which extends the inline

766 JavaScript highlighting to support embedded PHP:</para>

768 &lt;RULES SET="JAVASCRIPT+PHP"&gt;

769

770 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

771 &lt;BEGIN&gt;&amp;lt;?php&lt;/BEGIN&gt;

773 &lt;/SPAN&gt;

774

775 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

776 &lt;BEGIN&gt;&amp;lt;?&lt;/BEGIN&gt;

777 &lt;END&gt;?&amp;gt;&lt;/END&gt;

778 &lt;/SPAN&gt;

779

780 &lt;SPAN TYPE="MARKUP" DELEGATE="php::PHP"&gt;

781 &lt;BEGIN&gt;&amp;lt;%=&lt;/BEGIN&gt;

782 &lt;END&gt;%&amp;gt;&lt;/END&gt;

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

try.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 24 lines

1 <!-- attached to bug #1083903 XML Insert element tree bug (imported DTD)

2 https://sourceforge.net/tracker/index.php?func=detail&aid=1083903&group_id=588&atid=565475

3 -->

4

Makefile (https://swig.svn.sourceforge.net/svnroot/swig) Makefile · 25 lines ✨ Summary

This Makefile is used to build a PHP extension using SWIG (Simplified Wrapper and Interface Generator). It provides targets for building, cleaning, and checking the extension, as well as generating the necessary files for compilation. The all target builds the default PHP extension, while the static target builds a static version. The clean target removes generated files, and the check target runs the built extension.

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

11 SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \

12 php

13

14 static::

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

16 SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \

17 php_static

18

19 clean::

20 $(MAKE) -f $(TOP)/Makefile php_clean

21 rm -f $(TARGET).php

22

23 check: all

24 $(MAKE) -f $(TOP)/Makefile php_run

25

WinZipAesException.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 22 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 // Source: https://bitbucket.org/jens13/cleanzip

6

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;

form_testing_documentation.html (http://swx-format.googlecode.com/svn/trunk/) HTML · 317 lines ✨ Summary

This is a documentation page for SimpleTest, a unit testing framework. It provides an overview of how to use SimpleTest to test web applications, including examples and tutorials on testing forms, authentication, and browsers. The page includes links to related information, such as the developer’s API and download page.

79 <p>

80 We can navigate to this code, via the

81 <a href="http://www.lastcraft.com/form_testing_documentation.php">LastCraft</a>

82 site, with the following test...

83 <pre>

85 <strong>

86 function testDefaultValue() {

87 $this-&gt;get('http://www.lastcraft.com/form_testing_documentation.php');

88 $this-&gt;assertField('a', 'A default');

89 }</strong>

118 SimpleTest tries to emulate typical browser behaviour as much as possible,

119 rather than attempting to catch missing attributes on tags.

120 This is because the target of the testing framework is the PHP application

121 logic, not syntax or other errors in the HTML code.

122 For HTML errors, other tools such as

template-ie6.css (http://sewebar-cms.googlecode.com/svn/trunk/) CSS · 79 lines ✨ Summary

This CSS code defines styles for a RocketTheme Joomla template, including layout adjustments, typography, and hover effects for menus, tabs, and other elements. It sets display properties, margins, padding, and background colors to create a consistent visual design throughout the template. The styles are applied to various HTML elements, such as ul, li, a, and .rt-headline.

4 * @author RocketTheme http://www.rockettheme.com

5 * @copyright Copyright (C) 2007 - @COPYRIGHT_YEAR@ RocketTheme, LLC

6 * @license http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License

7 */

8 /* Header */

Phrase.php (http://sewebar-cms.googlecode.com/svn/trunk/) PHP · 271 lines ✨ Summary

This PHP class implements a search query processor for a search engine. It takes a phrase as input and generates a query that can be used to retrieve documents containing the phrase. The query is optimized for different types of fields, such as exact term matching, wildcard queries, and non-trivial phrase queries. The class also provides methods for highlighting matches in the retrieved documents.

1 <?php

2 /**

3 * Zend Framework

18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)

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

20 * @version $Id: Phrase.php 20096 2010-01-06 02:05:09Z bkarwin $

21 */

22

23

24 /** Zend_Search_Lucene_Search_Query_Processing */

25 require_once 'Zend/Search/Lucene/Search/Query/Preprocessing.php';

26

27 /**

126 //

127 // if (strpos($this->_phrase, '?') !== false || strpos($this->_phrase, '*') !== false) {

128 // require_once 'Zend/Search/Lucene/Search/QueryParserException.php';

129 // throw new Zend_Search_Lucene_Search_QueryParserException('Wildcards are only allowed in a single terms.');

130 // }

news.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 240 lines

31 <title> Preface </title>

32

33 <para> jEdit is a very mature text editor, and has gone through a very interesting phase of development. Left in a "prerelease" stage for about two years, it's had a long time to solifidy. Many of the original developers, including Slava Pestov, have stopped working directly on jEdit. Fortunately, because of the wonderful nature of open source, there are more and more eyeballs on this code than ever! We have received contributions of plugins, bugfixes, refactoring, and enhancements from around the globe, and our host, sourceforge.net <ulink url = "http://sourceforge.net/project/stats/detail.php?group_id=588&amp;ugn=jedit&amp;type=prdownload&amp;mode=year&amp;package_id=0" >reports</ulink> that there are on average at least a half-million downloads per year, and this has been true for the entire millenium.

34 </para>

35

189

190 <bridgehead>SideKicks and Language Plugins </bridgehead>

191 <para> SideKick has been debugged and the documentation has been improved. Further, there is a new combobox that lets you choose your parser, and a new SplitPane to show you the contents of the hovered element. The combobox is especially important since there are multiple parsers that can be used on a given file, especially when you are working with Python, PHP, HTML, XML, or JavaScript files. </para>

192

193 <para> Many language-specific plugins have been redesigned to use the new and improved SideKick. In particular, JPyDebug, JythonInterpreter, RubyPlugin, PHPParser, JavaSideKick, XML, and PerlSideKick. Be sure to try them out.

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

This Java code appears to be part of a text editor’s line management system, responsible for calculating and storing information about each line in a document. It handles soft wrapping (line breaks) and hard wrapping (physical line changes), updating line data accordingly. The code provides methods for retrieving line information, checking if a full repaint is needed, and handling backwards compatibility with older versions of the text editor.

427 fontRenderContext,str);

428 width = (float)text.getLogicalBounds().getWidth();

429 positions = text.getGlyphPositions(0,length,null);

430 }

431

jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines

21 \fBjEdit\fP is a cross-platform text editor written in Java. It

22 has an extensive feature set that includes syntax highlighting, auto indent,

23 folding, word wrap, abbreviation expansion, multiple clipboards, powerful search and replace and much more.

24

25 Furthermore, \fBjEdit\fP is extremely customizable, and extensible, using either macros written in the BeanShell scripting language, or plugins written

26 in Java. With plugins, you can create a very powerful development environment

27 for HTML, XML, C/C++, Python, Perl, Ruby, Lisp, Scheme, and many others.

28

157

158 .SH BUGS

159 See http://www.jEdit.org/index.php?page=feedback for bug reporting information.

160

161 .SH WEB

download.html (https://freespeech.svn.sourceforge.net/svnroot/freespeech) HTML · 57 lines ✨ Summary

This HTML code outputs a simple webpage with information about downloading and compiling the Free Speech project, including required libraries and software versions. It provides links to download source files, binaries, and examples, as well as instructions on how to compile from CVS using specific options and software versions. The page also includes notes and warnings for users.

10 <h1>

11 Download</h1></center>

12 <b><font size=+1>Source and binaries are available on the <a href="http://sourceforge.net/project/showfiles.php?group_id=590">file

13 release page</a>.</font></b>

14 <p><b><font size=+1>NOTE: You should compile with gcc 2.95.x (egcs 1.1.2

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

addon.py (http://queeup.googlecode.com/svn/addons/) Python · 39 lines ✨ Summary

This Python script is a Kodi plugin that creates a directory with multiple folders, each containing a list of WatchMojo RSS feeds. The plugin uses Kodi’s built-in functionality to create and manage the directory structure, displaying the folder titles as subtitles for each feed. It also disables sorting and ends the directory listing.

10 class Main:

11 def __init__(self):

12 RSS_FEED = 'http://www.watchmojo.com/rss/feeds.php?id=%s&type=mrss&max=all'

13 folders = [{'title':__language__(30201), 'id':'01'},

14 {'title':__language__(30202), 'id':'02'},

28 for i in folders:

29 listitem = xbmcgui.ListItem(i['title'], iconImage="DefaultFolder.png", thumbnailImage=__icon__)

30 url = 'rss://www.watchmojo.com/rss/feeds.php?id=%s&type=mrss&max=100' % i['id']

31 xbmcplugin.addDirectoryItems(int(sys.argv[1]), [(url, listitem, True)])

32 # Disable sorting...

news.html (https://freespeech.svn.sourceforge.net/svnroot/freespeech) HTML · 105 lines ✨ Summary

This HTML code outputs a news page for the Overflow project, a free “data flow oriented” development environment. It displays recent news and updates about the project, including new releases, features, and adoption by other companies. The page also includes links to download the software and provide feedback through an online survey.

16 <hr WIDTH="100%">

17 <br><b>November 21st 2001</b>

18 <p><a href="http://sourceforge.net/forum/forum.php?forum_id=126719">Overflow

19 0.6.0 have just been released.</a><b></b><b></b>

20 <p>We're pleased to announce the release of Overflow&nbsp; 0.6.0. Overflow

53 robotics lab at University of Sherbrooke</a> and a robot control toolbox

54 is soon to be released!

55 <p>There is now an <a href="http://sourceforge.net/survey/survey.php?group_id=590&survey_id=11967">on-line

56 survey on SourceForge</a>. Tell us what you think about Overflow!

57 <br><b></b>&nbsp;

59 <hr WIDTH="100%">

60 <br><b>July 4th 2001</b>

61 <p><a href="http://sourceforge.net/forum/forum.php?forum_id=96301">Overflow

62 0.5.0 have just been released.</a><b>&nbsp; </b>This new release brings

63 a number of improvements over version 0.4.3.

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

This PHP code is a comprehensive set of functions for validating and checking various aspects of PHP code, including classes, functions, globals, resources, and variables. It provides a robust framework for detecting errors, warnings, and potential issues in PHP code, making it useful for developers to ensure their code is correct and reliable.

1 <?php

2

3 // do we have true global vars or just GETSET functions?

Preface.html (https://swig.svn.sourceforge.net/svnroot/swig) HTML · 252 lines ✨ Summary

This is a documentation page for SWIG, a software development tool. It provides an introduction to using SWIG, explains its features and limitations, and offers guidance on how to use it effectively. The page includes examples, warnings about backwards compatibility, and instructions on how to report bugs. It also acknowledges the contributions of various individuals who have helped develop and maintain SWIG.

60 SWIG-2.0---a system that aims to provide wrapping support for nearly

61 all of the ANSI C++ standard and approximately ten target languages

62 including Guile, Java, Mzscheme, Ocaml, Perl, Pike, PHP, Python, Ruby,

63 and Tcl.

64 </p>

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*}" />

347 FILE_NAME_GLOB="*.{pov,povray}" />

348

349 <MODE NAME="powerdynamo" FILE="powerdynamo.xml"

350 FILE_NAME_GLOB="*.{ssc,stm}" />

351

352 <MODE NAME="powershell" FILE="powershell.xml"

353 FILE_NAME_GLOB="*.ps1" />

354

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

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>

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

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.

44

45 $extension = JRequest::getCmd('extension');

46 $this->setRedirect(JRoute::_('index.php?option=com_categories&view=categories&extension='.$extension, false));

47

48 // Initialise variables.

79 } else {

80 // Nothing to reorder

81 $this->setRedirect(JRoute::_('index.php?option='.$this->option.'&view='.$this->view_list, false));

82 return true;

83 }

PathMacrosImpl.java (https://bitbucket.org/nbargnesi/idea.git) Java · 366 lines

114 "ModuleSdkPath",

115 "OutputPath",

116 "PhpExecutable",

117 "ProjectFileDir",

118 "ProjectFilePath",

posts.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 195 lines

81 <h2><?php _e( 'Posts' ); ?>

82 <?php

83 $h2_search = $post_query->get( 'post_text' );

84 $h2_forum = $post_query->get( 'forum_id' );

143 <?php foreach ( $bulk_actions as $value => $label ) : ?>

144

145 <option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $label ); ?></option>

146 <?php endforeach; ?>

148 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" class="button submit-input" />

149 <?php bb_nonce_field( 'post-bulk' ); ?>

150 </fieldset>

151

152 <div class="tablenav">

153 <?php if ( $total ) : ?>

154 <div class="tablenav-pages">

155 <span class="displaying-num"><?php echo $displaying_num = sprintf(

activity.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 78 lines

1 <?php

2

3 /**

13 <ul>

14

15 <?php bp_get_options_nav(); ?>

16

17 <li id="activity-filter-select" class="last">

18 <label for="activity-filter-by"><?php _e( 'Show:', 'buddypress' ); ?></label>

19 <select id="activity-filter-by">

20 <option value="-1"><?php _e( 'Everything', 'buddypress' ); ?></option>

21 <option value="activity_update"><?php _e( 'Updates', 'buddypress' ); ?></option>

22

23 <?php

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"

view.raw.php (http://sewebar-cms.googlecode.com/svn/trunk/) PHP · 35 lines ✨ Summary

This PHP code defines a view class for the Joomla WebLinks component, specifically for the Jucene module. It extends the base JView class and overrides the display method to simply echo the value of $this->value. This suggests that the view is designed to display some kind of data or content related to the Jucene module.

1 <?php

2 /**

3 * @version $Id: jucene.php

5 * @subpackage Jucene

6 * @copyright Copyright (C) 2005 - 2010 LukᚠBeránek. All rights reserved.

7 * @license GNU/GPL, see LICENSE.php

8 * Joomla! is free software. This version may have been modified pursuant to the

9 * GNU General Public License, and as distributed it includes or is derivative

10 * of works licensed under the GNU General Public License or other free or open

11 * source software licenses. See COPYRIGHT.php for copyright notices and

12 * details.

13 */

XmlReader.java (http://btalk.googlecode.com/svn/) Java · 240 lines ✨ Summary

This Java code implements an XML reader that parses and interprets XML documents. It reads input from an InputStream, identifies XML tags, attributes, and text content, and returns information about each element in a stack-based data structure. The reader can be used to parse and process XML files, and provides methods for accessing the parsed elements’ names, attributes, and text content.

61 }

62

63 //http://discussion.forum.nokia.com/forum/showthread.php?t=76814

64 //by abirr

65 private int getNextCharacter() throws IOException {

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

This Java code defines a class TagDecl that represents a tag declaration in an XML parser. It stores information about the tag, such as its name, start and end positions, and attributes like default IDs and token IDs. The class also tracks various flags indicating whether certain conditions are met during parsing.

465 /**

466 * A list of modes to be reloaded at the end, loaded through DELEGATEs

467 * @see http://sourceforge.net/tracker/index.php?func=detail&aid=1742250&group_id=588&atid=100588

468 */

469 private Vector<Mode> reloadModes;

enum_scope.i (https://swig.svn.sourceforge.net/svnroot/swig) Swig · 17 lines

1 %module enum_scope

2

3 #ifdef SWIGPHP

4 // php internal naming conflict

CSSDefinition.php (http://0byte.googlecode.com/svn/trunk/) PHP · 39 lines ✨ Summary

This is a custom HTMLPurifier_Printer class that extends the HTMLPurifierPrinter class and overrides its render() method to display information about the CSS definition in a table format. The class uses the getClass() function to extract the name of the AttrDef class from the object, which is then used as the definition for each property. The resulting output is a table with two columns: Property and Definition, where the former displays the name of each property and the latter shows the corresponding AttrDef_ class name.

1 <?php

2

3 class HTMLPurifier_Printer_CSSDefinition extends HTMLPurifier_Printer

users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 711 lines

604 available from jedit repository. The documentation is generated using docbook xsl.

605 </para>

606 <para>Some tests are included. They are based upon <ulink url="http://fest.easytesting.org/swing/wiki/pmwiki.php">FEST-swing</ulink>

607 for GUI testing. Otherwise they are plain <ulink url="http://www.junit.org/">jUnit</ulink> tests.

608 To run the tests, <command>cd</command> to the plugin root directory and type <command>ant test</command>.

freemonobi.php (http://sgd.googlecode.com/svn/trunk/) PHP · 101 lines ✨ Summary

The PHP code outputs a large array of numerical values, likely representing a compressed file’s contents. The data is stored in variables $enc, $diff, and $originalsize, which are initialized with specific values. The output suggests that the code is processing a compressed file named “freemonobi.z” using a custom category file “freemonobi.ctg.z”.

1 <?php

2 $type='TrueTypeUnicode';

3 $name='FreeMonoBoldOblique';

Exception.php (http://typecho.googlecode.com/svn/trunk/) PHP · 20 lines ✨ Summary

This PHP code defines a custom exception class Typecho_Http_Client_Exception that extends Typecho’s built-in Exception class. It is part of the Typecho blog platform and provides a specific error handling mechanism for HTTP client-related issues, allowing for more targeted error messages and behavior in the application.

1 <?php

2 /**

3 * Typecho Blog Platform

5 * @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)

6 * @license GNU General Public License 2.0

7 * @version $Id: DbException.php 52 2008-03-18 08:04:01Z magike.net $

8 */

9

10 /** ???? */

11 require_once 'Typecho/Exception.php';

12

13 /**

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

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.

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 *

71 #define DHD_SDALIGN 32

72 #endif

73 #if !ISPOWEROF2(DHD_SDALIGN)

74 #error DHD_SDALIGN is not a power of 2!

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

This PHP script tests a set of functions and classes for various sports cars, including Jaguar, Lotus, Tvr, Ferrari, Sportscars, Minicooper, Morrisminor, Fordanglia, Austinallegro. It checks if the functions return expected values and if the classes are correctly instantiated with the correct parameters. The test passes if all assertions are true, otherwise it fails.

1 <?php

2 // Sample test file

3

4 require "tests.php";

5 require "ignore_parameter.php";

Yflatfile.php (http://mapleleaf.googlecode.com/svn/trunk/) PHP · 74 lines ✨ Summary

This PHP class, Yflatfile, extends a base class and provides a database interface for interacting with flat files. It handles tasks such as creating databases, executing queries, escaping strings, and retrieving information about the current session, including error messages and server version. It also provides methods to check if tables exist and close the connection.

1 <?php

2 class Yflatfile extends YDBBase {

3 public $lnk;

nsIScriptGlobalObject.h (git://github.com/zpao/v8monkey.git) C Header · 172 lines ✨ Summary

This C++ header file defines a class nsIScriptGlobalObject that represents a global object for scripting languages, such as JavaScript. It provides methods for managing script contexts, handling errors, and enabling/disabling scripts. The class is designed to be used in a web browser context, likely Mozilla Firefox or its derivatives.

62 // attempted micro-optimization tried to avoid us going all the way to

63 // nsIProgrammingLanguage::MAX; however:

64 // * Someone is reportedly working on a PHP impl - that has value 9

65 // * nsGenericElement therefore allows 4 bits for the value.

66 // So there is no good reason for us to be more restrictive again...

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

5 IN: project-euler.067

6

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

8

9 ! DESCRIPTION

constants.xml (http://phpdoc-zh.googlecode.com/svn/trunk/) XML · 261 lines

250 indent-tabs-mode:nil

251 sgml-parent-document:nil

252 sgml-default-dtd-file:"~/.phpdoc/manual.ced"

253 sgml-exposed-tags:nil

254 sgml-local-catalogs:nil

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 *

FoafprofileviewerController.php (https://code.google.com/p/ontowiki/) PHP · 141 lines ✨ Summary

This PHP code is a controller for displaying a FOAF (Friend of All Formats) profile on an OntoWiki platform. It retrieves data from a SPARQL query, constructs a title and date from the retrieved information, and displays it in a user interface with additional details such as properties and pictures.

1 <?php

2

3 require_once 'OntoWiki/Controller/Component.php';

10 * @author Jonas Brekle <jonas.brekle@gmail.com>

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

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

13 * @version $$

14 */

ezhttpheader.php (git://github.com/ezsystems/ezpublish.git) PHP · 158 lines ✨ Summary

The eZHTTPHeader class provides functionality for managing custom HTTP headers in a web application. It checks if custom headers are enabled and returns an array of header overrides based on the requested URI, taking into account settings such as header list, depth, and level. The class also handles cases where content/view is used in the URL alias.

1 <?php

2 /**

3 * File containing the eZHTTPHeader class.

10

11 /*!

12 \class eZHTTPHeader ezhttpheader.php

13 \brief The class eZHTTPHeader does

14

geany.spec (git://github.com/repoforge/rpms.git) Unknown · 111 lines

24 Geany is a small C editor using GTK2 with basic features of an integrated

25 development environment. It features syntax highlighting, code completion,

26 call tips, many supported filetypes (including C, Java, PHP, HTML, DocBook,

27 Perl, LateX, and Bash), and symbol lists.

28