100+ results for 'php usage'

Not the results you expected?

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

1 <?php

2 /*

3 * Copyright 2010 Google Inc.

127 /**

128 * The "webResource" collection of methods.

129 * Typical usage is:

130 * <code>

131 * $siteVerificationService = new Google_Service_SiteVerification(...);

javap.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 35 lines

1

2 bsh.help.javap= "usage: javap( value )";

3

4 import bsh.Name;

mavlink_msg_param_request_read.h (https://gitlab.com/krucios/Astraeus_FW) C Header · 279 lines

192 mavlink_message_t which is the size of a full mavlink message. This

193 is usually the receive buffer for the channel, and allows a reply to an

194 incoming message with minimum stack space usage.

195 */

196 static inline void mavlink_msg_param_request_read_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, const char *param_id, int16_t param_index)

lifecycle_frame_serializer.cpp (https://github.com/HiroyukiSeki/qtplatz.git) C++ · 310 lines

6 ** Contact: toshi.hondo@scienceliaison.com

7 **

8 ** Commercial Usage

9 **

10 ** Licensees holding valid ScienceLiaison commercial licenses may use this

13 ** contained in a written agreement between you and ScienceLiaison.

14 **

15 ** GNU Lesser General Public License Usage

16 **

17 ** Alternatively, this file may be used under the terms of the GNU Lesser

DefaultCacheFactory.php (https://gitlab.com/mario.uriarte/doctrine2.5-tutorial) PHP · 254 lines

120 {

121 $region = $this->getRegion($metadata->cache);

122 $usage = $metadata->cache['usage'];

123

124 if ($usage === ClassMetadata::CACHE_USAGE_READ_ONLY) {

126 }

127

128 if ($usage === ClassMetadata::CACHE_USAGE_NONSTRICT_READ_WRITE) {

129 return new NonStrictReadWriteCachedEntityPersister($persister, $region, $em, $metadata);

130 }

142 public function buildCachedCollectionPersister(EntityManagerInterface $em, CollectionPersister $persister, array $mapping)

143 {

144 $usage = $mapping['cache']['usage'];

145 $region = $this->getRegion($mapping['cache']);

146

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.

32

33 @Ignore

34 public class ClientUsageTest

35 {

36 @Test

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

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

18 /**

19 * The "relyingparty" collection of methods.

20 * Typical usage is:

21 * <code>

22 * $identitytoolkitService = new Google_Service_IdentityToolkit(...);

mavlink_msg_mission_ack.h (https://gitlab.com/fsgdez/apm_planner) C Header · 257 lines

175 mavlink_message_t which is the size of a full mavlink message. This

176 is usually the receive buffer for the channel, and allows a reply to an

177 incoming message with minimum stack space usage.

178 */

179 static inline void mavlink_msg_mission_ack_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, uint8_t target_system, uint8_t target_component, uint8_t type)

LockerTest.php (https://gitlab.com/imamul68e/137619_PHP31) PHP · 284 lines

1 <?php

2

3 /*

16 use Composer\IO\NullIO;

17

18 class LockerTest extends \PHPUnit_Framework_TestCase

19 {

20 public function testIsLocked()

127 ->with(array(

128 '_readme' => array('This file locks the dependencies of your project to a known state',

129 'Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file',

130 'This file is @gener'.'ated automatically', ),

131 'hash' => $hash,

RowTest.php (https://github.com/nehxby/db_type.git) PHP · 228 lines

1 <?php

2 class DB_Type_Pgsql_Test_RowTest extends DB_Type_Test_Util_TypeTestCase

3 {

210 /* Failed asserting in testInputOutputInput

211 because output truncates `not_in_items` field.

212 Usage example see in examples/itemsInput.php

213 array(

214 new DB_Type_Pgsql_Row(array(

ocaml.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 1947 lines ✨ Summary

This C++ code is a part of the SWIG (Simplified Interface to GNU Compiler Collection) compiler, specifically for generating OCaml bindings. It defines a class OCAML that extends the base Language class and provides methods for generating OCaml code from C++ templates. The code generates boilerplate code for classes, constructors, and other functions in both C++ and OCaml.

23 #include <ctype.h>

24

25 static const char *usage = (char*)

26 ("Ocaml Options (available with -ocaml)\n"

27 "-prefix <name> - Set a prefix <name> to be prepended to all names\n"

109 if (argv[i]) {

110 if (strcmp (argv[i], "-help") == 0) {

111 fputs (usage, stderr);

112 SWIG_exit (0);

113 } else if (strcmp (argv[i], "-where") == 0) {

directors.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 249 lines ✨ Summary

This C++ code is part of a SWIG (Simplified Wrapper and Interface Generator) project, which generates C++ wrappers for Python interfaces. It provides functions to create fully qualified method calls, class declarations, director class declarations, and method declarations with parameter information. The output is a string representation of the generated C++ code.

1 /* -----------------------------------------------------------------------------

2 * See the LICENSE file for information on copyright, usage and redistribution

3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.

4 *

startup_ccs.c (https://github.com/bvernoux/EvalBotADK.git) C · 214 lines

73 IntDefaultHandler, // The MPU fault handler

74 IntDefaultHandler, // The bus fault handler

75 IntDefaultHandler, // The usage fault handler

76 0, // Reserved

77 0, // Reserved

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

This Java class represents a For statement in PHP programming language. It encapsulates the initialization, condition, increment, and action of the loop. The class provides methods to get variables used, modified, and outside the scope of the loop, as well as analyze the code for syntax errors. It also overrides some methods from its parent class to provide specific behavior for For statements.

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

2

3 import gatchan.phpparser.parser.PHPParser;

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

96 */

97 @Override

98 public void getOutsideVariable(List<VariableUsage> list)

99 {

100 if (condition != null)

128 */

129 @Override

130 public void getModifiedVariable(List<VariableUsage> list)

131 {

132 if (condition != null)

160 */

161 @Override

162 public void getUsedVariable(List<VariableUsage> list)

163 {

164 if (condition != null)

parsekit.constants.html (https://bitbucket.org/thncr/manuals.git) HTML · 2252 lines

10 <div class="next" style="text-align: right; float: right;"><a href="ref.parsekit.html">Parsekit 函数</a></div>

11 <div class="up"><a href="book.parsekit.html">Parsekit</a></div>

12 <div class="home"><a href="index.html">PHP Manual</a></div>

13 </div><hr /><div id="parsekit.constants" class="appendix">

14 <h1>预定义常量</h1>

15

16 <p class="simpara">下列常量由此扩展定义,且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>

17 <p class="para">

18 <dl>

153

154

155 <dt id="constant.parsekit-usage-unknown">

156 <span class="term">

157 <strong><code>PARSEKIT_USAGE_UNKNOWN</code></strong>

IntlAttribute.cs (https://github.com/ServiceStack/ServiceStack.git) C# · 216 lines

49 /// Configure result field to use a JavaScript Intl formatter

50 /// </summary>

51 [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = true)]

52 public class Intl : MetadataAttributeBase

53 {

163 public const string ILS = nameof(ILS);

164 public const string CLP = nameof(CLP);

165 public const string PHP = nameof(PHP);

166 public const string AED = nameof(AED);

167 public const string COP = nameof(COP);

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

1 <?php

2 /**

3 * Zend Framework

24 * @see Zend_View_Helper_Navigation_HelperAbstract

25 */

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

27

28 /**

100 * Magic overload: Proxy to other navigation helpers or the container

101 *

102 * Examples of usage from a view script or layout:

103 * <code>

104 * // proxy to Menu helper and render container:

183 if (!$helper instanceof Zend_View_Helper_Navigation_Helper) {

184 if ($strict) {

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

186 $e = new Zend_View_Exception(sprintf(

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

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

1 <?php

2 /*

3 $Id: $

119

120 if ( is_numeric($id) ) {

121 $osC_CategoryTree->setBreadcrumbUsage(false);

122

123 $categories = array_merge(array(array('id' => $id, 'text' => '')), $osC_CategoryTree->getArray($id));

mavlink_msg_terrain_report.h (https://gitlab.com/fsgdez/apm_planner) C Header · 353 lines

219 mavlink_message_t which is the size of a full mavlink message. This

220 is usually the receive buffer for the channel, and allows a reply to an

221 incoming message with minimum stack space usage.

222 */

223 static inline void mavlink_msg_terrain_report_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan, int32_t lat, int32_t lon, uint16_t spacing, float terrain_height, float current_height, uint16_t pending, uint16_t loaded)

Interface.js (https://github.com/Wkasel/qooxdoo.git) JavaScript · 523 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

202 var b = new qx.Complex(2, -3.4);

203

204 // valid usage

205 a.add(b);

206 a.setReal(20);

207 a.abs();

208

209 // invalid usage

210 if (this.isDebugOn())

211 {

impermium.php (https://github.com/PopSugar/Impermium-PHP.git) PHP · 449 lines

1 <?php

2

3 /**

4 * Impermium-PHP

5 *

6 * A simple PHP wrapper for Impermium

29

30 if (!function_exists('curl_init')) {

31 throw new Exception('Impermium-PHP needs the CURL PHP extension.');

32 }

33

34 if (!function_exists('json_decode')) {

35 throw new Exception('Impermium-PHP needs the JSON PHP extension.');

36 }

37

Collection.php (https://bitbucket.org/dnejedly/eaparts.git) PHP · 333 lines

1 <?php

2 /**

3 * Magento

8 * that is bundled with this package in the file LICENSE.txt.

9 * It is also available through the world-wide-web at this URL:

10 * http://opensource.org/licenses/osl-3.0.php

11 * If you did not receive a copy of the license and are unable to

12 * obtain it through the world-wide-web, please send an email

22 * @package Mage_Catalog

23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)

24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)

25 */

26

190

191 /*

192 * Allow Analytic functions usage

193 */

194 $this->_useAnalyticFunction = true;

XmlDescriptor.php (https://github.com/marphi/symfony.git) PHP · 247 lines

1 <?php

2

3 /*

54 $commandXML->setAttribute('hidden', $command->isHidden() ? 1 : 0);

55

56 $commandXML->appendChild($usagesXML = $dom->createElement('usages'));

57

58 $commandXML->appendChild($descriptionXML = $dom->createElement('description'));

62 foreach ($command->getAliases() as $usage) {

63 $usagesXML->appendChild($dom->createElement('usage', $usage));

64 }

65 } else {

68 foreach (array_merge([$command->getSynopsis()], $command->getAliases(), $command->getUsages()) as $usage) {

69 $usagesXML->appendChild($dom->createElement('usage', $usage));

70 }

71

dataset_pdo_test.php (https://github.com/F5/zetacomponents.git) PHP · 390 lines

1 <?php

2 /**

3 * ezcGraphDatabaseTest

40 public static function suite()

41 {

42 return new PHPUnit_Framework_TestSuite( "ezcGraphDatabaseTest" );

43 }

44

89 }

90

91 public function testAutomaticDataSetUsage()

92 {

93 $db = ezcDbInstance::get();

134 }

135

136 public function testAutomaticDataSetUsageSingleColumn()

137 {

138 $db = ezcDbInstance::get();

PaginatedList.php (https://github.com/sminnee/silverstripe-framework.git) PHP · 420 lines

1 <?php

2 /**

3 * A decorator that wraps around a data list in order to provide pagination.

239 * [prev] [1] ... [4] [5] [[6]] [7] [8] ... [25] [next]

240 *

241 * Example template usage:

242 * <code>

243 * <% if MyPages.MoreThanOnePage %>

PartnersSubscriptions.php (https://gitlab.com/Japang-Jawara/jawara-penilaian) PHP · 183 lines

1 <?php

2 /*

3 * Copyright 2014 Google Inc.

30 /**

31 * The "subscriptions" collection of methods.

32 * Typical usage is:

33 * <code>

34 * $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...);

Promise.php (https://github.com/hregis/dolibarr.git) PHP · 320 lines

1 <?php

2

3 namespace Sabre\Event;

121 * Add a callback for when this promise is rejected.

122 *

123 * Its usage is identical to then(). However, the otherwise() function is

124 * preferred.

125 *

153 * Marks this promise as rejected, and set it's rejection reason.

154 *

155 * While it's possible to use any PHP value as the reason, it's highly

156 * recommended to use an Exception for this.

157 *

179 *

180 * This effectively turns the asynchronous operation into a synchronous

181 * one. In PHP it might be useful to call this on the last promise in a

182 * chain.

183 *

ResourceRegistrar.php (https://gitlab.com/phanthanh9787/crud-user) PHP · 359 lines

1 <?php

2

3 namespace Illuminate\Routing;

222

223 /**

224 * Format a resource wildcard for usage.

225 *

226 * @param string $value

cam.h (http://micropolis.googlecode.com/svn/trunk/) C++ Header · 218 lines ✨ Summary

This is a header file for a C++ program that defines several variables and functions used throughout the program. It includes definitions for the SimCam class, which represents a simulation camera, as well as the NORTHWEST, NORTH, NORTHEAST, WEST, CENTER, EAST, SOUTHWEST, SOUTH, and SOUTHEAST variables, which are used to access specific pixels in an image. It also includes definitions for the SUM8 and SUM9 functions, which are used to calculate the sum of neighboring pixels in an image. Additionally, it defines several other functions and variables that are used to implement the simulation camera’s behavior.

48 * FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT OF THIRD PARTY

49 * RIGHTS, AND WARRANTIES (IF ANY) ARISING FROM A COURSE OF DEALING,

50 * USAGE, OR TRADE PRACTICE. ELECTRONIC ARTS DOES NOT WARRANT AGAINST

51 * INTERFERENCE WITH YOUR ENJOYMENT OF THE PROGRAM; THAT THE PROGRAM WILL

52 * MEET YOUR REQUIREMENTS; THAT OPERATION OF THE PROGRAM WILL BE

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

This HTML code outputs a documentation page for JDiff Plugin, a visual diff utility for jEdit. It provides an overview of the plugin’s features, usage instructions, display options, and credits to its developers. The page also includes links to send feedback and bug reports, as well as contact information for the plugin’s authors.

25 <UL>

26 <LI><A HREF="#general">Presentation</A></LI>

27 <LI><A HREF="#usage">Usage</A></LI>

28 <LI><A HREF="#display">Display</A></LI>

29 <LI><A HREF="#options">Options</A></LI>

50

51

52 <H2><A NAME="usage">Usage</A></H2>

53

54 <OL>

waitForConsole.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 13 lines

10

11 bsh.help.waitForConsole

12 = "usage: waitForConsole(View view)";

13

AntFarm.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 160 lines

32 Watch out for the red ones, they bite.\n\n

33 antfarm.shell.msg.non-selected=No build file selected.

34 antfarm.shell.msg.invalid-usage=Invalid command, please check your usage.

35 antfarm.shell.msg.usage=The Ant shell supports the following commands:\n\

36 * "! [prop=value]*"\t\t\t-- runs the default target for the current build file\n\

37 * "![target_name] [prop=value]*"\t-- runs the specified target for the current build file\n\

38 * "?"\t\t\t\t-- lists the available build files and usage\n\

39 * "=build_file_number"\t\t-- changes the current build file to the number identified by "?"\n\

40 * "+[full_path_to_file]"\t\t-- load this build file into Ant Farm. Searches up the current\n\

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

This Ruby code defines a Chef knife command, knife role edit, which allows users to edit existing roles in their Chef configuration. The command takes a role name as an argument and opens the corresponding role file for editing using the ui.edit_object method. It also includes dependencies for the chef/role and chef/json_compat modules.

34

35 if @role_name.nil?

36 show_usage

37 ui.fatal("You must specify a role name")

38 exit 1

setenv.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 10 lines

7 }

8

9 bsh.help.setenv = "usage: setenv ( env, value )";

10

unset.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 17 lines

6 */

7

8 bsh.help.unset = "usage: unset( name )";

9

10 void unset( String name )

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

8 **

9 ** $QT_BEGIN_LICENSE:LGPL$

10 ** GNU Lesser General Public License Usage

11 ** This file may be used under the terms of the GNU Lesser General Public

12 ** License version 2.1 as published by the Free Software Foundation and

20 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.

21 **

22 ** GNU General Public License Usage

23 ** Alternatively, this file may be used under the terms of the GNU General

24 ** Public License version 3.0 as published by the Free Software Foundation

28 ** http://www.gnu.org/copyleft/gpl.html.

29 **

30 ** Other Usage

31 ** Alternatively, this file may be used in accordance with the terms and

32 ** conditions contained in a signed written agreement between you and Nokia.

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

This Java code is part of a graphical user interface (GUI) for an installation program, likely for software distribution. It displays a progress bar and various panels to guide the user through the installation process, including selecting components, choosing directories, and displaying estimated disk usage. The GUI updates in real-time as the installation progresses, providing feedback to the user.

509 }

510

511 sizeLabel.setText("Estimated disk usage of selected"

512 + " components: " + size + "Kb");

513 }

swigopt.h (https://swig.svn.sourceforge.net/svnroot/swig) C++ Header · 17 lines ✨ Summary

This C++ header file provides a set of functions for command line processing, specifically designed for use with SWIG (Simplified Wrapper and Interface Generator). It allows users to initialize arguments, mark and check arguments, and handle errors related to command line options. The functions are likely used to parse and validate user input when generating wrappers for C/C++ code using SWIG.

1 /* -----------------------------------------------------------------------------

2 * See the LICENSE file for information on copyright, usage and redistribution

3 * of SWIG, and the README file for authors - http://www.swig.org/release.html.

4 *

cleanfile (http://omnia2droid.googlecode.com/svn/trunk/) Perl · 177 lines ✨ Summary

This Perl script cleans a text file by removing stealth whitespace, which includes tabs and spaces that are not at the beginning of a line. It also checks for binary files and truncates modified files to prevent data loss. The script can be run with options to specify a maximum width limit for lines and accepts one or more file names as input.

85 $max_width = shift(@ARGV)+0;

86 } else {

87 print STDERR "Usage: $name [-width #] files...\n";

88 exit 1;

89 }

getClassPath.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 14 lines

4 */

5

6 bsh.help.getClassPath= "usage: getClassPath()";

7 import bsh.BshClassManager;

8

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

This C code implements a set of functions for interacting with ACPI (Advanced Configuration and Power Interface) objects, specifically for managing resource settings. It provides functions for getting and setting various types of resources, such as _CRS, _PRS, and _SRS, and converts them into byte streams that can be sent to the operating system.

555 ******************************************************************************/

556

557 #ifdef ACPI_FUTURE_USAGE

558 acpi_status

559 acpi_rs_get_prs_method_data(struct acpi_namespace_node *node,

587 return_ACPI_STATUS(status);

588 }

589 #endif /* ACPI_FUTURE_USAGE */

590

591 /*******************************************************************************

if_cscop.txt (https://code.google.com/p/msysgit/) Unknown · 491 lines

18 4. How to use cscope in Vim |cscope-howtouse|

19 5. Limitations |cscope-limitations|

20 6. Suggested usage |cscope-suggestions|

21 7. Availability & Information |cscope-info|

22

102 add : Add a new cscope database/connection.

103

104 USAGE :cs add {file|dir} [pre-path] [flags]

105

106 [pre-path] is the pathname used with the -P command to cscope.

118 except option #5 ("Change this grep pattern").

119

120 USAGE :cs find {querytype} {name}

121

122 {querytype} corresponds to the actual cscope line

Bv9ARM-book.xml (https://bitbucket.org/freebsd/freebsd-head/) XML · 16542 lines

935 from the command line.

936 </para>

937 <cmdsynopsis label="Usage">

938 <command>dig</command>

939 <arg>@<replaceable>server</replaceable></arg>

970 can be extended with the use of options.

971 </para>

972 <cmdsynopsis label="Usage">

973 <command>host</command>

974 <arg>-aCdlnrsTwv</arg>

mqsc.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 231 lines

223 <MARKUP>trptype</MARKUP>

224 <MARKUP>type</MARKUP>

225 <MARKUP>usage</MARKUP>

226 <MARKUP>userdata</MARKUP>

227 <MARKUP>userid</MARKUP>

rm.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 22 lines

3 */

4

5 bsh.help.rm = "usage: cd( path )";

6

7 boolean rm( String pathname )

CommonMoveUtil.java (https://bitbucket.org/nbargnesi/idea.git) Java · 46 lines

20 private static final Logger LOG = Logger.getInstance("#com.intellij.refactoring.move.moveClassesOrPackages.CommonMoveUtil");

21

22 public static NonCodeUsageInfo[] retargetUsages(final UsageInfo[] usages, final Map<PsiElement, PsiElement> oldToNewElementsMapping)

23 throws IncorrectOperationException {

24 List<NonCodeUsageInfo> nonCodeUsages = new ArrayList<NonCodeUsageInfo>();

25 for (UsageInfo usage : usages) {

26 if (usage instanceof NonCodeUsageInfo) {

27 nonCodeUsages.add((NonCodeUsageInfo)usage);

28 }

29 else if (usage instanceof MoveRenameUsageInfo) {

30 final MoveRenameUsageInfo moveRenameUsage = (MoveRenameUsageInfo)usage;

31 final PsiElement oldElement = moveRenameUsage.getReferencedElement();

extend.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 50 lines

42 @method This extend( This object )

43 */

44 bsh.help.extend= "usage: extend( This parent )";

45 extend( bsh.This parent ) {

46 this.namespace.setParent( parent.namespace );

OgreHardwareBufferManager.h (https://bitbucket.org/ZCube/ogre-android/) C++ Header · 540 lines ✨ Summary

This is a C++ header file that defines an interface for managing hardware buffers, specifically vertex buffers and index buffers. It provides functions for allocating, copying, releasing, and destroying buffers, as well as registering source and copy buffers. The interface is implemented by the HardwareBufferManager class, which is a singleton.

205 virtual HardwareVertexBufferSharedPtr makeBufferCopy(

206 const HardwareVertexBufferSharedPtr& source,

207 HardwareBuffer::Usage usage, bool useShadowBuffer);

208

209 public:

227 this based on the kind of data you expect to populate this buffer with.

228 @param numVerts The number of vertices in this buffer.

229 @param usage One or more members of the HardwareBuffer::Usage enumeration; you are

230 strongly advised to use HBU_STATIC_WRITE_ONLY wherever possible, if you need to

231 update regularly, consider HBU_DYNAMIC_WRITE_ONLY and useShadowBuffer=true.

239 */

240 virtual HardwareVertexBufferSharedPtr

241 createVertexBuffer(size_t vertexSize, size_t numVerts, HardwareBuffer::Usage usage,

242 bool useShadowBuffer = false) = 0;

243 /** Create a hardware index buffer.

win32installer.iss (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 291 lines

105 Name: apidoc; Description: API Documentation (for macro and plugin development); Types: custom full

106 Name: macros; Description: Default set of macros (highly recommended); Types: custom compact full

107 Name: batchfile; Description: Batch file (for command-line usage); Types: custom compact full

108

109 [Registry]

187 end;

188

189 // updates the batch file for commandline usage

190 // and includes its path in %PATH

191 procedure UpdateBatchFile;

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.

244 Extension('foo', ['foo.c'], include_dirs=['/usr/include/X11'])

245

246 You should avoid this sort of non-portable usage if you plan to distribute your

247 code: it's probably better to write C code like ::

248

extend.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 51 lines

42 @method This extend( This object )

43 */

44 bsh.help.extend= "usage: extend( This parent )";

45 extend( org.gjt.sp.jedit.bsh.This parent )

46 {

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

1 <?xml version="1.0" encoding="UTF-8"?>

2 <sect1 id="usage">

3 <title>Usage Questions</title>

13 <!-- Copyright (C) 2003 John Gellene, Kris Kopicki -->

14

15 <para>This section deals general usage of jEdit, including

16 customisation.</para>

17

qUI2Events.self (git://github.com/ticking/self.git) Unknown · 284 lines

67

68 bootstrap addSlotsTo: bootstrap stub -> 'globals' -> 'quartzGlobals' -> () From: ( | {

69 'Comment: Supports platform independent usage of events

70 combined with platform specific initialization:

71 Native MacOS events are used for initialization,

setFont.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 26 lines

4 */

5

6 bsh.help.setFont = "usage: setFont( Component comp, int size )";

7

8 Font setFont(Component comp, String family, int style, int size) {

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

478 <LITERAL2>adSchemaColumns</LITERAL2>

479 <LITERAL2>adSchemaCheckConstraints</LITERAL2>

480 <LITERAL2>adSchemaConstraintColumnUsage</LITERAL2>

481 <LITERAL2>adSchemaConstraintTableUsage</LITERAL2>

482 <LITERAL2>adSchemaKeyColumnUsage</LITERAL2>

483 <LITERAL2>adSchemaReferentialConstraints</LITERAL2>

484 <LITERAL2>adSchemaTableConstraints</LITERAL2>

485 <LITERAL2>adSchemaColumnsDomainUsage</LITERAL2>

486 <LITERAL2>adSchemaIndexes</LITERAL2>

487 <LITERAL2>adSchemaColumnPrivileges</LITERAL2>

488 <LITERAL2>adSchemaTablePrivileges</LITERAL2>

489 <LITERAL2>adSchemaUsagePrivileges</LITERAL2>

490 <LITERAL2>adSchemaProcedures</LITERAL2>

491 <LITERAL2>adSchemaSchemata</LITERAL2>

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

This Java code is a main class for an installer, written by Slava Pestov and placed into the public domain. It checks the Java version, handles command-line arguments, loads configuration properties from a file, and provides methods for copying files to a specified output location with progress tracking. It also includes error handling and usage instructions.

40 else

41 {

42 System.err.println("Usage:");

43 System.err.println("java -jar <installer JAR>");

44 System.err.println("java -jar <installer JAR> text");

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

39 - pre-fill tag enter dialog with tag at cursor (+select)

40 * might want to investigate keeping tags information in a sorted

41 tree structure w/a name -> list association (time for speed and memory usage).

42 * add icons for positions in TagStack (tag,jump,explicit)?

43

editor.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 50 lines

6 */

7

8 bsh.help.editor = "usage: editor()";

9 import java.awt.*;

10

changes-4.7.0 (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 514 lines

257 - [QTBUG-8394] include/import/redefine schemas only once

258 - QXmlSchema: fix crash with referencing elements

259 - [QBTUG-6485] QXmlSchema: allow usage of xsd:all

260

261 Qt Plugins

hlsl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 479 lines

186 <KEYWORD3>struct</KEYWORD3>

187

188 <!-- Usage keywords -->

189 <KEYWORD4>static</KEYWORD4>

190 <KEYWORD4>uniform</KEYWORD4>

HardKeyboardSequenceHandler.java (http://softkeyboard.googlecode.com/svn/) Java · 89 lines ✨ Summary

This Java class, HardKeyboardSequenceHandler, is responsible for handling keyboard sequences and translating them into characters. It uses a state machine to track the sequence of key presses and determines the corresponding character based on the pressed keys. The class provides methods to add translations for specific key combinations and handle special keys like shift and alt.

17 };

18

19 //See 'getSequenceCharacter' function for usage for msSequenceLivingTime and mLastTypedKeyEventTime.

20 private static final long msSequenceLivingTime = 600;

21 private long mLastTypedKeyEventTime;

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

795 }

796

797 static void reportUnsafeUsage(ScriptExecutionContext* context, const String& message)

798 {

799 if (!context)

800 return;

801 // FIXME: It's not good to report the bad usage without indicating what source line it came from.

802 // We should pass additional parameters so we can tell the console where the mistake occurred.

803 context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, message, 1, String(), 0);

823 // A privileged script (e.g. a Dashboard widget) can set any headers.

824 if (!scriptExecutionContext()->securityOrigin()->canLoadLocalResources() && !isSafeRequestHeader(name)) {

825 reportUnsafeUsage(scriptExecutionContext(), "Refused to set unsafe header \"" + name + "\"");

826 return;

827 }

zone.hh (git://github.com/ticking/self.git) C++ Header · 270 lines ✨ Summary

This C++ header file defines a memory management system for a compiler, specifically for handling nmethods (optimized methods). It provides classes and functions for managing memory allocation, deallocation, and usage tracking, as well as features like LRU caching and frame chaining. The code is designed to be used in a compiler environment, with various zones (memory regions) and objects (nmethods) that interact with each other.

195 };

196

197 // holds usage information for nmethods (or index of next free nmethod ID

198 // if not assigned to any nmethod)

199 class LRUcount {

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

This is an HTML document that serves as a documentation page for a Java-based application, likely a plugin or extension for a text editor like Eclipse. It provides information about the application’s features, usage, and version history, presented in a structured format with headings, paragraphs, and links to external resources.

24 <li><a href="#introduction">Introduction</a></li>

25 <li><a href="#creating_tag_files">Creating Tag Index Files</a></li>

26 <li><a href="#usage">Usage</a></li>

27 <ul>

28 <li><a href="#tagging">Tag jumping</a></li>

89 </p>

90

91 <h2><a name="usage">Usage</a></h2>

92

93 <h3><a name="tagging">Tag jumping</a></h3>

setNameSpace.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 44 lines

34

35 bsh.help.setNameSpace =

36 "usage: setNameSpace( bsh.NameSpace )";

37

38 setNameSpace( ns )

list_first.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code outputs a documentation page for the BOOST_PP_LIST_FIRST macro, explaining its usage, requirements, and sample code examples. It includes links to related documents, copyright information, and licensing details, providing a comprehensive overview of the macro’s functionality. The content is presented in a structured format with headings, paragraphs, and code snippets.

8 The <b>BOOST_PP_LIST_FIRST</b> macro expands to the head of a <i>list</i>.

9 </div>

10 <h4>Usage</h4>

11 <div class="code">

12 <b>BOOST_PP_LIST_FIRST</b>(<i>list</i>)

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.

50 if ( args.length < 2 ) {

51 System.out.println(

52 "usage: Remote URL(http|bsh) file [ file ] ... ");

53 System.exit(1);

54 }

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

This C code implements a Linux kernel module for interacting with Aiptek tablets, which are known as “styluses” or “mouse devices”. The module registers itself with the USB subsystem and provides a way to program the tablet’s settings, such as delay times for stylus movement and mouse settlement. It also creates sysfs files for configuration and status information.

428 * would be spread between two (or more) pieces of software.

429 *

430 * EV_MSC usage was terminated for this purpose in Linux 2.5.x, and

431 * replaced with the input_sync() method (which emits EV_SYN.)

432 */

object.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 20 lines

12 */

13

14 bsh.help.object = "usage: object()";

15

16 object() {

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

17 This manual page briefly documents \fBjEdit\fP's command-line parameters.

18 Complete documentation can be found by invoking the Help->jEdit Help

19 menu item within \fBjEdit\fP or by invoking jedit \-usage.

20

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

33 .PP

34

35 .SH GENERAL COMMAND LINE USAGE

36

37 When opening files from the command line, a line number or marker to position

55 another instance via the edit server.

56 .TP

57 \fB\-usage\fR

58 Show a brief command line usage message without starting \fBjEdit\fP. This message

157

158 .SH BUGS

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

160

161 .SH WEB

eval.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 76 lines

68 */

69

70 bsh.help.eval = "usage: eval( String expression )";

71

72 Object eval( String expression ) {

entry.S (http://omnia2droid.googlecode.com/svn/trunk/) Assembly · 1116 lines ✨ Summary

This Assembly code is part of a Linux kernel implementation, specifically the system call handling mechanism. It defines a table of system calls and their corresponding handlers, which are executed when a system call is made by user space. The code also includes constants for integer and symbol values used in the system call handling process.

105

106 /*

107 * Register usage in interrupt handlers:

108 * R9 - pointer to current task structure

109 * R13 - pointer to literal pool

json.jj (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 763 lines

122 }

123 } else {

124 System.out.println("JSON Parser: Usage is one of:");

125 System.out.println(" java JsonParser < inputfile");

126 System.out.println("OR");

soelim.cpp (https://bitbucket.org/freebsd/freebsd-head/) C++ · 309 lines ✨ Summary

This C++ code implements a command-line utility called soelim (short for “source elimination”) that processes input files containing special characters and expands them into equivalent text representations. It is part of the GNU groff package, used to format documentation and other text documents. The program reads input files line by line, replacing special characters with their corresponding text representations.

44

45

46 void usage(FILE *stream)

47 {

48 fprintf(stream, "usage: %s [ -Crtv ] [ -I file ] [ files ]\n", program_name);

79 break;

80 case CHAR_MAX + 1: // --help

81 usage(stdout);

82 exit(0);

83 break;

84 case '?':

85 usage(stderr);

86 exit(1);

87 break;

sh.time.c (https://bitbucket.org/freebsd/freebsd-head/) C · 741 lines ✨ Summary

This C code generates a human-readable representation of system resource usage statistics, such as CPU time, memory usage, and disk activity, in a format similar to top or htop. It displays the current values for various metrics, along with their changes since the last update, in a simple text-based output.

75 (void) getrusage(RUSAGE_SELF, (struct rusage *) &ru0);

76 (void) getrusage(RUSAGE_CHILDREN, (struct rusage *) &ruch);

77 ruadd(&ru0, &ruch);

78 #else

111 (void) getrusage(RUSAGE_SELF, (struct rusage *) &ru1);

112 (void) getrusage(RUSAGE_CHILDREN, (struct rusage *) &ruch);

113 ruadd(&ru1, &ruch);

114 (void) gettimeofday(&timedol, NULL);

169 #ifdef BSDTIMES

170 void

171 ruadd(struct sysrusage *ru, struct sysrusage *ru2)

172 {

173 tvadd(&ru->ru_utime, &ru2->ru_utime);

275

276 void

277 prusage(struct sysrusage *r0, struct sysrusage *r1, timeval_t *e, timeval_t *b)

278

279 #else /* BSDTIMES */

metadata.json (git://github.com/opscode/chef.git) JSON · 41 lines

9 ]

10 },

11 "long_description": "= DESCRIPTION:\n\n= REQUIREMENTS:\n\n= ATTRIBUTES:\n\n= USAGE:\n\n",

12 "recipes": {

13 "default": ""

tc-conf-merger.pl (git://github.com/SingularityCore/Singularity.git) Perl · 43 lines ✨ Summary

This is a Perl script that merges two configuration files, one of which contains new settings and the other contains old settings. The script replaces the old settings with the new ones in the output file. It takes three arguments: the path to the new .conf.dist file, the path to the old .conf file, and the path to the output .conf file.

10 if (@ARGV != 3)

11 {

12 print("Usage:\ntc-conf-merger.pl <path to new .conf.dist> <path to old .conf> <path to output .conf>\n");

13 exit(1);

14 }

sequoia_defconfig (http://photon-android.googlecode.com/svn/) Unknown · 1108 lines

989 CONFIG_PRINT_STACK_DEPTH=64

990 # CONFIG_DEBUG_STACKOVERFLOW is not set

991 # CONFIG_DEBUG_STACK_USAGE is not set

992 # CONFIG_CODE_PATCHING_SELFTEST is not set

993 # CONFIG_FTR_FIXUP_SELFTEST is not set

octave.cxx (https://swig.svn.sourceforge.net/svnroot/swig) C++ · 1418 lines ✨ Summary

This C++ code is a part of the SWIG (Simplified Interface Generator) framework, which generates interface code for wrapping C/C++ libraries in multiple programming languages, including Octave. It defines a class OCTAVE that inherits from Language, and implements methods to generate Octave-specific code for creating a director method, handling runtime code, and defining external runtime filenames.

16 #include "swigmod.h"

17

18 static const char *usage = (char *) "\

19 Octave Options (available with -octave)\n\

20 [no additional options]\n\

65 if (argv[i]) {

66 if (strcmp(argv[i], "-help") == 0) {

67 fputs(usage, stderr);

68 }

69 }

JSONStringModelBridge.html (https://code.google.com/p/rhizosphere/) HTML · 145 lines ✨ Summary

This HTML code generates a documentation page for a Java class, specifically the JSONStringModelBridge class from the com.rhizospherejs.gwt.client.bridge package. It displays information about the class, including its usage, and provides navigation links to related pages. The page is generated by a javadoc tool and includes JavaScript code to update the content based on the current window frame.

84 <B>Uses of Class<br>com.rhizospherejs.gwt.client.bridge.JSONStringModelBridge</B></H2>

85 </CENTER>

86 No usage of com.rhizospherejs.gwt.client.bridge.JSONStringModelBridge

87 <P>

88 <HR>

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

This C code initializes and manages a journaling system for Linux file systems, specifically ext4. It sets up various data structures, caches, and modules to handle journaling operations, including logging, caching, and device name mapping. The code also handles module initialization and cleanup, as well as error handling and debugging features.

380 * This isn't strictly necessary, as we're using frozen

381 * data for the escaping, but it keeps consistency with

382 * b_frozen_data usage.

383 */

384 jh_in->b_frozen_triggers = jh_in->b_triggers;

swig_gc.rb (https://swig.svn.sourceforge.net/svnroot/swig) Ruby · 71 lines ✨ Summary

The Ruby code provides a module GC that tracks memory leaks and garbage collection statistics. It allows users to track specific classes, collect and report stats, and display the number of objects of each class, including their delta (change) since the last call. The output is displayed in a tabular format with class names on one side and object counts on the other.

5 # and check on what GC has collected since last call.

6 #

7 # Usage can be:

8 #

9 # require 'swig_gc'

guidelines.html (http://hadesmem.googlecode.com/svn/trunk/) HTML · 0 lines ✨ Summary

This HTML code outputs a documentation page for a C++ library, specifically a container class. It provides detailed information on how to use and implement the class, including best practices and common pitfalls. The content is organized into sections, with links to related resources and references. The output appears to be a technical manual or reference guide for developers using the library.

290 <div class="document" id="boost-pointer-container-library">

291 <h1 class="title"><img alt="Boost" src="boost.png" /> Pointer Container Library</h1>

292 <h2 class="subtitle" id="usage-guidelines">Usage Guidelines</h2>

293 <div class="contents local topic">

294 <ul class="simple">

305 <div class="section">

306 <h1><a class="toc-backref" href="#id8" id="choosing-the-right-container" name="choosing-the-right-container">Choosing the right container</a></h1>

307 <p>The recommended usage pattern of the container classes is the same as

308 for normal standard containers.</p>

309 <p><tt class="docutils literal"><span class="pre">ptr_vector</span></tt>, <tt class="docutils literal"><span class="pre">ptr_list</span></tt> and <tt class="docutils literal"><span class="pre">ptr_deque</span></tt> offer the programmer different

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

450 </section>

451

452 <section id="usage">

453 <title>Usage</title>

454 <section id="usage.general">

455 <title>General Usage</title>

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

605 </para>

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

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

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

javap.bsh (https://jedit.svn.sourceforge.net/svnroot/jedit) Unknown · 47 lines

10 */

11

12 bsh.help.javap= "usage: javap( value )";

13

14 import bsh.Name;

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

This HTML code outputs a documentation page for a spell checking plugin for the Java-based text editor jEdit. It provides information on how to build and use the plugin, its features, current bugs and todo list, as well as release history. The content is written in a formal tone, suggesting that it is intended for technical users or developers who want to learn about the plugin’s functionality and development process.

53

54

55 <h2>Usage</h2>

56

57 <ul>

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

This Java class represents an Inclusion Expression in a PHP parser, which is used to parse and analyze PHP code. It extends another class Expression and implements several methods for parsing and analyzing the expression, including getting variables used, modified, and outside of the expression. It also provides information about the expression’s start and end positions in the code.

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

21

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

23 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;

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

28 import gatchan.phpparser.parser.PHPParserConstants;

29 import gatchan.phpparser.parser.PHPParser;

74 private String keywordToString()

75 {

76 return PHPParserConstants.tokenImage[keyword];

77 } //}}}

78

123 */

124 @Override

125 public void getOutsideVariable(List<VariableUsage> list)

126 {

127 expression.getOutsideVariable(list);

index.html (git://github.com/macournoyer/tinyrb.git) HTML · 141 lines ✨ Summary

This HTML code is a documentation page for Perl-compatible Regular Expressions (PCRE). It provides an overview of PCRE, its features, and functions, along with links to individual pages that summarize each function’s interface. The page also includes information on building and testing PCRE, as well as its compatibility with other programming languages.

62

63 <tr><td><a href="pcrestack.html">pcrestack</a></td>

64 <td>&nbsp;&nbsp;Discussion of PCRE's stack usage</td></tr>

65

66 <tr><td><a href="pcresyntax.html">pcresyntax</a></td>

README (https://bitbucket.org/freebsd/freebsd-head/) Unknown · 87 lines

19 --------------

20

21 Usage is as follows:

22

23 view [-g nnn.nnn] [-r x] filename.png

37 ------------

38

39 Usage is as above, but the file you give as argument is a (unix) text file

40 of the following format:

41

XStreamXom.html (http://prototipomemoria.googlecode.com/svn/trunk/) HTML · 146 lines ✨ Summary

This is an HTML document that displays information about a class named XStreamXom. It provides a brief overview of the class, including its package and a link to its documentation page. The document also includes navigation links at the top and bottom of the page, which allow users to navigate between different pages in the documentation.

85 <B>Uses of Class<br>com.thoughtworks.xstream.tools.benchmark.products.XStreamXom</B></H2>

86 </CENTER>

87 No usage of com.thoughtworks.xstream.tools.benchmark.products.XStreamXom

88 <P>

89 <HR>

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

This C code implements a “void” object, which is essentially a container around an arbitrary C object represented as a void pointer. It provides functions for deleting, copying, and accessing the contained object, as well as creating new instances of the void object with optional destructor functions. The code uses a DOH (Data Object Handler) framework to manage the object’s lifecycle.

8 *

9 * Copyright (C) 1999-2000. The University of Chicago

10 * See the file LICENSE for information on usage and redistribution.

11 * ----------------------------------------------------------------------------- */

12

ngx_http_ajp_module.c (git://github.com/yaoweibin/nginx_ajp_module.git) C · 1071 lines ✨ Summary

This C code is part of an Nginx module for handling AJP (Apache Jserv Protocol) connections. It processes configuration options and initializes various data structures, such as cache zones and hash tables, to manage AJP requests. The code also sets up functions for hiding headers in responses and intercepting errors. Its purpose is to enable AJP protocol support in Nginx web servers.

914 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,

915 "\"ajp_max_temp_file_size\" must be equal to zero to disable "

916 "the temporary files usage or must be equal or bigger than "

917 "maximum of the value of \"ajp_buffer_size\" and "

918 "one of the \"ajp_buffers\"");

bulkstamp.py (git://github.com/IronLanguages/main.git) Python · 136 lines ✨ Summary

This is a Python script that stamps version information on files in a given directory tree. It takes three arguments: the version number, the root directory to search, and a description file containing product name, major, minor, and other version information. The script uses the verstamp module to stamp the version information on files with extensions .dll, .pyd, .exe, and .ocx.

3 # Stamp versions on all files that can be found in a given tree.

4 #

5 # USAGE: python bulkstamp.py <version> <root directory> <descriptions>

6 #

7 # Example: python bulkstamp.py 103 ..\win32\Build\ desc.txt

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

The code calculates the greatest common divisor (GCD) of two positive integers, counts the occurrences of a character in a string, capitalizes all characters in a string, and checks if points are within a circle defined by their coordinates. It also handles command-line arguments for GCD calculation and provides usage instructions if not provided.

19 int x,y;

20 if (argc != 3) {

21 printf("usage: gcd x y\n");

22 return -1;

23 }

file.c (https://bitbucket.org/cabalistic/ogredeps/) C · 1181 lines ✨ Summary

This C code provides functions for interacting with ZIP archives, specifically for reading and writing data from a ZIP file. It includes functions for reading and writing data in various modes (e.g., unstore, inflate), seeking to specific positions within the archive, and telling the current position of the read/write cursor. The code also handles large file mode limitations by providing alternative 32-bit versions of these functions.

791

792 /* if the user had it in place of a normal xopen, then

793 * we better defend this lib against illegal usage */

794 if (o_flags & (O_CREAT | O_WRONLY))

795 { errno = EINVAL; return 0; }

parser-tests.factor (git://github.com/abeaumont/factor.git) Unknown · 638 lines

163

164 [ t ] [

165 "a" <pathname> \ + usage member?

166 ] unit-test

167

172

173 [ f ] [

174 "a" <pathname> \ + usage member?

175 ] unit-test

176

CoFuseSmallAuxiliaryAccumulator.cs (https://hg01.codeplex.com/profit) C# · 78 lines ✨ Summary

This C# code defines a class CoFuseSmallAuxiliaryAccumulator that represents a module in a game or simulation, specifically an auxiliary accumulator for a co-fuse small module. It contains properties and methods to describe its characteristics, such as CPU usage, reactor usage, mass, and capacity, and is used to create instances of the module with specific features and settings.

8 Size = Small

9 Module = co-fuse small auxiliary accumulator

10 CpuUsage = 32.00 TF

11 ReactorUsage = 14.00 RP

44 SizesEnum.Small,

45 new LazyFeature[] {

46 new LazyFeature(typeof(CpuUsage<double>),32.00),

47 new LazyFeature(typeof(ReactorUsage<double>),14.00),

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

This C code is part of a compiler or interpreter for a programming language, specifically designed to handle function wrappers and local variable declarations. It provides functions to print out wrapper functions, add new local variables, check if a local name has already been declared, and create unique names for new locals. The code uses a combination of strings, arrays, and hash tables to manage the data.

12 * University of California.

13 *

14 * See the file LICENSE for information on usage and redistribution.

15 * ----------------------------------------------------------------------------- */

16

jeMemAllocInfo.h (https://jetpp.svn.sourceforge.net/svnroot/jetpp) C Header · 170 lines ✨ Summary

This C header file provides a memory leak debugging module, allowing developers to track and report memory allocations and deallocations in their application. It includes functions for creating, destroying, activating, deactivating, and reporting memory allocation information, as well as flags for controlling the behavior of the module. The module can be used to identify potential memory leaks and optimize memory usage.

123 // EOF

124

125 // Usage sample

126 // >Editor-MFC Files-jwe.cpp<

127 // ...

167 }

168 //...

169 // Usage sample end

170 #endif

XmlNamespaceDictionary.java (https://code.google.com/p/google-http-java-client/) Java · 438 lines ✨ Summary

This Java code is a part of an XML serialization library, specifically designed to serialize complex data structures into XML format. It handles various data types such as numbers, strings, dates, enums, and custom objects, converting them into a standardized XML representation. The output is a serialized XML string that can be easily parsed by other applications or libraries.

47 *

48 * <p>

49 * Sample usage:

50 * </p>

51 *