100+ results for 'php extract'

Not the results you expected?

local.php (https://gitlab.com/gabdark/aceit) PHP · 818 lines

1 <?php

2

3 if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

297 if( empty($field_group['local']) ) {

298

299 $field_group['local'] = 'php';

300

301 }

303

304 // remove fields

305 $fields = acf_extract_var($field_group, 'fields');

306

307

middleware.clj (https://github.com/pelle/clauth.git) Clojure · 297 lines

3 [clauth.middleware :as base]))

4

5 (deftest extract-requested-uri

6 (is (= "/"

7 (base/requested-uri {})))

216 true false)))

217

218 (deftest csrf-token-extraction

219 (is (nil? (base/csrf-token {})))

220 (is (= "token" (base/csrf-token {:session {:csrf-token "token"}})))

vmsmail.c (https://bitbucket.org/clivecrous/ruhack.git) C · 486 lines

68 * no subproceses are allowed, there'd be no way to respond to the scroll.

69 *

70 * When a scroll of mail is read by the character, readmail() extracts

71 * the hidden command string and uses it for the default when prompting the

72 * player for a system command to spawn. The player may enter any command

TSqlMapStatement.php (https://bitbucket.org/volatileeight/prado.git) PHP · 444 lines

1 <?php

2 /**

3 * TSqlMapStatement, TSqlMapInsert, TSqlMapUpdate, TSqlMapDelete,

88 * If a {@link ParameterMap setParameterMap()} property is not specified,

89 * you may specify a ParameterClass instead and use inline parameters.

90 * The value of the parameterClass attribute can be any existing PHP class name.

91 * @param string parameter class name.

92 */

105

106 /**

107 * A Result Map lets you control how data is extracted from the result of a

108 * query, and how the columns are mapped to object properties.

109 * @param string result map name.

125 * If a {@link ResultMap setResultMap()} is not specified, you may specify a

126 * ResultClass instead. The value of the ResultClass property can be the

127 * name of a PHP class or primitives like integer, string, or array. The

128 * class specified will be automatically mapped to the columns in the

129 * result, based on the result metadata.

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.

157 *

158 * By default the limit method will be called on the underlying list to

159 * extract the subset for the current page. In some situations, if the list

160 * is custom generated and already paginated you don't want to additionally

161 * limit the list. You can use {@link setLimitItems} to control this.

Filesystem.php (https://gitlab.com/techniconline/kmc) PHP · 426 lines

1 <?php namespace Illuminate\Filesystem;

2

3 use ErrorException;

155

156 /**

157 * Extract the file name from a file path.

158 *

159 * @param string $path

166

167 /**

168 * Extract the file extension from a file path.

169 *

170 * @param string $path

apbasic-widgets.php (https://gitlab.com/pornmongkon.p/wordpress) PHP · 273 lines

1 <?php

2 /**

3 *

195 function accesspress_basic_widgets_updated_field_value( $widget_field, $new_field_value ) {

196

197 extract( $widget_field );

198

199 // Allow only integers in number fields

222 * @since Accesspress Widget Pack 1.0

223 */

224 require get_template_directory() . '/inc/widgets/widget-fields.php';

225

226 /**

229 * @since accesspress Widget Pack 1.0

230 */

231 require get_template_directory() . '/inc/widgets/widget-testimonials.php';

232

233 /**

errors.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 288 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: errors.php 2460 2008-04-08 21:03:22Z mz $

7 */

8

9 /**

10 * @ignore - PHP5 compatibility fix.

11 */

12 if (! defined('E_STRICT')) {

17 * Includes SimpleTest files.

18 */

19 require_once dirname(__FILE__) . '/invoker.php';

20 require_once dirname(__FILE__) . '/test_case.php';

Annotation.php (https://bitbucket.org/cryofrost/portal.git) PHP · 267 lines

1 <?php

2

3 namespace Gedmo\Tree\Mapping\Driver;

9 /**

10 * This is an annotation mapping driver for Tree

11 * behavioral extension. Used for extraction of extended

12 * metadata from Annotations specificaly for Tree

13 * extension.

17 * @subpackage Annotation

18 * @link http://www.gediminasm.org

19 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

20 */

21 class Annotation implements AnnotationDriverInterface

Csv.php (https://github.com/sbourget/moodle.git) PHP · 404 lines

1 <?php

2

3 namespace PhpOffice\PhpSpreadsheet\Writer;

4

5 use PhpOffice\PhpSpreadsheet\Calculation\Calculation;

6 use PhpOffice\PhpSpreadsheet\Spreadsheet;

7

8 class Csv extends BaseWriter

9 {

10 /**

11 * PhpSpreadsheet object.

12 *

13 * @var Spreadsheet

34 * @var string

35 */

36 private $lineEnding = PHP_EOL;

37

38 /**

local.php (https://gitlab.com/Svyrydov/test-project) PHP · 903 lines

1 <?php

2

3 class acf_local {

153 if( empty($field_group['local']) ) {

154

155 $field_group['local'] = 'php';

156

157 }

159

160 // remove fields

161 $fields = acf_extract_var($field_group, 'fields');

162

163

223

224 // clear cache

225 // - delete cache was origional added to ensure changes to JSON / PHP would appear in WP when using memcache

226 // - the downside is that wp_cache_delet is taxing on the system so has been commented out

227 //wp_cache_delete( "get_field/key={$key}", 'acf' );

lib.php (https://gitlab.com/MotoSport/morgue) PHP · 307 lines

1 <?php

2

3 class Jira {

276 /**

277 * Givent a json JIRA representation of an issue and a set of fields,

278 * extract each field from the issue object and return the extracted

279 * value as an associative array, along with the ticket_url

280 *

__init__.py (https://github.com/adamcik/mopidy.git) Python · 361 lines

272 listed here.

273

274 This class also supports iteration, so your extract its values like this::

275

276 (tlid, track) = tl_track

Files.php (https://github.com/jaws-project/jaws.git) PHP · 282 lines

1 <?php

2 /**

3 * Directory Gadget

61 }

62

63 // extract tags

64 $tags = $data['tags'];

65 unset($data['tags']);

cl_ltp.c (https://github.com/diegocarrera/isabel.git) C · 247 lines

237 L_temp = L_mult(y1[i], *gain_pit);

238 L_temp = L_shl(L_temp, 1);

239 xn2[i] = sub(xn[i], extract_h(L_temp)); move16 ();

240

241 L_temp = L_mult(exc[i], *gain_pit);

242 L_temp = L_shl(L_temp, 1);

243 res2[i] = sub(res2[i], extract_h(L_temp)); move16 ();

244 }

245

Route.php (https://bitbucket.org/mikebosire/framework.git) PHP · 451 lines

1 <?php namespace Illuminate\Routing;

2

3 use Illuminate\Http\Response;

148 $params = array_merge($merge, $params);

149

150 // Next we will parse the filter name to extract out any parameters and adding

151 // any parameters specified in a filter name to the end of the lists of our

152 // parameters, since the ones at the beginning are typically very static.

Simple.pm (http://keywatch.googlecode.com/svn/trunk/) Perl · 3042 lines ✨ Summary

This Perl code is a documentation for an XML parsing and generation library, explaining its options and behavior. It describes how to use the library to parse and generate XML data, including handling attributes, arrays, hashes, and root elements. The output is a detailed explanation of the library’s functionality.

507

508

509 # Extract rootname from top level hash if keeproot enabled

510

511 if($self->{opt}->{keeproot}) {

select.php (https://gitlab.com/sihabudinahmad/asppi) PHP · 564 lines

1 <?php

2

3 /*

325 foreach( $els as $el ) {

326

327 // extract type

328 $type = acf_extract_var($el, 'type');

332

333 // get label

334 $label = acf_extract_var($el, 'label');

335

336

337 // validate selected

338 if( acf_extract_var($el, 'selected') ) {

339

340 $el['selected'] = 'selected';

class-fusion-widget-tabs.php (https://gitlab.com/webkod3r/tripolis) PHP · 240 lines

149 <p><?php echo strip_tags( $comment->comment_author ); ?> <?php _e( 'says:', 'Avada' ); ?></p>

150 <div class="fusion-meta">

151 <a class="comment-text-side" href="<?php echo get_permalink( $comment->ID ); ?>#comment-<?php echo $comment->comment_ID; ?>" title="<?php printf( __( '%1$s on %2$s', 'Avada' ), strip_tags( $comment->comment_author ), $comment->post_title ); ?>"><?php echo wp_trim_words( strip_tags( $comment->com_excerpt ), 12 ); ?></a>

152 </div>

153 </div>

212 <label for="<?php echo $this->get_field_id('posts'); ?>"><?php _e( 'Number of popular posts:', 'Avada' ); ?></label>

213 <input class="widefat" type="text" style="width: 30px;" id="<?php echo $this->get_field_id( 'posts' ); ?>" name="<?php echo $this->get_field_name( 'posts' ); ?>" value="<?php echo $instance['posts']; ?>" />

214 </p>

215 <p>

220 <label for="<?php echo $this->get_field_id( 'comments' ); ?>"><?php _e( 'Number of comments:', 'Avada' ); ?></label>

221 <input class="widefat" type="text" style="width: 30px;" id="<?php echo $this->get_field_id('comments'); ?>" name="<?php echo $this->get_field_name('comments'); ?>" value="<?php echo $instance['comments']; ?>" />

222 </p>

223 <p>

230 </p>

231 <p>

232 <input class="checkbox" type="checkbox" <?php checked( $instance['show_comments'], 'on' ); ?> id="<?php echo $this->get_field_id( 'show_comments' ); ?>" name="<?php echo $this->get_field_name( 'show_comments' ); ?>" />

233 <label for="<?php echo $this->get_field_id( 'show_comments' ); ?>"><?php _e( 'Show comments', 'Avada' ); ?></label>

comments.php (https://github.com/temperamente/temperamente.git) PHP · 166 lines

58

59 if( $instance['display_avatar']) { ?>

60 <a href="<?php echo $get_the_peralink; ?>" title="<?php echo $comment->post_title; ?>"><img class="comments-widget-avatar <?php echo $instance['avatar_align']; ?>" src="http://www.gravatar.com/avatar.php?gravatar_id=<?php echo md5($comment->comment_author_email); ?>&amp;size=<?php echo $instance['avatar_size']; ?>" /></a><?php

61 }

62

117 <td class="tt-widget-label" width="40%"><label for="<?php echo $this->get_field_id('title'); ?>">Title:</label></td>

118 <td class="tt-widget-content" width="60%"><input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($instance['title']); ?>" /></td>

119 </tr>

120

122 <td class="tt-widget-label"><label for="<?php echo $this->get_field_id('comments_number'); ?>">Number Of Comments:</label></td>

123 <td class="tt-widget-content"><input class="widefat" id="<?php echo $this->get_field_id('comments_number'); ?>" name="<?php echo $this->get_field_name('comments_number'); ?>" type="text" value="<?php echo esc_attr($instance['comments_number']); ?>" /></td>

124 </tr>

125

142 <input type="checkbox" name="<?php echo $this->get_field_name('display_author'); ?>" <?php checked('true', $instance['display_author']); ?> value="true" /> <?php _e('Author', 'themater'); ?>

143 <br /><input type="checkbox" name="<?php echo $this->get_field_name('display_comment'); ?>" <?php checked('true', $instance['display_comment']); ?> value="true" /> <?php _e('The Comment', 'themater'); ?>

144 <br /><input type="checkbox" name="<?php echo $this->get_field_name('display_avatar'); ?>" <?php checked('true', $instance['display_avatar']); ?> value="true" /> <?php _e('Avatar', 'themater'); ?>

reader.php (https://bitbucket.org/crevillo/enetcall.git) PHP · 279 lines

1 <?php

2 /**

3 * File containing the ezcDbSchemaMysqlReader class.

10

11 /**

12 * Handler for files containing PHP arrays that represent DB schema.

13 *

14 * @package DatabaseSchema

60

61 /**

62 * Loops over all the tables in the database and extracts schema information.

63 *

64 * This method extracts information about a database's schema from the

222

223 /**

224 * Loops over all the indexes in the table $table and extracts information.

225 *

226 * This method extracts information about the table $tableName's indexes

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

1 <?php

2 /**

3 * File containing the ezcTemplateAstNodeGenerator class

22 {

23 /**

24 * Initialize with correct node class name and regex for extraction.

25 * The extraction will remove the prefix <i>ezcTemplate</i> and the suffix

521

522 /**

523 * Extracts position data from the specified node and set in the out parameters.

524 * Ast nodes has no position so it always returns false.

525 *

529 * @param int $endLine The starting line for the node.

530 * @param int $endColumn The starting column for the node.

531 * @return bool True if the extraction was succesful.

532 */

533 protected function extractNodePosition( $node, &$startLine, &$startColumn, &$endLine, &$endColumn )

ecb_002dhistory.html (https://bitbucket.org/shuangxinyu/emacspack.git) HTML · 244 lines

135 because the node can point to a dead buffer (see

136 <code>ecb-kill-buffer-clears-history</code>). Use always <code>ecb-source-get-*</code>

137 to extract whatever you need from the node-data. E.g. use

138 <code>ecb-source-get-filename</code> to get the full filename of the source

139 of the node and use <code>ecb-source-get-buffername</code> or <code>ecb-source-get-buffer</code> to

ExtractTest.php (https://bitbucket.org/rchlmrtn/chiari.git) PHP · 154 lines

6

7 function setUp() {

8 $this->extractor = new StringExtractor;

9 $this->extractor->rules = array(

15 $expected = new Translation_Entry( array( 'singular' => 'baba', 'references' => array('baba.php:1') ) );

16 $result = $this->extractor->extract_entries('<?php __("baba"); ?>', 'baba.php' );

17 $this->assertEquals( $expected, $result->entries['baba'] );

18 }

116

117 function test_find_function_calls_2_args_bad_literal_bad() {

118 $this->assertEquals( array( array( 'name' => 'f', 'args' => array( null, "baba", null ), 'line' => 1 ) ), $this->extractor->find_function_calls( array('f'), '<?php f(5, "baba", 5 ); ' ) );

119 }

120

128

129 function test_find_function_calls_2_arg_literal_bad() {

130 $this->assertEquals( array( array( 'name' => 'f', 'args' => array( "baba", null ), 'line' => 1 ) ), $this->extractor->find_function_calls( array('f'), '<?php f( "baba", null ); ' ) );

131 }

132

widget-featured-services.php (https://gitlab.com/luyxtran264/myproject) PHP · 185 lines

145 <?php for ($i=1;$i<13;$i++) { ?>

146 <option <?php echo ($i == $instance['number_of_services'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option>

147 <?php } ?>

157 <option <?php echo 'date' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="date"><?php esc_html_e('Publish Date', 'transfers') ?></option>

158 <option <?php echo 'comment_count' == $instance['sort_by'] ? 'selected="selected"' : ''; ?> value="comment_count"><?php esc_html_e('Comment Count', 'transfers') ?></option>

159 </select>

160 </p>

163 <label for="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>"><?php esc_html_e('Sort services in descending order?', 'transfers') ?></label>

164 <input type="checkbox" <?php echo ($instance['sort_descending'] == '1' ? 'checked="checked"' : ''); ?> class="checkbox" id="<?php echo esc_attr( $this->get_field_id( 'sort_descending' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'sort_descending') ); ?>" value="1" />

165 </p>

166

169 <select class="services_widget_display_mode" id="<?php echo esc_attr( $this->get_field_id( 'display_mode' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'display_mode') ); ?>">

170 <option <?php echo 'small' == $instance['display_mode'] ? 'selected="selected"' : ''; ?> value="small"><?php esc_html_e('Small (usually sidebar)', 'transfers') ?></option>

171 <option <?php echo 'card' == $instance['display_mode'] ? 'selected="selected"' : ''; ?> value="card"><?php esc_html_e('Card (usually in grid view)', 'transfers') ?></option>

178 <?php for ($i=1;$i<6;$i++) { ?>

179 <option <?php echo ($i == $instance['services_per_row'] ? 'selected="selected"' : ''); ?> value="<?php echo esc_attr ( $i ); ?>"><?php echo esc_html($i); ?></option>

180 <?php } ?>

Cookie.php (https://bitbucket.org/cesarmedrano/cesarmedrano.git) PHP · 525 lines

1 <?php

2

3 namespace Guzzle\Plugin\Cookie;

64

65 $this->data = array_merge($defaults, $data);

66 // Extract the expires value and turn it into a UNIX timestamp if needed

67 if (!$this->getExpires() && $this->getMaxAge()) {

68 // Calculate the expires date

Blob.h (https://bitbucket.org/rako/enb355linux.git) C Header · 172 lines

166 //! Bounding ellipse

167 CvBox2D m_ellipse;

168 //! Sizes from image where blob is extracted

169 CvSize m_originalImageSize;

170 };

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.

586 Printf(f->code,"swig_result = Val_unit;\n" );

587

588 // Now write code to extract the parameters (this is super ugly)

589

590 for (i = 0, p = l; i < numargs; i++) {

eztemplateautoload.php (https://github.com/Yannix/ezpublish.git) PHP · 183 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.

21 'contains',

22 'compare',

23 'extract',

24 'extract_left',

25 'extract_right',

26 'begins_with',

27 'ends_with',

177

178

179 // eZTemplatePHPOperator is not autoload due to it's generic use

180 // it's up to the users of eZTemplate to initiate a proper usage

181 // for this operator class.

testTests.php (git://git.savannah.nongnu.org/unitcheck.git) PHP · 448 lines

1 <?php

2

3 /**

22 *

23 */

24 require_once('../includes/initialise.php');

25

26 // test ensures that the new test name was added

403

404 // test checks for the successful

405 // extraction of function name from

406 // function body

407 function extractFunctionNameTest() {

423 $functionBody3 = $database->escapeValue($temp3);

424

425 $fName1 = $test->extractFunctionName($functionBody1);

426 $fName2 = $test->extractFunctionName($functionBody2);

mfields-post-label.php (https://github.com/kaambiz/nighthawk.git) PHP · 218 lines

1 <?php

2

3 /**

198 ) );

199

200 extract( (array) $v );

201

202 if ( isset( self::$labels[$context][$type] ) ) {

GisLineString.php (git://github.com/phpmyadmin/phpmyadmin.git) PHP · 333 lines

1 <?php

2 /**

3 * Handles actions related to GIS LINESTRING objects

6 declare(strict_types=1);

7

8 namespace PhpMyAdmin\Gis;

9

10 use PhpMyAdmin\Image\ImageWrapper;

92 // Trim to remove leading 'LINESTRING(' and trailing ')'

93 $lineString = mb_substr($spatial, 11, -1);

94 $points_arr = $this->extractPoints($lineString, $scale_data);

95

96 foreach ($points_arr as $point) {

153 // Trim to remove leading 'LINESTRING(' and trailing ')'

154 $linesrting = mb_substr($spatial, 11, -1);

155 $points_arr = $this->extractPoints($linesrting, $scale_data);

156

157 foreach ($points_arr as $point) {

pma_gis_geometry.php (https://github.com/slikk66/DbAdmin.git) PHP · 361 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

4 * Base class for all GIS data type classes

5 *

6 * @package PhpMyAdmin-GIS

7 */

8

9 if (! defined('PHPMYADMIN')) {

10 exit;

11 }

14 * Base class for all GIS data type classes.

15 *

16 * @package PhpMyAdmin-GIS

17 */

18 abstract class PMA_GIS_Geometry

PackageScaffolderAbstract.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 251 lines

1 <?php

2 /**

3 * Zend Framework

48 return;

49 }

50 file_put_contents('php://stderr', $message . ($newLine ? "\r\n" : ''));

51 }

52

53 /**

54 * Extract resources to a file system path

55 *

56 * @param Phar $phar Phar archive.

57 * @param string $path Output path root.

58 */

59 protected function extractResources(Phar $phar, $path)

60 {

61 $this->deleteDirectory($path);

widget-login-form.php (https://bitbucket.org/akeda/bmw-id-hris.git) PHP · 262 lines

185 <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'members' ); ?></label>

186 <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" />

187 </p>

188 <p>

189 <label for="<?php echo $this->get_field_id( 'label_username' ); ?>"><code>label_username</code></label>

190 <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_username' ); ?>" name="<?php echo $this->get_field_name( 'label_username' ); ?>" value="<?php echo $instance['label_username']; ?>" />

191 </p>

192 <p>

201 <label for="<?php echo $this->get_field_id( 'label_remember' ); ?>"><code>label_remember</code></label>

202 <input type="text" class="widefat code" id="<?php echo $this->get_field_id( 'label_remember' ); ?>" name="<?php echo $this->get_field_name( 'label_remember' ); ?>" value="<?php echo $instance['label_remember']; ?>" />

203 </p>

204

242 <label for="<?php echo $this->get_field_id( 'show_avatar' ); ?>">

243 <input class="checkbox" type="checkbox" <?php checked( $instance['show_avatar'], true ); ?> id="<?php echo $this->get_field_id( 'show_avatar' ); ?>" name="<?php echo $this->get_field_name( 'show_avatar' ); ?>" /> <?php _e('Display avatar?', 'widgets-reloaded'); ?></label>

244 </p>

245 <p>

compare_all_rtti_info.bas (https://github.com/freebasic/fbc.git) Basic · 140 lines

1 '' examples/manual/proguide/compare_all_rtti_info.bas

2 ''

3 '' Example extracted from the FreeBASIC Manual

4 '' from topic 'OBJECT built-in and RTTI info'

5 ''

6 '' See Also: https://www.freebasic.net/wiki/wikka.php?wakka=ProPgObjectRtti

7 '' --------

8

ByteIndexed.h (https://github.com/Morriar/ProxyJDK.git) C Header · 228 lines

114

115 #define DeclareByteIndexedPixelData(PREFIX)

116 #define ExtractByteIndexedPixelData(PIXEL, PREFIX)

117

118 #define StoreByteIndexedPixelData(pPix, x, pixel, PREFIX) \

122 do { \

123 jint r, g, b; \

124 ExtractIntDcmComponentsX123(rgb, r, g, b); \

125 (pixel) = SurfaceData_InvColorMap((pRasInfo)->invColorTable, \

126 r, g, b); \

136 do { \

137 jint rgb = PREFIX ## Lut[pRas[x]]; \

138 ExtractIntDcmComponentsX123(rgb, r, g, b); \

139 } while (0)

140

LinkExtractor.html (https://github.com/torstefan/BiffDroid.git) HTML · 140 lines

5 <!-- Generated by javadoc (build 1.5.0-rc) on Sat Jun 10 11:36:54 EDT 2006 -->

6 <TITLE>

7 Uses of Class org.htmlparser.parserapplications.LinkExtractor (HTML Parser 1.6)

8 </TITLE>

9

14 function windowTitle()

15 {

16 parent.document.title="Uses of Class org.htmlparser.parserapplications.LinkExtractor (HTML Parser 1.6)";

17 }

18 </SCRIPT>

36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>

37 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>

38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../org/htmlparser/parserapplications/LinkExtractor.html" title="class in org.htmlparser.parserapplications"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD>

39 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>

40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>

adminpluginshandler.php (https://github.com/itnaegele/system.git) PHP · 245 lines

1 <?php

2 /**

3 * @package Habari

32 $error = '';

33

34 if ( Utils::php_check_file_syntax( $file, $error ) ) {

35 $plugin['debug'] = false;

36 $plugin['info'] = Plugins::load_info( $file );

189 public function get_plugin_toggle()

190 {

191 $extract = $this->handler_vars->filter_keys( 'plugin_id', 'action' );

192 foreach ( $extract as $key => $value ) {

session_management.rb (https://bitbucket.org/javierbuilder/uncontabilidad.git) Ruby · 162 lines

81 # are valid arguments.

82 def session(*args)

83 options = args.extract_options!

84

85 options[:disabled] = false if args.delete(:on)

Middleware.php (https://gitlab.com/techniconline/kmc) PHP · 249 lines

1 <?php

2 namespace GuzzleHttp;

3

36 return $handler($request, $options)

37 ->then(function ($response) use ($cookieJar, $request) {

38 $cookieJar->extractCookies($request, $response);

39 return $response;

40 }

class-shortcodes.php (https://github.com/NateJacobs/Brickset-API.git) PHP · 164 lines

1 <?php

2

3 class BricksetAPIShortcode extends BricksetAPISearch

32 public function get_set( $atts )

33 {

34 extract( shortcode_atts( array(

35 'number' => '',

36 ), $atts, 'bs_set' ) );

class-avada-blog.php (https://gitlab.com/webkod3r/tripolis) PHP · 236 lines

1 <?php

2

3 class Avada_Blog {

86 public function get_content_stripped_and_excerpted( $excerpt_length, $content ) {

87 $pattern = get_shortcode_regex();

88 $content = preg_replace_callback( "/$pattern/s", 'avada_extract_shortcode_contents', $content );

89 $content = explode( ' ', $content, $excerpt_length + 1 );

90

158

159 $pattern = get_shortcode_regex();

160 $content = preg_replace_callback( "/$pattern/s", 'avada_extract_shortcode_contents', $raw_content );

161

162 if ( 'Characters' == Avada()->settings->get( 'excerpt_base' ) ) {

204

205 $pattern = get_shortcode_regex();

206 $content = preg_replace_callback( "/$pattern/s", 'avada_extract_shortcode_contents', $raw_content );

207

208 if ( true == $test_strip_html ) {

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

1 <?php

2

3 namespace Illuminate\Routing;

51 }

52

53 // We need to extract the base resource from the resource name. Nested resources

54 // are supported in the framework, but we need to know what name to use for a

55 // place-holder on the route wildcards, which should be the base resources.

75 list($name, $prefix) = $this->getResourcePrefix($name);

76

77 // We need to extract the base resource from the resource name. Nested resources

78 // are supported in the framework, but we need to know what name to use for a

79 // place-holder on the route wildcards, which should be the base resources.

86

87 /**

88 * Extract the resource and prefix from a resource name.

89 *

90 * @param string $name

ReleaseController.php (https://gitlab.com/brucealdridge/yii2) PHP · 211 lines

1 <?php

2 /**

3 * @link http://www.yiiframework.com/

116

117 /**

118 * Extract changelog content for a specific version

119 */

120 protected function splitChangelog($file, $version)

200 '/function getVersion\(\)\n \{\n return \'(.+?)\';/',

201 "function getVersion()\n {\n return '$version';",

202 YII2_PATH . '/BaseYii.php');

203 }

204

GuidedSectionExtraction.h (https://gitlab.com/envieidoc/Clover) C Header · 151 lines

28 // Forward reference for pure ANSI compatability

29

30 typedef struct _EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL;

31

32

54 must be set on return. ExtractSection() is callable only from

55 TPL_NOTIFY and below. Behavior of ExtractSection() at any

56 EFI_TPL above TPL_NOTIFY is undefined. Type EFI_TPL is

57 defined in RaiseTPL() in the UEFI 2.0 specification.

88 returned by ExtractSection().

89 These bits reflect the status of

90 the extraction operation. The bit

91 pattern in both regions must be

92 the same, as the local and

132 struct _EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL {

133 EFI_EXTRACT_GUIDED_SECTION ExtractSection;

134 };

135

GameValidator.class.php (https://github.com/russx2/tap-trap.git) PHP · 444 lines

1 <?php

2

3 require_once DIR_CLASS . '/MathRandom.class.php';

67 public function processMoves( $moves) {

68

69 // extract click data from string

70 $movesIndividual = explode( '|', $moves);

71

element_info.php (https://github.com/drobbins/s3db.git) PHP · 439 lines

1 <?php

2 /**

3

163 function get_statement_info($S)

164 {

165 extract($S);

166 #echo '<pre>';print_r($S);

167 #$db= $_SESSION['db'];

389 function get_project_rules($P)

390 {

391 extract ($P);

392

393 if ($GLOBALS['s3db_info']['server']['db']['db_type'] == 'mysql')

ezisbnregistrantrange.php (https://github.com/GunioRobot/ezpublish.git) PHP · 205 lines

1 <?php

2 /**

3 * File containing the eZISBNRegistrantRange class.

10

11 /*!

12 \class eZISBNRegistrantRange ezisbnregistrantrange.php

13 \brief The class eZISBNRegistrantRange handles Registrant ranges.

14

144 \static

145

146 Will extract the registrant number based on the different ranges

147 which is based on the 5 first digits after the Prefix field and the registration group number.

148

157 \return the registrant range object if found and false if not found.

158 */

159 static function extractRegistrant( $isbnNr, $group, $groupRange, &$registrantLength )

160 {

161 $registrant = false;

frame.c (https://gitlab.com/ibiscybernetics/ratpoison_minus) C · 302 lines

184 frame->dedicated);

185

186 /* Extract the string and return it, and don't forget to free s. */

187 tmp = sbuf_get (s);

188 free (s);

image.php (https://gitlab.com/Blueprint-Marketing/interoccupy.net) PHP · 127 lines

7 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

8

9 <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">

10

11 <header>

13 <h1 class="single-title" itemprop="headline"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h1>

14

15 <p class="meta"><?php _e("Posted", "bonestheme"); ?> <time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time('F jS, Y'); ?></time> <?php _e("by", "bonestheme"); ?> <?php the_author_posts_link(); ?>.</p>

16

17 </header> <!-- end article header -->

37 <li class="next pull-left"><?php next_image_link() ?></li>

38 <li class="previous pull-right"><?php previous_image_link() ?></li>

39 </ul>

40

49 </article> <!-- end article -->

50

51 <?php comments_template(); ?>

52

53 <?php endwhile; ?>

gd_webp.cpp (https://gitlab.com/Blueprint-Marketing/hhvm) C++ · 210 lines

48 if (U) free(U);

49 if (V) free(V);

50 php_gd_error("WebP decode: fail to decode input data");

51 return NULL;

52 }

81 gdFree(filedata);

82 }

83 php_gd_error("WebP decode: realloc failed");

84 return NULL;

85 }

98 if (U) free(U);

99 if (V) free(V);

100 php_gd_error("WebP decode: fail to decode input data");

101 return NULL;

102 }

class-fusion-widget-ad-125-125.php (https://gitlab.com/webkod3r/tripolis) PHP · 110 lines

70 <label for="<?php echo $this->get_field_id( 'ad_125_img_1' ); ?>"><?php _e( 'Image Ad Link:', 'Avada' ); ?></label>

71 <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'ad_125_img_1' ); ?>" name="<?php echo $this->get_field_name( 'ad_125_img_1' ); ?>" value="<?php echo $instance['ad_125_img_1']; ?>" />

72 </p>

73 <p>

92 <label for="<?php echo $this->get_field_id( 'ad_125_link_3' ); ?>"><?php _e( 'Ad Link:', 'Avada' ); ?></label>

93 <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'ad_125_link_3' ); ?>" name="<?php echo $this->get_field_name( 'ad_125_link_3' ); ?>" value="<?php echo $instance['ad_125_link_3']; ?>" />

94 </p>

95 <p><strong><?php printf( __( 'Ad %s', 'Avada' ), '4' ); ?></strong></p>

97 <label for="<?php echo $this->get_field_id( 'ad_125_img_4' ); ?>"><?php _e( 'Image Ad Link:', 'Avada' ); ?></label>

98 <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'ad_125_img_4' ); ?>" name="<?php echo $this->get_field_name( 'ad_125_img_4' ); ?>" value="<?php echo $instance['ad_125_img_4']; ?>" />

99 </p>

100 <p>

101 <label for="<?php echo $this->get_field_id( 'ad_125_link_4' ); ?>"><?php _e( 'Ad Link:', 'Avada' ); ?></label>

102 <input class="widefat" type="text" id="<?php echo $this->get_field_id( 'ad_125_link_4' ); ?>" name="<?php echo $this->get_field_name( 'ad_125_link_4' ); ?>" value="<?php echo $instance['ad_125_link_4']; ?>" />

103 </p>

104 <?php

FindSFML.cmake (https://github.com/deadalnix/SFML.git) CMake · 175 lines

52 set(SFML_VERSION_OK TRUE)

53 if(SFML_FIND_VERSION AND SFML_INCLUDE_DIR)

54 # extract the major and minor version numbers from SFML/Config.hpp

55 FILE(READ "${SFML_INCLUDE_DIR}/SFML/Config.hpp" SFML_CONFIG_HPP_CONTENTS)

56 STRING(REGEX MATCH ".*#define SFML_VERSION_MAJOR ([0-9]+).*#define SFML_VERSION_MINOR ([0-9]+).*" SFML_CONFIG_HPP_CONTENTS "${SFML_CONFIG_HPP_CONTENTS}")

59 math(EXPR SFML_REQUESTED_VERSION "${SFML_FIND_VERSION_MAJOR} * 10 + ${SFML_FIND_VERSION_MINOR}")

60

61 # if we could extract them, compare with the requested version number

62 if (SFML_VERSION_MAJOR)

63 # transform version numbers to an integer

nosqldriver.php (https://github.com/fastslack/joomla-cms.git) PHP · 463 lines

1 <?php

2 /**

3 * @package Joomla.UnitTest

213 * Get the number of returned rows for the previous executed SQL statement.

214 *

215 * @param resource $cursor An optional database cursor resource to extract the row count from.

216 *

217 * @return integer The number of returned rows.

eztemplateautoload.php (https://github.com/xserna/ezpublish.git) PHP · 183 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 1999-2014 eZ Systems AS. All rights reserved.

21 'contains',

22 'compare',

23 'extract',

24 'extract_left',

25 'extract_right',

26 'begins_with',

27 'ends_with',

177

178

179 // eZTemplatePHPOperator is not autoload due to it's generic use

180 // it's up to the users of eZTemplate to initiate a proper usage

181 // for this operator class.

eztemplateautoload.php (https://github.com/crevillo/ezpublish-legacy.git) PHP · 183 lines

1 <?php

2 /**

3 * @copyright Copyright (C) 1999-2013 eZ Systems AS. All rights reserved.

21 'contains',

22 'compare',

23 'extract',

24 'extract_left',

25 'extract_right',

26 'begins_with',

27 'ends_with',

177

178

179 // eZTemplatePHPOperator is not autoload due to it's generic use

180 // it's up to the users of eZTemplate to initiate a proper usage

181 // for this operator class.

BootstrapPaginatorHelper.php (https://bitbucket.org/reyx/p0001festivalcachorroquente.git) PHP · 254 lines

1 <?php

2 /**

3 * Bootstrap Paginator Helper

4 *

5 * PHP 5

6 *

7 * Licensed under The MIT License

10 * @author Yusuf Abdulla Shunan <shunan@maldicore.com>

11 * @copyright Copyright 2012, Maldicore Group Pvt Ltd. (http://maldicore.com)

12 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)

13 * @since CakePHP(tm) v 2.1.1

86 return false;

87 }

88 extract($options);

89 unset($options['tag'], $options['after'], $options['model'], $options['separator'], $options['ellipsis'], $options['class']);

90 $out = '';

TreeBehaviorUuidTest.php (https://bitbucket.org/00firestar00/ejfirestar.com.git) PHP · 298 lines

5 * Tree test using UUIDs

6 *

7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>

8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

9 *

13 *

14 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)

15 * @link http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests

16 * @package Cake.Test.Case.Model.Behavior

17 * @since CakePHP(tm) v 1.2.0.5330

64 */

65 public function testAddWithPreSpecifiedId() {

66 extract($this->settings);

67 $this->Tree = new $modelClass();

68 $this->Tree->order = null;

local.php (https://gitlab.com/surya.ayrus22/kcethsw1) PHP · 878 lines

1 <?php

2

3 class acf_local {

153 if( empty($field_group['local']) ) {

154

155 $field_group['local'] = 'php';

156

157 }

159

160 // remove fields

161 $fields = acf_extract_var($field_group, 'fields');

162

163

SetCookie.php (https://gitlab.com/wuhang2003/rainloop-webmail) PHP · 410 lines

1 <?php

2

3 namespace GuzzleHttp\Cookie;

77 {

78 $this->data = array_replace(self::$defaults, $data);

79 // Extract the Expires value and turn it into a UNIX timestamp if needed

80 if (!$this->getExpires() && $this->getMaxAge()) {

81 // Calculate the Expires date

PeCoffLoaderEx.c (https://gitlab.com/envieidoc/Clover) C · 268 lines

5 are licensed and made available under the terms and conditions of the BSD License

6 which accompanies this distribution. The full text of the license may be found at

7 http://opensource.org/licenses/bsd-license.php

8

9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,

118

119 //

120 // Extract the lower 32 bits of IMM64 from bundle

121 //

122 EXT_IMM64(FixupVal,

FileSystem.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 249 lines

1 <?php

2 /**

3 * Copyright © 2016 Magento. All rights reserved.

78 public function getFilename($fileId, array $params = [])

79 {

80 list($module, $filePath) = \Magento\Framework\View\Asset\Repository::extractModule(

81 $this->normalizePath($fileId)

82 );

113 public function getTemplateFileName($fileId, array $params = [])

114 {

115 list($module, $filePath) = \Magento\Framework\View\Asset\Repository::extractModule(

116 $this->normalizePath($fileId)

117 );

133 public function getStaticFileName($fileId, array $params = [])

134 {

135 list($module, $filePath) = \Magento\Framework\View\Asset\Repository::extractModule(

136 $this->normalizePath($fileId)

137 );

class-wp-sitemaps-posts.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 228 lines

1 <?php

2 /**

3 * Sitemaps: WP_Sitemaps_Posts class

55 * @since 5.5.0

56 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class

57 * for PHP 8 named parameter support.

58 *

59 * @param int $page_num Page of results.

108 */

109 if ( 'page' === $post_type && 1 === $page_num && 'posts' === get_option( 'show_on_front' ) ) {

110 // Extract the data needed for home URL to add to the array.

111 $sitemap_entry = array(

112 'loc' => home_url( '/' ),

150 * @since 5.5.0

151 * @since 5.9.0 Renamed `$post_type` to `$object_subtype` to match parent class

152 * for PHP 8 named parameter support.

153 *

154 * @param string $object_subtype Optional. Post type name. Default empty.

paymethods.php (https://bitbucket.org/seyar/kinda.local.git) PHP · 347 lines

1 <?php

2

3 defined('SYSPATH') OR die('No direct access allowed.');

253 );

254

255 $params = Arr::extract($_POST, $keys, '');

256

257 $post = Validate::factory($params)

eztemplateexecuteoperator.php (https://github.com/zerustech/ezpublish.git) PHP · 345 lines

1 <?php

2 /**

3 * File containing the eZTemplateExecuteOperator class.

10

11 /*!

12 \class eZTemplateExecuteOperator eztemplateexecuteoperator.php

13 \brief The class eZTemplateExecuteOperator does

14

134 else

135 {

136 $placement = eZTemplateNodeTool::extractFunctionNodePlacement( $node );

137 $tpl->warning( 'fetch_alias', "Fetch alias '$aliasFunctionName' is not defined in fetchalias.ini", $placement );

138 return array();

204 $defaultValue = 'null';

205 if ( !$parameterDefinition['required'] )

206 $defaultValue = eZPHPCreator::variableText( $parameterDefinition['default'], 0, 0, false );

207

208 $parametersSelection = '%1%[\'' . $parameterName . '\']';

ContentTypeReader.java (https://bitbucket.org/haris_peco/debrief.git) Java · 252 lines

11 *

12 * You can obtain a copy of the LGPL 2.1 license at

13 * http://www.opensource.org/licenses/lgpl-2.1.php

14 *

15 * You can obtain a copy of the CDDL 1.0 license at

16 * http://www.opensource.org/licenses/cddl1.php

17 *

18 * You can obtain a copy of the EPL 1.0 license at

19 * http://www.opensource.org/licenses/eclipse-1.0.php

20 *

21 * See the Licenses for the specific language governing permissions and

SensorManager.php (https://gitlab.com/Drulenium-bot/monitoring) PHP · 237 lines

1 <?php

2 /**

3 * @file

66 */

67 public function createInstance($plugin_id, array $configuration = array()) {

68 // Configuration contains SensorConfig object. Extracting

69 // it to use for sensor object creation.

70 $sensor_config = $configuration['sensor_config'];

73 /** @var \Drupal\monitoring\SensorPlugin\SensorPluginInterface $class */

74 $class = $definition['class'];

75 // Creating instance of the sensor. Refer SensorPlugin.php for arguments.

76 return $class::create(\Drupal::getContainer(), $sensor_config, $plugin_id, $definition);

77 }

Stream.php (https://gitlab.com/yousafsyed/easternglamor) PHP · 297 lines

1 <?php

2 /**

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

15

16 /**

17 * Represents an HTTP response message as PHP stream resource

18 */

19 class Stream extends Response

205 if (strlen($response->content) > $contentLength) {

206 throw new Exception\OutOfRangeException(sprintf(

207 'Too much content was extracted from the stream (%d instead of %d bytes)',

208 strlen($response->content),

209 $contentLength

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

79

80 QString newCode = code;

81 extractPragmas(newCode);

82 lexer.setCode(newCode, 1);

83

206

207 QString newCode = code;

208 QList<QDeclarativeJS::AST::SourceLocation> pragmas = extractPragmas(newCode);

209 lexer.setCode(newCode, 1);

210

249 library

250 */

251 QList<QDeclarativeJS::AST::SourceLocation> QmlCodeMarker::extractPragmas(QString &script)

252 {

253 const QString pragma(QLatin1String("pragma"));

LICENSE (https://jedit.svn.sourceforge.net/svnroot/jedit) License · 32 lines ✨ Summary

The license allows for internal distribution and use of the Unicode Character Database files, as well as redistribution to third parties with notice and disclaimer retained. It disclaims fitness for purpose and makes no warranties, and limits rights to redistribute the data. The recipient agrees to determine applicability of information provided.

1 The files Blocks.txt and UnicodeData.txt are extracted from the Unicode

2 Character Database, which is covered by the following license:

3

24 Character Database can be redistributed to third parties or other

25 organizations (whether for profit or not) as long as this notice and the

26 disclaimer notice are retained. Information can be extracted from these

27 files and used in documentation or programs, as long as there is an

28 accompanying notice indicating the source.

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

This Java code is part of a BeanShell implementation, a JavaScript-like scripting language for Java. It provides an interface to interact with a Java application’s UI components and perform operations on them. The code sets up default variables for a script, handles exceptions, and creates an interpreter instance. It also manages class loading and listener registration for the interpreter.

694 //{{{ unwrapException() method

695 /**

696 * This extracts an exception from a 'wrapping' exception, as BeanShell

697 * sometimes throws. This gives the user a more accurate error traceback

698 */

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

57 void deleteLineBoxes(RenderArena*);

58

59 void extractLineBox(InlineFlowBox*);

60 void attachLineBox(InlineFlowBox*);

61 void removeLineBox(InlineFlowBox*);

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

848 LineMidpointState& lineMidpointState = resolver.midpointState();

849

850 // We also find the first clean line and extract these lines. We will add them back

851 // if we determine that we're able to synchronize after handling all our dirty lines.

852 InlineIterator cleanLineStart;

CompilerX86X64.h (http://hadesmem.googlecode.com/svn/trunk/) C Header · 8926 lines ✨ Summary

This is a C++ header file that defines classes and functions for an assembler (AsmJit) compiler utility. It provides functionality for code generation, memory management, error handling, logging, and emitting comments. The AsmJit::CompilerCore class serves as the core of the compiler, while the AsmJit::CompilerUtil class offers utility methods. The classes and functions are designed to work together to generate assembly code from a high-level programming language.

741 Mem* _memOp;

742

743 //! @brief Variables (extracted from operands).

744 VarAllocRecord* _variables;

745

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

This Java class represents an archive entry in a tar file. It provides methods to set and get various attributes of the entry, such as its name, modification time, user and group IDs, mode, size, and magic number. The class also includes methods for writing and parsing the entry’s header information to/from a byte array.

12 * ArEntries that are created from the header bytes read from

13 * an archive are instantiated with the ArEntry( byte[] )

14 * constructor. These entries will be used when extracting from

15 * or listing the contents of an archive. These entries have their

16 * header filled in using the header bytes. They also set the File

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

121

122 QString newCode = document;

123 extractPragmas(newCode);

124 lexer->setCode(newCode, 1);

125

188 library

189 */

190 void QmlCodeParser::extractPragmas(QString &script)

191 {

192 const QString pragma(QLatin1String("pragma"));

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

83 /*

84 * makeTableDataForMode()

85 * This extracts the abbreviations from the named set. If extraction is

86 * successful, the vector named by the first parameter will have its

87 * elements removed before the variable is set to the newly created vector.

maple.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 736 lines

275 <FUNCTION>expandon</FUNCTION>

276 <FUNCTION>exports</FUNCTION>

277 <FUNCTION>extract</FUNCTION>

278 <FUNCTION>extrema</FUNCTION>

279 <FUNCTION>Factor</FUNCTION>

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

47 , m_bidiEmbeddingLevel(0)

48 , m_dirty(false)

49 , m_extracted(false)

50 #if ENABLE(SVG)

51 , m_hasVirtualLogicalHeight(false)

82 , m_bidiEmbeddingLevel(0)

83 , m_dirty(dirty)

84 , m_extracted(extracted)

85 #if ENABLE(SVG)

86 , m_hasVirtualLogicalHeight(false)

187 virtual void setConstructed() { m_constructed = true; }

188

189 void setExtracted(bool b = true) { m_extracted = b; }

190

191 void setFirstLineStyleBit(bool f) { m_firstLine = f; }

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

904 String XMLHttpRequest::responseMIMEType() const

905 {

906 String mimeType = extractMIMETypeFromMediaType(m_mimeTypeOverride);

907 if (mimeType.isEmpty()) {

908 if (m_response.isHTTP())

909 mimeType = extractMIMETypeFromMediaType(m_response.httpHeaderField("Content-Type"));

910 else

911 mimeType = m_response.mimeType();

VcsChangeDetailsManager.java (https://bitbucket.org/nbargnesi/idea.git) Java · 365 lines

49

50 /**

51 * todo extract interface and create stub for dummy project

52 * @author irengrig

53 * Date: 6/15/11

php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines

11 </PROPS>

12 <RULES IGNORE_CASE="TRUE">

13 <SPAN TYPE="MARKUP" DELEGATE="PHP">

14 <BEGIN>&lt;?php</BEGIN>

16 </SPAN>

17

18 <SPAN TYPE="MARKUP" DELEGATE="PHP">

19 <BEGIN>&lt;?</BEGIN>

20 <END>?&gt;</END>

21 </SPAN>

22

23 <SPAN TYPE="MARKUP" DELEGATE="PHP">

24 <BEGIN>&lt;%=</BEGIN>

25 <END>%&gt;</END>

64

65 <RULES SET="TAGS" DEFAULT="MARKUP">

66 <SPAN TYPE="MARKUP" DELEGATE="PHP">

67 <BEGIN>&lt;?php</BEGIN>

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.

83 public:

84 ~TempBlendedBufferInfo(void);

85 /// Utility method, extract info from the given VertexData

86 void extractFrom(const VertexData* sourceData);

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

This Assembly code is part of a CPU emulator, specifically handling exceptions and access errors. It checks if an exception occurred due to an invalid addressing mode, and if so, restores the program counter (PC) and registers to their pre-instruction values. If the exception was caused by a post-increment or pre-decrement operation, it adjusts the register values accordingly before returning control to the operating system.

672 # will never take this exception.

673 btst &0x5,1+EXC_CMDREG(%a6) # is operation monadic or dyadic?

674 beq.b fovfl_extract # monadic

675

676 bfextu EXC_CMDREG(%a6){&6:&3},%d0 # dyadic; load dst reg

685 mov.b %d0,DTAG(%a6) # save dst optype tag

686

687 fovfl_extract:

688

689 #$# mov.l FP_SRC_EX(%a6),TRAP_SRCOP_EX(%a6)

698

699 mov.b 1+EXC_CMDREG(%a6),%d1

700 andi.w &0x007f,%d1 # extract extension

701

702 andi.l &0x00ff01ff,USER_FPSR(%a6) # zero all but accured field

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

47 virtual ~IDBBackingStore() {};

48

49 virtual bool extractIDBDatabaseMetaData(const String& name, String& foundVersion, int64_t& foundId) = 0;

50 virtual bool setIDBDatabaseMetaData(const String& name, const String& version, int64_t& rowId, bool invalidRowId) = 0;

51

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

352

353 <para>Aspell is able to deal automatically with certain kinds of documents,

354 via <emphasis>Filter Modes</emphasis>. Here is an extract of what <code>aspell --help</code>

355 says on my computer:</para>

356 <programlisting linenumbering="unnumbered">

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>.

module-begin.rkt (git://github.com/gmarceau/PLT.git) Racket · 210 lines ✨ Summary

This Racket code defines a module expansion system that processes a module definition, including imports, definitions, and signatures. It expands requires, provides, and other forms to make them visible to the module expander, and then applies the module-expansion machinery to process the expanded form. The result is a fully expanded module definition.

38 ;; takes a list of syntax objects (the result of syntax-e) and returns all the syntax objects that correspond to

39 ;; a signature declaration. Syntax: (: id signature)

40 (define extract-signatures

41 (lambda (lostx)

42 (let* ((table (make-bound-identifier-mapping))

161 (let ((top-level (reverse (syntax->list (syntax (e1 ...))))))

162 (let-values (((sig-table expr-list)

163 (extract-signatures top-level)))

164 (expand-signature-expressions sig-table expr-list)))))

165 ((frm e3s e1s def-ids)

partfunction.h (git://pkgs.fedoraproject.org/scilab) C Header · 29 lines

15

16 /**

17 * part : extraction of strings

18 * @param[in] stringInput : matrix of strings

19 * @param[in] m : col of stringInput

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

This Java code defines a TaskList class that displays tasks in a table format, with features like editing and displaying task buffers. It interacts with an “EditBus” system to receive messages and updates about tasks. The class provides methods for adding and removing notifications, handling messages, and accessing its components (view, table, data model).

200 if(buffer.isDirty() && e.getClickCount() == 1)

201 {

202 TaskListPlugin.extractTasks(view.getBuffer());

203 }

204 Point p = e.getPoint();

shared_ptr.cpp (http://hadesmem.googlecode.com/svn/trunk/) C++ · 0 lines ✨ Summary

This C++ code defines a Boost Python module named shared_ptr_ext that provides a set of classes and functions for working with shared pointers in Python. It exposes various classes, including A, X, Y, Z, and Test, along with their corresponding Python wrappers, allowing users to interact with them using Python. The code also defines several functions for manipulating shared pointers.

7 #include <boost/python/class.hpp>

8 #include <boost/python/call_method.hpp>

9 #include <boost/python/extract.hpp>

10 #include <boost/python/def.hpp>

11 #include <boost/shared_ptr.hpp>

compil_modules1_1.com (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 133 lines

42 $ call make swig_root:[vms.o_alpha]perl5.obj -

43 "cxx ''cxxflags'" perl5.cxx

44 $ call make swig_root:[vms.o_alpha]php4.obj -

45 "cxx ''cxxflags'" php4.cxx

89 $ read/end=module_not_found swigtmp r

90 $ modfound = 1

91 $ Time = f$cvtime(f$extract(49, 20, r))

92 $ goto end_search_module

93 $ module_not_found:

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

61 }

62

63 QueryToken* TokenList::extract(){

64 //Func - Extract token from the TokenList

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

This HTML code generates a help page for a plugin called HexTools, which extracts data from a hex dump and saves it to a file or clipboard. The page provides information on how to use the plugin, its license, and contact options for feedback and bug reports. It includes images and links to external resources.

31 <h3>Presentation</h3>

32

33 <p>HexTools Plugin extracts data from a hex dump and saves into a file or into the clipboard.</p>

34

35 <a name="operation">

gen_except.S (http://photon-android.googlecode.com/svn/) Assembly · 468 lines ✨ Summary

This Assembly code is part of a 68040 processor’s exception handling mechanism. It handles various types of exceptions, including unsupported data type exceptions, and restores the program counter to a saved value. The code also checks for specific conditions, such as idle status, and performs workarounds for hardware bugs. Its primary goal is to recover from an exception and return control to the program.

74 movel CMDREG1B(%a6),%d0 |fix cmd1b to make it

75 andl #0x03c30000,%d0 |work for cmd3b

76 bfextu CMDREG1B(%a6){#13:#1},%d1 |extract bit 2

77 lsll #5,%d1

78 swap %d1

79 orl %d1,%d0 |put it in the right place

80 bfextu CMDREG1B(%a6){#10:#3},%d1 |extract bit 3,4,5

81 lsll #2,%d1

82 swap %d1

193 movel CMDREG1B(%a6),%d0

194 andl #0x03c30000,%d0 |work for cmd3b

195 bfextu CMDREG1B(%a6){#13:#1},%d1 |extract bit 2

196 lsll #5,%d1

197 swap %d1

aclocal.m4 (https://bitbucket.org/freebsd/freebsd-head/) m4 · 905 lines ✨ Summary

This M4 code is a collection of configuration and build scripts for a C library, likely the GNU Binutils. It sets up various macros and functions for building and testing the library, including support for different tar formats, gettext, and other dependencies. The script also includes several external M4 files that provide additional functionality.

264 [AC_ARG_ENABLE(dependency-tracking,

265 [ --disable-dependency-tracking speeds up one-time build

266 --enable-dependency-tracking do not reject slow dependency extractors])

267 if test "x$enable_dependency_tracking" != xno; then

268 am_depcomp="$ac_aux_dir/depcomp"

301 continue

302 fi

303 # Extract the definition of DEPDIR, am__include, and am__quote

304 # from the Makefile without running `make'.

305 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`

814 # tardir=directory && $(am__tar) > result.tar

815 #

816 # Substitute a variable $(am__untar) that extract such

817 # a tarball read from stdin.

818 # $(am__untar) < result.tar

dt_cg.c (https://bitbucket.org/freebsd/freebsd-head/) C · 2007 lines ✨ Summary

This C code is part of a compiler’s intermediate representation (IR) generation process for a dynamic typing system. It generates machine-specific code for a given IR node, which represents an expression in the source code. The code creates and manages registers, handles different types of nodes (e.g., identifiers, integers), and appends instructions to a list of generated code.

221 /*

222 * If the result of a "." or "->" operation is a bit-field, we use this routine

223 * to generate an epilogue to the load instruction that extracts the value. In

224 * the diagrams below the "ld??" is the load instruction that is generated to

225 * load the containing word that is generating prior to calling this function.

semijoin.q.out (https://svn.apache.org/repos/asf/incubator/hcatalog/) text · 0 lines

201 type: string

202 Reduce Operator Tree:

203 Extract

204 File Output Operator

205 compressed: false

328 type: string

329 Reduce Operator Tree:

330 Extract

331 File Output Operator

332 compressed: false

457 type: string

458 Reduce Operator Tree:

459 Extract

460 File Output Operator

461 compressed: false

Meat.F90 (git://github.com/jbeezley/wrf-fire.git) FORTRAN Modern · 919 lines ✨ Summary

This code defines a set of Fortran modules and subroutines for working with time-related data structures, such as times and time intervals. It provides functions for converting between different representations of time, calculating differences in time, and formatting time values as strings. The code is likely used in a scientific or numerical computing context to handle temporal data.

329 #endif

330 IF ( MM == -1 ) THEN

331 CALL wrf_error_fatal( 'timegetmonth: could not extract month of year from time' )

332 ENDIF

333 END SUBROUTINE timegetmonth

srfi-86.html (git://github.com/gmarceau/PLT.git) HTML · 1938 lines ✨ Summary

This HTML code outputs a reference page for the Scheme programming language, specifically documenting the and-let* special form and its related syntax features. It includes links to external resources, such as the SRFI (Scheme Request For Implementation) standard and the Scsh implementation of Scheme. The page also includes copyright information and an editor’s contact details.

568 This <code>key</code> form is the same as the <code>cat</code> form in view of the fact that both

569 don't use argument position for binding &lt;var&gt;s to elements of &lt;rest list&gt;.

570 However, for extracting values from &lt;rest list&gt;, the former uses explicitly

571 keywords and the latter uses implicitly &lt;test&gt;s. The keywords in this form

572 are not self-evaluating symbols (keyword objects) but any scheme objects. The

INSTALL (git://github.com/xbmc/xbmc.git) Unknown · 84 lines

47 of now) and MINGW.

48 The installation is really easy. Begin with the MSYS auto-installer and once

49 this is done, extract MINGW into c:\msys\1.0\mingw. You also have to remember

50 to remove the make utility included with MINGW as it conflicts with the one

51 from MSYS (just rename or remove c:\msys\1.0\mingw\bin\make.exe).

bp-core-cache.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 130 lines

1 <?php

2 /**

3 * Caching functions handle the clearing of cached objects and pages on specific

79 );

80 $r = wp_parse_args( $args, $defaults );

81 extract( $r );

82

83 if ( empty( $object_ids ) || empty( $object_type ) || empty( $meta_table ) ) {