100+ results for 'php com'
Not the results you expected?
InstallSchema.php (https://gitlab.com/yousafsyed/easternglamor) 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)
59 $installer->getIdxName('widget', 'widget_code'),
60 'widget_code'
61 )->setComment(
62 'Preconfigured Widgets'
63 );
77 'nullable' => false,
78 'primary' => true,
79 'comment' => 'Widget Id',
80 ],
81 'parameters' => [
Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines
faq.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 114 lines
10 -->
12 <!-- Changes required for posting on jEdit Community: -->
13 <!-- Title should be <h2> without class; -->
14 <!-- all <h1> headings should be changed to <h2> -->
16 <!-- Command line for processing: -->
17 <!-- -->
18 <!-- xsltproc -catalogs -output .\html\ faq.xsl faq.xml -->
26 <!-- Changes required for posting on jEdit Community: -->
27 <!-- Title should be <h2> without class; -->
28 <!-- all <h1> headings should be changed to <h2> -->
99 This draft incorporates material from the Interactive FAQ section
100 of the <ulink url=
101 "http://community.jedit.org/modules.php?op=modload&name=faq&file=index"
102 >jEdit Community web site</ulink>.
AclVoterTest.php (https://gitlab.com/TouirMohamedMarwen/Symfony2) PHP · 432 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Security\Acl\Tests\Voter;
14 use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
15 use Symfony\Component\Security\Acl\Voter\FieldVote;
16 use Symfony\Component\Security\Acl\Exception\AclNotFoundException;
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
37 private function setheaders() {
38 /*$BccList = array('nakarinb@bluecube.com.sg','bobby.tan@bluecube.com.sg');*/
39 $this->headers = "To: " . $this->toMail . "\r\n";
40 $this->headers .= "From: " . $this->fromMail . "\r\n";
227 /*$this->msgBody = $htmlCT . $this->msgBody;
228 $this->msgBody .= "--PHP-alt-" . $this->randomHash . "\r\n";*/
229 $this->msgBody = wordwrap($this->msgBody, $this->wordwrap);
230 }
289 private function sendReminderforredemptionToUser($property) {
290 /*$htmlCT = "--PHP-alt-" . $this->randomHash . "\r\n";
291 $htmlCT .= 'Content-Type: text/html; charset="iso-8859-1"' . "\r\n";
292 $htmlCT .= 'Content-Transfer-Encoding: 7bit' . "\r\n";*/
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Dojo
17 * @subpackage Form_Element
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
1 <?php
2 class ControllerLocalisationZone extends Controller {
3 private $error = array();
148 $this->data['breadcrumbs'][] = array(
149 'text' => $this->language->get('text_home'),
150 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
151 'separator' => false
152 );
258 $this->template = 'localisation/zone_list.tpl';
259 $this->children = array(
260 'common/header',
261 'common/footer'
309 $this->data['breadcrumbs'][] = array(
310 'text' => $this->language->get('text_home'),
311 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
312 'separator' => false
313 );
Editor.php (https://github.com/Shreef/zf2.git) PHP · 601 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Dojo
17 * @subpackage Form_Element
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
Entry.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 630 lines
18 * @package WindowsAzure\Common\Internal\Atom
19 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
20 * @copyright 2012 Microsoft Corporation
21 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
22 * @link https://github.com/WindowsAzure/azure-sdk-for-php
23 */
34 * @package WindowsAzure\Common\Internal\Atom
35 * @author Azure PHP SDK <azurephpsdk@microsoft.com>
36 * @copyright 2012 Microsoft Corporation
37 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
38 * @version Release: @package_version@
39 * @link https://github.com/WindowsAzure/azure-sdk-for-php
40 */
ValidatorTypeGuesser.php (https://github.com/Exercise/symfony.git) PHP · 273 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Form\Extension\Validator;
14 use Symfony\Component\Form\FormTypeGuesserInterface;
15 use Symfony\Component\Form\Guess\Guess;
16 use Symfony\Component\Form\Guess\TypeGuess;
FormErrors.php (https://github.com/bruisedlee/zf2.git) PHP · 466 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Form
17 * @subpackage Decorator
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
FinderTest.php (https://github.com/Exercise/symfony.git) PHP · 333 lines
117 $finder = new Finder();
118 $this->assertSame($finder, $finder->files()->date('until last month'));
119 $this->assertIterator($this->toAbsolute(array('foo/bar.tmp', 'test.php')), $finder->in(self::$tmpDir)->getIterator());
120 }
131 $finder = new Finder();
132 $this->assertSame($finder, $finder->ignoreVCS(false));
133 $this->assertIterator($this->toAbsolute(array('.git', 'foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto')), $finder->in(self::$tmpDir)->getIterator());
135 $finder = new Finder();
223 $iterator = $finder->files()->name('*.php')->depth('< 1')->in(array(self::$tmpDir, __DIR__))->getIterator();
225 $this->assertIterator(array(self::$tmpDir.DIRECTORY_SEPARATOR.'test.php', __DIR__.DIRECTORY_SEPARATOR.'FinderTest.php', __DIR__.DIRECTORY_SEPARATOR.'bootstrap.php', __DIR__.DIRECTORY_SEPARATOR.'GlobTest.php'), $iterator);
226 }
sfValidatorDateTest.php (https://github.com/yuya-takeyama/symfony-hackathon-20110924.git) PHP · 246 lines
1 <?php
3 /*
4 * This file is part of the symfony package.
5 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
9 */
11 require_once(dirname(__FILE__).'/../../bootstrap/unit.php');
13 $t = new lime_test(52);
244 // did it convert from the other timezone to the default timezone?
245 $date->setTimezone($defaultTimezone);
246 $t->is($clean, $date->format('Y-m-d H:i:s'), '->clean() respects incoming and default timezones');
pageTranslations.php (https://gitlab.com/macitsimsek/fastsubtitle) PHP · 217 lines
13 'domain' => 'FastSubtitle.com',
14 'title' => 'Fast Subtitle',
15 'welcome' => 'Welcome, :username',
16 'hi' => 'Hello :username',
17 'user_settings' => 'User Settings',
112 'subtitle_name' => 'Subtitle Name',
113 'users_waiting' => 'Users Waiting',
114 'complate' => 'Complate',
115 'add_support_this_files' => 'Add Support This Files',
116 'support_subtitle_page' => 'Support Subtitle Page',
128 'most_requested_subtitles' => 'Most Requested Subtitles',
129 'click_for_link' => 'Click For Link',
130 'enter_to_fast_subtitle_com' => 'Enter to FastSubtitle.com',
131 'enter_a_content' => 'Enter a Content',
132 'enter_a_name' => 'Enter a Name',
FormErrors.php (https://github.com/jtai/zf2.git) PHP · 466 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Form
17 * @subpackage Decorator
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
length_class.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 412 lines
1 <?php
2 class ControllerLocalisationLengthClass extends Controller {
3 private $error = array();
148 $this->data['breadcrumbs'][] = array(
149 'text' => $this->language->get('text_home'),
150 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
151 'separator' => false
152 );
258 $this->template = 'localisation/length_class_list.tpl';
259 $this->children = array(
260 'common/header',
261 'common/footer'
311 $this->data['breadcrumbs'][] = array(
312 'text' => $this->language->get('text_home'),
313 'href' => $this->url->link('common/home', 'token=' . $this->session->data['token'], 'SSL'),
314 'separator' => false
315 );
orderdocument.php (https://gitlab.com/neuser/bitrix-core) PHP · 621 lines
DeleteComment.php (https://gitlab.com/Blueprint-Marketing/wordpress-unit-tests) PHP · 355 lines
66 $_POST['id'] = $comment->comment_ID;
67 $_POST['_ajax_nonce'] = wp_create_nonce( 'delete-comment_' . $comment->comment_ID );
68 $_POST[$action] = 1;
69 $_POST['_total'] = count( $this->_comments );
123 $_POST['id'] = $comment->comment_ID;
124 $_POST['_ajax_nonce'] = wp_create_nonce( 'delete-comment_' . $comment->comment_ID );
125 $_POST[$action] = 1;
126 $_POST['_total'] = count( $this->_comments );
218 $_POST['id'] = $comment->comment_ID;
219 $_POST['_ajax_nonce'] = wp_create_nonce( 'delete-comment_' . $comment->comment_ID );
220 $_POST[$action] = 1;
221 $_POST['_total'] = count( $this->_comments );
234 // Force delete the comment
235 if ( 'delete' == $action ) {
236 wp_delete_comment( $comment->comment_ID, true );
237 }
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
5 use Doctrine\Common\EventManager;
6 use Tool\BaseTestCaseORM;
7 use Doctrine\Common\Util\Debug;
11 * These are tests for Tree behavior
12 *
13 * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
14 * @package Gedmo.Tree
15 * @link http://www.gediminasm.org
16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
17 */
18 class NestedTreeRootTest extends BaseTestCaseORM
BaseUserService.php (https://github.com/kervin/kyzstudio.git) PHP · 399 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Service
17 * @subpackage DeveloperGarden
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
AbstractStructureParser.php (https://github.com/RichardDownes/PHPCodeParser.git) PHP · 608 lines
1 <?php
2 namespace Parser;
3 /*
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
17 */
19 use Meta\AbstractPHPStructure;
20 use Meta\DocBlock;
33 /**
34 * Responsible for parsing a php class
35 *
36 * @author Richard Downes <richard@sculpt.ie>
Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8 // +----------------------------------------------------------------------
9 // | Author: liu21st <liu21st@gmail.com>
10 // +----------------------------------------------------------------------
11 // $Id$
13 /**
14 +------------------------------------------------------------------------------
15 * ThinkPHP 简洁模式Model模型类
16 * 只支持原生SQL操作 支持多数据库连接和切换
17 +------------------------------------------------------------------------------
ext_zlib.php (https://github.com/tstarling/hiphop-php.git) PHP · 376 lines
320 * memcache values
321 *
322 * @param string $compressed - The data compressed by nzcompress().
323 *
324 * @return string - The uncompressed data or FALSE on error
325 */
326 <<__Native, __HipHopSpecific>>
327 function nzuncompress(string $compressed): mixed;
329 /**
354 * memcache values
355 *
356 * @param string $compressed - The data compressed by lz4compress().
357 *
358 * @return string - The uncompressed data or FALSE on error
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
ContentURI.java (https://github.com/jehc/MondocosmOS.git) Java · 332 lines
9 * The contents of this file are subject to the GNU General Public
10 * License, Version 2 (the "License"); you may not use this file
11 * except in compliance with the License. A copy of the License is
12 * available at http://www.opensource.org/licenses/gpl-license.php.
13 *
14 * Sun designates this particular file as subject to the "Classpath"
15 * exception as provided by Sun in the License file that accompanied
16 * this code.
17 */
18 package org.jdesktop.wonderland.common;
20 import java.io.File;
58 /**
59 * Constructor, takes the components of the URI: protocol, server name and
60 * port, root, and asset path
61 */
DictionaryLoader.php (https://github.com/gmimano/newd.git) PHP · 265 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Search_Lucene
17 * @subpackage Index
18 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
Barcode.php (https://github.com/jtai/zf2.git) PHP · 323 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Barcode
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
Cloud.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Tag
17 * @subpackage Cloud
18 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
MassCancelTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 292 lines
48 /**
49 * @var \Magento\Framework\ObjectManager\ObjectManager|\PHPUnit_Framework_MockObject_MockObject
50 */
51 protected $objectManagerMock;
58 /**
59 * @var \Magento\Framework\App\ActionFlag|\PHPUnit_Framework_MockObject_MockObject
60 */
61 protected $actionFlagMock;
83 /**
84 * @var \Magento\Ui\Component\MassAction\Filter|\PHPUnit_Framework_MockObject_MockObject
85 */
86 protected $filterMock;
SetTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 295 lines
1 <?php
2 /**
3 *
10 use Magento\Eav\Model\ResourceModel\Entity\Attribute\Set;
12 class SetTest extends \PHPUnit_Framework_TestCase
13 {
14 /**
15 * @var \PHPUnit_Framework_MockObject_MockObject|Set
16 */
17 protected $model;
19 /**
20 * @var \PHPUnit_Framework_MockObject_MockObject
21 */
22 protected $eavConfigMock;
FilesystemTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 240 lines
127 $fs = new Filesystem;
128 $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
129 $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
133 {
134 $tmp = sys_get_temp_dir();
135 file_put_contents("$tmp/composer_test_file", 'Hello');
137 $fs = new Filesystem;
180 /**
181 * @link https://github.com/composer/composer/issues/3157
182 */
183 public function testUnlinkSymlinkedDirectory()
207 /**
208 * @link https://github.com/composer/composer/issues/3144
209 */
210 public function testRemoveSymlinkedDirectoryWithTrailingSlash()
Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines
Config.php (https://bitbucket.org/webpolis/liiv.git) PHP · 514 lines
1 <?php
2 /*
3 * CKFinder
4 * ========
5 * http://ckfinder.com
6 * Copyright (C) 2007-2009, CKSource - Frederico Knabben. All rights reserved.
7 *
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
article0004Test.php (https://github.com/dextercowley/joomla-cms.git) PHP · 196 lines
1 <?php
2 /**
3 * @package Joomla.SystemTest
7 */
9 require_once 'SeleniumJoomlaTestCase.php';
11 /**
68 $this->waitForPageToLoad("30000");
69 $this->jPrint ("Check that first three articles are as expected\n");
70 $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']//table.1.3"));
71 $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']//table.2.3"));
72 $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']//table.3.3"));
84 $this->select("filter_category_id", "label=- Park Site");
85 $this->waitForPageToLoad("30000");
86 $this->assertStringStartsWith('Administrator Components', $this->getTable("//form[@id='adminForm']//table.1.3"));
87 $this->assertStringStartsWith('Archive Module', $this->getTable("//form[@id='adminForm']//table.2.3"));
88 $this->assertStringStartsWith('Article Categories Module', $this->getTable("//form[@id='adminForm']//table.3.3"));
JFacebookNoteTest.php (https://github.com/dextercowley/joomla-cms.git) PHP · 467 lines
203 * @since 13.1
204 */
205 public function testCreateComment()
206 {
207 $token = $this->oauth->getToken();
281 $this->assertThat(
282 $this->object->deleteComment($comment),
283 $this->equalTo(true)
284 );
307 ->will($this->returnValue($returnData));
309 $this->object->deleteComment($comment);
310 }
edit.php (https://github.com/sansanwawa/e-commerse.git) PHP · 337 lines
28 $this->data['breadcrumbs'][] = array(
29 'text' => $this->language->get('text_home'),
30 'href' => $this->url->link('common/home'),
31 'separator' => false
32 );
55 $this->data['entry_telephone'] = $this->language->get('entry_telephone');
56 $this->data['entry_fax'] = $this->language->get('entry_fax');
57 $this->data['entry_company'] = $this->language->get('entry_company');
58 $this->data['entry_website'] = $this->language->get('entry_website');
59 $this->data['entry_address_1'] = $this->language->get('entry_address_1');
174 if (isset($this->request->post['company'])) {
175 $this->data['company'] = $this->request->post['company'];
176 } elseif (isset($affiliate_info)) {
177 $this->data['company'] = $affiliate_info['company'];
178 } else {
179 $this->data['company'] = '';
180 }
PageRepositoryTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 282 lines
migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $
26 */
28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');
30 class Migration_538 extends Migration
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;
8 class MultishippingTest extends \PHPUnit_Framework_TestCase
9 {
10 /**
15 /**
16 * @var \PHPUnit_Framework_MockObject_MockObject
17 */
18 protected $checkoutSessionMock;
20 /**
21 * @var \PHPUnit_Framework_MockObject_MockObject
22 */
23 protected $customerSessionMock;
YamlFileLoader.php (https://bitbucket.org/cryofrost/portal.git) PHP · 339 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\DependencyInjection\Loader;
14 use Symfony\Component\DependencyInjection\DefinitionDecorator;
15 use Symfony\Component\DependencyInjection\Alias;
16 use Symfony\Component\DependencyInjection\ContainerInterface;
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
1 <?php
3 namespace Guzzle\Tests\Plugin\Redirect;
99 }
101 public function testCanRedirectWithStrictRfcCompliance()
102 {
103 $this->getServer()->flush();
137 }
139 public function testRedirect303WithGetWithStrictRfcCompliance()
140 {
141 $this->getServer()->flush();
220 }
222 public function testRedirectWithStrictRfc386Compliance()
223 {
224 // Flush the server and queue up a redirect followed by a successful response
VoteTest.php (https://github.com/omigeot-ccpo/SemanticScuttle-SSO.git) PHP · 536 lines
ast_tree_output.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 550 lines
1 <?php
2 /**
3 * File containing the ezcTemplateAstNodeGenerator class
70 /**
71 * visitEolCommentAstNode
72 *
73 * @param ezcTemplateEolCommentAstNode $node
74 * @return void
75 */
76 public function visitEolCommentAstNode( ezcTemplateEolCommentAstNode $node )
77 {
78 $this->text .= $this->outputNode( $node );
85 * @return void
86 */
87 public function visitBlockCommentAstNode( ezcTemplateBlockCommentAstNode $node )
88 {
89 $this->text .= $this->outputNode( $node );
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',
8 'chelp add milestone description' => 'Du kan lenke annen relevant informasjon til dette objektet.',
9 'chelp add milestone linked object' => 'Du kan lenke annen relevant informasjon til dette objektet',
10 'chelp company card' => 'Dette er foretakskortet',
11 'chelp add note linked objects' => 'Du kan lenke annen relevant informasjon til dette objektet.',
12 'chelp upload file description' => 'Du kan lenke annen relevant informasjon til dette objektet.',
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/>
ConstraintType.java (https://gitlab.com/Codeaurora/platform_sdk) Java · 237 lines
14 * limitations under the License.
15 */
16 package com.android.ide.common.layout.relative;
18 import static com.android.ide.common.api.SegmentType.BASELINE;
28 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_BOTTOM;
29 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_LEFT;
30 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_ALIGN_PARENT_BOTTOM;
37 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_CENTER_HORIZONTAL;
38 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_CENTER_IN_PARENT;
39 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_CENTER_VERTICAL;
41 import static com.android.ide.common.layout.LayoutConstants.ATTR_LAYOUT_TO_RIGHT_OF;
43 import com.android.ide.common.api.SegmentType;
45 import java.util.HashMap;
submissionsoap.class.php (https://github.com/danmarsden/moodle-plagiarism_turnitin.git) PHP · 236 lines
1 <?php
2 /* @ignore
3 * To change this template, choose Tools | Templates
5 */
7 require_once( 'soap.class.php' );
8 require_once( 'tiisubmission.class.php' );
9 require_once( 'response.class.php' );
10 require_once( 'sdkexception.class.php' );
15 class SubmissionSoap extends Soap {
17 public static $extensionname_vocab = 'http://www.turnitin.com/static/source/media/turnitinvocabularyv1p0.xml';
18 public static $extensionvalue_vocab = 'http://www.imsglobal.org/vdex/lis/omsv1p0/extensionvocabularyv1p0.xml';
19 public $ns;
collator_test.php (https://gitlab.com/unofficial-mirrors/moodle) PHP · 333 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
19 *
20 * @package core
21 * @category phpunit
22 * @copyright 2011 Sam Hemelryk
23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
30 *
31 * @package core
32 * @category phpunit
33 * @copyright 2011 Sam Hemelryk
34 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
58 $this->error = 'Collation aware sorting not supported';
59 } else {
60 $this->error = 'Collation aware sorting not supported, PHP extension "intl" is not available.';
61 }
62 parent::setUp();
MassTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 388 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Measure
17 * @subpackage UnitTests
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
Cloud.php (https://bitbucket.org/DragonBe/zfform.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Tag
17 * @subpackage Cloud
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
theming-functions.php (https://github.com/livinglab/openlab.git) PHP · 602 lines
PropertyPathMapperTest.php (https://bitbucket.org/vvanuytven/php_auto.git) PHP · 319 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Form\Tests\Extension\Core\DataMapper;
14 use Symfony\Component\Form\FormConfigBuilder;
15 use Symfony\Component\Form\FormConfigInterface;
16 use Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper;
Cloud.php (https://github.com/komola/ZendFramework.git) PHP · 410 lines
1 <?php
2 /**
3 * Zend Framework
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
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
13 * to license@zend.com so we can send you a copy immediately.
14 *
15 * @category Zend
16 * @package Zend_Tag
17 * @subpackage Cloud
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
Config.php (https://bitbucket.org/jokusafet/magento2.git) PHP · 429 lines
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
13 * to license@magentocommerce.com so we can send you a copy immediately.
14 *
15 * DISCLAIMER
17 * Do not edit or add to this file if you wish to upgrade Magento to newer
18 * versions in the future. If you wish to customize Magento for your
19 * needs please refer to http://www.magentocommerce.com for more information.
20 *
21 * @category Mage
22 * @package Mage_Tax
23 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
30 * @category Mage
31 * @package Mage_Tax
32 * @author Magento Core Team <core@magentocommerce.com>
33 */
34 class Mage_Tax_Model_Config
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
5 namespace Google\Ads\GoogleAds\V9\Common;
12 * Projected metrics for a specific target CPA amount.
13 *
14 * Generated from protobuf message <code>google.ads.googleads.v9.common.TargetCpaSimulationPoint</code>
15 */
16 class TargetCpaSimulationPoint extends \Google\Protobuf\Internal\Message
109 */
110 public function __construct($data = NULL) {
111 \GPBMetadata\Google\Ads\GoogleAds\V9\Common\Simulation::initOnce();
112 parent::__construct($data);
113 }
Module.php (https://bitbucket.org/buonaparte/zfalbum.git) PHP · 281 lines
1 <?php
3 namespace User;
7 use BnpBase\Mapper\BaseMapper;
8 use BnpBase\Mapper\BaseMapperInterface;
9 use Doctrine\Common\Persistence\ObjectManager;
10 use Doctrine\ORM\EntityManager;
11 use DoctrineModule\Stdlib\Hydrator\DoctrineObject;
57 public function getConfig()
58 {
59 return include __DIR__.'/../../config/module.config.php';
60 }
233 'namespaces' => array(
234 __NAMESPACE__ => __DIR__,
235 'ZfcRbac' => __DIR__.'/../../../../vendor/zf-commons/zfc-rbac'
236 )
237 )
class.swfshape.html (https://bitbucket.org/stillzhl/manuals.git) HTML · 251 lines
10 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
11 <div class="up"><a href="book.ming.html">Ming</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="class.swfshape" class="reference">
14 <h1 class="title">The SWFShape class</h1>
43 <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
44 <div class="methodsynopsis dc-description">
45 <span class="type">SWFFill</span> <span class="methodname"><a href="swfshape.addfill.html" class="methodname">addFill</a></span>
248 <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
249 <div class="up"><a href="book.ming.html">Ming</a></div>
250 <div class="home"><a href="index.html">PHP Manual</a></div>
251 </div></body></html>
BeanPropertyComparatorTest.java (https://github.com/sbower/kuali-rice-1.git) Java · 394 lines
239 DateFormat dateFormat = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT);
241 BeanPropertyComparator comparator = new BeanPropertyComparator(propertiesD);
243 D lesser = new D(dateFormat.parse("01/01/1990"));
262 DateFormat dateFormat = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT);
264 BeanPropertyComparator comparator = new BeanPropertyComparator(propertiesD);
266 D lesser = new D(null);
285 DateFormat dateFormat = SimpleDateFormat.getDateInstance(SimpleDateFormat.SHORT);
287 BeanPropertyComparator comparator = new BeanPropertyComparator(propertiesD);
289 D lesser = new D(dateFormat.parse("01/02/1990"));
ConfigListener.php (https://bitbucket.org/juan_sanchez/aiyellow.git) PHP · 383 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
4 *
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
SqlServerGrammar.php (https://gitlab.com/vincetang/mtweb) PHP · 551 lines
125 /**
126 * Compile a drop table command.
127 *
128 * @param \Illuminate\Database\Schema\Blueprint $blueprint
221 /**
222 * Compile a rename table command.
223 *
224 * @param \Illuminate\Database\Schema\Blueprint $blueprint
226 * @return string
227 */
228 public function compileRename(Blueprint $blueprint, Fluent $command)
229 {
230 $from = $this->wrapTable($blueprint);
BaseCcBackupQuery.php (https://github.com/DoghouseMedia/Airtime.git) PHP · 292 lines
151 * @param string $token The value to use as filter.
152 * Accepts wildcards (* and % trigger a LIKE)
153 * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
154 *
155 * @return CcBackupQuery The current query, for fluid interface
173 * @param string $sessionid The value to use as filter.
174 * Accepts wildcards (* and % trigger a LIKE)
175 * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
176 *
177 * @return CcBackupQuery The current query, for fluid interface
248 * @param string|array $totime The value to use as filter.
249 * Accepts an associative array('min' => $minValue, 'max' => $maxValue)
250 * @param string $comparison Operator to use for the column comparison, defaults to Criteria::EQUAL
251 *
252 * @return CcBackupQuery The current query, for fluid interface
FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Validator\Tests\Constraints;
14 use Symfony\Component\Validator\Constraints\File;
15 use Symfony\Component\Validator\Constraints\FileValidator;
16 use Symfony\Component\HttpFoundation\File\File as FileObject;
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Form;
14 use Symfony\Component\Form\Exception\OptionDefinitionException;
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.
Conditional.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 463 lines
7 Copyright:
8 2007 by Tartan Solutions, Inc, http://www.tartansolutions.com
9 2008 Derrell Lipman
11 License:
12 LGPL: http://www.gnu.org/licenses/lgpl.html
13 EPL: http://www.eclipse.org/org/documents/epl-v10.php
14 See the LICENSE file in the project's top-level directory for details.
130 *
131 * @param value1 {Integer}
132 * The value to compare against.
133 *
134 * @param align {String}
PropelTableComparator.php (https://gitlab.com/Isaki/le331.fr) PHP · 312 lines
137 if ($this->getToTable()->hasColumn($fromColumn->getName(), $caseInsensitive)) {
138 $toColumn = $this->getToTable()->getColumn($fromColumn->getName(), $caseInsensitive);
139 $columnDiff = PropelColumnComparator::computeDiff($fromColumn, $toColumn);
140 if ($columnDiff) {
141 $this->tableDiff->addModifiedColumn($fromColumn->getName(), $columnDiff);
227 foreach ($toTableIndices as $toTableIndexPos => $toTableIndex) {
228 foreach ($fromTableIndices as $fromTableIndexPos => $fromTableIndex) {
229 if (PropelIndexComparator::computeDiff($fromTableIndex, $toTableIndex, $caseInsensitive) === false) {
230 unset($fromTableIndices[$fromTableIndexPos]);
231 unset($toTableIndices[$toTableIndexPos]);
276 foreach ($fromTableFks as $fromTableFkPos => $fromTableFk) {
277 foreach ($toTableFks as $toTableFkPos => $toTableFk) {
278 if (PropelForeignKeyComparator::computeDiff($fromTableFk, $toTableFk, $caseInsensitive) === false) {
279 unset($fromTableFks[$fromTableFkPos]);
280 unset($toTableFks[$toTableFkPos]);
FaultTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 297 lines
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: FaultTest.php 20096 2010-01-06 02:05:09Z bkarwin $
21 */
27 }
29 require_once "PHPUnit/Framework/TestCase.php";
30 require_once "PHPUnit/Framework/TestSuite.php";
32 require_once 'Zend/XmlRpc/Server.php';
33 require_once 'Zend/XmlRpc/Server/Fault.php';
35 /**
53 public static function main()
54 {
55 require_once "PHPUnit/TextUI/TestRunner.php";
57 $suite = new PHPUnit_Framework_TestSuite("Zend_XmlRpc_Server_FaultTest");
LICENSE.txt (git://github.com/clawpack/clawpack-4.x.git) Plain Text · 35 lines
activity.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 78 lines
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>
23 <?php
27 <option value="new_blog_post"><?php _e( 'Posts', 'buddypress' ); ?></option>
28 <option value="new_blog_comment"><?php _e( 'Comments', 'buddypress' ); ?></option>
30 <?php
35 <option value="friendship_accepted,friendship_created"><?php _e( 'Friendships', 'buddypress' ); ?></option>
37 <?php endif;
39 endif;
_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.
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.
10 dojo.provide("dojox.highlight.languages._dynamic");
12 /* common scripted languages */
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");
jedit.1 (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 163 lines
15 .SH DESCRIPTION
17 This manual page briefly documents \fBjEdit\fP's command-line parameters.
18 Complete documentation can be found by invoking the Help->jEdit Help
33 .PP
35 .SH GENERAL COMMAND LINE USAGE
37 When opening files from the command line, a line number or marker to position
42 $ jedit thesis.tex +marker:c
44 Command-line switches begin with a "-". Some take a parameter. A file whose name
45 begins with "-" can be opened like so:
56 .TP
57 \fB\-usage\fR
58 Show a brief command line usage message without starting \fBjEdit\fP. This message
59 is also shown if an invalid switch was specified.
60 .TP
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.
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;
3 import java.util.EventListener;
5 /**
6 * The listener to listen to the PHPParserListener
7 *
8 * @author Matthieu Casanova
9 */
10 public interface PHPParserListener extends EventListener {
12 void parseError(PHPParseErrorEvent e);
13 void parseMessage(PHPParseMessageEvent e);
14 }
try.dtd (https://jedit.svn.sourceforge.net/svnroot/jedit) Document Type Definition · 24 lines
el-070604.php (https://bitbucket.org/shuangxinyu/emacspack.git) PHP · 12 lines
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
150 }
152 String _returnCommandInConsole(View view, String shell, String command)
153 {
154 import console.Shell;
505 }
507 retVal = _returnCommandInConsole(view, "System", command.toString());
508 if (retVal.indexOf("error") == -1)
509 {
README (http://enginey.googlecode.com/svn/trunk/) Unknown · 42 lines
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:
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:
19 dojo.require("dojox.rpc.ProxiedPath");
20 var s3Buckets = new dojox.rpc.Service({
21 target:"http://s3.amazonaws.com/",
22 proxyUrl:"../s3/proxy.php", // the path to the proxy
htaccess.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 564 lines
5 <MODE>
6 <PROPS>
7 <PROPERTY NAME="lineComment" VALUE="#" />
8 <PROPERTY NAME="noWordSep" VALUE="-" />
9 </PROPS>
10 <RULES ESCAPE="\" HIGHLIGHT_DIGITS="FALSE" IGNORE_CASE="TRUE">
12 <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
14 <SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
65 <KEYWORD1>AuthLDAPBindDN</KEYWORD1>
66 <KEYWORD1>AuthLDAPBindPassword</KEYWORD1>
67 <KEYWORD1>AuthLDAPCompareDNOnServer</KEYWORD1>
68 <KEYWORD1>AuthLDAPDereferenceAliases</KEYWORD1>
69 <KEYWORD1>AuthLDAPEnabled</KEYWORD1>
AboutBox.resx (https://hg01.codeplex.com/jungletimer) Unknown · 1288 lines
18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27 <comment>This is a comment</comment>
28 </data>
57 mimetype: application/x-microsoft.net.object.bytearray.base64
58 value : The object must be serialized into a byte array
59 : using a System.ComponentModel.TypeConverter
60 : and then encoded with base64 encoding.
61 -->
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 */
22 require_once 'phing/tasks/system/condition/ConditionBase.php';
24 /**
29 *
30 * @author Hans Lellelid <hans@xmpl.org>
31 * @author Andreas Aderhold <andi@binarycloud.com>
32 * @copyright © 2001,2002 THYRELL. All rights reserved
33 * @version $Revision: 1.7 $
yaml.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 84 lines
10 <PROPERTY NAME="indentCloseBrackets" VALUE="}]" />
11 <PROPERTY NAME="ignoreWhitespace" VALUE="false" />
12 <PROPERTY NAME="lineComment" VALUE="#" />
13 <!-- YAML forbids tabs -->
14 <PROPERTY NAME="noTabs" VALUE="true" />
28 <SEQ_REGEXP TYPE="KEYWORD1" DELEGATE="VALUES">[^:\[\]{},'"#]+:( |$)</SEQ_REGEXP>
29 <!-- Useful for Symfony configuration files -->
30 <SPAN TYPE="MARKUP" DELEGATE="php::PHP">
31 <BEGIN><?php</BEGIN>
54 <RULES SET="VALUES" HIGHLIGHT_DIGITS="TRUE">
55 <EOL_SPAN TYPE="COMMENT1" AT_LINE_START="FALSE">#</EOL_SPAN>
56 <IMPORT DELEGATE="NAME" />
57 <IMPORT DELEGATE="ARRAYS" />
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
126 r6l6BpQVyh5VFbKPcOxVHntFhBVV3pqaj2CDsRNn9Aq3BK8kf09VAtG6+GxGcW+Ud/XRKEBOkCcw
127 x1YrzrvIe2nHd+ZLPrBEEbiO8gUTvliE54ADUWIISAj0UvFg8cpVNPsQGxFOg/BEhY1WfF+lkoKj
128 OOdNlXWplafqpBZOxZlxtlQSW2gP22LJcOM6cuMqlMRw/5OwutiEnhU+HDJ2A1ufOJ8v2UwbPMBq
129 sWQ/dHSzoXMiePUmBXnqlwlE7Vh1PavQ00lkxnlihe9Z5m3PvOuZhxRGq5xTb/UrmCMC0WHP4did
130 vVKnpRFnI7WYmii9C2sR1i4M7QNKUu/j6tiBpTvLps6KjR98ep9Ym9qCCMEdtVIP/djBwQFydIwv
262 T4tSOxOpqqOnevsAvJwjn8M4TjOf4Pwfg3A/RNScTirEIW607T6IOE4ieGxB3okR4Q808uYy8nfn
263 zGsl4V55gG+IsLMdX7FAXq745jzxgRiHKG+Kcm0p/MhYc3M6d6JncuNk+uwQ4qebDlOpLs6o7QFR
264 Z2EjV2dlNay5rxOTJwarphpXIZvSDT1y+ybTlUOOvv09oDq283CALdYV700TW9vxSdkxW2alwtaF
265 Dc5PhTX/2Aa2+ZTvCdCtebVbsO+ZL6RMCZF/s+i4s+j5QYQuFWLJf6PJWRlnwvkW3VuxXHbkxRrW
266 E2F7Ua9jCOTYkYe6C0JjoFusWHRdk2smbmYDCSxjxZ77YuzMWMTInb7nqlQMus/VEPoaMKtyzYRy
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.
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 }
83 /**
84 * Comparator that will compare PHPItems.
85 *
86 * @author Matthieu Casanova
ConditionalExpression.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 70 lines
✨ Summary
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
This Java class represents a ConditionalExpression, which is an operator expression that evaluates to true if a condition is met and false otherwise. It has three main components: a boolean condition, a value to return if true, and a value to return if false. The class provides methods for getting variables used in the expression, modified by it, and outside of it.
runme.php
(https://swig.svn.sourceforge.net/svnroot/swig)
PHP · 50 lines
✨ Summary
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
This PHP code demonstrates object creation, access to static members, and deletion of objects using references and a container. It creates two shapes (circle and square) and adds them to a container. The code then accesses a static member, deletes the old references, and verifies that the shapes remain in memory. Finally, it deletes the container, verifying that the shapes are truly deleted from memory.
enum_scope.i (https://swig.svn.sourceforge.net/svnroot/swig) Swig · 17 lines
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 ) : ?>
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>
152 <div class="tablenav">
153 <?php if ( $total ) : ?>
154 <div class="tablenav-pages">
155 <span class="displaying-num"><?php echo $displaying_num = sprintf(
gfortran.vim (https://bitbucket.org/ultra_iter/vim-qt.git) Vim Script · 27 lines
1 " Compiler: GNU Fortran Compiler
2 " Maintainer: H Xu <xuhdev@gmail.com>
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
9 if exists('current_compiler')
10 finish
11 endif
16 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
17 command -nargs=* CompilerSet setlocal <args>
18 endif
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.
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">
3 <h3 class="title_black"><?php echo $this->lang->line('system'); ?></h3>
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>
catalog (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 546 lines
119 FILE_NAME_GLOB="*.csv" />
121 <MODE NAME="cvs-commit" FILE="cvs-commit.xml"
122 FILE_NAME_GLOB="cvs*.tmp"/>
327 <MODE NAME="php" FILE="php.xml"
328 FILE_NAME_GLOB="*.{php3,php4,php,phtml,inc}"
329 FIRST_LINE_GLOB="{<?php*,#!/*php*}" />
387 FILE_NAME_GLOB="*.{red,rc}" />
389 <MODE NAME="relax-ng-compact" FILE="relax-ng-compact.xml"
390 FILE_NAME_GLOB="*.rnc" />
471 FILE_NAME_GLOB="*.{ado}" />
473 <MODE NAME="svn-commit" FILE="svn-commit.xml"
474 FILE_NAME_GLOB="svn-commit*.tmp" />
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
31 // Legacy bbPress config location
32 'bb-config-location' => ABSPATH . 'bb-config.php',
34 /** XProfile **********************************************************/
276 /**
277 * BuddyPress uses common options to store configuration settings. Many of these
278 * settings are needed at run time. Instead of fetching them all and adding many
279 * initial queries to each page load, let's fetch them all in one go.
431 /**
432 * Are blog and forum activity stream comments disabled?
433 *
434 * @since BuddyPress (1.6)
441 function bp_disable_blogforum_comments( $default = false ) {
442 return (bool) apply_filters( 'bp_disable_blogforum_comments', (bool) bp_get_option( 'bp-disable-blogforum-comments', $default ) );
443 }
default.po (https://bitbucket.org/floresj/notetime.git) Portable Object · 26 lines
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.
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 }
63 //http://discussion.forum.nokia.com/forum/showthread.php?t=76814
64 //by abirr
65 private int getNextCharacter() throws IOException {
71 if( b == 0xFF ){ // Check if legal
72 t=-1;
73 }else if( b < 0x80 ){ // Check for UTF8 compliancy
74 throw new IOException("Bad UTF-8 Encoding encountered");
75 }else if((t|0xE0)==t) {
77 if( c == 0xFF ){ // Check if legal
78 t=-1;
79 }else if( c < 0x80 ){ // Check for UTF8 compliancy
80 throw new IOException("Bad UTF-8 Encoding encountered");
81 }else
SimpleKeyCacheInputStream.php (http://2moons.googlecode.com/svn/trunk/) PHP · 130 lines
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.
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.
6 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
7 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
8 import gatchan.phpparser.project.itemfinder.PHPItem;
9 import gatchan.phpparser.parser.PHPParser;
10 import sidekick.IAsset;
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) {
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
.
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
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Security\Core\Authorization\Voter;
14 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
17 * RoleVoter votes if any attribute starts with a given prefix.
18 *
19 * @author Fabien Potencier <fabien@symfony.com>
20 */
21 class RoleVoter implements VoterInterface
_normal.user.js
(http://game-golem.googlecode.com/svn/trunk/)
JavaScript · 33 lines
✨ Summary
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
This UserScript for Facebook’s Castle Age game automatically logs in and plays on behalf of the user, using a pre-existing script called GameGolem.js. It retrieves the necessary data from local storage and appends the script to the page’s head section, allowing it to automate gameplay without requiring manual input.
5 // @license GNU Lesser General Public License; http://www.gnu.org/licenses/lgpl.html
6 // @version 31.6.1119
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
15 //
16 // For the source code please check the sourse repository
17 // - http://code.google.com/p/game-golem/
18 (function () {
19 var a, b, c = GM_listValues();
os2.javainstall.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 31 lines
✨ Summary
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
This HTML code outputs a text explaining how to install and run jEdit on OS/2, including installation commands and instructions for starting the application. It also provides information about running the installer in text-only mode. The output is formatted with paragraphs and pre tags to display code snippets and file paths.
1 <!-- begin os2.javainstall.text -->
3 <!-- for jEdit: :mode=php:indentSize=2:tabSize=2:noTabs=true: -->
5 <p>To find out which Java virtual machine is best for running jEdit on OS/2,
6 see the <a href="index.php?page=compatibility">compatibility</a> page.</p>
8 <p>To install jEdit, open a command prompt and
9 enter the following commands:</p>
11 <pre>cd <i>directory where you downloaded the JAR file</i>
21 <p>If for whatever reason
22 you want to start the installer in text-only mode, specify
23 <code>text</code> as the last parameter on the command line. In text only mode,
24 the installer will not display it's GUI, and instead it will ask
25 questions from the command prompt.</p>
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.
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.
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
12 clean::
13 rm -f *_wrap* *.o core *~ *.so *.php php_example.h
15 check: all
en-GB.plg_finder_weblinks.ini (https://bitbucket.org/kraymitchell/fcd.git) Unknown · 11 lines
AclProviderInterface.php
(git://github.com/symfony/symfony.git)
PHP · 50 lines
✨ Summary
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
This PHP interface defines a contract for retrieving and managing Access Control Lists (ACLs) in a Symfony application. It provides methods to find child object identities, retrieve ACLs for specific object identities, and map multiple object identities to their corresponding ACLs. The interface is designed to be implemented by classes that handle ACL-related operations.
1 <?php
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
10 */
12 namespace Symfony\Component\Security\Acl\Model;
14 /**
15 * Provides a common interface for retrieving ACLs.
16 *
17 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
contentlanguages.php (https://bitbucket.org/kraymitchell/fcd.git) PHP · 72 lines
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.
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.
2 * This file is part of the tagging extension for OntoWiki
3 *
4 * @author Atanas Alexandrov <sirakov@gmail.com>
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 *
72 });
74 // at the moment, we refresh the complete page, so we do not need callbacks here
75 //filter.addCallback(function(filter){ selectTags('exploretags') })
76 });
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.
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.
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">
79 </pre>Ok I think we are ready to start coding!
80 <h2><a name="Prerequisites">Prerequisites</a></h2>
81 If you didn't download it already please <a href="http://code.google.com/p/redis/wiki/README" target="_blank">grab the source code of Retwis</a>. It's a simple tar.gz file with a few of .php files inside. The implementation is very simple. You will find the PHP library client inside (redis.php) that is used to talk with the Redis server from PHP. This library was written by <a href="http://qix.it" target="_blank">Ludovico Magnocavallo</a> and you are free to reuse this in your own projects, but for updated version of the library please download the Redis distribution.<br/><br/>Another thing you probably want is a working Redis server. Just get the source, compile with make, and run with ./redis-server and you are done. No configuration is required at all in order to play with it or to run Retwis in your computer.
82 <h2><a name="Data layout">Data layout</a></h2>
83 Working with a relational database this is the stage were the database layout should be produced in form of tables, indexes, and so on. We don't have tables, so what should be designed? We need to identify what keys are needed to represent our objects and what kind of values this keys need to hold.<br/><br/>Let's start from Users. We need to represent this users of course, with the username, userid, password, followers and following users, and so on. The first question is, what should identify an user inside our system? The username can be a good idea since it is unique, but it is also too big, and we want to stay low on memory. So like if our DB was a relational one we can associate an unique ID to every user. Every other reference to this user will be done by id. That's very simple to do, because we have our atomic INCR operation! When we create a new user we can do something like this, assuming the user is callled "antirez":<br/><br/><pre class="codeblock python python python python python python python python python python python python" name="code">
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.
246 </div>
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.
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.
1 /*****************************************************************************
2 * Copyright 2009 Broadcom Corporation. All rights reserved.
3 *
4 * Unless you and Broadcom execute a separate written software license
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
10 * software in any way with any other Broadcom software provided under a
11 * license other than the GPL, without Broadcom's express prior written
Archive.cs (https://bitbucket.org/jens13/cleanzip.git) C# · 29 lines
populate
(git://github.com/openmelody/melody.git)
Perl · 798 lines
✨ Summary
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
This Perl script, populate
, generates pseudorandom weblog data for a specified number of blogs, authors, entries, categories, and years. It creates user records, blog posts, categories, and tags with random data, including dates, URLs, IPs, and words. The script can be run multiple times to generate different data sets.
170 'MT::Comment' => sub {
171 $this_obj->allow_comments ? $comments_per_entry->() : 0;
172 },
173 'MT::Trackback' => sub { $this_obj->allow_pings ? 1 : 0 },
300 field( 'entry_id', sub { $this_parent->id } ),
301 field( 'author', \&random_name ),
302 field( 'commenter_id', \&random_commenter, 3.0 ),
303 field( 'email', \&random_email ),
304 field( 'url', \&random_url ),
633 sub random_role {
635 # [ 1, 'comment', 'Post Comments', ],
636 # [ 4096, 'administer_blog', 'Blog Administrator'],
637 # [ 2, 'post', 'Post', ],
652 "'comment'", "'comment'",
653 "'comment'", "'comment'",
654 "'not_comment'"