100+ results for 'php exec'

Not the results you expected?

lmi_helper.c (https://github.com/mstsirkin/qemu.git) C · 745 lines

20 #include "qemu/osdep.h"

21 #include "cpu.h"

22 #include "exec/helper-proto.h"

23

24 /* If the byte ordering doesn't matter, i.e. all columns are treated

lmmi_helper.c (https://gitlab.com/paelzer/qemu) C · 747 lines

20 #include "qemu/osdep.h"

21 #include "cpu.h"

22 #include "exec/helper-proto.h"

23

24 /*

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

1 <?php

2 /**

3 * File containing the eZISBN10To13Converter class.

193 Start processing the content object attributes.

194 */

195 function execute()

196 {

197 foreach ( $this->AttributeArray as $classAttribute )

content_actionhandler.php (https://github.com/SylvainGuittard/ezlightbox.git) PHP · 364 lines

1 <?php

2 //

3 // Created on: <2007-11-21 13:01:28 ab>

150 return true;

151 }

152 $operationResult = eZOperationHandler::execute( 'lightbox', 'delete',

153 array( 'id' => $lightboxID )

154 );

176 return true;

177 }

178 $operationResult = eZOperationHandler::execute( 'lightbox', 'empty',

179 array( 'id' => $lightboxID )

180 );

210 }

211 }

