100+ results for 'php flush'
Not the results you expected?
UpdateCommand.php (https://github.com/genemu/GenemuDoctrineExtraBundle.git) PHP · 290 lines
1 <?php
3 /*
52 $output->writeln('<info>Nothing changements</info>');
53 } else {
54 $this->em->flush();
55 }
56 }
65 if ($dir = realpath($class->getPath().'/Controller')) {
66 $files = new Finder();
67 $files->files()->name('*Controller.php')->in($dir);
69 foreach ($files as $file) {
70 if ('Controller.php' !== $controllerName = $file->getBasename('Controller.php')) {
71 $ns = $class->getNamespace().'\\Controller';
BlackHole.php (https://gitlab.com/faisaliqbal/mytripsorter) PHP · 502 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
16 use Zend\Cache\Storage\ClearByPrefixInterface;
17 use Zend\Cache\Storage\ClearExpiredInterface;
18 use Zend\Cache\Storage\FlushableInterface;
19 use Zend\Cache\Storage\IterableInterface;
20 use Zend\Cache\Storage\OptimizableInterface;
29 ClearByPrefixInterface,
30 ClearExpiredInterface,
31 FlushableInterface,
32 IterableInterface,
33 OptimizableInterface,
412 }
414 /* FlushableInterface */
416 /**
ServerVersion28.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 247 lines
JUnit.php (https://gitlab.com/dzakiafif/cokelatklasik) PHP · 452 lines
20 * @since Class available since Release 2.1.0
21 */
22 class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
23 {
24 /**
160 * @param float $time
161 */
162 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
163 {
164 if ($this->currentTestCase === null) {
178 $failure = $this->document->createElement(
179 'failure',
180 PHPUnit_Util_XML::prepareString($buffer)
181 );
JUnit.php (https://gitlab.com/Ofcadavidm/RentCarApp) PHP · 448 lines
16 * @since Class available since Release 2.1.0
17 */
18 class PHPUnit_Util_Log_JUnit extends PHPUnit_Util_Printer implements PHPUnit_Framework_TestListener
19 {
20 /**
156 * @param float $time
157 */
158 public function addFailure(PHPUnit_Framework_Test $test, PHPUnit_Framework_AssertionFailedError $e, $time)
159 {
160 if ($this->currentTestCase === null) {
196 $error = $this->document->createElement(
197 'error',
198 PHPUnit_Util_XML::prepareString(
199 "Incomplete Test\n" .
200 PHPUnit_Util_Filter::getFilteredStacktrace($e)
const_generator.rb (https://github.com/nrpathak/liveapp.git) Ruby · 177 lines
output_minify.php (https://gitlab.com/vanthanhhoh/devlovebook) PHP · 87 lines
InheritanceTest.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 143 lines
1 <?php
3 namespace Gedmo\Translatable;
16 * @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
17 * @link http://www.gediminasm.org
18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
19 */
20 class InheritanceTest extends BaseTestCaseORM
54 $this->em->persist($article);
55 $this->em->flush();
56 $this->em->clear();
71 $this->em->persist($article);
72 $this->em->flush();
73 $this->em->clear();
export.php (https://gitlab.com/x33n/ampache) PHP · 72 lines
1 <?php
2 /* vim:set softtabstop=4 shiftwidth=4 expandtab: */
3 /**
21 */
23 require_once '../lib/init.php';
25 if (!Access::check('interface','100')) {
43 // This is very useful for large catalogs because it will immediately display the download dialog to user,
44 // instead of waiting until contents are generated, which could take a long time.
45 ob_implicit_flush(true);
47 header("Content-Transfer-Encoding: binary");
66 exit;
67 default:
68 require_once AmpConfig::get('prefix') . '/templates/show_export.inc.php';
69 break;
70 } // end switch on action
ThreeWay.php (https://github.com/finger2000/horde.git) PHP · 137 lines
output.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 122 lines
mailqueue__qmaillib.php (https://github.com/yourhty/hypervm.git) PHP · 123 lines
SimpleKeyCacheInputStreamTest.php (https://github.com/nattaphat/hgis.git) PHP · 77 lines
1 <?php
3 require_once 'Swift/Tests/SwiftUnitTestCase.php';
4 require_once 'Swift/KeyCache/SimpleKeyCacheInputStream.php';
5 require_once 'Swift/KeyCache.php';
29 }
31 public function testFlushContentClearsKey()
32 {
33 $cache = $this->_createKeyCache();
41 $stream->setItemKey('foo');
43 $stream->flushBuffers();
44 }
bezmesh_procs.adb (https://github.com/shadoof/CW2.git) Ada · 116 lines
APCcache.php (https://gitlab.com/virtualrealms/d7civicrm) PHP · 151 lines
DDC1995Test.php (https://github.com/jaikdean/doctrine2.git) PHP · 83 lines
RedirectPluginTest.php (https://gitlab.com/techniconline/kmc) PHP · 277 lines
1 <?php
3 namespace Guzzle\Tests\Plugin\Redirect;
16 public function testRedirectsRequests()
17 {
18 // Flush the server and queue up a redirect followed by a successful response
19 $this->getServer()->flush();
57 public function testCanLimitNumberOfRedirects()
58 {
59 // Flush the server and queue up a redirect followed by a successful response
60 $this->getServer()->flush();
82 public function testDefaultBehaviorIsToRedirectWithGetForEntityEnclosingRequests()
83 {
84 $this->getServer()->flush();
85 $this->getServer()->enqueue(array(
86 "HTTP/1.1 301 Moved Permanently\r\nLocation: /redirect\r\nContent-Length: 0\r\n\r\n",
RedisMock.php (https://github.com/societies/SOCIETIES-Platform.git) PHP · 241 lines
DDC512Test.php (https://github.com/proclamo/txinbometro.git) PHP · 94 lines
EncoderListener.php (https://github.com/ykitade/DoctrineExtensions.git) PHP · 75 lines
serverEnv.ml (https://gitlab.com/iranjith4/hhvm) OCaml · 65 lines
IndexStaticJob.java (https://gitlab.com/MetadataDev/mcms) Java · 70 lines
CpuFlushTlb.s (https://gitlab.com/envieidoc/Clover) Assembly · 59 lines
3 /// are licensed and made available under the terms and conditions of the BSD License
4 /// which accompanies this distribution. The full text of the license may be found at
5 /// http://opensource.org/licenses/bsd-license.php
6 ///
7 /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 /// Module Name:
11 ///
12 /// CpuFlushTlb.s
13 ///
14 /// Abstract:
22 .type PalCallStatic, @function
24 .proc CpuFlushTlb
25 .type CpuFlushTlb, @function
26 CpuFlushTlb::
27 alloc loc0 = ar.pfs, 0, 3, 5, 0
28 mov out0 = 0
xil_testcache.c (https://gitlab.com/21mece13/FreeRTOS) C · 371 lines
78 /**
79 *
80 * @brief Perform DCache range related API test such as Xil_DCacheFlushRange
81 * and Xil_DCacheInvalidateRange. This test function writes a constant
82 * value to the Data array, flushes the range, writes a new value, then
103 xil_printf(" initialize Data done:\r\n");
105 Xil_DCacheFlushRange((INTPTR)Data, DATA_LENGTH * sizeof(INTPTR));
107 xil_printf(" flush range done\r\n");
132 if (!Status) {
133 xil_printf(" Flush worked\r\n");
134 }
135 else {
AssertStoreCanBeLocalized.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 78 lines
1 <?php
2 /**
3 * Copyright © 2016 Magento. All rights reserved.
46 $systemConfig->getMessagesBlock()->waitSuccessMessage();
48 // Flush cache
49 $adminCache->open();
50 $adminCache->getActionsBlock()->flushMagentoCache();
61 $cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());
63 \PHPUnit_Framework_Assert::assertTrue(
64 $cmsIndex->getSearchBlock()->isPlaceholderContains($welcomeText),
65 "Locale not applied."
check_ip.py (https://gitlab.com/Mirros/XX-net) Python · 159 lines
TableMessage.php (https://github.com/Unplagged/unplagged.git) PHP · 165 lines
1 <?php
2 /**
3 * Zend Framework
23 /** Zend_Wildfire_Plugin_FirePhp */
24 require_once 'Zend/Wildfire/Plugin/FirePhp.php';
26 /** Zend_Wildfire_Plugin_FirePhp_Message */
27 require_once 'Zend/Wildfire/Plugin/FirePhp/Message.php';
29 /**
37 * @license http://framework.zend.com/license/new-bsd New BSD License
38 */
39 class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_FirePhp_Message
40 {
41 /**
StreamTransferTest.class.php (https://github.com/ghiata/xp-framework.git) PHP · 177 lines
1 <?php namespace net\xp_framework\unittest\io\streams;
3 use unittest\TestCase;
49 return newinstance('io.streams.OutputStream', array(), '{
50 public function write($data) { }
51 public function flush() { }
52 public function close() { throw new IOException("Close error"); }
53 }');
63 public $closed= FALSE;
64 public function write($data) { }
65 public function flush() { }
66 public function close() { $this->closed= TRUE; }
67 }');
Capture.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 88 lines
1 <?php
2 /**
3 * Zend Framework
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
20 * @version $Id: Capture.php 23775 2011-03-01 17:25:24Z ralph $
21 */
25 * @see Zend_Cache_Core
26 */
27 // // // // // // // // require_once 'Zend/Cache/Core.php';
60 $this->_tags = $tags;
61 $this->_extension = $extension;
62 ob_start(array($this, '_flush'));
63 ob_implicit_flush(false);
transport.core.accesspolicies.php (https://github.com/hatone/revolution.git) PHP · 120 lines
1 <?php
2 /**
3 * Default MODX Access Policies
26 'parent' => 0,
27 'class' => '',
28 'data' => '{"about":true,"access_permissions":true,"actions":true,"change_password":true,"change_profile":true,"charsets":true,"class_map":true,"components":true,"content_types":true,"countries":true,"create":true,"credits":true,"customize_forms":true,"dashboards":true,"database":true,"database_truncate":true,"delete_category":true,"delete_chunk":true,"delete_context":true,"delete_document":true,"delete_eventlog":true,"delete_plugin":true,"delete_propertyset":true,"delete_role":true,"delete_snippet":true,"delete_template":true,"delete_tv":true,"delete_user":true,"directory_chmod":true,"directory_create":true,"directory_list":true,"directory_remove":true,"directory_update":true,"edit_category":true,"edit_chunk":true,"edit_context":true,"edit_document":true,"edit_locked":true,"edit_plugin":true,"edit_propertyset":true,"edit_role":true,"edit_snippet":true,"edit_template":true,"edit_tv":true,"edit_user":true,"element_tree":true,"empty_cache":true,"error_log_erase":true,"error_log_view":true,"export_static":true,"file_create":true,"file_list":true,"file_manager":true,"file_remove":true,"file_tree":true,"file_update":true,"file_upload":true,"file_view":true,"flush_sessions":true,"frames":true,"help":true,"home":true,"import_static":true,"languages":true,"lexicons":true,"list":true,"load":true,"logout":true,"logs":true,"menus":true,"menu_reports":true,"menu_security":true,"menu_site":true,"menu_support":true,"menu_system":true,"menu_tools":true,"menu_user":true,"messages":true,"namespaces":true,"new_category":true,"new_chunk":true,"new_context":true,"new_document":true,"new_document_in_root":true,"new_plugin":true,"new_propertyset":true,"new_role":true,"new_snippet":true,"new_static_resource":true,"new_symlink":true,"new_template":true,"new_tv":true,"new_user":true,"new_weblink":true,"packages":true,"policy_delete":true,"policy_edit":true,"policy_new":true,"policy_save":true,"policy_template_delete":true,"policy_template_edit":true,"policy_template_new":true,"policy_template_save":true,"policy_template_view":true,"policy_view":true,"property_sets":true,"providers":true,"publish_document":true,"purge_deleted":true,"remove":true,"remove_locks":true,"resourcegroup_delete":true,"resourcegroup_edit":true,"resourcegroup_new":true,"resourcegroup_resource_edit":true,"resourcegroup_resource_list":true,"resourcegroup_save":true,"resourcegroup_view":true,"resource_quick_create":true,"resource_quick_update":true,"resource_tree":true,"save":true,"save_category":true,"save_chunk":true,"save_context":true,"save_document":true,"save_plugin":true,"save_propertyset":true,"save_role":true,"save_snippet":true,"save_template":true,"save_tv":true,"save_user":true,"search":true,"settings":true,"sources":true,"source_delete":true,"source_edit":true,"source_save":true,"source_view":true,"steal_locks":true,"tree_show_element_ids":true,"tree_show_resource_ids":true,"undelete_document":true,"unlock_element_properties":true,"unpublish_document":true,"usergroup_delete":true,"usergroup_edit":true,"usergroup_new":true,"usergroup_save":true,"usergroup_user_edit":true,"usergroup_user_list":true,"usergroup_view":true,"view":true,"view_category":true,"view_chunk":true,"view_context":true,"view_document":true,"view_element":true,"view_eventlog":true,"view_offline":true,"view_plugin":true,"view_propertyset":true,"view_role":true,"view_snippet":true,"view_sysinfo":true,"view_template":true,"view_tv":true,"view_unpublished":true,"view_user":true,"workspaces":true}',
29 'lexicon' => 'permissions',
30 ), '', true, true);
ReadOnlyStreamWrapperTest.php (https://gitlab.com/geeta7/drupal) PHP · 93 lines
cron.php (https://github.com/dellsystem/phpbb3.git) PHP · 108 lines
6 * @copyright (c) 2005 phpBB Group
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
8 *
9 */
13 define('IN_PHPBB', true);
14 define('IN_CRON', true);
15 $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
16 $phpEx = substr(strrchr(__FILE__, '.'), 1);
17 include($phpbb_root_path . 'common.' . $phpEx);
19 // Do not update users last page entry
63 if ($config['use_system_cron'])
64 {
65 $cron = new phpbb_cron_manager($phpbb_root_path . 'includes/cron/task', $phpEx, $cache->get_driver());
66 }
67 else
yii-debug-toolbar.php (https://github.com/LosYear/FluentCMS.git) PHP · 114 lines
NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines
1 <?php
3 namespace Gedmo\Tree;
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
37 $took = microtime(true) - $start;
38 $minutes = intval($took / 60); $seconds = $took % 60;
39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL;
40 };
41 $repo = $this->em->getRepository(self::CATEGORY);
58 $parent = $cat;
59 }
60 $this->em->flush();
61 $dumpTime($start, $num.' - inserts took:');
62 $start = microtime(true);
ProjectService.php (https://github.com/Zeega/Zeega.git) PHP · 133 lines
DDC1209Test.php (https://bitbucket.org/rkovcs/bigfish_test.git) PHP · 125 lines
1 <?php
3 namespace Doctrine\Tests\ORM\Functional\Ticket;
5 use Doctrine\Common\Collections\ArrayCollection;
7 require_once __DIR__ . '/../../../TestInit.php';
9 class DDC1209Test extends \Doctrine\Tests\OrmFunctionalTestCase
28 {
29 $this->_em->persist(new DDC1209_3());
30 $this->_em->flush();
31 }
39 $this->_em->persist($future1);
41 $this->_em->flush();
43 $future2 = new DDC1209_2($future1);
Rfc2231Encoder.php (https://gitlab.com/isdzulqor/Slis-Dev) PHP · 92 lines
run-mpe.php (https://github.com/orchestra-io/sample-openx.git) PHP · 59 lines
1 <?php
3 /*
23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 +---------------------------------------------------------------------------+
25 $Id: run-mpe.php 30820 2009-01-13 19:02:17Z andrew.hill $
26 */
32 // Send headers to the client before proceeding
33 flush();
35 // Prevent output
38 // Run maintenance
39 // Done this way so that it works in CLI PHP
40 $path = dirname(__FILE__);
41 require_once $path . '/../../init.php';
deployment.rst (https://github.com/carolinekeyla/docs.git) ReStructuredText · 58 lines
26 * Debug messages, created with :php:func:`pr()` and :php:func:`debug()` are
27 disabled.
28 * Core CakePHP caches are flushed ever 99 years, instead of every 10 seconds as
29 in development.
30 * Error views are less informative, and give generic error messages instead.
41 There are a few ways you can configure multiple applications to use the same
42 CakePHP core. You can either use PHP's ``include_path`` or set the
43 ``CAKE_CORE_INCLUDE_PATH`` in your application's ``webroot/index.php``.
44 Generally using PHP's ``include_path`` is easier and more robust. CakePHP comes
45 preconfigured to look on the ``include_path`` as well so its simple to use.
48 either append to it or add an ``include_path`` directive::
50 include_path = '.:/usr/share/php:/usr/share/cakephp-2.0/lib'
52 This assumes you are running a \*nix server, and have CakePHP in
SnsClient.php (https://gitlab.com/juanito.abelo/nlmobile) PHP · 378 lines
extract.py (https://github.com/sbenthall/topical-topology.git) Python · 89 lines
MemcachedStore.php (https://gitlab.com/pomirleanu.florentin/SMS-Client) PHP · 140 lines
TorExample.py (https://github.com/mvitale/Tor-Weather-Django.git) Python · 160 lines
UserVertexLoader.java (https://gitlab.com/zaverichintan/lumify) Java · 106 lines
66 userVertex = createTwitterUserVertex(userDetails, vertexId);
68 workQueueRepository.pushGraphPropertyQueue(userVertex, LumifyProperties.TITLE.getProperty(userVertex));
70 if( !Strings.isNullOrEmpty(profileImageUrl) ) {
71 workQueueRepository.pushGraphPropertyQueue(userVertex, TwitterOntology.PROFILE_IMAGE_URL.getProperty(userVertex));
72 }
74 workQueueRepository.pushGraphPropertyQueue(userVertex, TwitterOntology.SCREEN_NAME.getProperty(userVertex));
75 }
PropelTemplate.php (https://github.com/fabienpomerol/Propel2.git) PHP · 99 lines
fileman_file_download.php (https://gitlab.com/Rad1calDreamer/honey) PHP · 69 lines
1 <?
2 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
3 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/prolog.php");
5 if (!$USER->CanDoOperation('fileman_view_file_structure'))
6 $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
7 require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/fileman/include.php");
8 IncludeModuleLangFile(__FILE__);
22 else if(!$io->FileExists($arFile["tmp_name"]))
23 $strWarning = GetMessage("FILEMAN_FILENOT_FOUND")." ";
24 elseif(!$USER->CanDoOperation('edit_php') && (HasScriptExtension($path) || substr(CFileman::GetFileName($path), 0, 1) == "."))
25 $strWarning .= GetMessage("FILEMAN_FILE_DOWNLOAD_PHPERROR")."\n";
50 {
51 echo fread($f, $bufSize);
52 ob_flush();
53 flush();
deployment.rst (https://github.com/majna/docs.git) ReStructuredText · 58 lines
26 * Debug messages, created with :php:func:`pr()` and :php:func:`debug()` are
27 disabled.
28 * Core CakePHP caches are flushed every 99 years, instead of every 10 seconds as
29 in development.
30 * Error views are less informative, and give generic error messages instead.
41 There are a few ways you can configure multiple applications to use the same
42 CakePHP core. You can either use PHP's ``include_path`` or set the
43 ``CAKE_CORE_INCLUDE_PATH`` in your application's ``webroot/index.php``.
44 Generally using PHP's ``include_path`` is easier and more robust. CakePHP comes
45 preconfigured to look on the ``include_path`` as well so it's simple to use.
48 either append to it or add an ``include_path`` directive::
50 include_path = '.:/usr/share/php:/usr/share/cakephp-2.0/lib'
52 This assumes you are running a \*nix server, and have CakePHP in
System.IO.Pipes.cs (https://gitlab.com/0072016/0072016-corefx-) C# · 121 lines
105 public virtual System.IO.Pipes.PipeTransmissionMode TransmissionMode { get { return default(System.IO.Pipes.PipeTransmissionMode); } }
106 protected override void Dispose(bool disposing) { }
107 public override void Flush() { }
108 public override int Read(byte[] buffer, int offset, int count) { buffer = default(byte[]); return default(int); }
109 public override int ReadByte() { return default(int); }
BuildTutorial.java (https://github.com/RoDaniel/featurehouse.git) Java · 130 lines
42 action(srcdir, destdir, xsl_examples, xsl_site);
43 build.write("</target>\n</project>");
44 build.flush();
45 build.close();
46 }
77 else if (source.getName().equals("index.xml")) {
78 System.out.println("... transformed");
79 convert(source, xsl_site, new File(destination, "index.php"));
80 File buildfile = new File(destination, "build.xml");
81 String path = buildfile.getCanonicalPath().substring(root.length());
Tree.js (https://github.com/mengu/grooxdoo.git) JavaScript · 149 lines
ActivitiesController.php (https://github.com/phpugl/Dime.git) PHP · 390 lines
Placeholder.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 325 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.
29 widget.setPlaceholder("aaa");
30 this.getRoot().add(widget);
31 this.flush();
33 this.assertEquals("affe", this.__getVisibleValueOf(widget), "placeholder visible");
85 // test focus in
86 widget.focus();
87 this.flush();
88 this.assertEquals("", this.__getVisibleValueOf(widget), "wrong visible value after focus");
89 this.assertFalse(this.__isPlaceholderVisible(widget));
ClimateTypeFixtures.php (https://github.com/jordidh/urvangreen-web.git) PHP · 82 lines
index.php (https://github.com/zachleat/Parlour.git) PHP · 61 lines
1 <?php
2 include_once('config.php');
3 include_once('Zend/Service/Flickr.php');
4 $flickr = new Zend_Service_Flickr(PARLOUR_FLICKR_API_KEY);
5 ?><!doctype html>
33 $large = $result->Large;
34 ?>
35 <div class="frame" name="<?php echo $result->id; ?>" fullscreen-photo="<?php echo $large->uri; ?>" fullscreen-width="<?php echo $large->width; ?>" fullscreen-height="<?php echo $large->height; ?>">
36 <div class="border">
37 <div class="photo">
38 <a href="http://www.flickr.com/photos/<?php echo $result->owner . '/' . $result->id; ?>"><img src="<?php echo $small->uri; ?>" style="width: <?php echo $small->width; ?>px; height: <?php echo $small->height; ?>px;"/></a>
39 </div>
40 <div class="label"><?php echo $result->title; ?></div>
TSqlMapGateway.php (https://bitbucket.org/volatileeight/prado.git) PHP · 259 lines
Installer.php (https://github.com/390/core.git) PHP · 152 lines
bit_io_unittest.cc (https://github.com/chromium/chromium.git) C++ · 87 lines
CountryDAO.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 99 lines
1 <?php
3 /**
4 * @file classes/i18n/CountryDAO.inc.php
5 *
6 * Copyright (c) 2000-2009 John Willinsky
14 */
16 // $Id: CountryDAO.inc.php,v 1.6 2009/04/08 21:34:54 asmecher Exp $
51 $cacheTime = $caches[$locale]->getCacheTime();
52 if ($cacheTime !== null && $cacheTime < filemtime($this->getFilename())) {
53 $caches[$locale]->flush();
54 }
55 }
FileCache.inc.php (https://github.com/mcrider/pkpUpgradeTestSuite.git) PHP · 114 lines
1 <?php
3 /**
4 * FileCache.inc.php
5 *
6 * Copyright (c) 2003-2007 John Willinsky
9 * @package cache
10 *
11 * Provides caching based on machine-generated PHP code on the filesystem.
12 *
13 * $Id: FileCache.inc.php,v 1.12 2007/09/21 16:38:34 asmecher Exp $
33 parent::GenericCache($context, $cacheId, $fallback);
35 $this->filename = $path . DIRECTORY_SEPARATOR . "fc-$context-" . str_replace('/', '.', $cacheId) . '.php';
37 // Load the cache data if it exists.
5.cc (https://github.com/MoSync/gcc.git) C++ · 99 lines
ext_output.cpp (https://github.com/diegoIta/hiphop-php.git) C++ · 71 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
myFunciones.php (https://gitlab.com/fabian.morales/Mezanine) PHP · 157 lines
DDC1430Test.php (https://github.com/jaikdean/doctrine2.git) PHP · 304 lines
base.py (https://github.com/marcelnicolay/torneira.git) Python · 84 lines
5 # You may obtain a copy of the License at
6 #
7 # http://www.opensource.org/licenses/osl-3.0.php
8 #
9 # Unless required by applicable law or agreed to in writing, software
76 session = TorneiraSession()
77 session.delete(self)
78 session.flush()
80 def save(self):
82 if not self.id:
83 session.add(self)
84 session.flush()
PagstractList.php (https://gitlab.com/php.bjoernbartels.earth/phpagstract) PHP · 280 lines
1 <?php
2 /**
3 * PHPagstract list token symbol class
4 */
5 namespace PHPagstract\Symbol\Symbols\Tokens;
7 use PHPagstract\Symbol\Symbols\AbstractTokenSymbol;
8 use PHPagstract\Token\Tokens\Token;
9 use PHPagstract\Symbol\Symbols\Properties\ListProperty;
11 /**
12 * PHPagstract list token symbol class
13 *
14 * @package PHPagstract
Fault.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 307 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Fault.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * Zend_XmlRpc_Value
24 */
25 // // // // // // // // // // require_once 'Zend/XmlRpc/Value.php';
27 /**
195 {
196 if (!is_string($fault)) {
197 // // // // // // // // // // require_once 'Zend/XmlRpc/Exception.php';
198 throw new Zend_XmlRpc_Exception('Invalid XML provided to fault');
199 }
main.c (https://github.com/kasicass/kasicass.git) C · 215 lines
topspin_shortcodes.php (https://github.com/ezmiller/topspin-wordpress.git) PHP · 176 lines
45 $templatefile = 'templates/topspin-'.$templateMode.'/featured-item.php';
46 ## 3.1
47 if(file_exists(TOPSPIN_CURRENT_THEME_PATH.'/topspin-'.$templateMode.'/featured-item.php')) { $templatefile = TOPSPIN_CURRENT_THEME_PATH.'/topspin-'.$templateMode.'/featured-item.php'; }
48 elseif(file_exists(TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-'.$templateMode.'/featured-item.php')) { $templatefile = TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-'.$templateMode.'/featured-item.php'; }
49 ## 3.0.0
50 if(file_exists(TOPSPIN_CURRENT_THEME_PATH.'/topspin-templates/featured-item.php')) { $templatefile = TOPSPIN_CURRENT_THEME_PATH.'/topspin-templates/featured-item.php'; }
51 elseif(file_exists(TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-templates/featured-item.php')) { $templatefile = TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-templates/featured-item.php'; }
101 $templatefile = 'templates/topspin-'.$templateMode.'/item-listings.php';
102 ## 3.1
103 if(file_exists(TOPSPIN_CURRENT_THEME_PATH.'/topspin-'.$templateMode.'/item-listings.php')) { $templatefile = TOPSPIN_CURRENT_THEME_PATH.'/topspin-'.$templateMode.'/item-listings.php'; }
104 elseif(file_exists(TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-'.$templateMode.'/item-listings.php')) { $templatefile = TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-'.$templateMode.'/item-listings.php'; }
106 if(file_exists(TOPSPIN_CURRENT_THEME_PATH.'/topspin-templates/item-listings.php')) { $templatefile = TOPSPIN_CURRENT_THEME_PATH.'/topspin-templates/item-listings.php'; }
107 elseif(file_exists(TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-templates/item-listings.php')) { $templatefile = TOPSPIN_CURRENT_THEMEPARENT_PATH.'/topspin-templates/item-listings.php'; }
108 include($templatefile);
109 $html = ob_get_contents();
CacheDeleteAllCommand.php (https://github.com/liip/LiipDoctrineCacheBundle.git) PHP · 72 lines
1 <?php
3 namespace Liip\DoctrineCacheBundle\Command;
12 * CacheDeleteAllCommand
13 * Allows to launch a delete all on the underlying cache provider
14 * the main difference with a flush is that only the given namespace
15 * is affected by the delete command (especially useful when a single
16 * cache provider hosts multiple namespaces)
OutputCache.php (https://gitlab.com/faisaliqbal/mytripsorter) PHP · 89 lines
AssertStoreCanBeLocalized.php (https://gitlab.com/daigiangaitu91/magento) PHP · 78 lines
1 <?php
2 /**
3 * Copyright © 2015 Magento. All rights reserved.
46 $systemConfig->getMessagesBlock()->waitSuccessMessage();
48 // Flush cache
49 $adminCache->open();
50 $adminCache->getActionsBlock()->flushMagentoCache();
61 $cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());
63 \PHPUnit_Framework_Assert::assertTrue(
64 $cmsIndex->getSearchBlock()->isPlaceholderContains($welcomeText),
65 "Locale not applied."
Archive.cpp (https://github.com/dahool84/xbmc.git) C++ · 495 lines
ShortCodeBeforeAfterTest.php (https://gitlab.com/mattswann/launch-housing) PHP · 252 lines
1 <?php
3 include_once(dirname(dirname(__FILE__)) . '/ExportToHtmlTemplate.php');
4 include_once(dirname(dirname(__FILE__)) . '/ExportToHtmlTable.php');
5 include_once(dirname(dirname(__FILE__)) . '/ExportToJson.php');
6 include_once(dirname(dirname(__FILE__)) . '/ExportToValue.php');
8 include_once('MockQueryResultIterator.php');
9 include_once('WP_Mock_Functions.php');
10 include_once('WPDB_Mock.php');
11 include_once('SquashOutputUnitTest.php');
ClassRegistry.php (https://github.com/masihnewbie/cakephp.git) PHP · 341 lines
1 <?php
2 /**
3 * Class collections.
7 * PHP 5
8 *
9 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
10 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
11 *
14 *
15 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
16 * @link http://cakephp.org CakePHP(tm) Project
17 * @package Cake.Utility
18 * @since CakePHP(tm) v 0.9.2
19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 */
php_xmlwriter.stub.php (https://github.com/php/php-src.git) PHP · 344 lines
1 <?php
3 /** @generate-class-entries */
83 function xmlwriter_write_dtd_entity(XMLWriter $writer, string $name, string $content, bool $isParam = false, ?string $publicId = null, ?string $systemId = null, ?string $notationData = null): bool {}
85 function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}
87 function xmlwriter_flush(XMLWriter $writer, bool $empty = true): string|int {}
335 * @alias xmlwriter_output_memory
336 */
337 public function outputMemory(bool $flush = true): string {}
339 /**
340 * @tentative-return-type
341 * @alias xmlwriter_flush
342 */
343 public function flush(bool $empty = true): string|int {}
prg.test.php (https://github.com/manubamba/cakephp-search-plugin-v1.1.git) PHP · 373 lines
1 <?php
2 /**
3 * Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
7 *
8 * @copyright Copyright 2009-2010, Cake Development Corporation (http://cakedc.com)
9 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10 */
127 function endTest() {
128 unset($this->Controller);
129 ClassRegistry::flush();
130 }
SpecializedGraphReifier_RDB.java
(http://androjena.googlecode.com/svn/trunk/)
Java · 544 lines
✨ Summary
This Java code defines a class SpecializedGraphReifier
that extends another class, likely related to graph databases. It provides methods for managing and querying graphs, including subsumes checks, graph ID retrieval, and property set access. The class seems to be part of a larger system for working with RDF (Resource Description Framework) data.
This Java code defines a class SpecializedGraphReifier
that extends another class, likely related to graph databases. It provides methods for managing and querying graphs, including subsumes checks, graph ID retrieval, and property set access. The class seems to be part of a larger system for working with RDF (Resource Description Framework) data.
114 if ( didUpdate )
115 fragCompact(n);
116 m_reifCache.flushAll();
117 } else {
118 /* node reifies something that is not a subset of triple t */
130 */
131 public void delete(Node n, Triple t, CompletionFlag complete) {
132 m_reifCache.flushAll();
133 m_reif.deleteReifStmt( n, t, my_GID);
134 complete.setDone();
242 // cannot perform a reificiation; store fragment
243 m_reif.storeFrag(stmtURI, frag, fragMask, my_GID);
244 m_reifCache.flush(cachedFrag);
245 }
246 }
cachectl.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 20 lines
✨ Summary
This C header file defines constants and options for a system call called cacheflush
. It provides definitions for flushing different types of caches, including instruction and data caches, as well as options to combine these flushes with writeback operations. The constants are used to specify the type of cache flush operation to be performed when calling the cacheflush
system call.
This C header file defines constants and options for a system call called cacheflush
. It provides definitions for flushing different types of caches, including instruction and data caches, as well as options to combine these flushes with writeback operations. The constants are used to specify the type of cache flush operation to be performed when calling the cacheflush
system call.
2 #define _SH_CACHECTL_H
4 /* Definitions for the cacheflush system call. */
6 #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */
7 #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */
8 #define CACHEFLUSH_D_PURGE 0x3 /* writeback and invalidate */
10 #define CACHEFLUSH_I 0x4
12 /*
13 * Options for cacheflush system call
14 */
15 #define ICACHE CACHEFLUSH_I /* flush instruction cache */
16 #define DCACHE CACHEFLUSH_D_PURGE /* writeback and flush data cache */
Inflate.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 375 lines
✨ Summary
This Java code implements a decompression algorithm for ZIP files, specifically the DEFLATE compression format used by ZIP. It provides methods for inflating compressed data, setting dictionaries, and checking sync points to ensure proper decompression. The code is part of the Zlib library, which is widely used in various applications for compressing and decompressing data.
This Java code implements a decompression algorithm for ZIP files, specifically the DEFLATE compression format used by ZIP. It provides methods for inflating compressed data, setting dictionaries, and checking sync points to ensure proper decompression. The code is part of the Zlib library, which is widely used in various applications for compressing and decompressing data.
42 static final private int PRESET_DICT=0x20;
44 static final int Z_NO_FLUSH=0;
45 static final int Z_PARTIAL_FLUSH=1;
46 static final int Z_SYNC_FLUSH=2;
47 static final int Z_FULL_FLUSH=3;
363 // Returns true if inflate is currently at the end of a block generated
364 // by Z_SYNC_FLUSH or Z_FULL_FLUSH. This function is used by one PPP
365 // implementation to provide an additional safety check. PPP uses Z_SYNC_FLUSH
viking.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 254 lines
✨ Summary
This C++ header file provides a set of functions and macros for interacting with the SPARC V8 processor’s MMU (Memory Management Unit). It allows developers to probe memory addresses, retrieve data from the MMU, and control various features such as parity checking and segment mapping. The code is likely used in low-level system programming or embedded systems development.
This C++ header file provides a set of functions and macros for interacting with the SPARC V8 processor’s MMU (Memory Management Unit). It allows developers to probe memory addresses, retrieve data from the MMU, and control various features such as parity checking and segment mapping. The code is likely used in low-level system programming or embedded systems development.
111 #ifndef __ASSEMBLY__
113 static inline void viking_flush_icache(void)
114 {
115 __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t"
119 }
121 static inline void viking_flush_dcache(void)
122 {
123 __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t"
218 __asm__ __volatile__("lda [%1] %2, %0\n\t"
219 : "=r" (val)
220 : "r" (vaddr | 0x400), "i" (ASI_M_FLUSH_PROBE));
221 if (!val)
222 return 0;
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
WRECParser.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 643 lines
63 }
65 void flush()
66 {
67 if (!m_sequence.size())
72 }
74 void flush(const Quantifier& quantifier)
75 {
76 if (!m_sequence.size())
297 int character = PatternCharacterEscape::cast(escape).character();
298 if (character == '-')
299 constructor.flushBeforeEscapedHyphen();
300 constructor.put(character);
301 break;
awk.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 116 lines
glops.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 460 lines
✨ Summary
This C code defines a set of operations for managing file system locks and metadata. It provides a framework for handling different types of locks, including inode, rgrp, non-disk, iopen, flock, quota, and journal locks. The operations are implemented as structs that contain functions for lock acquisition, release, demotion, dumping, and other related tasks. The code is likely part of a larger file system implementation.
This C code defines a set of operations for managing file system locks and metadata. It provides a framework for handling different types of locks, including inode, rgrp, non-disk, iopen, flock, quota, and journal locks. The operations are implemented as structs that contain functions for lock acquisition, release, demotion, dumping, and other related tasks. The code is likely part of a larger file system implementation.
74 gfs2_trans_end(sdp);
75 gfs2_log_flush(sdp, NULL);
76 }
80 * @gl: the glock
81 *
82 * Called when demoting or unlocking an EX glock. We must flush
83 * to disk all dirty buffers/pages relating to this glock, and must not
84 * not return to caller to demote/unlock the glock until I/O is complete.
94 BUG_ON(gl->gl_state != LM_ST_EXCLUSIVE);
96 gfs2_log_flush(gl->gl_sbd, gl);
97 filemap_fdatawrite(metamapping);
98 error = filemap_fdatawait(metamapping);
actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines
Remote.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 216 lines
✨ Summary
This Java code is a remote executor that allows users to execute scripts on a BshServlet or embedded interpreter using HTTP or telnet. It takes a URL and script as input, sends the script to the server, and prints the output to the console. The return value of the script is scraped from the result and returned as an integer.
This Java code is a remote executor that allows users to execute scripts on a BshServlet or embedded interpreter using HTTP or telnet. It takes a URL and script as input, sends the script to the server, and prints the output to the console. The return value of the script is scraped from the result and returned as an integer.
tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 458 lines
pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 597 lines
FtpClient.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1046 lines
✨ Summary
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
This Java code implements a basic FTP client and server framework. It provides methods for sending and receiving FTP commands, handling responses, and managing socket connections. The code includes classes for reading and writing data, as well as logging and debugging functionality. It appears to be a foundation for building a full-featured FTP application or library.
64 out.print(command);
65 out.print("\r\n");
66 out.flush();
67 setResponse();
68 }
116 * entered at any point in order to change the access control
117 * and/or accounting information. This has the effect of
118 * flushing any user, password, and account information already
119 * supplied and beginning the login sequence again. All
120 * transfer parameters are unchanged and any file transfer in
209 /**
210 * REINITIALIZE (REIN) <BR>
211 * This command terminates a USER, flushing all I/O and account
212 * information, except to allow any transfer in progress to be
213 * completed. All parameters are reset to the default settings
typesys.c
(https://swig.svn.sourceforge.net/svnroot/swig)
C · 2074 lines
✨ Summary
This C code generates a set of macros and function declarations for a SWIG (Simplified Interface to C and other languages) interface. It creates tables of type information, equivalence rules, and conversion functions for a given set of C types. The output is used to define the interface between C code and a foreign language, allowing for interoperability between the two.
This C code generates a set of macros and function declarations for a SWIG (Simplified Interface to C and other languages) interface. It creates tables of type information, equivalence rules, and conversion functions for a given set of C types. The output is used to define the interface between C code and a foreign language, allowing for interoperability between the two.
addrspace.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 65 lines
✨ Summary
This C header file defines address spaces for SH CPUs, specifically the SuperH processor family. It provides macros to manipulate addresses and determine if an address can be reached in 29 bits. The code is specific to the SH-4 processor and its store queues, providing a way to map addresses to different segments and check their validity.
This C header file defines address spaces for SH CPUs, specifically the SuperH processor family. It provides macros to manipulate addresses and determine if an address can be reached in 29 bits. The code is specific to the SH-4 processor and its store queues, providing a way to map addresses to different segments and check their validity.
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1146 lines
✨ Summary
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit conditions. It also handles de-serialization and provides a way to get the prompt string used in interactive mode. The code is part of a larger system that allows users to execute scripts and interact with the interpreter.
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit conditions. It also handles de-serialization and provides a way to get the prompt string used in interactive mode. The code is part of a larger system that allows users to execute scripts and interact with the interpreter.
atiixp.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1727 lines
✨ Summary
This C code implements a Linux kernel module for an ATI IXP AC97 controller, which is a sound card chip. It provides a driver for the chip and registers it with the Linux kernel. The module handles various tasks such as initializing the chip, setting up interrupts, and registering the device with the kernel. It also includes support for power management and suspend/resume operations.
This C code implements a Linux kernel module for an ATI IXP AC97 controller, which is a sound card chip. It provides a driver for the chip and registers it with the Linux kernel. The module handles various tasks such as initializing the chip, setting up interrupts, and registering the device with the kernel. It also includes support for power management and suspend/resume operations.
236 void (*enable_transfer)(struct atiixp *chip, int on);
237 /* called from trigger (STOP only) */
238 void (*flush_dma)(struct atiixp *chip);
239 };
767 */
769 /* flush FIFO of analog OUT DMA */
770 static void atiixp_out_flush_dma(struct atiixp *chip)
771 {
772 atiixp_write(chip, FIFO_FLUSH, ATI_REG_FIFO_OUT_FLUSH);
773 }
824 static void atiixp_in_flush_dma(struct atiixp *chip)
825 {
826 atiixp_write(chip, FIFO_FLUSH, ATI_REG_FIFO_IN_FLUSH);
827 }
Interpreter.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1205 lines
✨ Summary
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
This Java code defines a class for an interpreter, providing methods for setting up and managing the interpreter’s behavior, such as source files, output streams, and exit on end of input. It also includes de-serialization setup and provides access to various properties and settings. The code appears to be part of a larger system for executing and debugging Java scripts or programs.
lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines
mthca_user.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C++ Header · 113 lines
✨ Summary
This is a C header file that defines various data structures and constants for use with the MTHCA (Multi-Threaded Coherent Accelerator) user-level interface. It provides definitions for structs representing memory regions, queues, and QPs (Queues and PEs), as well as constants for attributes and version numbers. The code is designed to be compatible with both 32-bit and 64-bit architectures.
This is a C header file that defines various data structures and constants for use with the MTHCA (Multi-Threaded Coherent Accelerator) user-level interface. It provides definitions for structs representing memory regions, queues, and QPs (Queues and PEs), as well as constants for attributes and version numbers. The code is designed to be compatible with both 32-bit and 64-bit architectures.
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.
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.
83 while(tokens.id != Token.END)
84 {
85 int flushIndex = tokenListOffset;
87 for(int i = tokenListOffset; i < tokenListOffset + tokens.length; i++)
95 * if necessary. */
96 //{{{
97 if(i != flushIndex)
98 {
99 Chunk newChunk = new Chunk(
100 tokens.id,seg,flushIndex,
101 i,styles,fontRenderContext);
102 if(current != null)
Lock.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 122 lines
✨ Summary
This Java class provides a plugin for Subversion (SVN) that allows users to lock and unlock files or URLs. It takes in commit data, validates its contents, and uses SVNKit to interact with the SVN server. The class can either lock or unlock specified paths, and returns the results of the operation, including any errors that occurred.
This Java class provides a plugin for Subversion (SVN) that allows users to lock and unlock files or URLs. It takes in commit data, validates its contents, and uses SVNKit to interact with the SVN server. The class can either lock or unlock specified paths, and returns the results of the operation, including any errors that occurred.
RevertAction.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 191 lines
✨ Summary
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
This Java class implements an ActionListener for a “Revert” action in a Subversion (SVN) plugin. It allows users to select paths and revert changes made to those files, with optional recursive and confirmation prompts. The action uses a SwingWorker to perform the revert operation in the background, displaying output in a console panel and updating the project viewer with the results.
cachefeatures.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 66 lines
20 dcache_init();
22 - Instruction and Data cache Invalidation Routines, when flushing the
23 same is not required.
24 _icache_invalidate();
32 invalidate_entire_icache();
34 -External Flushing of Instruction and data cache routines.
36 flush_instruction_cache();
37 flush_data_cache();
39 - Internal Flushing of Instruction and Data Cache.
41 icplb_flush();
42 dcplb_flush();
sys_noritake.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 353 lines
✨ Summary
This C code is part of an operating system’s kernel, specifically for Alpha processors. It defines interrupt handling and machine-specific configuration for a Noritake APECS (Alpha Processor Enhanced Chip Set) motherboard. The code maps interrupts to device pins, initializes the system, and sets up machine checks for errors. It also provides aliases for different versions of the same configuration.
This C code is part of an operating system’s kernel, specifically for Alpha processors. It defines interrupt handling and machine-specific configuration for a Noritake APECS (Alpha Processor Enhanced Chip Set) motherboard. The code maps interrupts to device pins, initializes the system, and sets up machine checks for errors. It also provides aliases for different versions of the same configuration.
lpfc_sli.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 11728 lines
✨ Summary
This C code is part of a Linux driver for a network interface card (NIC). It reads configuration data from the NIC and checks if certain ports are enabled or disabled. Specifically, it verifies the presence of a “PORT_STE” sub-TLV in the configuration region 23, which indicates whether the port is enabled or not. If the port is disabled, it sets a flag to indicate this.
This C code is part of a Linux driver for a network interface card (NIC). It reads configuration data from the NIC and checks if certain ports are enabled or disabled. Specifically, it verifies the presence of a “PORT_STE” sub-TLV in the configuration region 23, which indicates whether the port is enabled or not. If the port is disabled, it sets a flag to indicate this.
105 bf_set(lpfc_wq_doorbell_id, &doorbell, q->queue_id);
106 writel(doorbell.word0, q->phba->sli4_hba.WQDBregaddr);
107 readl(q->phba->sli4_hba.WQDBregaddr); /* Flush */
109 return 0;
170 bf_set(lpfc_mq_doorbell_id, &doorbell, q->queue_id);
171 writel(doorbell.word0, q->phba->sli4_hba.MQDBregaddr);
172 readl(q->phba->sli4_hba.MQDBregaddr); /* Flush */
173 return 0;
174 }
cpuprofile.html
(http://google-perftools.googlecode.com/svn/trunk/)
HTML · 521 lines
✨ Summary
This is a documentation page for the gprof
command, explaining its usage and options. It provides detailed information on how to use gprof
, including various flags and heuristics that control the output of the profiling tool. The text also notes potential limitations and caveats of using gprof
.
This is a documentation page for the gprof
command, explaining its usage and options. It provides detailed information on how to use gprof
, including various flags and heuristics that control the output of the profiling tool. The text also notes potential limitations and caveats of using gprof
.
testclosure.c
(git://github.com/stevedekorte/io.git)
C · 71 lines
✨ Summary
This C code tests a closure function that takes a struct as an argument and prints its fields to the console. It creates a struct, prepares a CIF (C Interface File) for the closure, allocates memory for the closure, and then calls the closure with the struct as an argument, verifying that the output matches the expected values.
This C code tests a closure function that takes a struct as an argument and prints its fields to the console. It creates a struct, prepares a CIF (C Interface File) for the closure, allocates memory for the closure, and then calls the closure with the struct as an argument, verifying that the output matches the expected values.
matreshka-internals-settings-registry.adb
(git://github.com/landgraf/matreshka.git)
Ada · 607 lines
✨ Summary
This is an implementation of a registry settings class in Ada, providing methods for setting and retrieving values in the Windows Registry. It allows users to create, read, write, and delete registry keys and values, with support for different data types such as strings, integers, and binary data. The class also provides synchronization and flushing capabilities.
This is an implementation of a registry settings class in Ada, providing methods for setting and retrieving values in the Windows Registry. It allows users to create, read, write, and delete registry keys and values, with support for different data types such as strings, integers, and binary data. The class also provides synchronization and flushing capabilities.
117 pragma Import (Stdcall, RegCloseKey, "RegCloseKey");
119 -- function RegFlushKey (hKey : Registry.HKEY) return LONG;
120 procedure RegFlushKey (hKey : Registry.HKEY);
121 pragma Import (Stdcall, RegFlushKey, "RegFlushKey");
123 function RegSetValueEx
524 begin
525 if Self.Handler /= No_HKEY and not Self.Read_Only then
526 -- RegFlushKey requires KEY_QUERY_VALUE access right, this right is
527 -- part of KEY_READ.
529 RegFlushKey (Self.Handler);
530 end if;
531 end Sync;