100+ results for 'php flush'

Not the results you expected?

UpdateCommand.php (https://github.com/genemu/GenemuDoctrineExtraBundle.git) PHP · 290 lines

1 <?php

2

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

68

69 foreach ($files as $file) {

70 if ('Controller.php' !== $controllerName = $file->getBasename('Controller.php')) {

71 $ns = $class->getNamespace().'\\Controller';

72

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 }

413

414 /* FlushableInterface */

415

416 /**

ServerVersion28.php (https://gitlab.com/daniruizcamacho/pfcascensores) PHP · 247 lines

1 <?php

2

3 /*

116 'monitor' => 'Predis\Command\ServerMonitor',

117 'dbsize' => 'Predis\Command\ServerDatabaseSize',

118 'flushdb' => 'Predis\Command\ServerFlushDatabase',

119 'flushall' => 'Predis\Command\ServerFlushAll',

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

182

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

89

90 f.puts "\n\treturn 0;\n}"

91 f.flush

92

93 output = `gcc #{options[:cppflags]} -D_DARWIN_USE_64_BIT_INODE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -x c -Wall -Werror #{f.path} -o #{binary} 2>&1`

output_minify.php (https://gitlab.com/vanthanhhoh/devlovebook) PHP · 87 lines

1 <?php

2

3 class output_minify extends BaseExtension {

82 return $buffer;

83 }

84 public function action_flush_static_file($params = array()) {

85 //n($params);

86 }

InheritanceTest.php (https://bitbucket.org/hanutimes/hanutimes.git) PHP · 143 lines

1 <?php

2

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

53

54 $this->em->persist($article);

55 $this->em->flush();

56 $this->em->clear();

57

70

71 $this->em->persist($article);

72 $this->em->flush();

73 $this->em->clear();

74

export.php (https://gitlab.com/x33n/ampache) PHP · 72 lines

1 <?php

2 /* vim:set softtabstop=4 shiftwidth=4 expandtab: */

3 /**

21 */

22

23 require_once '../lib/init.php';

24

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

46

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

1 <?php

2 /**

3 * A class for computing three way diffs.

77 $e2 instanceof Horde_Text_Diff_Op_Copy) {

78 /* We have copy blocks from both diffs. This is the (only)

79 * time we want to emit a diff3 copy block. Flush current

80 * diff3 diff block, if any. */

81 if ($edit = $bb->finish()) {

output.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 122 lines

1 <?php

2 /**

3 * @package Joomla.Platform

80 }

81 ob_start();

82 ob_implicit_flush(false);

83

84 // Set id and group placeholders

mailqueue__qmaillib.php (https://github.com/yourhty/hypervm.git) PHP · 123 lines

1 <?php

2

3 class mailqueue__qmail extends lxDriverClass {

4

5

6 static function QueueFlush()

7 {

8 lxshell_return("pkill", "-14", "-f", "qmail-send");

SimpleKeyCacheInputStreamTest.php (https://github.com/nattaphat/hgis.git) PHP · 77 lines

1 <?php

2

3 require_once 'Swift/Tests/SwiftUnitTestCase.php';

4 require_once 'Swift/KeyCache/SimpleKeyCacheInputStream.php';

5 require_once 'Swift/KeyCache.php';

29 }

30

31 public function testFlushContentClearsKey()

32 {

33 $cache = $this->_createKeyCache();

41 $stream->setItemKey('foo');

42

43 $stream->flushBuffers();

44 }

45

bezmesh_procs.adb (https://github.com/shadoof/CW2.git) Ada · 116 lines

98 glPopMatrix;

99

100 glFlush;

101 end Display;

102

APCcache.php (https://gitlab.com/virtualrealms/d7civicrm) PHP · 151 lines

1 <?php

2 /*

3 +--------------------------------------------------------------------+

123 }

124

125 public function flush() {

126 $allinfo = apc_cache_info('user');

127 $keys = $allinfo['cache_list'];

142

143 public function clear() {

144 return $this->flush();

145 }

146

DDC1995Test.php (https://github.com/jaikdean/doctrine2.git) PHP · 83 lines

1 <?php

2

3 declare(strict_types=1);

32 $this->em->persist($person);

33 $this->em->persist($employee);

34 $this->em->flush();

35 $this->em->clear();

36

58 $this->em->persist($person);

59 $this->em->persist($employee);

60 $this->em->flush();

61 $this->em->clear();

62

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

1 <?php

2

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

1 <?php

2

3 /*

197

198 /**

199 * Flush all existing items from all databases at the server.

200 *

201 * @return boolean

202 */

203 public function flushAll()

204 {

205 if (!$this->connected) {

DDC512Test.php (https://github.com/proclamo/txinbometro.git) PHP · 94 lines

1 <?php

2 namespace Doctrine\Tests\ORM\Functional\Ticket;

3

4 require_once __DIR__ . '/../../../TestInit.php';

5

6 class DDC512Test extends \Doctrine\Tests\OrmFunctionalTestCase

26 $this->_em->persist($customer2);

27

28 $this->_em->flush();

29 $this->_em->clear();

30

EncoderListener.php (https://github.com/ykitade/DoctrineExtensions.git) PHP · 75 lines

1 <?php

2

3 // file: vendor/Extension/Encoder/EncoderListener.php

14 {

15 return array(

16 'onFlush',

17 'loadClassMetadata'

18 );

29 }

30

31 public function onFlush(EventArgs $args)

32 {

33 $ea = $this->getEventAdapter($args);

serverEnv.ml (https://gitlab.com/iranjith4/hhvm) OCaml · 65 lines

50

51 let file_filter f =

52 (FindUtils.is_php f && not (FilesToIgnore.should_ignore f))

53 || FindUtils.is_js f

54

63 Relative_path.Set.iter acc (fun s ->

64 Printf.fprintf oc "%s\n" (Relative_path.to_absolute s));

65 flush oc

66

IndexStaticJob.java (https://gitlab.com/MetadataDev/mcms) Java · 70 lines

59 log.error("static index error!", e);

60 }

61 session.flush();

62 session.close();

63 }

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

23

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");

104

105 Xil_DCacheFlushRange((INTPTR)Data, DATA_LENGTH * sizeof(INTPTR));

106

107 xil_printf(" flush range done\r\n");

131

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();

47

48 // Flush cache

49 $adminCache->open();

50 $adminCache->getActionsBlock()->flushMagentoCache();

61 $cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());

62

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

80 with self.lock:

81 self.out_fd.write("%s %s gws %d 0 0\n" % (ip, host, handshake))

82 self.out_fd.flush()

83

84 def checker(self):

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

25

26 /** Zend_Wildfire_Plugin_FirePhp_Message */

27 require_once 'Zend/Wildfire/Plugin/FirePhp/Message.php';

28

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;

2

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

22

25 * @see Zend_Cache_Core

26 */

27 // // // // // // // // require_once 'Zend/Cache/Core.php';

28

29

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

1 <?php

2

3 /**

71 // Attempt to flush output to the file

72 $this->assertFalse(@fflush($handle), 'Unable to flush output to file using the read-only stream wrapper.');

73 // Attempt to close the stream. (Suppress errors, as fclose triggers fflush.)

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

18

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

1 <?php

2

3 return array(

68 'Slow queries' => '',

69 'Opens' => '',

70 'Flush tables' => '',

71 'Open tables' => '',

72 'Queries per second avg' => '',

NestedTreeRootTest.php (https://github.com/easybib/DoctrineExtensions.git) PHP · 337 lines

1 <?php

2

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

1 <?php

2 namespace Zeega\DataBundle\Service;

3

126 $dm = $this->doctrine->getManager();

127 $dm->persist($newProject);

128 $dm->flush();

129 $dm->clear();

130

DDC1209Test.php (https://bitbucket.org/rkovcs/bigfish_test.git) PHP · 125 lines

1 <?php

2

3 namespace Doctrine\Tests\ORM\Functional\Ticket;

5 use Doctrine\Common\Collections\ArrayCollection;

6

7 require_once __DIR__ . '/../../../TestInit.php';

8

9 class DDC1209Test extends \Doctrine\Tests\OrmFunctionalTestCase

28 {

29 $this->_em->persist(new DDC1209_3());

30 $this->_em->flush();

31 }

32

39 $this->_em->persist($future1);

40

41 $this->_em->flush();

42

43 $future2 = new DDC1209_2($future1);

Rfc2231Encoder.php (https://gitlab.com/isdzulqor/Slis-Dev) PHP · 92 lines

1 <?php

2

3 /*

54 }

55

56 $this->_charStream->flushContents();

57 $this->_charStream->importString($string);

58

run-mpe.php (https://github.com/orchestra-io/sample-openx.git) PHP · 59 lines

1 <?php

2

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

27

31

32 // Send headers to the client before proceeding

33 flush();

34

35 // Prevent output

37

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.

40

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.

46

48 either append to it or add an ``include_path`` directive::

49

50 include_path = '.:/usr/share/php:/usr/share/cakephp-2.0/lib'

51

52 This assumes you are running a \*nix server, and have CakePHP in

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

1 <?php

2

3 /**

5 */

6

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

8

9 /**

28

29 /**

30 * Flushes DB caches

31 *

32 */

33 function dbcache_flush() {

34 $this->_prepare_message(array('action' => 'dbcache_flush'));

extract.py (https://github.com/sbenthall/topical-topology.git) Python · 89 lines

72 tweet_file.write(u"twitter %s %s\n" % (screen_name, clean_tweet))

73

74 tweet_file.flush()

75 except:

76 'Error: Exception writing this tweet'

80 tweet_file.write(u"twitter %s %s\n" % (screen_name, all_tweets))

81

82 tweet_file.flush()

83

84

MemcachedStore.php (https://gitlab.com/pomirleanu.florentin/SMS-Client) PHP · 140 lines

1 <?php namespace Illuminate\Cache;

2

3 use Illuminate\Contracts\Cache\Store;

113 * @return void

114 */

115 public function flush()

116 {

117 $this->memcached->flush();

TorExample.py (https://github.com/mvitale/Tor-Weather-Django.git) Python · 160 lines

91 walk thru the config key=value pairs present on the command line

92 and pass them to the tor server. If the --save option is present,

93 tell the tor server to flush the config to disk

94 """

95 conn = getConnection()

UserVertexLoader.java (https://gitlab.com/zaverichintan/lumify) Java · 106 lines

66 userVertex = createTwitterUserVertex(userDetails, vertexId);

67

68 workQueueRepository.pushGraphPropertyQueue(userVertex, LumifyProperties.TITLE.getProperty(userVertex));

69

70 if( !Strings.isNullOrEmpty(profileImageUrl) ) {

71 workQueueRepository.pushGraphPropertyQueue(userVertex, TwitterOntology.PROFILE_IMAGE_URL.getProperty(userVertex));

72 }

73

74 workQueueRepository.pushGraphPropertyQueue(userVertex, TwitterOntology.SCREEN_NAME.getProperty(userVertex));

75 }

76

PropelTemplate.php (https://github.com/fabienpomerol/Propel2.git) PHP · 99 lines

1 <?php

2

3 /**

32 /**

33 * Sets a string as a template.

34 * The string doesn't need closing php tags.

35 *

36 * <code>

37 * $template->setTemplate('This is <?php echo $name ?>');

38 * </code>

39 *

46

47 /**

48 * Set a file as a template. The file can be any regular PHP file.

49 *

50 * <code>

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__);

9

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.

40

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.

46

48 either append to it or add an ``include_path`` directive::

49

50 include_path = '.:/usr/share/php:/usr/share/cakephp-2.0/lib'

51

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

10 License:

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

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

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

14

35 tRoot.setOpen(false);

36

37 this.flush();

38 },

39

ActivitiesController.php (https://github.com/phpugl/Dime.git) PHP · 390 lines

1 <?php

2

3 namespace Dime\TimetrackerBundle\Controller;

292 $em = $this->getDoctrine()->getManager();

293 $em->persist($activity);

294 $em->flush();

295 $em->refresh($activity);

296

352 $em = $this->getDoctrine()->getManager();

353 $em->remove($activity);

354 $em->flush();

355

356 // send status message

TransientSessionTest.php (https://github.com/arbyte/FLOW3-X-TYPO3.FLOW3.git) PHP · 80 lines

1 <?php

2 namespace TYPO3\FLOW3\Tests\Unit\Session;

3

57 * @test

58 */

59 public function allSessionDataCanBeFlushedByCallingDestroy() {

60 $session = new \TYPO3\FLOW3\Session\TransientSession();

61 $session->start();

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.

14

29 widget.setPlaceholder("aaa");

30 this.getRoot().add(widget);

31 this.flush();

32

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

1 <?php

2

3 namespace Curba\GardeningBundle\DataFixtures\ORM;

29 $manager->persist($fix3);

30

31 $manager->flush();

32

33 // translate to ca

47 $manager->persist($fix3);

48

49 $manager->flush();

50

51

66 $manager->persist($fix3);

67

68 $manager->flush();

69

70

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

1 <?php

2 /**

3 * TSqlMapGateway class file.

242

243 /**

244 * Flushes all cached objects that belong to this SqlMap

245 */

246 public function flushCaches()

247 {

248 $this->getSqlMapManager()->flushCacheModels();

249 }

250

Installer.php (https://github.com/390/core.git) PHP · 152 lines

1 <?php

2 /**

3 * Copyright Zikula Foundation 2009 - Zikula Application Framework

141 $this->entityManager->persist($record);

142

143 $this->entityManager->flush();

144

145 $this->setVar('filter', 1);

bit_io_unittest.cc (https://github.com/chromium/chromium.git) C++ · 87 lines

35 ASSERT_TRUE(bw.WriteBits(4, 0x0A));

36 ASSERT_TRUE(bw.WriteBoundaryBits(0xBB));

37 ASSERT_TRUE(bw.Flush());

38 ASSERT_EQ(5, bw.Size());

39

lr0.c (https://bitbucket.org/iorivur/freebsd-bhyve-with-suspend-resume.git) C · 599 lines

348 printf(" %s", symbol_name[ritem[j++]]);

349 printf("\n");

350 fflush(stdout);

351 }

352 }

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

1 <?php

2

3 /**

4 * @file classes/i18n/CountryDAO.inc.php

5 *

6 * Copyright (c) 2000-2009 John Willinsky

14 */

15

16 // $Id: CountryDAO.inc.php,v 1.6 2009/04/08 21:34:54 asmecher Exp $

17

18

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

2

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

34

35 $this->filename = $path . DIRECTORY_SEPARATOR . "fc-$context-" . str_replace('/', '.', $cacheId) . '.php';

36

37 // Load the cache data if it exists.

5.cc (https://github.com/MoSync/gcc.git) C++ · 99 lines

50 std::ostream os_tie(&buf_tie);

51

52 // No sentry should be constructed so os.tie()->flush() should not be

53 // called.

54 os.tie(&os_tie);

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

1 <?php

2 /*

3 Héctor Fabián Morales Ramírez

48 $tamBuffer = 524288;

49 ob_clean();

50 flush();

51

52 while($fp && !feof($fp)) {

53 $buffer = fread($fp, $tamBuffer);

54 print $buffer;

55 flush();

56 }

57

DDC1430Test.php (https://github.com/jaikdean/doctrine2.git) PHP · 304 lines

1 <?php

2

3 declare(strict_types=1);

152 $this->em->persist($o2);

153

154 $this->em->flush();

155 }

156 }

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

79

80 def save(self):

82 if not self.id:

83 session.add(self)

84 session.flush()

85

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;

6

7 use PHPagstract\Symbol\Symbols\AbstractTokenSymbol;

8 use PHPagstract\Token\Tokens\Token;

9 use PHPagstract\Symbol\Symbols\Properties\ListProperty;

10

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

21

23 * Zend_XmlRpc_Value

24 */

25 // // // // // // // // // // require_once 'Zend/XmlRpc/Value.php';

26

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

140 glTexCoord2f(1.0, 0.0); glVertex3f(2000.0, -1.0, -6000.0);

141 glEnd();

142 glFlush();

143 glDisable(GL_TEXTURE_2D);

144 }

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

2

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

1 <?php

2 /**

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

61

62 ob_start();

63 ob_implicit_flush(0);

64 $this->keyStack[] = $key;

65 return false;

80 }

81

82 $output = ob_get_flush();

83 if ($output === false) {

84 throw new Exception\RuntimeException('Output buffering not active');

AssertStoreCanBeLocalized.php (https://gitlab.com/daigiangaitu91/magento) PHP · 78 lines

1 <?php

2 /**

3 * Copyright © 2015 Magento. All rights reserved.

46 $systemConfig->getMessagesBlock()->waitSuccessMessage();

47

48 // Flush cache

49 $adminCache->open();

50 $adminCache->getActionsBlock()->flushMagentoCache();

61 $cmsIndex->getStoreSwitcherBlock()->selectStoreView($store->getName());

62

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

41 CArchive::~CArchive()

42 {

43 FlushBuffer();

44 delete[] m_pBuffer;

45 m_BufferPos = 0;

48 void CArchive::Close()

49 {

50 FlushBuffer();

51 }

52

65 int size = sizeof(float);

66 if (m_BufferPos + size >= BUFFER_MAX)

67 FlushBuffer();

68

69 memcpy(&m_pBuffer[m_BufferPos], &f, size);

ShortCodeBeforeAfterTest.php (https://gitlab.com/mattswann/launch-housing) PHP · 252 lines

1 <?php

2

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

7

8 include_once('MockQueryResultIterator.php');

9 include_once('WP_Mock_Functions.php');

10 include_once('WPDB_Mock.php');

11 include_once('SquashOutputUnitTest.php');

12

13

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

21

php_xmlwriter.stub.php (https://github.com/php/php-src.git) PHP · 344 lines

1 <?php

2

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 {}

84

85 function xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string {}

86

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 {}

338

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

11

127 function endTest() {

128 unset($this->Controller);

129 ClassRegistry::flush();

130 }

131

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.

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.

2 #define _SH_CACHECTL_H

3

4 /* Definitions for the cacheflush system call. */

5

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

9

10 #define CACHEFLUSH_I 0x4

11

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.

42 static final private int PRESET_DICT=0x20;

43

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;

362

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.

111 #ifndef __ASSEMBLY__

112

113 static inline void viking_flush_icache(void)

114 {

115 __asm__ __volatile__("sta %%g0, [%%g0] %0\n\t"

119 }

120

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

302 <KEYWORD1>FIRST</KEYWORD1>

303 <KEYWORD1>FLOAT</KEYWORD1>

304 <KEYWORD1>FLUSH</KEYWORD1>

305 <KEYWORD1>FOR</KEYWORD1>

306 <KEYWORD1>FOREACH</KEYWORD1>

WRECParser.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 643 lines

63 }

64

65 void flush()

66 {

67 if (!m_sequence.size())

72 }

73

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

51 <KEYWORD1>else</KEYWORD1>

52 <KEYWORD1>exit</KEYWORD1>

53 <KEYWORD1>fflush</KEYWORD1>

54 <KEYWORD1>for</KEYWORD1>

55 <KEYWORD1>huge</KEYWORD1>

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.

73

74 gfs2_trans_end(sdp);

75 gfs2_log_flush(sdp, NULL);

76 }

77

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

95

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

562 <LITERAL2>SharedObject</LITERAL2>

563 <LITERAL2>data</LITERAL2>

564 <LITERAL2>flush</LITERAL2>

565 <LITERAL2>getLocal</LITERAL2>

566 <LITERAL2>getSize</LITERAL2>

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.

133 {

134 outPipe.write( line.getBytes() );

135 outPipe.flush();

136 }

137

173 urlcon.getOutputStream(), "8859_1"), true );

174 pout.print( formData );

175 pout.flush();

176

177 // read results...

tcl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 458 lines

87 <KEYWORD1>eof</KEYWORD1>

88 <KEYWORD1>file</KEYWORD1>

89 <KEYWORD1>flush</KEYWORD1>

90 <KEYWORD1>gets</KEYWORD1>

91 <KEYWORD1>glob</KEYWORD1>

pl1.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 597 lines

84 <KEYWORD1>exit</KEYWORD1>

85 <KEYWORD1>fetch</KEYWORD1>

86 <KEYWORD1>flush</KEYWORD1>

87 <KEYWORD1>format</KEYWORD1>

88 <KEYWORD1>free</KEYWORD1>

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.

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.

134

135

136 static void flush_cache() {

137 typedef_resolve_cache = 0;

138 typedef_all_cache = 0;

187 }

188 Setattr(current_typetab, name, type);

189 flush_cache();

190 return 0;

191 }

207 Setattr(current_typetab, cname, cname);

208 Delete(cname);

209 flush_cache();

210 return 0;

211 }

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.

53 /*

54 * This is a special case for the SH-4 store queues, as pages for this

55 * space still need to be faulted in before it's possible to flush the

56 * store queue cache for writeout to the remapped region.

57 */

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.

374 {

375 // try to sync up the console

376 System.out.flush();

377 System.err.flush();

686 else {

687 err.println("// Error: " + s);

688 err.flush();

689 }

690 }

725 } else {

726 out.print(s);

727 out.flush();

728 }

729 }

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.

236 void (*enable_transfer)(struct atiixp *chip, int on);

237 /* called from trigger (STOP only) */

238 void (*flush_dma)(struct atiixp *chip);

239 };

240

767 */

768

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 }

774

824 static void atiixp_in_flush_dma(struct atiixp *chip)

825 {

826 atiixp_write(chip, FIFO_FLUSH, ATI_REG_FIFO_IN_FLUSH);

827 }

828

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.

442 {

443 // try to sync up the console

444 System.out.flush();

445 System.err.flush();

754 else {

755 err.println("// Error: " + o );

756 err.flush();

757 }

758 }

792 } else {

793 out.print(o);

794 out.flush();

795 }

796 }

lua.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 235 lines

198 <KEYWORD2>math.pi</KEYWORD2>

199 <KEYWORD2>io.close</KEYWORD2>

200 <KEYWORD2>io.flush</KEYWORD2>

201 <KEYWORD2>io.input</KEYWORD2>

202 <KEYWORD2>io.lines</KEYWORD2>

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.

64 /*

65 * Mark the memory region with a DMA attribute that causes

66 * in-flight DMA to be flushed when the region is written to:

67 */

68 #define MTHCA_MR_DMASYNC 0x1

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.

83 while(tokens.id != Token.END)

84 {

85 int flushIndex = tokenListOffset;

86

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.

115 }

116

117 out.flush();

118 out.close();

119 return results;

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.

128 logger.log( Level.INFO, jEdit.getProperty( "ips.Reverting_...", "Reverting ..." ) );

129 for ( Handler handler : logger.getHandlers() ) {

130 handler.flush();

131 }

132

cachefeatures.txt (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 66 lines

20 dcache_init();

21

22 - Instruction and Data cache Invalidation Routines, when flushing the

23 same is not required.

24 _icache_invalidate();

32 invalidate_entire_icache();

33

34 -External Flushing of Instruction and data cache routines.

35

36 flush_instruction_cache();

37 flush_data_cache();

38

39 - Internal Flushing of Instruction and Data Cache.

40

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.

27 #include <asm/core_apecs.h>

28 #include <asm/core_cia.h>

29 #include <asm/tlbflush.h>

30

31 #include "proto.h"

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.

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

108

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.

73

74 <p>See the include-file <code>google/profiler.h</code> for

75 advanced-use functions, including <code>ProfilerFlush()</code> and

76 <code>ProfilerStartWithOptions()</code>.</p>

77

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.

20 arg.a, arg.b,

21 arg.c, arg.d);

22 fflush(stdout);

23 }

24

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.

117 pragma Import (Stdcall, RegCloseKey, "RegCloseKey");

118

119 -- function RegFlushKey (hKey : Registry.HKEY) return LONG;

120 procedure RegFlushKey (hKey : Registry.HKEY);

121 pragma Import (Stdcall, RegFlushKey, "RegFlushKey");

122

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.

528

529 RegFlushKey (Self.Handler);

530 end if;

531 end Sync;