212 $operationResult = eZOperationHandler::execute( 'lightbox', 'add',

213 array( 'id' => $lightboxID,

214 'item_id' => $itemID,

inffast.c (https://github.com/psyke83/kernel_samsung_europa.git) C · 312 lines

36 When large enough input and output buffers are supplied to inflate(), for

37 example, a 16K input buffer and a 64K output buffer, more than 95% of the

38 inflate execution time is spent in this routine.

39

40 Entry assumptions:

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

BSHTryStatement Class Explanation

The BSHTryStatement class represents a try-catch block in a BeanShell script. It evaluates the contents of the try block, catches any resulting errors, and executes corresponding catch blocks if an exception is thrown. The finally block is also executed after all catch blocks have been handled. If no match is found, the original error is re-thrown upward.

124 }

125

126 // Found match, execute catch block

127 BSHBlock cb = (BSHBlock)(catchBlocks.elementAt(i));

128

AbstractTableGateway.php (https://bitbucket.org/alexandretaz/maniac_divers.git) PHP · 488 lines

1 <?php

2 /**

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

206 $this->initialize();

207 }

208 return $this->executeSelect($select);

209 }

210

214 * @throws \RuntimeException

215 */

216 protected function executeSelect(Select $select)

217 {

218 $selectState = $select->getRawState();

229 $this->featureSet->apply('preSelect', array($select));

230

231 // prepare and execute

232 $statement = $this->sql->prepareStatementForSqlObject($select);

233 $result = $statement->execute();

VoidTest.php (https://gitlab.com/crazybutterfly815/magento2) PHP · 342 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

8 /**

9 * Class VoidTest

10 * @SuppressWarnings(PHPMD.TooManyFields)

11 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

12 */

13 class VoidTest extends \PHPUnit_Framework_TestCase

14 {

15 /**

19

20 /**

21 * @var \PHPUnit_Framework_MockObject_MockObject

22 */

23 protected $contextMock;

ValidatorTypeGuesser.php (https://github.com/Exercise/symfony.git) PHP · 273 lines

1 <?php

2

3 /*

234

235 /**

236 * Iterates over the constraints of a property, executes a constraints on

237 * them and returns the best guess

238 *

ValidatorBuilder.php (https://github.com/liuggio/symfony.git) PHP · 407 lines

1 <?php

2

3 /*

18 use Symfony\Component\PropertyAccess\PropertyAccessorInterface;

19 use Symfony\Component\Translation\TranslatorInterface;

20 use Symfony\Component\Validator\Context\ExecutionContextFactory;

21 use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;

326 }

327

328 if (version_compare(PHP_VERSION, '5.3.9', '<') && $apiVersion === Validation::API_VERSION_2_5_BC) {

329 throw new InvalidArgumentException(sprintf(

330 'The Validator API that is compatible with both Symfony 2.4 '.

331 'and Symfony 2.5 can only be used on PHP 5.3.9 and higher. '.

332 'Your current PHP version is %s.',

acoutput.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 273 lines ✨ Summary

This C++ header file defines a set of macros and functions for debugging and error reporting in ACPI (Advanced Configuration and Power Interface) code. It provides various debug print macros, error message definitions, and configuration options to control the level of output and verbosity. The macros can be used to insert information about the caller’s module, line number, function name, and component ID into debug messages.

60 #define ACPI_PARSER 0x00000020

61 #define ACPI_DISPATCHER 0x00000040

62 #define ACPI_EXECUTER 0x00000080

63 #define ACPI_RESOURCES 0x00000100

64 #define ACPI_CA_DEBUGGER 0x00000200

94 #define ACPI_LV_LOAD 0x00000080

95 #define ACPI_LV_DISPATCH 0x00000100

96 #define ACPI_LV_EXEC 0x00000200

97 #define ACPI_LV_NAMES 0x00000400

98 #define ACPI_LV_OPREGION 0x00000800

153 #define ACPI_DB_DISPATCH ACPI_DEBUG_LEVEL (ACPI_LV_DISPATCH)

154 #define ACPI_DB_LOAD ACPI_DEBUG_LEVEL (ACPI_LV_LOAD)

155 #define ACPI_DB_EXEC ACPI_DEBUG_LEVEL (ACPI_LV_EXEC)

156 #define ACPI_DB_NAMES ACPI_DEBUG_LEVEL (ACPI_LV_NAMES)

157 #define ACPI_DB_OPREGION ACPI_DEBUG_LEVEL (ACPI_LV_OPREGION)

scopeguard.h (https://github.com/matulef/mongo.git) C Header · 432 lines

106

107 template <typename J>

108 static void SafeExecute(J& j) throw()

109 {

110 if (!j.dismissed_)

111 try

112 {

113 j.Execute();

114 }

115 catch(...)

153 ~ScopeGuardImpl0() throw()

154 {

155 SafeExecute(*this);

156 }

157

Model.class.php (https://github.com/dzx0315/509.git) PHP · 295 lines

1 <?php

2 // +----------------------------------------------------------------------

3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]

4 // +----------------------------------------------------------------------

5 // | Copyright (c) 2010 http://thinkphp.cn All rights reserved.

6 // +----------------------------------------------------------------------

7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )

13 /**

14 +------------------------------------------------------------------------------

15 * ThinkPHP 简洁模式Model模型类

16 * 只支持原生SQL操作 支持多数据库连接和切换

17 +------------------------------------------------------------------------------

106 +----------------------------------------------------------

107 */

108 public function execute($sql='')

109 {

110 if(!empty($sql)) {

MassCancelTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 292 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

12 /**

13 * Class MassCancelTest

14 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

15 */

16 class MassCancelTest extends \PHPUnit_Framework_TestCase

22

23 /**

24 * @var Context|\PHPUnit_Framework_MockObject_MockObject

25 */

26 protected $contextMock;

27

28 /**

29 * @var \Magento\Backend\Model\View\Result\Redirect|\PHPUnit_Framework_MockObject_MockObject

30 */

31 protected $resultRedirectMock;

migration_tables_core_538.php (https://bitbucket.org/blackriver/openx.git) PHP · 318 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 81772 2012-09-11 00:07:29Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

306 }

307

308 $result = $this->oDBH->exec($query);

309 if (PEAR::isError($result)) {

310 return $this->_logErrorAndReturnFalse('Cannot migrate '.$table);

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

1 <?php

2 /**

3 * @package Joomla.UnitTest

55 /**

56 * Sets up the fixture, for example, opens a network connection.

57 * This method is called before a test is executed.

58 *

59 * @return void

65 $_SERVER['HTTP_HOST'] = 'example.com';

66 $_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0';

67 $_SERVER['REQUEST_URI'] = '/index.php';

68 $_SERVER['SCRIPT_NAME'] = '/index.php';

70 $app_id = "app_id";

71 $app_secret = "app_secret";

72 $my_url = "http://localhost/gsoc/joomla-platform/facebook_test.php";

73 $access_token = array(

74 'access_token' => 'token',

normal_in_recipe.rb (git://github.com/opscode/chef.git) Ruby · 26 lines ✨ Summary

This Ruby code sets an attribute attribute_priority_was to a value derived from another recipe, and then writes this value to a file named attribute_setting.txt. The output is a simple string that represents the value of attribute_priority_was, which can be used for further processing or logging. It does not perform any complex operations or calculations.

20 node.normal[:attribute_priority_was] = "came from recipe[attribute_settings_normal::normal_in_recipe]"

21

22 execute "echo #{node[:attribute_priority_was]} > #{node[:tmpdir]}/attribute_setting.txt"

23

24

call.s (https://bitbucket.org/markjenkins/libreoffice_ubuntu-debian-fixes.git) Assembly · 292 lines

59 ret

60 .LFEv:

61 .size privateSnippetExecutorVoid,.-privateSnippetExecutorVoid

62

63 .globl privateSnippetExecutorHyper

126 ret

127 .LFEd:

128 .size privateSnippetExecutorDouble,.-privateSnippetExecutorDouble

129

130 .globl privateSnippetExecutorClass

148 ret $4

149 .LFEc:

150 .size privateSnippetExecutorClass,.-privateSnippetExecutorClass

151

152 .section .eh_frame,"a",@progbits

migration_tables_core_538.php (https://github.com/skynet/OpenX-2.8.7.git) PHP · 318 lines

1 <?php

2

3 /*

23 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |

24 +---------------------------------------------------------------------------+

25 $Id: migration_tables_core_538.php 62345 2010-09-14 21:16:38Z chris.nutting $

26 */

27

28 require_once(MAX_PATH.'/lib/OA/Upgrade/Migration.php');

29

30 class Migration_538 extends Migration

306 }

307

308 $result = $this->oDBH->exec($query);

309 if (PEAR::isError($result)) {

310 return $this->_logErrorAndReturnFalse('Cannot migrate '.$table);

PageRepositoryTest.php (https://gitlab.com/svillegas/magento2) PHP · 282 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

45

46 /**

47 * Execute per test initialization.

48 */

49 public function setUp()

AdvertiserService.java (https://github.com/orchestra-io/sample-openx.git) Java · 358 lines

36 */

37 class AdvertiserService extends AbstractService {

38 private static final String ADVERTISER_SERVICE = "AdvertiserXmlRpcService.php";

39

40 private static final String ADD_ADVERTISER_METHOD = "addAdvertiser";

77 */

78 public Integer addAdvertiser(Map params) throws XmlRpcException {

79 return (Integer) execute(ADD_ADVERTISER_METHOD, params);

80 }

81

90 */

91 public Boolean modifyAdvertiser(Map params) throws XmlRpcException {

92 return (Boolean) execute(MODIFY_ADVERTISER_METHOD, params);

93 }

94

EdaDireccionesTest.php (https://github.com/juanda/symfonite.git) PHP · 302 lines

1 <?php

2 require_once 'PHPUnit/Framework.php';

3 require_once dirname(__FILE__) . '/../../bootstrap/unit.php';

7 */

8

9 class EdaDireccionesTest extends PHPUnit_Framework_TestCase {

10

11 protected $object;

15 /**

16 * Sets up the fixture, for example, opens a network connection.

17 * This method is called before a test is executed.

18 */

19 protected function setUp() {

40 /**

41 * Tears down the fixture, for example, closes a network connection.

42 * This method is called after a test is executed.

43 */

44 protected function tearDown() {

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

11 //

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

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

14 //

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

20

21 import java.nio.charset.Charset;

22 import java.util.concurrent.ExecutionException;

23 import java.util.concurrent.TimeUnit;

24 import java.util.concurrent.TimeoutException;

52 stream.getSession().syn(new SynInfo(new Fields(), true), this);

53 }

54 catch (ExecutionException | InterruptedException | TimeoutException e)

55 {

56 throw new IllegalStateException(e);

FaultTest.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 297 lines

27 }

28

29 require_once "PHPUnit/Framework/TestCase.php";

30 require_once "PHPUnit/Framework/TestSuite.php";

31

32 require_once 'Zend/XmlRpc/Server.php';

33 require_once 'Zend/XmlRpc/Server/Fault.php';

43 * @group Zend_XmlRpc

44 */

45 class Zend_XmlRpc_Server_FaultTest extends PHPUnit_Framework_TestCase

46 {

47 /**

53 public static function main()

54 {

55 require_once "PHPUnit/TextUI/TestRunner.php";

56

57 $suite = new PHPUnit_Framework_TestSuite("Zend_XmlRpc_Server_FaultTest");

IncompatibilityRestrictionsTest.java (https://github.com/michelpohle/drools.git) Java · 302 lines

84 data.add(r4);

85

86 StatelessSessionResult sessionResult = session.executeWithResults(data);

87

88 Map<Cause, Set<Cause>> map = createIncompatibilityMap(VerifierComponentType.RESTRICTION,

146 data.add(r4);

147

148 StatelessSessionResult sessionResult = session.executeWithResults(data);

149

150 Map<Cause, Set<Cause>> map = createIncompatibilityMap(VerifierComponentType.RESTRICTION,

208 data.add(r4);

209

210 StatelessSessionResult sessionResult = session.executeWithResults(data);

211

212 Map<Cause, Set<Cause>> map = createIncompatibilityMap(VerifierComponentType.RESTRICTION,

odbc_arginfo.h (https://github.com/php/php-src.git) C Header · 377 lines

1 /* This is a generated file, edit the .stub.php file instead.

2 * Stub hash: 27a50ba79ed632721ee458527ef543e4b44ee897 */

3

40 #define arginfo_odbc_do arginfo_odbc_prepare

41

42 #if defined(PHP_ODBC_HAVE_FETCH_HASH)

43 ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_odbc_fetch_object, 0, 1, stdClass, MAY_BE_FALSE)

44 ZEND_ARG_INFO(0, statement)

315 ZEND_FE(odbc_longreadlen, arginfo_odbc_longreadlen)

316 ZEND_FE(odbc_prepare, arginfo_odbc_prepare)

317 ZEND_FE(odbc_execute, arginfo_odbc_execute)

318 ZEND_FE(odbc_cursor, arginfo_odbc_cursor)

319 #if defined(HAVE_SQLDATASOURCES)

320 ZEND_FE(odbc_data_source, arginfo_odbc_data_source)

321 #endif

322 ZEND_FE(odbc_exec, arginfo_odbc_exec)

323 ZEND_FALIAS(odbc_do, odbc_exec, arginfo_odbc_do)

param_values.php (https://github.com/F5/zetacomponents.git) PHP · 345 lines

1 <?php

2 /**

3 *

92 public static function suite()

93 {

94 return new PHPUnit_Framework_TestSuite( 'ezcParamValuesTest' );

95 }

96

107 $this->assertNotNull( $db, 'Database instance is not initialized.' );

108

109 $db->exec( 'CREATE TABLE ' .

110 $db->quoteIdentifier( __CLASS__ ) .

111 '( ' .

128 $db = ezcDbInstance::get();

129

130 $db->exec( 'DROP TABLE ' .

131 $db->quoteIdentifier( __CLASS__ )

132 );

FileValidatorTest.php (https://github.com/Exercise/symfony.git) PHP · 324 lines

1 <?php

2

3 /*

17 use Symfony\Component\HttpFoundation\File\UploadedFile;

18

19 abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase

20 {

21 protected $context;

30 }

31

32 $this->context = $this->getMock('Symfony\Component\Validator\ExecutionContext', array(), array(), '', false);

33 $this->validator = new FileValidator();

34 $this->validator->initialize($this->context);

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

1 <?php

2

3 /*

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

19 *

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

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

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

151 * The closure receives as its first parameter a container of class Options

152 * that contains the <em>concrete</em> options determined upon resolving. The

153 * closure is executed once resolve() is called.

154 *

155 * The closure also receives a second parameter $previousValue that contains the

Task.php (https://github.com/querl/Tine-2.0-Open-Source-Groupware-and-CRM.git) PHP · 371 lines

1 <?php

2 /**

3 * Zend Framework

48 protected $_requests = array();

49

50 /** @var bool Has the task completed execution? */

51 protected $_completed = false;

52

286

287 /**

288 * Returns whether or not the task has completed execution.

289 *

290 * @return bool True, if task is completed

296

297 /**

298 * Executes prior to serialization.

299 */

300 public function __sleep()

segment.c (https://swig.svn.sourceforge.net/svnroot/swig) C · 228 lines ✨ Summary

This C code provides access to a process’s virtual memory map, including executable segments, data segments, shared libraries, and memory mapped regions. It reads the segment map from the /proc/self/maps file on Linux systems and the /proc/self/map file on Solaris machines. The code stores the information in a linked list of WadSegment structures, allowing for easy access to the process’s virtual address space.

3 *

4 * This file provides access to the virtual memory map of a process

5 * including the location of the executable, data segments, shared

6 * libraries, and memory mapped regions.

7 *

ResetPasswordPostTest.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 307 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

9 use Magento\Framework\TestFramework\Unit\Helper\ObjectManager as ObjectManagerHelper;

10

11 class ResetPasswordPostTest extends \PHPUnit_Framework_TestCase

12 {

13 /** @var \Magento\Customer\Controller\Account\ResetPasswordPost */

17 protected $objectManagerHelper;

18

19 /** @var \Magento\Customer\Model\Session|\PHPUnit_Framework_MockObject_MockObject */

20 protected $sessionMock;

21

22 /** @var \Magento\Framework\View\Result\PageFactory|\PHPUnit_Framework_MockObject_MockObject */

23 protected $pageFactoryMock;

24

Indexer.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 448 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

15

16 /**

17 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)

18 */

19 class Indexer extends \Magento\Framework\DataObject implements IdxInterface

410 }

411 try {

412 $this->getActionInstance()->executeFull();

413 $state->setStatus(StateInterface::STATUS_VALID);

414 $state->save();

431 public function reindexRow($id)

432 {

433 $this->getActionInstance()->executeRow($id);

434 $this->getState()->save();

435 }

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

1 <?php

2 /**

3 * TSqlMapGateway class file.

16 * framework. It provides three core functions:

17 *

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

19 * # execute a select query for a single object

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

21 *

22 * This class should be instantiated from a TSqlMapManager instance.

55

56 /**

57 * Executes a Sql SELECT statement that returns that returns data

58 * to populate a single object instance.

59 *

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

94 {

95 ASSERT(inherits(&s_info));

96 putDirect(exec->globalData(), exec->propertyNames().prototype, JSRealtimeAnalyserNodePrototype::self(exec, globalObject), DontDelete | ReadOnly);

97 }

98

151 JSObject* JSRealtimeAnalyserNode::createPrototype(ExecState* exec, JSGlobalObject* globalObject)

152 {

153 return new (exec) JSRealtimeAnalyserNodePrototype(exec->globalData(), globalObject, JSRealtimeAnalyserNodePrototype::createStructure(exec->globalData(), JSAudioNodePrototype::self(exec, globalObject)));

154 }

155

214

215

216 JSValue jsRealtimeAnalyserNodeConstructor(ExecState* exec, JSValue slotBase, const Identifier&)

217 {

218 JSRealtimeAnalyserNode* domObject = static_cast<JSRealtimeAnalyserNode*>(asObject(slotBase));

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

This Java code defines a set of shell commands for a console plugin, mimicking the behavior of the Bash shell. It provides basic commands like cd, pwd, set, and unset to manage directories and variables, as well as more advanced features like alias management and version checking. The code is likely used in an integrated development environment (IDE) or a custom console application.

87 } //}}}

88

89 //{{{ execute() method

90 /**

91 * Used by executeBuiltIn

92 */

93 public void execute(Console console, Output output, Output error, Vector args)

94 {

95 Hashtable values = new Hashtable();

228 }

229

230 execute(console,output,error,args,values);

231 } //}}}

232

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

This Java code is part of a build tool, specifically for creating archives (e.g., .jar files). It defines classes and attributes related to archive creation, including file modes, user IDs, group IDs, and long file handling options. The code provides a way to customize the behavior of the archive creation process, such as truncating or omitting files based on certain conditions.

87 * @throws BuildException on error

88 */

89 public void execute() throws BuildException {

90 if (destFile == null) {

91 throw new BuildException("destFile attribute must be set!",

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

This Java code is part of an Ant build utility plugin for jEdit, a text editor. It executes a target from an Ant build file and displays output to the console, including success or failure messages, with customizable debug mode. The class handles build process timing, error handling, and output redirection.

1 /**

2 * TargetExecutor.java - Ant build utility plugin for jEdit

3 * Copyright (C) 2000 Chris Scott

4 * Other contributors: Rick Gibbs

65 import org.apache.tools.ant.*;

66

67 public class TargetExecutor

68 {

69

80 private boolean debug = false;

81

82 public TargetExecutor( AntFarmPlugin farm, AntFarm window, File buildFile )

83 {

84 this( farm, window, buildFile, null, false );

85 }

86

87 public TargetExecutor( AntFarmPlugin farm, AntFarm window, File buildFile, String targetName )

88 {

89 this(farm, window, buildFile, targetName, false );

perl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 604 lines

96 </SPAN>

97

98 <!-- Exec -->

99 <SPAN TYPE="KEYWORD3" DELEGATE="EXEC">

381 <!-- Functions for processes and process groups -->

382 <KEYWORD3>alarm</KEYWORD3>

383 <KEYWORD3>exec</KEYWORD3>

384 <KEYWORD3>fork</KEYWORD3>

385 <KEYWORD3>getpgrp</KEYWORD3>

541 </RULES>

542

543 <RULES SET="EXEC" DEFAULT="KEYWORD3" ESCAPE="\">

544 <!-- Comments -->

545 <EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>

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

51 const ClassInfo JSOESStandardDerivativesPrototype::s_info = { "OESStandardDerivativesPrototype", &JSC::JSObjectWithGlobalObject::s_info, &JSOESStandardDerivativesPrototypeTable, 0 };

52

53 JSObject* JSOESStandardDerivativesPrototype::self(ExecState* exec, JSGlobalObject* globalObject)

54 {

55 return getDOMPrototype<JSOESStandardDerivatives>(exec, globalObject);

56 }

57

58 bool JSOESStandardDerivativesPrototype::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)

59 {

60 return getStaticValueSlot<JSOESStandardDerivativesPrototype, JSObject>(exec, &JSOESStandardDerivativesPrototypeTable, this, propertyName, slot);

61 }

62

63 bool JSOESStandardDerivativesPrototype::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)

64 {

65 return getStaticValueDescriptor<JSOESStandardDerivativesPrototype, JSObject>(exec, &JSOESStandardDerivativesPrototypeTable, this, propertyName, descriptor);

MavenShortcutsManagerTest.java (https://bitbucket.org/nbargnesi/idea.git) Java · 217 lines

169 p1.delete(this);

170 }

171 }.execute().throwException();

172

173 waitForReadingCompletion();

CRIMEgroupInteractions.at (http://ambienttalk.googlecode.com/svn/) Unknown · 248 lines

101 env.insert(`groupInfo, self);

102 def [result, resolver] := makeFuture();

103 execute(env, resolver);

104 result;

105 };

106

107 def execute(env, resolver) {

108 def ServiceDB := env.find(`serviceDB);

109 def services := [];

113 services := services + [s]; };

114 numberOfParticipants := services.length();

115 executeServices(env, resolver, services) ;});

116 } else: {

117 services := ServiceDB.findAll(groupTag);

plugin.js (http://gwt-ckeditor.googlecode.com/svn/trunk/) JavaScript · 142 lines ✨ Summary

This JavaScript code is part of a CKEditor plugin that enables pasting from Microsoft Word documents. It adds a button to the editor toolbar, which when clicked, applies HTML formatting and filters out unwanted MS-Word elements, such as styles and formatting tags, from the pasted content. The filter rules are loaded dynamically from a file specified in the editor’s configuration.

29 {

30 canUndo : false,

31 exec : function()

32 {

33 // Ensure the received data format is HTML and apply content filtering. (#6718)

35 editor.on( 'beforePaste', forceHtmlMode );

36

37 if ( editor.execCommand( 'paste', 'html' ) === false )

38 {

39 editor.on( 'dialogShow', function ( evt )

SaveMetaTargetDialog.java (https://bitbucket.org/nbargnesi/idea.git) Java · 153 lines

19 import com.intellij.lang.ant.config.AntBuildFile;

20 import com.intellij.lang.ant.config.AntConfigurationBase;

21 import com.intellij.lang.ant.config.impl.ExecuteCompositeTargetEvent;

22 import com.intellij.openapi.ui.DialogWrapper;

23 import com.intellij.openapi.ui.Messages;

37 private JList myTargetList;

38 private JTextField myTfName;

39 private final ExecuteCompositeTargetEvent myInitialEvent;

40 private final AntConfigurationBase myAntConfiguration;

41 private final AntBuildFile myBuildFile;

147 names[idx] = (String)model.getElementAt(idx);

148 }

149 final ExecuteCompositeTargetEvent event = new ExecuteCompositeTargetEvent(names);

150 event.setPresentableName(myTfName.getText().trim());

151 return event;

javascript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 560 lines

213 <LITERAL2>adLockBatchOptimistic</LITERAL2>

214

215 <!-- ExecuteOptionEnum Values -->

216 <LITERAL2>adRunAsync</LITERAL2>

217 <LITERAL2>adAsyncExecute</LITERAL2>

218 <LITERAL2>adAsyncFetch</LITERAL2>

219 <LITERAL2>adAsyncFetchNonBlocking</LITERAL2>

220 <LITERAL2>adExecuteNoRecords</LITERAL2>

221

222 <!-- ConnectOptionEnum Values -->

227 <LITERAL2>adStateOpen</LITERAL2>

228 <LITERAL2>adStateConnecting</LITERAL2>

229 <LITERAL2>adStateExecuting</LITERAL2>

230 <LITERAL2>adStateFetching</LITERAL2>

231

InStateReactionTest.vcproj (http://hadesmem.googlecode.com/svn/trunk/) text · 0 lines

69 <Tool

70 Name="VCLinkerTool"

71 AdditionalDependencies="libboost_test_exec_monitor-vc90-mt-gd-1_45.lib"

72 OutputFile="$(OutDir)/InStateReactionTest.exe"

73 LinkIncremental="2"

77 SubSystem="1"

78 RandomizedBaseAddress="1"

79 DataExecutionPrevention="0"

80 TargetMachine="1"

81 />

151 <Tool

152 Name="VCLinkerTool"

153 AdditionalDependencies="libboost_test_exec_monitor-vc90-mt-1_45.lib"

154 OutputFile="$(OutDir)/InStateReactionTest.exe"

155 LinkIncremental="1"

JSMathMLElementWrapperFactory.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 52 lines

35

36 namespace JSC {

37 class ExecState;

38 }

39

44 class MathMLElement;

45

46 JSDOMWrapper* createJSMathMLWrapper(JSC::ExecState*, JSDOMGlobalObject*, PassRefPtr<MathMLElement>);

47

48 }

progress.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1060 lines

221 <KEYWORD1>EXCLUSIVE</KEYWORD1>

222 <KEYWORD1>EXCLUSIVE-LOCK</KEYWORD1>

223 <KEYWORD1>EXECUTE</KEYWORD1>

224 <KEYWORD1>EXPORT</KEYWORD1>

225 <KEYWORD1>EXTERNAL</KEYWORD1>

beat_syscall.h (http://omnia2droid.googlecode.com/svn/trunk/) C++ Header · 165 lines ✨ Summary

This C++ header file defines a set of constants and macros for interacting with a Hypervisor (HV) system, likely used in embedded systems or virtualization environments. It provides functions and identifiers for managing hardware resources, interrupt handling, memory management, and other low-level system operations. The constants are prefixed with BEAT_ and are used to identify specific HV-related functionality.

72 #define HV_permit_sharing_memory __BEAT_ADD_VENDOR_ID(50, 0)

73 #define HV_request_to_attach_shared_memory __BEAT_ADD_VENDOR_ID(49, 0)

74 #define HV_enable_logical_spe_execution __BEAT_ADD_VENDOR_ID(55, 0)

75 #define HV_construct_logical_spe __BEAT_ADD_VENDOR_ID(53, 0)

76 #define HV_disable_logical_spe_execution __BEAT_ADD_VENDOR_ID(56, 0)

77 #define HV_destruct_logical_spe __BEAT_ADD_VENDOR_ID(54, 0)

78 #define HV_sense_spe_execution_status __BEAT_ADD_VENDOR_ID(58, 0)

79 #define HV_insert_htab_entry __BEAT_ADD_VENDOR_ID(101, 0)

80 #define HV_read_htab_entries __BEAT_ADD_VENDOR_ID(95, 0)

97 #define HV_destruct_spe_irq_outlet __BEAT_ADD_VENDOR_ID(81, 0)

98 #define HV_disconnect_ipspc_service __BEAT_ADD_VENDOR_ID(88, 0)

99 #define HV_execute_ipspc_command __BEAT_ADD_VENDOR_ID(86, 0)

100 #define HV_get_interrupt_status_of_spe __BEAT_ADD_VENDOR_ID(205, 0)

101 #define HV_get_spe_privileged_state_1_registers __BEAT_ADD_VENDOR_ID(208, 0)

initramfs.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 609 lines ✨ Summary

This C code is part of a Linux kernel module that initializes and populates the root file system during boot-up. It decompresses an internal initramfs image, which contains the root file system, and unpacks its contents into the root directory. If the initramfs image is not valid, it falls back to using the internal initramfs as the root file system. The code also handles cases where the initrd region overlaps with crashkernel reserved regions.

483 extern char __initramfs_start[], __initramfs_end[];

484 #include <linux/initrd.h>

485 #include <linux/kexec.h>

486

487 static void __init free_initrd(void)

488 {

489 #ifdef CONFIG_KEXEC

490 unsigned long crashk_start = (unsigned long)__va(crashk_res.start);

491 unsigned long crashk_end = (unsigned long)__va(crashk_res.end);

494 goto skip;

495

496 #ifdef CONFIG_KEXEC

497 /*

498 * If the initrd region is overlapped with crashkernel reserved region,

TODO.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 36 lines

11 - multiple commands in system shell with ;

12 - handle multiple consecutive command invocations correctly in console

13 - periodic execution feature

14 - globs (non-Windows only, Windows programs do their own glob expansion)

15 - error hyperlinks

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

This Java code implements a file system view for a text editor, allowing users to interact with files and directories on their local file system. It provides methods for creating input/output streams, saving files, setting permissions, and preserving file permissions. The code also handles Unix-specific commands like chmod and ls.

608 try

609 {

610 Process process = Runtime.getRuntime().exec(cmdarray);

611 isr = new InputStreamReader(process.getInputStream());

612 reader = new BufferedReader(isr);

625 // Feb 4 2000 5:30 PM

626 // Catch Throwable here rather than Exception.

627 // Kaffe's implementation of Runtime.exec throws java.lang.InternalError.

628 catch (Throwable t)

629 {

657 try

658 {

659 Process process = Runtime.getRuntime().exec(cmdarray);

660 process.getInputStream().close();

661 process.getOutputStream().close();

kgdb.tmpl (http://omnia2droid.googlecode.com/svn/trunk/) Unknown · 460 lines

75 and look through call stack information similar to what an

76 application developer would use gdb for. It is possible to place

77 breakpoints in kernel code and perform some limited execution

78 stepping.

79 </para>

101 It is advised, but not required that you turn on the

102 CONFIG_FRAME_POINTER kernel option. This option inserts code to

103 into the compiled executable which saves the frame information in

104 registers or on the stack at different points which will allow a

105 debugger such as gdb to more accurately construct stack back traces

effects.js (git://github.com/kingarawana/testapp.git) JavaScript · 1123 lines ✨ Summary

This JavaScript code defines a set of visual effects and utility functions for manipulating HTML elements, such as fading, animating, highlighting, and modifying element styles. It also provides methods for getting inline styles, forcing re-rendering, and collecting text nodes from an element. The effects are designed to be reusable and can be chained together to create complex animations.

481 },

482 setup: function() {

483 // Prevent executing on elements not in the layout flow

484 if (this.element.getStyle('display')=='none') { this.cancel(); return; }

485 // Disable background image during the effect

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

This Java code implements a file system interface for a text editor, allowing users to interact with files on their local machine. It provides methods for creating, reading, writing, and deleting files, as well as managing file permissions and updating the file system when changes are made. The code is designed to work on Unix-like systems, but does nothing on non-Unix platforms.

409 try

410 {

411 Process process = Runtime.getRuntime().exec(cmdarray);

412

413 BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));

457 // Feb 4 2000 5:30 PM

458 // Catch Throwable here rather than Exception.

459 // Kaffe's implementation of Runtime.exec throws java.lang.InternalError.

460 catch (Throwable t)

461 {

482 try

483 {

484 Process process = Runtime.getRuntime().exec(cmdarray);

485 process.getInputStream().close();

486 process.getOutputStream().close();

TestUtils.cs (https://hg01.codeplex.com/linqtoroot) C# · 712 lines ✨ Summary

This C# code is a collection of utility methods for analyzing and manipulating source code. It provides functionality for tasks such as finding variable names, checking for return statements, and navigating scope in code. The methods are designed to be used in conjunction with other tools or frameworks for static analysis and testing of software code.

129 /// </summary>

130 /// <param name="code"></param>

131 public static void DumpCodeToConsole(this IExecutableCode code)

132 {

133 foreach (var line in code.DumpCode())

142 /// <param name="code"></param>

143 /// <returns></returns>

144 public static bool CheckCodeBlock(this IExecutableCode code)

145 {

146 // Check parent

193

194 /// <summary>

195 /// Dump out info from a executable code dude.

196 /// </summary>

197 /// <param name="code"></param>

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

This Java code defines a plugin for the jEdit text editor, specifically for compiling and executing Java commands. It provides methods to compile and execute arbitrary commands in a shared JCompiler shell instance, allowing users to run Java development tools within the editor. The plugin also handles errors and exceptions related to missing tools.jar files.

94

95 /**

96 * Executes an arbitrary command in the JCompiler shell.

97 * @see JCompilerShell for a list of supported commands.

98 */

99 public static void executeCommand(View view, String command)

100 {

101 // ensure Console window is visible:

118 public static void compileFile(View view)

119 {

120 executeCommand(view, "compile");

121 }

122

JSSVGDocument.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 82 lines

36 public:

37 JSSVGDocument(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGDocument>);

38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);

39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);

40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);

41 static const JSC::ClassInfo s_info;

42

46 }

47

48 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);

49 protected:

50 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;

55 typedef JSC::JSObjectWithGlobalObject Base;

56 public:

57 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);

58 static const JSC::ClassInfo s_info;

59 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);

uscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 161 lines

91 <KEYWORD1>enum</KEYWORD1>

92 <KEYWORD1>event</KEYWORD1>

93 <KEYWORD1>exec</KEYWORD1>

94 <KEYWORD1>export</KEYWORD1>

95 <KEYWORD1>exportstructs</KEYWORD1>

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

68 dlg.setWindowTitle(caption);

69 QGradient grad = QLinearGradient();

70 const int res = dlg.exec();

71 if (res == QDialog::Accepted)

72 grad = dlg.m_ui.gradientView->gradientManager()->gradients().value(dlg.m_ui.gradientView->currentGradient());

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

This is a license agreement for the GNU Lesser General Public License (LGPL). It outlines the terms and conditions under which software using the LGPL can be distributed, modified, and used. The license grants permission to use, modify, and distribute the software, but also imposes restrictions on patent infringement and liability for damages.

651 code must either be included in the distribution or be available for no

652 more than the cost of distribution plus a nominal fee, and must be freely

653 redistributable under reasonable conditions. For an executable file, complete

654 source code means the source code for all modules it contains. It does not

655 include source code for modules or files that typically accompany the major

656 components of the operating system on which the executable file runs.

657

658 * Redistribution in any form without redistributing source code for software

830 A "library" means a collection of software functions and/or data

831 prepared so as to be conveniently linked with application programs

832 (which use some of those functions and data) to form executables.

833

834 The "Library", below, refers to any such software library or work

cobol.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1002 lines

37

38 <SPAN TYPE="COMMENT2" NO_LINE_BREAK="FALSE">

39 <BEGIN>EXEC SQL</BEGIN>

40 <END>END-EXEC</END>

259 <KEYWORD1>EXCESS-3</KEYWORD1>

260 <KEYWORD1>EXCLUSIVE</KEYWORD1>

261 <KEYWORD1>EXEC</KEYWORD1>

262 <KEYWORD1>EXECUTE</KEYWORD1>

728 <KEYWORD3>ELSE</KEYWORD3>

729 <KEYWORD3>EXCLUSIVE</KEYWORD3>

730 <KEYWORD3>EXEC</KEYWORD3>

731 <KEYWORD3>END-EXEC</KEYWORD3>

863 <KEYWORD3>EXCEPT</KEYWORD3>

864 <KEYWORD3>EXCEPTIONS</KEYWORD3>

865 <KEYWORD3>EXEC</KEYWORD3>

866 <KEYWORD3>EXPLAIN</KEYWORD3>

867 <KEYWORD3>EXECUTE</KEYWORD3>

build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 172 lines

130 <target name="doxydoc" description="generates doxygen sourcecode documentation">

131 <mkdir dir="${build.doxydoc}"/>

132 <exec executable="doxygen">

133 <arg value="doxyconf"/>

134 </exec>

139 <!-- Generate docs with xsltproc tool from www.xmlsoft.org -->

140 <target name="docs-xsltproc">

141 <exec executable="xsltproc">

142 <arg value="-o"/>

143 <arg value="docs/users-guide.html"/>

145 <arg value="docs/users-guide.xsl"/>

146 <arg value="docs/users-guide.xml"/>

147 </exec>

148 </target>

149

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

This Java code implements a shell for the JCompiler plugin, allowing users to interact with the compiler through a console interface. It handles commands such as compiling, rebuilding packages, and executing javac commands, while also providing error handling and output management. The shell is designed to work within the JEdit text editor environment.

77

78 /**

79 * execute a command.

80 *

81 * @param console the Console where the command was entered.

83 * @param command the entered command.

84 */

85 public void execute(Console console, String input, Output output, Output error, String command)

86 {

87 stop(console); // stop last command

smp.c (http://omnia2droid.googlecode.com/svn/trunk/) C · 445 lines ✨ Summary

This C code is part of a Linux kernel implementation for Cavium SoC processors. It handles various tasks such as booting, resetting cores, and sending interrupts to secondary CPUs. The code provides platform-specific functions for managing CPU operations, including hotplug support, which allows adding or removing CPUs dynamically during runtime.

52

53 /**

54 * Cause the function described by call_data to be executed on the passed

55 * cpu. When the function has finished, increment the finished field of

56 * call_data.

379

380 if (!(avail_coremask & (1 << coreid))) {

381 /* core not available, assume, that catched by simple-executive */

382 cvmx_write_csr(CVMX_CIU_PP_RST, 1 << coreid);

383 cvmx_write_csr(CVMX_CIU_PP_RST, 0);

SqlPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 172 lines

21 plugin.projectviewer.sql.SqlPlugin.option-pane=sql.serverconfig

22

23 sql.publishBuffer.label=Execute buffer

24 sql.publishSelection.label=Execute selection

87 sql.notSql.message=This buffer does not contain SQL statements.

88

89 sql.publishOK.title=Executing success

90 sql.publishOK.message={0} {1} was successfully executed on {2}.

93 sql.updateOK.message={0} record(s) successfully modified

94

95 sql.publishErr.title=Executing error

96 sql.publishErr.message={0} {1} was published on {2} with {3} errors.

97

154 sql.toolbar.server.title=Database:\ \

155 sql.toolbar.repeatLastQuery.tooltip=Repeat last query

156 sql.toolbar.execBuffer.tooltip=Execute buffer

157 sql.toolbar.execSelection.tooltip=Execute selection

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

This Java code defines a class CleanupActor that extends NodeActor. It handles an action event for ProjectViewer’s context menu, which executes an SVN cleanup on selected nodes. When an action is performed, it creates a new CleanupAction instance and calls its actionPerformed method with the necessary parameters, including node paths, view, username, and password.

38

39 /**

40 * Action for ProjectViewer's context menu to execute an svn cleanup.

41 */

42 public class CleanupActor extends NodeActor {

pl-sql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 503 lines

143 <KEYWORD1>EXCEPTION_INIT</KEYWORD1>

144 <KEYWORD1>EXCLUSIVE</KEYWORD1>

145 <KEYWORD1>EXECUTE</KEYWORD1>

146 <KEYWORD1>EXIT</KEYWORD1>

147 <KEYWORD1>EXTERNAL</KEYWORD1>

452 <FUNCTION>DEFINE_COLUMN_LONG</FUNCTION>

453 <FUNCTION>DEFINE_ARRAY</FUNCTION>

454 <FUNCTION>EXECUTE</FUNCTION>

455 <FUNCTION>FETCH_ROWS</FUNCTION>

456 <FUNCTION>EXECUTE_AND_FETCH</FUNCTION>

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

84 {

85 ASSERT(inherits(&s_info));

86 putDirect(exec->globalData(), exec->propertyNames().prototype, JSWebGLUniformLocationPrototype::self(exec, globalObject), DontDelete | ReadOnly);

87 }

88

129 JSObject* JSWebGLUniformLocation::createPrototype(ExecState* exec, JSGlobalObject* globalObject)

130 {

131 return new (exec) JSWebGLUniformLocationPrototype(exec->globalData(), globalObject, JSWebGLUniformLocationPrototype::createStructure(globalObject->globalData(), globalObject->objectPrototype()));

132 }

133

137 }

138

139 bool JSWebGLUniformLocation::getOwnPropertyDescriptor(ExecState* exec, const Identifier& propertyName, PropertyDescriptor& descriptor)

140 {

141 return getStaticValueDescriptor<JSWebGLUniformLocation, Base>(exec, &JSWebGLUniformLocationTable, this, propertyName, descriptor);

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

This HTML code explains how scripts can be run on jEdit startup from specific directories, including the home and user settings directories. It mentions that scripts can be written in BeanShell or other languages with installed plugins, and that methods defined in BeanShell scripts are available to all other uses of the language.

9 and variables defined in BeanShell scripts are available to all other uses of

10 BeanShell in jEdit. This is different from macros; methods and variables defined

11 in macros are lost after the macro finishes executing.

12 </body></html>

13

MaterialAssociationReorientCommand.java (http://ontouml.googlecode.com/svn/trunk/) Java · 173 lines ✨ Summary

This Java code defines a command for reorienting material associations in an OntoUML diagram. It checks if the association can be reoriented and performs the necessary changes to update the association’s end points, ensuring that the new source/target types exist within the container. The command is executed with a progress monitor and returns a result indicating success or failure.

1 package OntoUML.diagram.edit.commands;

2

3 import org.eclipse.core.commands.ExecutionException;

4 import org.eclipse.core.runtime.IAdaptable;

5 import org.eclipse.core.runtime.IProgressMonitor;

43 * @generated

44 */

45 public boolean canExecute() {

46 if (false == getElementToEdit() instanceof OntoUML.MaterialAssociation) {

47 return false;

103 * @generated

104 */

105 protected CommandResult doExecuteWithResult(IProgressMonitor monitor,

106 IAdaptable info) throws ExecutionException {

107 if (!canExecute()) {

108 throw new ExecutionException(

Display_Abbreviations.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 392 lines

235 /*

236 * Having these members of KeyListener implemented as no-ops

237 * will speedup execution. Otherwise BeanShell throws an

238 * exception that jEdit handles internally.

239 * Under BeanShell 1.2, implementation of these methods is

vbscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 740 lines

120 <!-- Function Call - Dynamic Evaluation -->

121 <KEYWORD1>call</KEYWORD1>

122 <KEYWORD1>execute</KEYWORD1>

123 <KEYWORD1>eval</KEYWORD1>

124

392 <LITERAL2>adLockBatchOptimistic</LITERAL2>

393

394 <!-- ExecuteOptionEnum Values -->

395 <LITERAL2>adRunAsync</LITERAL2>

396 <LITERAL2>adAsyncExecute</LITERAL2>

397 <LITERAL2>adAsyncFetch</LITERAL2>

398 <LITERAL2>adAsyncFetchNonBlocking</LITERAL2>

399 <LITERAL2>adExecuteNoRecords</LITERAL2>

400

401 <!-- ConnectOptionEnum Values -->

build.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 126 lines

81 <!-- Generate docs with xsltproc tool from www.xmlsoft.org -->

82 <target name="docs-xsltproc" depends="init">

83 <exec executable="xsltproc">

84 <arg value="--catalogs"/>

85 <arg value="users-guide.xsl"/>

86 <arg value="users-guide.xml"/>

87 </exec>

88 </target>

89

117 <!-- Generate tags using 'ctags' program from ctags.sourceforge.net -->

118 <target name="tags">

119 <exec executable="ctags">

120 <arg value="-R" />

121 <arg path="." />

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

231 IDBIndex* imp = static_cast<IDBIndex*>(castedThis->impl());

232 ExceptionCode ec = 0;

233 ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();

234 if (!scriptContext)

235 return JSValue::encode(jsUndefined());

271 IDBIndex* imp = static_cast<IDBIndex*>(castedThis->impl());

272 ExceptionCode ec = 0;

273 ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();

274 if (!scriptContext)

275 return JSValue::encode(jsUndefined());

332 IDBIndex* imp = static_cast<IDBIndex*>(castedThis->impl());

333 ExceptionCode ec = 0;

334 ScriptExecutionContext* scriptContext = static_cast<JSDOMGlobalObject*>(exec->lexicalGlobalObject())->scriptExecutionContext();

335 if (!scriptContext)

336 return JSValue::encode(jsUndefined());

macro-index.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 734 lines

698 </para>

699 <para>

700 The macro takes the next character typed after macro execution

701 as the character being searched. That character is not

702 displayed. If the character does not appear in the balance of

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

55 clock.show();

56

57 return app.exec();

58 }

59 //! [start application]

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

221 Several options are configurable from the jEdit options dialog. There are

222 options to control the GUI of the plugin, and internal behaviour when

223 executing several actions. The options are:

224 </para>

225

buffer.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 5722 lines

187 curwin->w_cursor.col = 0;

188

189 /* Set or reset 'modified' before executing autocommands, so that

190 * it can be changed there. */

191 if (!readonlymode && !bufempty())

fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines

340 /* Remember the initial values of curbuf, curbuf->b_ffname and

341 * curbuf->b_fname to detect whether they are altered as a result of

342 * executing nasty autocommands. Also check if "fname" and "sfname"

343 * point to one of these values. */

344 old_curbuf = curbuf;

372 /*

373 * The BufReadCmd and FileReadCmd events intercept the reading process by

374 * executing the associated commands instead.

375 */

376 if (!filtering && !read_stdin && !read_buffer)

516 * edited file from the swapfile, but only if they can read the

517 * edited file.

518 * Remove the "write" and "execute" bits for group and others

519 * (they must not write the swapfile).

520 * Add the "read" and "write" bits for the user, otherwise we may

ttpost.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 522 lines

39 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */

40 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */

41 /* messages during execution. */

42 /* */

43 #undef FT_COMPONENT

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

This HTML code outputs a documentation page explaining how to create custom nodes for a project viewer plugin. It outlines the steps required to create a new node class, node handler, and action, providing guidance on implementing these components to make the node persistently saved with the corresponding project. The process is considered experimental.

24 <p>These steps should be enough to create a new kind of node and make it be

25 automatically persisted by the ProjectViewer plugin with the corresponding

26 project. You may want to provide other actions to be executed on the given

27 node (by creating more Action subclasses), or implement the

28 {@link projectviewer.vpt.VPTNode#open() open()} method of the node to specify

29 an action to be executed when the node receives a double click on the tree.

30 When implementing <code>open()</code>, make sure to make the <code>close()</code>,

31 <code>canOpen()</code> and <code>isOpened()</code> methods consistent with

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

This HTML code explains how to create custom actions for a plugin called ProjectViewer, which allows developers to interact with file trees. It provides instructions on how to extend the context menu and toolbar, implement action methods, and register actions with the viewer. The goal is to enable other plugin developers to add custom functionality to the ProjectViewer interface.

2

3 <p>ProjectViewer allows other plugin developers too interact with the file trees

4 by creating custom actions to be executed on the nodes. Actions can be added

5 to the tree's context menu or to the viewer's toolbar. It's recommended to

6 extend the context menu, since there's only so much useful space in the

12 <li>Create a new class that extends {@link projectviewer.action.Action Action}.</li>

13 <li>Implement the {@link projectviewer.action.Action#actionPerformed(ActionEvent)

14 actionPerformed()} method to execute the desired operations.</li>

15 <li>Register the action in the context menu

16 ({@link projectviewer.vpt.VPTContextMenu#registerAction(Action) registerAction()})

49 decide if it should be shown for the given node and what message to show, for

50 example. For the toolbar buttons, this method is <b>never</b> called, so the

51 toolbar buttons should be able to be executed regardless of the current tree

52 selection. If your action depends on a certain kind of node, add it to the

53 context menu, and not to the toolbar. If you want to add it to the toolbar,

JavaArrayJSC.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 67 lines

45 RootObject* rootObject() const;

46

47 virtual void setValueAt(ExecState*, unsigned int index, JSValue) const;

48 virtual JSValue valueAt(ExecState*, unsigned int index) const;

51 jobject javaArray() const { return m_array->m_instance; }

52

53 static JSValue convertJObjectToArray(ExecState*, jobject, const char* type, PassRefPtr<RootObject>);

54

55 private:

makefile.jmk (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 76 lines

32 jar_file: classes;

33 {

34 exec jar_cmd @

35 (glob

36 (join packages, "/*.class")

46 "%.class" : "%.java";

47 {

48 exec javac_cmd <;

49 }

50

52 "doc": javadoc_dir;

53 {

54 exec javadoc_cmd sources;

55 }

56

JSNotificationCenter.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 104 lines

37 public:

38 JSNotificationCenter(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<NotificationCenter>);

39 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);

40 static const JSC::ClassInfo s_info;

41

47

48 // Custom functions

49 JSC::JSValue requestPermission(JSC::ExecState*);

50 NotificationCenter* impl() const { return m_impl.get(); }

51

72 }

73

74 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, NotificationCenter*);

75 NotificationCenter* toNotificationCenter(JSC::JSValue);

76

JSSVGFontFaceNameElement.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 76 lines

36 public:

37 JSSVGFontFaceNameElement(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<SVGFontFaceNameElement>);

38 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);

39 virtual bool getOwnPropertySlot(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);

40 virtual bool getOwnPropertyDescriptor(JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);

41 static const JSC::ClassInfo s_info;

42

46 }

47

48 static JSC::JSValue getConstructor(JSC::ExecState*, JSC::JSGlobalObject*);

49 protected:

50 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;

55 typedef JSC::JSObjectWithGlobalObject Base;

56 public:

57 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);

58 static const JSC::ClassInfo s_info;

59 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSValue prototype)

setupscript.rst (https://bitbucket.org/tarek/distutils2/) ReStructuredText · 687 lines ✨ Summary

This text explains how to use the setup function in Python’s Distutils library to create a package. It covers various options, such as specifying version information, classifiers, and license, and provides examples of valid values for each field. It also discusses debugging techniques, including setting the DISTUTILS_DEBUG environment variable to print detailed output.

223 message text (:file:`.mc`) files and resource definition (:file:`.rc`) files for

224 Visual C++. These will be compiled to binary resource (:file:`.res`) files and

225 linked into the executable.

226

227

444 ``#!`` and contains the word "python", the Distutils will adjust the first line

445 to refer to the current interpreter location. By default, it is replaced with

446 the current interpreter location. The :option:`--executable` (or :option:`-e`)

447 option will allow the interpreter path to be explicitly overridden.

448

525 directory and the files to install there. If *directory* is a relative path, it

526 is interpreted relative to the installation prefix (Python's ``sys.prefix`` for

527 pure-Python packages, ``sys.exec_prefix`` for packages that contain extension

528 modules). Each file name in *files* is interpreted relative to the

529 :file:`setup.py` script at the top of the package source distribution. No

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

This HTML code is a documentation page for a Java class called JEditActionSet. It displays information about the class, including its purpose, methods, and fields. The page includes navigation links to related classes and a summary of the class’s contents. The output appears to be generated from a tool like Javadoc or Doxygen, providing a structured and formatted view of the class’s documentation.

151 within it: a required <code>CODE</code> element which

152 specifies the

153 BeanShell code that will be executed when the action is invoked,

154 and an optional <code>IS_SELECTED</code> element, used for

155 checkbox

306

307 <BR>

308 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method should be implemented to return an action that will execute

309 the given code</TD>

310 </TR>

758 boolean&nbsp;noRememberLast)</PRE>

759 <DL>

760 <DD>This method should be implemented to return an action that will execute

761 the given code

762 <P>

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

This Java code defines a set of shell commands for a console plugin, including cd, pwd, pushd, popd, and others. It provides basic directory navigation functionality, allowing users to change directories, print their current working directory, and manage aliases and variables. The commands are designed to work within the context of a text editor or IDE, likely for a Java-based project.

87 } //}}}

88

89 //{{{ execute() method

90 public void execute(Console console, Output output, Output error, Vector args)

225 }

226

227 execute(console,output,error,args,values);

228 } //}}}

229

230 //{{{ execute() method

231 protected abstract void execute(Console console, Output output,

254 }

255

256 public void execute(Console console, Output output,

257 Output error, Vector args, Hashtable values)

258 {

MavenExecuteBeforeRunDialog.java (https://bitbucket.org/nbargnesi/idea.git) Java · 63 lines

16 package org.jetbrains.idea.maven.tasks.actions;

17

18 import com.intellij.execution.impl.BaseExecuteBeforeRunDialog;

19 import com.intellij.openapi.project.Project;

20 import com.intellij.openapi.util.Key;

24 import org.jetbrains.idea.maven.tasks.TasksBundle;

25

26 public class MavenExecuteBeforeRunDialog extends BaseExecuteBeforeRunDialog<MavenBeforeRunTask> {

27 private final MavenProject myMavenProject;

28 private final String myGoal;

29

30 public MavenExecuteBeforeRunDialog(Project project, MavenProject mavenProject, String goal) {

31 super(project);

32 myMavenProject = mavenProject;

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

This is a Java class that implements an interpreter for the BeanShell scripting language. It provides methods for loading and executing scripts, interacting with a parser, and customizing its behavior through configuration options such as debugging and output redirection. The class also manages a global namespace and provides access to external classes and resources.

81 you may wish to use many instances, depending on the application and how

82 you structure your scripts. Interpreter instances are very light weight

83 to create, however if you are going to execute the same script repeatedly

84 and require maximum performance you should consider scripting the code as

85 a method and invoking the scripted method each time on the same interpreter

classwizard.desktop (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 12 lines

5 Terminal=false

6 Name=Class Wizard

7 Exec=/opt/usr/bin/classwizard

8 Icon=classwizard

9 X-Window-Icon=

10 X-HildonDesk-ShowInToolbar=true

11 X-Osso-Type=application/x-executable

12

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

45 m_deferredFrames.append(otherPage->mainFrame());

46

47 // This code is not logically part of load deferring, but we do not want JS code executed beneath modal

48 // windows or sheets, which is exactly when PageGroupLoadDeferrer is used.

49 // NOTE: if PageGroupLoadDeferrer is ever used for tasks other than showing a modal window or sheet,

tsql.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 1020 lines

116 <KEYWORD1>ESCAPE</KEYWORD1>

117 <KEYWORD1>EXCEPT</KEYWORD1>

118 <KEYWORD1>EXEC</KEYWORD1>

119 <KEYWORD1>EXECUTE</KEYWORD1>

568 <KEYWORD3>sp_cursor_list</KEYWORD3>

569 <KEYWORD3>sp_cursorclose</KEYWORD3>

570 <KEYWORD3>sp_cursorexecute</KEYWORD3>

571 <KEYWORD3>sp_cursorfetch</KEYWORD3>

572 <KEYWORD3>sp_cursoropen</KEYWORD3>

641 <KEYWORD3>sp_enumdsn</KEYWORD3>

642 <KEYWORD3>sp_enumfullsubscribers</KEYWORD3>

643 <KEYWORD3>sp_execute</KEYWORD3>

644 <KEYWORD3>sp_executesql</KEYWORD3>

actionscript.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 830 lines

197 <LITERAL2>setInterval</LITERAL2>

198 <LITERAL2>setI</LITERAL2>

199 <KEYWORD3>MMExecute</KEYWORD3>

200

201 <!-- MovieCLip methods-->

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

This Java class provides utility methods for interacting with Ruby and managing files, particularly related to a Ruby plugin for the JEdit text editor. It checks if Ruby is installed, runs system commands, executes Ruby code, and manages file storage and execution permissions. The class also handles errors and exceptions, logging messages and displaying error messages as needed.

41 String result;

42 if (CommandUtils.isWindows()) {

43 String text = "exec ruby.bat -v\n";

44 File commandFile = CommandUtils.getCommandFile("ruby_version.bat", false, text);

45 String command = '"' + commandFile.getPath() + '"';

67

68 /**

69 * @return string output of execution of the supplied system command

70 */

71 public static String getOutput(String command, boolean retryOnFail) throws IOException, InterruptedException {

107 */

108 private static Process run(String command, int timeout) throws IOException, InterruptedException {

109 final Process process = Runtime.getRuntime().exec(command);

110 TimerTask task = null;

111 if (timeout != -1) {

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

992 client->connectToHostEncrypted(QHostAddress(QHostAddress::LocalHost).toString(), server.serverPort());

993

994 loop.exec();

995

996 QFETCH(bool, works);

Plugin4.pm (http://maatkit.googlecode.com/svn/trunk/) Perl · 27 lines ✨ Summary

This Perl code defines a class Plugin4 that appears to be part of an ORM (Object-Relational Mapping) system, likely for a database-driven application. It sets up a custom insert operation with a unique constraint and updates related records when a duplicate is inserted. The methods defined in the class handle various events before and after inserts, but no actual actions are taken.

16 sub before_insert {

17 my ( $self, %args ) = @_;

18 $self->{sth}->execute(@{$args{row}});

19 }

20

README (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 14 lines

1 Matrix example. To run the example, execute the program 'matrix' and

2 type the following :

3

perlkw.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 252 lines

183 /* Functions for processes and process groups */

184 PERLBN(alarm);

185 PERLBN(exec);

186 PERLBN(fork);

187 PERLBN(getpgrp);

RenameLibraryHandler.java (https://bitbucket.org/nbargnesi/idea.git) Java · 129 lines

90 if (modifiableModel == null) return false;

91 final Ref<Boolean> success = Ref.create(Boolean.TRUE);

92 CommandProcessor.getInstance().executeCommand(myProject, new Runnable() {

93 public void run() {

94 UndoableAction action = new BasicUndoableAction() {

version.js (git://github.com/isaacs/npm.git) JavaScript · 290 lines ✨ Summary

This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json and npm-shrinkwrap.json. Its purpose is to automate the process of releasing a new version of a package.

68 function parseLastGitTag (cb) {

69 var options = { env: process.env }

70 git.whichAndExec(['describe', '--abbrev=0'], options, function (er, stdout) {

71 if (er) {

72 if (er.message.indexOf('No names found') !== -1) return cb(new Error('No tags found'))

185

186 function callGitStatus (cb) {

187 git.whichAndExec(

188 [ 'status', '--porcelain' ],

189 { env: process.env },

263 chain(

264 [

265 git.chainableExec([ 'add', packagePath ], options),

266 localData.hasShrinkwrap && git.chainableExec([ 'add', 'npm-shrinkwrap.json' ], options),

267 git.chainableExec([ 'commit', '-m', message ], options),

268 !localData.existingTag && git.chainableExec([

Propagation.java (http://mycila.googlecode.com/svn/) Java · 91 lines ✨ Summary

This Java code defines an enumeration called Propagation that represents different transaction propagation behaviors for use with a Transactional annotation. It provides six values: REQUIRED, SUPPORTS, MANDATORY, REQUIRES_NEW, NOT_SUPPORTED, and NEVER, each describing how to handle transactions in various scenarios.

35

36 /**

37 * Support a current transaction, execute non-transactionally if none exists.

38 * Analogous to EJB transaction attribute of the same name.

39 * <p>Note: For transaction managers with transaction synchronization,

63

64 /**

65 * Execute non-transactionally, suspend the current transaction if one exists.

66 * Analogous to EJB transaction attribute of the same name.

67 * <p>Note: Actual transaction suspension will not work on out-of-the-box

73

74 /**

75 * Execute non-transactionally, throw an exception if a transaction exists.

76 * Analogous to EJB transaction attribute of the same name.

77 */