100+ results for 'php each'
Not the results you expected?
Advertiser.php (https://bitbucket.org/blackriver/openx.git) PHP · 371 lines
DefaultOptions.php (https://github.com/Exercise/symfony.git) PHP · 320 lines
1 <?php
3 /*
18 * Helper for specifying and resolving inter-dependent options.
19 *
20 * Options are a common pattern for initializing classes in PHP. Avoiding the
21 * problems related to this approach is however a non-trivial task. Usually,
22 * both classes and subclasses should be able to set default option values.
29 *
30 * - Define default option values
31 * - Define options in layers that correspond to your class hierarchy. Each
32 * layer may depend on the default value set in the higher layers.
33 * - Define default values for options that depend on the <em>concrete</em>
192 /**
193 * A list of accepted values for each option.
194 * @var array
195 */
CachedImage.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 381 lines
TSqlMapGateway.php (https://bitbucket.org/volatileeight/prado.git) PHP · 259 lines
1 <?php
2 /**
3 * TSqlMapGateway class file.
95 /**
96 * Runs a query for list with a custom object that gets a chance to deal
97 * with each row as it is processed.
98 *
99 * Example: $sqlmap->queryWithRowDelegate('getAccounts', array($this, 'rowHandler'));
120 * @param string The name of the sql statement to execute.
121 * @param mixed The object used to set the parameters in the SQL.
122 * @param integer The maximum number of objects to store in each page.
123 * @param integer The number of the page to initially load into the list.
124 * @return TPagedList A PaginatedList of beans containing the rows.
141 * @param callback Row delegate handler, a valid callback required.
142 * @param mixed The object used to set the parameters in the SQL.
143 * @param integer The maximum number of objects to store in each page.
144 * @param integer The number of the page to initially load into the list.
145 * @return TPagedList A PaginatedList of beans containing the rows.
MavenPluginConfigurationParameterDomExtender.java (https://bitbucket.org/nbargnesi/idea.git) Java · 35 lines
ezisbn10to13converter.php (https://bitbucket.org/ericsagnes/ezpublish-multisite.git) PHP · 355 lines
1 <?php
2 /**
3 * File containing the eZISBN10To13Converter class.
51 if ( count( $classAttributeList ) > 0 )
52 {
53 foreach ( $classAttributeList as $classAttributeItem )
54 {
55 $classAttributeID = $classAttributeItem['id'];
94 if ( count( $classAttributes ) > 0 )
95 {
96 foreach ( $classAttributes as $attribute )
97 {
98 if ( $attribute->attribute( 'data_type_string' ) == 'ezisbn' )
195 function execute()
196 {
197 foreach ( $this->AttributeArray as $classAttribute )
198 {
199 $contentClass = eZContentClass::fetch( $classAttribute->attribute( 'contentclass_id' ) );
SimpleHeaderSet.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 387 lines
1 <?php
3 /*
194 if (!isset($name)) {
195 $headers = array();
196 foreach ($this->_headers as $collection) {
197 $headers = array_merge($headers, $collection);
198 }
305 uksort($headers, array($this, '_sortHeaders'));
306 }
307 foreach ($headers as $collection) {
308 foreach ($collection as $header) {
379 private function _notifyHeadersOfCharset($charset)
380 {
381 foreach ($this->_headers as $headerGroup) {
382 foreach ($headerGroup as $header) {
filing_costs.php (https://bitbucket.org/amitholkar/zenfile-18-05.git) PHP · 198 lines
39 ?>
40 <div class="finance_country <?php echo $status ?> custom_accordion" ref="filing_cost_country_<?php echo $invoice->id ?>"><?php echo $invoice->country ?></div>
55 <div class="finance_input float_left">
57 <?php echo $currency_sign ?><input readonly="true" value="<?php echo $invoice->fa_invoice_professional_fee ?>" type="text"/>
58 </div>
59 <div class="clear"></div>
96 <input type="hidden" name="additional_fee_id[]" value="<?php echo $additional_fee->additional_fee_id ?>">
97 <?php echo $currency_sign ?><input title="<?php echo $additional_fee->additional_fee_description_by_fa ?>" name="additional_fee_corrected_by_pm[]" value="<?php echo $additional_fee_value ?>" type="text"/>
98 </div>
99 <!-- <div class="finance_input float_left" style="width: 170px;">-->
116 <?php foreach($invoice->invoices as $file) { ?>
117 <a href="<?php echo base_url() ?>cases/download_file/<?php echo $file->file_id ?>"><?php echo $file->filename ?></a>
118 <?php } ?>
SortedSet.php (https://github.com/netweaver/Rediska.git) PHP · 335 lines
1 <?php
3 // Require Rediska
4 require_once dirname(__FILE__) . '/../../Rediska.php';
6 /**
12 * @version @package_version@
13 * @link http://rediska.geometria-lab.net
14 * @license http://www.opensource.org/licenses/bsd-license.php
15 */
16 class Rediska_Key_SortedSet extends Rediska_Key_Abstract implements IteratorAggregate, ArrayAccess, Countable
234 $pipeline = $this->_getRediskaOn()->pipeline();
236 foreach($array as $score => $value) {
237 $pipeline->addToSortedSet($this->getName(), $value, $score);
238 }
sitemailer_.php (https://gitlab.com/nvtdn2006/azora) PHP · 384 lines
1 <?php
2 class SiteMailer
3 {
52 $this->headers .= "MIME-Version: 1.0\r\n";
53 //$this->headers .= "Content-Type: multipart/mixed; boundary=\"PHP-mixed-" . $this->randomHash . "\"\r\n";
54 $this->headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
55 }
67 private function GetMailsFromList($mails) {
68 $line = "";
69 foreach ($mails as $mail) {
70 $line .= $mail. ", ";
71 }
89 /*if ($this->attachment != '')
90 {
91 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
92 $this->msgBody .= $this->attachment;
93 $this->msgBody .= "\r\n--PHP-mixed-" . $this->randomHash . "--";
NullTest.php (https://github.com/leerbag/zf2.git) PHP · 329 lines
Installerold.php (https://github.com/ArchiCroc/Tower-Web-Platform.git) PHP · 232 lines
1 <?php
3 /**
4 * Test class for Core_Model_User_Service.
5 * Generated by PHPUnit on 2011-06-22 at 18:34:04.
6 */
8 require_once '../Installer.php';
10 class Core_Model_Installer {
109 $agService = new Core_Model_Acl_Group_Service();
110 foreach ($group_acls as $acl) {
111 $agService->create($acl);
112 }
Editor.php (https://github.com/lazenge/zf2.git) PHP · 601 lines
1 <?php
2 /**
3 * Zend Framework
72 public function addCaptureEvents(array $events)
73 {
74 foreach ($events as $event) {
75 $this->addCaptureEvent($event);
76 }
171 public function addEvents(array $events)
172 {
173 foreach ($events as $event) {
174 $this->addEvent($event);
175 }
269 public function addPlugins(array $plugins)
270 {
271 foreach ($plugins as $plugin) {
272 $this->addPlugin($plugin);
273 }
query_builder.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 302 lines
1 <?php
2 /**
3 * File containing the ezcSearchQueryBuilder class.
69 if ( $this->stackType[0] == 'and' || $this->stackType[0] == 'default' )
70 {
71 foreach ( $this->stack[0] as $element )
72 {
73 $query->where( $element );
116 $tokens = array();
117 $tokenArray = preg_split( '@(\s)|(["+():-])@', $searchQuery, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
118 foreach ( $tokenArray as $token )
119 {
120 if ( isset( $map[strtolower( $token )] ) )
171 {
172 $parts = array();
173 foreach ( $searchFields as $searchField )
174 {
175 $parts[] = $this->processPrefix( $q, $q->eq( $searchField, $term ) );
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 57 lines
30 <title>Creating a new style set</title>
32 <para>The collection of highlighting styles for each token and each fold level is what the ModeHighlighting plugin calls a "style set". To change the highlighting scheme for a particular edit mode, you first must create a style set for that mode. At the combo box labeled "Change highlighting for mode:", click on the edit mode you want to change. Then, click the "New" button and give your style set a name. (Style set names cannot contain commas or forward slash characters). From there, you can change the style for each token by clicking on the "Hello World" string next to the token, just as in the default jEdit highlighting pane. However, jEdit won't use your newly-created style set until it is activated.</para>
33 </section>
bytearray-tests.js (https://github.com/jdeolive/ringojs.git) JavaScript · 322 lines
LeadImportFieldType.php (https://gitlab.com/mautic-master/mautic) PHP · 290 lines
CakeValidationSetTest.php (https://gitlab.com/manuperazafa/elsartenbackend) PHP · 337 lines
1 <?php
2 /**
3 * CakeValidationSetTest file
4 *
5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7 *
11 *
12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
14 * @package Cake.Test.Case.Model.Validator
15 * @since CakePHP(tm) v 2.2.0
16 * @license http://www.opensource.org/licenses/mit-license.php MIT License
17 */
class-cp-user-relationships.php (https://gitlab.com/clusterpress/clusterpress) PHP · 543 lines
1 <?php
2 /**
3 * ClusterPress User Relationships.
68 $errors = array();
70 foreach ( (array) $types as $type ) {
71 if ( ! $this->register_type( $cluster, $type ) ) {
72 $errors[] = $type;
412 }
414 foreach ( $r as $field_name => $in ) {
415 $sql['where'][] = $this->set_clause( $field_name, $in );
416 }
469 );
471 foreach ( $r as $field_name => $in ) {
472 $sql['where'][] = $this->set_clause( $field_name, $in );
473 }
Atom.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 400 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Atom.php 23775 2011-03-01 17:25:24Z ralph $
20 */
23 * @see Zend_Feed_Reader
24 */
25 // // // // // // // // // // require_once 'Zend/Feed/Reader.php';
27 /**
28 * @see Zend_Feed_Reader_EntryInterface
29 */
30 // // // // // // // // // // require_once 'Zend/Feed/Reader/EntryInterface.php';
32 /**
4_wicked_single_revisions.php (https://github.com/ewandor/horde.git) PHP · 211 lines
1 <?php
2 /**
3 * Changes major.minor revisions to single revision numbers.
20 {
21 parent::__construct($connection, $version);
22 require_once $GLOBALS['registry']->get('fileroot', 'wicked') . '/lib/Wicked.php';
23 $this->_vfs = $GLOBALS['injector']
24 ->getInstance('Horde_Core_Factory_Vfs')
44 . 'FROM wicked_history '
45 . 'ORDER BY page_id, page_majorversion, page_minorversion');
46 foreach ($history as $entry) {
47 // Next page? Reset version.
48 if ($entry['page_id'] != $id) {
82 . 'ORDER BY page_id, attachment_name, attachment_majorversion, '
83 . 'attachment_minorversion');
84 foreach ($history as $entry) {
85 // Next page? Reset version.
86 if ($entry['page_id'] != $id ||
WufooApiWrapper.php (https://github.com/Fourshift/Wufoo-API-Wrappers.git) PHP · 270 lines
1 <?php
3 require_once('WufooApiWrapperBase.php');
4 require_once('WufooValueObjects.php');
6 /**
71 $fieldHelper = new WufooFieldCollection();
73 foreach ($fields->Fields as $field) {
74 $fieldHelper->Fields[$field->ID] = new WufooField($field);
75 $fieldHelper->Hash[$field->ID] = $field;
76 if ($field->SubFields) {
77 foreach ($field->SubFields as $subfield) {
78 $fieldHelper->Hash[$subfield->ID] = $subfield;
79 }
Tag.php (https://github.com/michaelmcandrew/vaw.git) PHP · 215 lines
1 <?php
3 /*
60 $mode = null;
62 foreach( $parentNames as &$parentNameItem ) {
63 // get the parent id for tag list input for keyword
64 $parentId = CRM_Core_DAO::getFieldValue( 'CRM_Core_DAO_Tag', $parentNameItem, 'id', 'name' );
106 if ( $entityId ) {
107 $tagset[$tagsetItem]['entityId'] = $entityId;
108 require_once 'CRM/Core/BAO/EntityTag.php';
109 $entityTags = CRM_Core_BAO_EntityTag::getChildEntityTags( $parentId, $entityId, $entityTable );
110 } else {
116 $allTags = CRM_Core_Pseudoconstant::tag( );
117 $tagIds = explode( ',', $form->_submitValues['activity_taglist'][$parentId] );
118 foreach( $tagIds as $tagId ) {
119 if ( is_numeric( $tagId ) ) {
120 $tagName = $allTags[$tagId];
AbstractPaginator.php (https://gitlab.com/zan_zan/laravel_sample) PHP · 487 lines
PlatformJobQueueTest.php (https://bitbucket.org/Dal-Papa/is-340-publish-base.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: PlatformJobQueueTest.php 24593 2012-01-05 20:35:02Z matthew $
21 */
23 /** Zend_Queue */
24 require_once 'Zend/Queue.php';
26 /** Zend_Queue */
27 require_once 'Zend/Queue/Message.php';
29 /** Zend_Queue_Message_Test */
reflection_php5.php (https://bitbucket.org/volatileeight/prado.git) PHP · 274 lines
4 * @package SimpleTest
5 * @subpackage UnitTester
6 * @version $Id: reflection_php5.php 1398 2006-09-08 19:31:03Z xue $
7 */
26 /**
27 * Checks that a class has been declared. Versions
28 * before PHP5.0.2 need a check that it's not really
29 * an interface.
30 * @return boolean True if defined.
120 function getInterfaceMethods() {
121 $methods = array();
122 foreach ($this->getInterfaces() as $interface) {
123 $methods = array_merge($methods, get_class_methods($interface));
124 }
EntityTypeBundleInfoTest.php (https://gitlab.com/mohamed_hussein/prodt) PHP · 314 lines
1 <?php
3 namespace Drupal\Tests\Core\Entity;
115 protected function setUpEntityTypeDefinitions($definitions = []) {
116 $class = $this->getMockClass(EntityInterface::class);
117 foreach ($definitions as $key => $entity_type) {
118 // \Drupal\Core\Entity\EntityTypeInterface::getLinkTemplates() is called
119 // by \Drupal\Core\Entity\EntitTypeManager::processDefinition() so it must
UpdateQueryBuilderTest.php (https://github.com/csanquer/QueryBuilder.git) PHP · 326 lines
1 <?php
2 namespace SQL\Test;
37 $this->queryBuilder->update($table);
39 foreach ($options as $option) {
40 $this->queryBuilder->addOption($option);
41 }
124 public function testGetSetString($sets, $expectedBoundParameters, $expected, $expectedFormatted)
125 {
126 foreach ($sets as $set) {
127 $this->queryBuilder->set($set[0], $set[1], $set[2]);
128 }
266 $this->queryBuilder->update($table);
268 foreach ($sets as $set) {
269 $this->queryBuilder->set($set[0], $set[1], $set[2]);
270 }
registry.php (https://github.com/Paladin/joomla-platform.git) PHP · 472 lines
1 <?php
2 /**
3 * @package Joomla.Platform
89 *
90 * @since 12.2
91 * @note The interface is only present in PHP 5.4 and up.
92 */
93 public function jsonSerialize()
180 // Traverse the registry to find the correct node for the result.
181 foreach ($nodes as $n)
182 {
183 if (isset($node->$n))
313 // Load the variables into the registry's default namespace.
314 foreach ($source->toArray() as $k => $v)
315 {
316 if (($v !== null) && ($v !== ''))
zone.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 441 lines
1 <?php
2 class ControllerLocalisationZone extends Controller {
3 private $error = array();
86 if (isset($this->request->post['selected']) && $this->validateDelete()) {
87 foreach ($this->request->post['selected'] as $zone_id) {
88 $this->model_localisation_zone->deleteZone($zone_id);
89 }
174 $results = $this->model_localisation_zone->getZones($data);
176 foreach ($results as $result) {
177 $action = array();
402 $this->load->model('localisation/geo_zone');
404 foreach ($this->request->post['selected'] as $zone_id) {
405 if ($this->config->get('config_zone_id') == $zone_id) {
406 $this->error['warning'] = $this->language->get('error_default');
shipping.php (https://gitlab.com/reclamare/mao) PHP · 268 lines
1 <?php
2 class ControllerApiShipping extends Controller {
3 public function address() {
28 );
30 foreach ($keys as $key) {
31 if (!isset($this->request->post[$key])) {
32 $this->request->post[$key] = '';
71 $custom_fields = $this->model_account_custom_field->getCustomFields($this->config->get('config_customer_group_id'));
73 foreach ($custom_fields as $custom_field) {
74 if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($this->request->post['custom_field'][$custom_field['custom_field_id']])) {
75 $json['error']['custom_field' . $custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
168 $results = $this->model_extension_extension->getExtensions('shipping');
170 foreach ($results as $result) {
171 if ($this->config->get($result['code'] . '_status')) {
172 $this->load->model('shipping/' . $result['code']);
PluginInfo.php (https://gitlab.com/fabiorf/chat) PHP · 383 lines
1 <?php
2 /*
3 * This file is a part of Mibew Messenger.
186 {
187 $dependent_plugins = array();
188 foreach (Utils::discoverPlugins() as $plugin_name) {
189 $plugin = new PluginInfo($plugin_name);
190 if (array_key_exists($this->getName(), $plugin->getDependencies())) {
250 $system_info = Utils::getSystemInfo();
252 foreach ($this->getSystemRequirements() as $lib => $required_version) {
253 // Check if the library exists
254 if (!isset($system_info[$lib])) {
284 // Make sure all plugin's dependencies exist, are enabled and have
285 // appropriate versions
286 foreach ($this->getDependencies() as $plugin_name => $required_version) {
287 if (!Utils::pluginExists($plugin_name)) {
288 return false;
errors.php (https://github.com/libersoft/fengoffice-ls.git) PHP · 194 lines
1 <?php
3 /**
153 'user has contact' => 'There is a contact already assigned to this user',
155 'maximum number of users reached error' => 'The maximum number of users has been reached',
156 'maximum number of users exceeded error' => 'The maximum number of users has been exceeded. The application will not work anymore until this issue is resolved.',
157 'maximum disk space reached' => 'Your disk quota is full. Please delete some object before trying to add new ones, or contact support to enable more users.',
env.rb
(git://github.com/opscode/chef.git)
Ruby · 153 lines
✨ Summary
This Ruby code defines a Chef provider for managing environment variables. It provides methods for creating, modifying, and deleting environment variables, as well as checking if a variable exists. The provider uses a resource-based approach to manage the environment variables, allowing for more flexibility and control over their management.
This Ruby code defines a Chef provider for managing environment variables. It provides methods for creating, modifying, and deleting environment variables, as well as checking if a variable exists. The provider uses a resource-based approach to manage the environment variables, allowing for more flexibility and control over their management.
SymbolTable.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 302 lines
PHPCodeCompletion160444Test.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 217 lines
46 import java.util.Map;
47 import org.netbeans.api.java.classpath.ClassPath;
48 import org.netbeans.modules.php.project.api.PhpSourcePath;
49 import org.netbeans.spi.java.classpath.support.ClassPathSupport;
50 import org.openide.filesystems.FileObject;
55 * @author Ondrej Brejla <obrejla@netbeans.org>
56 */
57 public class PHPCodeCompletion160444Test extends PHPCodeCompletionTestBase {
59 public PHPCodeCompletion160444Test(String testName) {
123 public void testIssue160444_16() throws Exception {
124 checkCompletion("testfiles/completion/lib/tests160444/issue160444.php", "$obj/**/->\n // aa\n ^foo();", false);
125 }
DiscriminatorColumnLineParserTest.java (https://gitlab.com/essere.lab.public/qualitas.class-corpus) Java · 209 lines
1 package org.netbeans.modules.php.doctrine2.annotations.orm.parser;
3 import java.util.Map;
4 import org.netbeans.junit.NbTestCase;
5 import org.netbeans.modules.csl.api.OffsetRange;
6 import org.netbeans.modules.php.spi.annotation.AnnotationLineParser;
7 import org.netbeans.modules.php.spi.annotation.AnnotationParsedLine;
8 import org.netbeans.modules.php.spi.annotation.AnnotationParsedLine.ParsedLine;
10 /*
25 * specific language governing permissions and limitations under the
26 * License. When distributing the software, include this License Header
27 * Notice in each file and include the License file at
28 * nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this
29 * particular file as subject to the "Classpath" exception as provided
PhpReferenceCompatibility.php (https://gitlab.com/x33n/ImpressPages) PHP · 433 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
20 *
21 * This ArrayObject is a rewrite of the implementation to fix
22 * issues with php's implementation of ArrayObject where you
23 * are unable to unset multi-dimensional arrays because you
24 * need to fetch the properties / lists as references.
25 */
26 abstract class PhpReferenceCompatibility implements IteratorAggregate, ArrayAccess, Serializable, Countable
27 {
28 /**
29 * Properties of the object have their normal functionality
30 * when accessed as list (var_dump, foreach, etc.).
31 */
32 const STD_PROP_LIST = 1;
smarty_internal_config.php (https://github.com/raphaelbastide/berta.git) PHP · 270 lines
1 <?php
2 /**
3 * Smarty Internal Plugin Config
75 public function buildConfigFilepath ()
76 {
77 foreach((array)$this->smarty->config_dir as $_config_dir) {
78 if (strpos('/\\', substr($_config_dir, -1)) === false) {
79 $_config_dir .= DS;
150 $_compile_dir .= DS;
151 }
152 return $_compile_dir . $_filepath . '.' . basename($this->config_resource_name) . '.config' . '.php';
153 }
154 /**
246 include($this->getCompiledFilepath ());
247 // copy global config vars
248 foreach ($_config_vars['vars'] as $variable => $value) {
249 if ($this->smarty->config_overwrite || !isset($scope->config_vars[$variable])) {
250 $scope->config_vars[$variable] = $value;
psb.input.js (https://github.com/wildanm/Jibas.git) JavaScript · 292 lines
4 var dept = $("#psb_departemen").val();
5 $.ajax({
6 url : 'psb/psb.input.ajax.php?op=getTambahanData&dept='+dept,
7 type: 'get',
8 success : function(html) {
13 $.ajax({
14 url : 'psb/psb.input.ajax.php?op=setProsesPsb&dept='+dept,
15 type: 'get',
16 success : function(html) {
20 //alert('Get Kelompok with Proses ' + proses);
21 $.ajax({
22 url : 'psb/psb.input.ajax.php?op=setKelompokPsb&proses='+proses,
23 type: 'get',
24 success : function(html) {
User_agent.php (https://github.com/usagi-project/mynets1.git) PHP · 500 lines
1 <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
2 /**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 4.3.2 or newer
6 *
7 * @package CodeIgniter
135 $this->_set_platform();
137 foreach (array('_set_browser', '_set_robot', '_set_mobile') as $function)
138 {
139 if ($this->$function() === TRUE)
156 if (is_array($this->platforms) AND count($this->platforms) > 0)
157 {
158 foreach ($this->platforms as $key => $val)
159 {
160 if (preg_match("|".preg_quote($key)."|i", $this->agent))
ftccache.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 317 lines
42 /*************************************************************************/
43 /* */
44 /* Each cache controls one or more cache nodes. Each node is part of */
45 /* the global_lru list of the manager. Its `data' field however is used */
46 /* as a reference count for now. */
131 /* each cache really implements a dynamic hash table to manage its nodes */
132 typedef struct FTC_CacheRec_
133 {
188 * The final result will be that the node will never come back
189 * in further lookup requests, and will be flushed on demand from
190 * the cache normally when its reference count reaches 0.
191 */
192 FT_LOCAL( void )
jmemmgr.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 1118 lines
77 /*
78 * We allocate objects from "pools", where each pool is gotten with a single
79 * request to jpeg_get_small() or jpeg_get_large(). There is no per-object
80 * overhead within a pool, except for alignment padding. Each pool has a
117 struct jpeg_memory_mgr pub; /* public fields */
119 /* Each pool identifier (lifetime class) names a linked list of pools. */
120 small_pool_ptr small_list[JPOOL_NUMPOOLS];
121 large_pool_ptr large_list[JPOOL_NUMPOOLS];
123 /* Since we only have one lifetime class of virtual arrays, only one
124 * linked list is necessary (for each datatype). Note that the virtual
125 * array control blocks being linked together are actually stored somewhere
126 * in the small-pool list.
FunctionCallSignatureSniff.php (https://github.com/SeanJA/PHP_CodeSniffer-Drupal-Standard.git) PHP · 245 lines
25 * @license http://matrix.squiz.net/developer/tools/php_cs/licence BSD Licence
26 * @version Release: 1.2.0RC3
27 * @link http://pear.php.net/package/PHP_CodeSniffer
28 */
29 class Drupal_Sniffs_Functions_FunctionCallSignatureSniff implements PHP_CodeSniffer_Sniff
151 * Processes multi-line calls.
152 *
153 * @param PHP_CodeSniffer_File $phpcsFile The file being scanned.
154 * @param int $stackPtr The position of the current token
155 * in the stack passed in $tokens.
161 * @return void
162 */
163 public function processMultiLineCall(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $openBracket, $tokens)
164 {
165 // We need to work out how far indented the function
PropertyPathBuilder.php (https://github.com/deviantintegral/symfony.git) PHP · 299 lines
1 <?php
3 /*
212 $string = '';
214 foreach ($this->elements as $offset => $element) {
215 if ($this->isIndex[$offset]) {
216 $element = '['.$element.']';
271 // => $diff <= $indexAfterInsertion
273 // In each of the following loops, $i >= $diff must hold,
274 // otherwise ($i - $diff) becomes negative.
related_items_tree_app_spec.js (https://gitlab.com/markglenfletcher/gitlab-ee) JavaScript · 315 lines
32 const findIssueActionsSplitButton = () => wrapper.find(IssueActionsSplitButton);
34 afterEach(() => {
35 wrapper.destroy();
36 });
38 describe('methods', () => {
39 beforeEach(() => {
40 wrapper = createComponent();
41 });
173 describe('template', () => {
174 beforeEach(() => {
175 wrapper = createComponent();
176 wrapper.vm.$store.dispatch('receiveItemsSuccess', {
PlatformJobQueueTest.php (https://github.com/nbcutech/o3drupal.git) PHP · 329 lines
1 <?php
2 /**
3 * Zend Framework
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: PlatformJobQueueTest.php 23775 2011-03-01 17:25:24Z ralph $
21 */
23 /** Zend_Queue */
24 require_once 'Zend/Queue.php';
26 /** Zend_Queue */
27 require_once 'Zend/Queue/Message.php';
29 /** Zend_Queue_Message_Test */
ArrayHydrator.php (https://github.com/jaikdean/doctrine2.git) PHP · 280 lines
1 <?php
3 declare(strict_types=1);
44 $simpleQuery = 0;
46 foreach ($this->rsm->aliasMap as $dqlAlias => $className) {
47 $this->identifierMap[$dqlAlias] = [];
48 $this->resultPointers[$dqlAlias] = [];
80 // 2) Now hydrate the data found in the current row.
81 foreach ($rowData['data'] as $dqlAlias => $data) {
82 $index = false;
212 }
214 foreach ($rowData['scalars'] as $name => $value) {
215 $result[$resultKey][$name] = $value;
216 }
TopologyEdgePointPtrVector.cs (https://github.com/wrobell/adaptagrams.git) C# · 290 lines
database_filter.php (https://github.com/kamarulismail/kamarul-playground.git) PHP · 308 lines
1 <?php
2 /**
3 * File containing the ezcAuthenticationDatabaseFilter class.
32 * )
33 * );
34 * foreach ( $status as $line )
35 * {
36 * list( $key, $value ) = each( $line );
249 $e = $query->expr;
250 $params = array();
251 foreach ( $this->requestedData as $param )
252 {
253 $params[] = $db->instance->quoteIdentifier( $param );
264 $data = $data[0];
266 foreach ( $this->requestedData as $attribute )
267 {
268 $this->data[$attribute] = array( $data[$attribute] );
lavaPages.php (https://github.com/volcanicpixels/Privacy-Plugin.git) PHP · 360 lines
1 <?php
2 /**
3 * The lavaPages class
146 {
147 $adminPages = array();
148 foreach( $this->adminPages as $slug=>$page )
149 {
150 if( true == $page->multisiteSupport )
250 /**
251 * registerPages function.
252 * Registers each of the admin pages
253 *
254 * @return void
263 $parentSlug = $defaultPage->get( "slug" );
265 //register each subpage
266 foreach( $this->adminPages as $page )
SequenceTest.php (https://bitbucket.org/mkjpryor/lazy-sequence.git) PHP · 369 lines
1 <?php
3 namespace Lazy\Test;
16 class SequenceTest extends \PHPUnit_Framework_TestCase {
18 /**
19 * Returns a callable that expects to be called $amount times
20 * If given, $params is an array of parameter values expected for each
21 * invocation
22 *
38 if( count($args) != $amount )
39 throw new \BadMethodCallException(
40 'A set of parameters for each expected call must be given'
41 );
categories.php (https://github.com/tomtom127/oscommerce.git) PHP · 247 lines
1 <?php
2 /*
3 $Id: $
62 $category_id = (is_numeric($id)) ? $id : $osC_Database->nextID();
64 foreach ($osC_Language->getAll() as $l) {
65 if ( is_numeric($id) ) {
66 $Qcd = $osC_Database->query('update :table_categories_description set categories_name = :categories_name where categories_id = :categories_id and language_id = :language_id');
125 $products_delete = array();
127 foreach ($categories as $c_entry) {
128 $Qproducts = $osC_Database->query('select products_id from :table_products_to_categories where categories_id = :categories_id');
129 $Qproducts->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
136 }
138 foreach ($products as $key => $value) {
139 $Qcheck = $osC_Database->query('select count(*) as total from :table_products_to_categories where products_id = :products_id and categories_id not in :categories_id');
140 $Qcheck->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
ZendQueue.php (https://github.com/jtai/zf2.git) PHP · 303 lines
PrettyPrinterAbstract.php (https://gitlab.com/xolotsoft/pumasruiz) PHP · 262 lines
133 * Pretty prints an array of nodes (statements) and indents them optionally.
134 *
135 * @param PHPParser_Node[] $nodes Array of nodes
136 * @param bool $indent Whether to indent the printed nodes
137 *
168 }
170 protected function pInfixOp($type, PHPParser_Node $leftNode, $operatorString, PHPParser_Node $rightNode) {
171 list($precedence, $associativity) = $this->precedenceMap[$type];
215 * Pretty prints an array of nodes and implodes the printed values.
216 *
217 * @param PHPParser_Node[] $nodes Array of Nodes to be printed
218 * @param string $glue Character to implode with
219 *
Atom.php (https://gitlab.com/LisovyiEvhenii/ismextensions) PHP · 400 lines
1 <?php
2 /**
3 * Zend Framework
23 * @see Zend_Feed_Reader
24 */
25 #require_once 'Zend/Feed/Reader.php';
27 /**
28 * @see Zend_Feed_Reader_EntryInterface
29 */
30 #require_once 'Zend/Feed/Reader/EntryInterface.php';
32 /**
33 * @see Zend_Feed_Reader_EntryAbstract
34 */
35 #require_once 'Zend/Feed/Reader/EntryAbstract.php';
37 /**
jquery-1.2.6.js
(http://fatal-error.googlecode.com/svn/trunk/)
JavaScript · 3550 lines
✨ Summary
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
This JavaScript code extends jQuery’s functionality, adding event handling and DOM manipulation capabilities to HTML elements. It provides methods for binding events, triggering events, toggling click handlers, and checking if the DOM is ready. The code also includes a ready
function that can be used to execute functions when the DOM is loaded.
135 // (You can seed the arguments with an array of args, but this is
136 // only used internally.)
137 each: function( callback, args ) {
138 return jQuery.each( this, callback, args );
166 // Check to see if we're setting style values
167 return this.each(function(i){
168 // Set all the styles
169 for ( name in options )
190 var ret = "";
192 jQuery.each( text || this, function(){
193 jQuery.each( this.childNodes, function(){
223 wrapInner: function( html ) {
224 return this.each(function(){
225 jQuery( this ).contents().wrapAll( html );
226 });
gtkrc (http://gnome-colors.googlecode.com/svn/trunk/) Unknown · 555 lines
453 class "GtkCheck*" style "clearlooks-radiocheck"
455 # General matching following, the order is choosen so that the right styles override each other eg. progressbar needs to be more important then the menu match.
457 # This is not perfect, it could be done better (That is modify *every* widget in the notebook, and change those back that we really don't want changed)
PhpEvalTask.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
1 <?php
2 /*
3 * $Id: PhpEvalTask.php 144 2007-02-05 15:19:00Z hans $
4 *
5 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 */
22 require_once 'phing/Task.php';
24 /**
56 if ($this->expression !== null && !empty($this->params)) {
57 throw new BuildException("You cannot use nested <param> tags when evaluationg a PHP expression.", $this->location);
58 }
AudioNodeInput.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 270 lines
JSDOMPluginArray.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 109 lines
NavigatorPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 71 lines
ug-quickstart.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 320 lines
142 <para>
143 The first thing that Joe notices he can do is to automate the date in the
144 copyright notice (which he gets tired of updating each year). He changes
145 the template as follows:
146 </para>
192 <para>
193 Now when this template is processed by the Templates plugin, the user will
194 be prompted for each of:
195 </para>
196 <itemizedlist>
201 </itemizedlist>
202 <para>
203 Each of these values is then "filled in" at the appropriate point in the
204 generated code.
205 </para>
cifsglob.h
(http://omnia2droid.googlecode.com/svn/trunk/)
C Header · 711 lines
✨ Summary
This C header file defines various global variables and data structures for a CIFS (Common Internet File System) implementation, which is a protocol used to access Windows networks from Linux systems. It sets up locks and counters for managing SMB sessions, transactions, and buffers, as well as debug counters and miscellaneous settings.
This C header file defines various global variables and data structures for a CIFS (Common Internet File System) implementation, which is a protocol used to access Windows networks from Linux systems. It sets up locks and counters for managing SMB sessions, transactions, and buffers, as well as debug counters and miscellaneous settings.
70 */
72 /* associated with each tcp and smb session */
73 enum statusEnum {
74 CifsNew = 0,
200 /*
201 * Session structure. One of these for each uid session with a particular host
202 */
203 struct cifsSesInfo {
237 #define CIFS_SES_LANMAN 8
238 /*
239 * there is one of these for each connection to a resource on a particular
240 * session
241 */
unicode.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 493 lines
✨ Summary
This C code is part of a file system implementation, specifically for handling Unicode file names on Unix-like systems. It translates file names from a proprietary format to a standard format, replacing non-standard characters with marks and encoding special characters using hexadecimal codes. The code also handles file extensions and CRC (Cyclic Redundancy Check) values.
This C code is part of a file system implementation, specifically for handling Unicode file names on Unix-like systems. It translates file names from a proprietary format to a standard format, replacing non-standard characters with marks and encoding special characters using hexadecimal codes. The code also handles file extensions and CRC (Cyclic Redundancy Check) values.
complexity.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for an interval container library, providing information on its implementation details, including time complexities and performance characteristics. It includes explanations of algorithms used in adding intervals to containers, as well as copyright and licensing information. The content is presented in a structured format with links to related pages.
This HTML code outputs a documentation page for an interval container library, providing information on its implementation details, including time complexities and performance characteristics. It includes explanations of algorithms used in adding intervals to containers, as well as copyright and licensing information. The content is presented in a structured format with links to related pages.
380 the algorithms iterate over all the overlapped segments. Using inplace manipulations
381 of segments and hinted inserts, it is possible to perform all necessary operations
382 on each iteration step in <span class="emphasis"><em>constant time</em></span>. This results
383 in <span class="emphasis"><em><span class="bold"><strong>linear worst case time</strong></span></em></span>
384 complexity for segment addition for all interval containers.
TabItemWidget.java
(http://keywatch.googlecode.com/svn/trunk/)
Java · 180 lines
✨ Summary
This Java code defines a TabItemWidget
class, which represents a single tab item on a desktop panel. It displays a label and a close button, allowing users to rename or remove the associated desktop. When the close button is clicked, it prompts the user to confirm removal. If renamed, it updates the desktop’s name and saves changes.
This Java code defines a TabItemWidget
class, which represents a single tab item on a desktop panel. It displays a label and a close button, allowing users to rename or remove the associated desktop. When the close button is clicked, it prompts the user to confirm removal. If renamed, it updates the desktop’s name and saves changes.
concept.dtd (https://bitbucket.org/nbargnesi/idea.git) Document Type Definition · 176 lines
emb-qvfb.qdoc (https://bitbucket.org/ultra_iter/qt-vtl.git) Unknown · 278 lines
189 The file also specifies the screen size (\c Screen) and the number
190 of available buttons (\c Areas). Then it describes the buttons
191 themselves; each button is specified by its name, keycode and
192 coordinates.
241 The regions of the display that have changed are updated
242 periodically, i.e. the virtual framebuffer is displaying discrete
243 snapshots of the framebuffer rather than each individual drawing
244 operation. For this reason drawing problems such as flickering may
245 not be apparent until the program is run using a real framebuffer.
SystemShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 1202 lines
✨ Summary
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
This Java code defines a SystemShell class that provides functionality for interacting with the operating system, including navigating directories and executing commands. It uses a ConsoleState singleton to store information about the current process and directory stack. The code also includes methods for changing drives, setting the current directory, and handling errors.
ip_vs_ctl.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 3418 lines
✨ Summary
This C code initializes and cleans up a network traffic management system, specifically for IPVS (Internet Protocol Virtual Server). It sets up a Generic Netlink interface, registers sockopts, creates sysctl paths, and hooks into defense timer mechanisms to manage incoming packets. The cleanup function reverses these actions, ensuring the system is properly shut down.
This C code initializes and cleans up a network traffic management system, specifically for IPVS (Internet Protocol Virtual Server). It sets up a Generic Netlink interface, registers sockopts, creates sysctl paths, and hooks into defense timer mechanisms to manage incoming packets. The cleanup function reverses these actions, ensuring the system is properly shut down.
407 hash = ip_vs_svc_hashkey(af, protocol, vaddr, vport);
409 list_for_each_entry(svc, &ip_vs_svc_table[hash], s_list){
410 if ((svc->af == af)
411 && ip_vs_addr_equal(af, &svc->addr, vaddr)
434 hash = ip_vs_svc_fwm_hashkey(fwmark);
436 list_for_each_entry(svc, &ip_vs_svc_fwm_table[hash], f_list) {
437 if (svc->fwmark == fwmark && svc->af == af) {
438 /* HIT */
593 read_lock(&__ip_vs_rs_lock);
594 list_for_each_entry(dest, &ip_vs_rtable[hash], d_list) {
595 if ((dest->af == af)
596 && ip_vs_addr_equal(af, &dest->addr, daddr)
simple-macros.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 720 lines
505 <para>
506 Here are brief comments on each:
507 </para>
614 An <classname>EditPane</classname> object contains a text area and
615 buffer switcher. A view can be split to display multiple
616 buffers, each in its own edit pane. Among other things, the
617 <classname>EditPane</classname> class contains methods for selecting
618 the buffer to edit.
644 Expression</guimenuitem> displays a text input dialog
645 that asks you to type a single line of BeanShell commands. You can type
646 more than one BeanShell statement so long as each of them ends with a
647 semicolon. If BeanShell successfully interprets your input, a message
648 box will appear with the return value of the last statement. You can do
posts.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 195 lines
81 <h2><?php _e( 'Posts' ); ?>
82 <?php
83 $h2_search = $post_query->get( 'post_text' );
84 $h2_forum = $post_query->get( 'forum_id' );
142 <option><?php _e( 'Bulk Actions' ); ?></option>
143 <?php foreach ( $bulk_actions as $value => $label ) : ?>
145 <option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_html( $label ); ?></option>
146 <?php endforeach; ?>
147 </select>
148 <input type="submit" value="<?php esc_attr_e( 'Apply' ); ?>" class="button submit-input" />
149 <?php bb_nonce_field( 'post-bulk' ); ?>
150 </fieldset>
BeanShell.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 813 lines
✨ Summary
This Java code implements a BeanShell interpreter, a JavaScript-like scripting language for Java applications. It provides an interface to interact with a Java application’s UI components and perform operations on them using JavaScript-like syntax. The code includes classes for managing class loaders, handling exceptions, and creating an interpreter instance.
This Java code implements a BeanShell interpreter, a JavaScript-like scripting language for Java applications. It provides an interface to interact with a Java application’s UI components and perform operations on them using JavaScript-like syntax. The code includes classes for managing class loaders, handling exceptions, and creating an interpreter instance.
122 //{{{ showEvaluateLinesDialog() method
123 /**
124 * Evaluates the specified script for each selected line.
125 * @since jEdit 4.0pre1
126 */
497 /**
498 * Runs a cached block of code in the specified namespace. Faster than
499 * evaluating the block each time.
500 * @param method The method instance returned by cacheBlock()
501 * @param view The view
amf-uml-states.ads
(git://github.com/landgraf/matreshka.git)
Ada · 320 lines
✨ Summary
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
This is an Ada implementation of a UML State Machine class. It defines a set of abstract operations and attributes for managing states, including entry and exit actions, state invariants, and relationships with other states and state machines. The class provides a framework for modeling complex state-based systems and allows for redefinition and extension of existing states.
104 -- A list of triggers that are candidates to be retained by the state
105 -- machine if they trigger no transitions out of the state (not consumed).
106 -- A deferred trigger is retained until the state machine reaches a state
107 -- configuration where it is no longer deferred.
131 --
132 -- An optional behavior that is executed whenever this state is entered
133 -- regardless of the transition taken to reach the state. If defined,
134 -- entry actions are always executed to completion prior to any internal
135 -- behavior or transitions performed within the state.
141 --
142 -- An optional behavior that is executed whenever this state is entered
143 -- regardless of the transition taken to reach the state. If defined,
144 -- entry actions are always executed to completion prior to any internal
145 -- behavior or transitions performed within the state.
efivars.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 762 lines
✨ Summary
This C code implements an EFI (Extensible Firmware Interface) variables facility, allowing users to interact with firmware settings through a sysfs interface. It registers a subsystem with the firmware and vars subsystems, creating directories for storing and retrieving variable data. The code also provides functions for creating new variables, deleting existing ones, and exporting attributes to sysfs.
This C code implements an EFI (Extensible Firmware Interface) variables facility, allowing users to interact with firmware settings through a sysfs interface. It registers a subsystem with the firmware and vars subsystems, creating directories for storing and retrieving variable data. The code also provides functions for creating new variables, deleting existing ones, and exporting attributes to sysfs.
43 *
44 * 12 Feb 2002 - Matt Domsch <Matt_Domsch@dell.com>
45 * use list_for_each_safe when deleting vars.
46 * remove ifdef CONFIG_SMP around include <linux/smp.h>
47 * v0.04 release to linux-ia64@linuxia64.org
103 * The maximum size of VariableName + Data = 1024
104 * Therefore, it's reasonable to save that much
105 * space in each part of the structure,
106 * and we use a page for reading/writing.
107 */
263 }
264 /*
265 * We allow each variable to be edited via rewriting the
266 * entire efi variable structure.
267 */
SqlPlugin.props (https://jedit.svn.sourceforge.net/svnroot/jedit) MSBuild · 172 lines
150 sql.preprocessors.BeanShellEvaluator.tooltip=BeanShell preprocessor.\n Evaluates the text as BeanShell expression before sending to the database.
151 sql.preprocessors.VariableSubstitutor.tooltip=Variable substitution preprocessor.\n Asks user to input something for each question mark ('?') in the text.
152 sql.preprocessors.SpecialCommentRemover.tooltip=Special comment removing preprocessor.\n Removes some special sequences of characters from the text.
Mode.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 285 lines
✨ Summary
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
This Java class, Mode
, represents an edit mode for a text editor. It defines settings and properties for editing specific types of files, such as syntax highlighting and folding. The class provides methods to initialize, load, and set properties, as well as check if the current buffer matches the specified file name and first line.
fileio.c (https://bitbucket.org/ultra_iter/vim-qt.git) C · 10387 lines
TemplateFile.java
(https://jedit.svn.sourceforge.net/svnroot/jedit)
Java · 217 lines
✨ Summary
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
This Java class represents a file within the templates directory hierarchy, providing information about the template and its label. It acts as a proxy for a Template object, allowing access to the template’s properties and behavior. The class implements the TreeNode interface, enabling it to be used in a tree-like data structure.
pngread.c (https://bitbucket.org/ultra_iter/qt-vtl.git) C · 1457 lines
713 *
714 * "row" holds the actual image, and pixels are placed in it
715 * as they arrive. If the image is displayed after each pass, it will
716 * appear to "sparkle" in. "display_row" can be used to display a
717 * "chunky" progressive image, with finer detail added as it becomes
780 * prior to either of these functions like it should have been. You can
781 * only call this function once. If you desire to have an image for
782 * each pass of a interlaced image, use png_read_rows() instead.
783 *
784 * [*] png_handle_alpha() does not exist yet, as of this version of libpng
in.html
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a documentation page for a C++ library, specifically the boost::fusion
namespace. It displays information about a function called in
, which is used to read input from an iterator. The page includes details such as the return type, semantics, and example usage of the function.
This HTML code outputs a documentation page for a C++ library, specifically the boost::fusion
namespace. It displays information about a function called in
, which is used to read input from an iterator. The page includes details such as the return type, semantics, and example usage of the function.
118 </p>
119 <p>
120 <span class="bold"><strong>Semantics</strong></span>: For each element, <code class="computeroutput"><span class="identifier">e</span></code>, in sequence, <code class="computeroutput"><span class="identifier">seq</span></code>,
121 call <code class="computeroutput"><span class="identifier">is</span> <span class="special">>></span>
122 <span class="identifier">e</span></code>.
ex_end_of_month_day.xml (http://hadesmem.googlecode.com/svn/trunk/) XML · 0 lines
package.html
(https://jedit.svn.sourceforge.net/svnroot/jedit)
HTML · 77 lines
✨ Summary
This HTML code explains how to create custom actions for a plugin called ProjectViewer, which allows developers to interact with file trees. It provides instructions on how to extend the context menu and toolbar, implement action methods, and register actions with the viewer. The goal is to enable other plugin developers to add custom functionality to the ProjectViewer interface.
This HTML code explains how to create custom actions for a plugin called ProjectViewer, which allows developers to interact with file trees. It provides instructions on how to extend the context menu and toolbar, implement action methods, and register actions with the viewer. The goal is to enable other plugin developers to add custom functionality to the ProjectViewer interface.
28 list of classes that provide {@link projectviewer.action.Action Action}s that
29 will be added to the toolbar of the ProjectViewer dockable. One instance is
30 created for each class, and for each jEdit view the instance is cloned,
31 and then the "projectViewer" instance is set for the cloned object.</li>
33 <li>plugin.projectviewer.<i>class name</i>.context-menu-actions:<br>
34 list of classes that provide {@link projectviewer.action.Action Action}s that
35 will be added to the tree's context menu. One instance is created for each
36 class, and for each jEdit view the instance is cloned, and then the
46 <p>Before showing the menu item in the context menu, ProjectViewer will call
47 the {@link projectviewer.action.Action#prepareForNode(VPTNode) prepareForNode()}
48 method in all actions registered in the context menu. This allows each action to
49 decide if it should be shown for the given node and what message to show, for
50 example. For the toolbar buttons, this method is <b>never</b> called, so the
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.
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.
dlmdebug.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1056 lines
✨ Summary
This C code is part of a Linux kernel module that provides debugging functionality for a distributed lock manager (DLM). It creates and manages debug files in the /sys/debugfs
directory, allowing users to inspect various aspects of DLM operation, such as its state, locking behavior, and memory usage. The code uses the debugfs
subsystem to create and manage these debug files.
This C code is part of a Linux kernel module that provides debugging functionality for a distributed lock manager (DLM). It creates and manages debug files in the /sys/debugfs
directory, allowing users to inspect various aspects of DLM operation, such as its state, locking behavior, and memory usage. The code uses the debugfs
subsystem to create and manage these debug files.
119 dlm_print_lockres_refmap(res);
120 printk(" granted queue:\n");
121 list_for_each(iter2, &res->granted) {
122 lock = list_entry(iter2, struct dlm_lock, list);
123 __dlm_print_lock(lock);
124 }
125 printk(" converting queue:\n");
126 list_for_each(iter2, &res->converting) {
127 lock = list_entry(iter2, struct dlm_lock, list);
128 __dlm_print_lock(lock);
129 }
130 printk(" blocked queue:\n");
131 list_for_each(iter2, &res->blocked) {
132 lock = list_entry(iter2, struct dlm_lock, list);
133 __dlm_print_lock(lock);
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.
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.
macro-tips.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 970 lines
153 the rest are made by the macro. To arrange them, the script creates an
154 array of <classname>Object</classname> objects and assigns components to
155 each location in the array. This translates to a fixed, top-to-bottom
156 arrangement in the message box created by
157 <function>showConfirmDialog()</function>.
215 <para>
216 There are three invisible components created by
217 <function>showConfirmDialog()</function>. Each of them involves
218 a call to <function>Box.createVerticalStrut()</function>. The
219 <classname>Box</classname> class is a sophisticated layout class
249 <constant>null</constant> value is returned to a calling function,
250 signalling that the user cancelled macro execution. If the return
251 value is <constant>OK_OPTION</constant>, each of the input components
252 can yield their contents for further processing by calls to
253 <function>JTextField.getText()</function> (or, in the case of
AndCondition.php (git://github.com/alexgorbatchev/SyntaxHighlighter.git) text · 0 lines
perform_mutate_job.rb
(https://code.google.com/p/google-api-ads-ruby/)
Ruby · 152 lines
✨ Summary
This Ruby script performs an asynchronous request to create a new job using the MutateJobService API. It creates multiple placement operations, submits the job, and then polls for its status until it’s completed. If the job fails, it raises an error with the reason. The script also handles HTTP and API errors that may occur during the process.
This Ruby script performs an asynchronous request to create a new job using the MutateJobService API. It creates multiple placement operations, submits the job, and then polls for its status until it’s completed. If the job fails, it raises an error with the reason. The script also handles HTTP and API errors that may occur during the process.
109 results = result_response[:simple_mutate_result][:results]
110 if results
111 results.each_with_index do |result, index|
112 result_message = result.include?(:place_holder) ?
113 'FAILED' : 'SUCCEEDED'
117 errors = result_response[:simple_mutate_result][:errors]
118 if errors
119 errors.each do |error|
120 puts "Error, reason: '%s', trigger: '%s', field path: '%s'" %
121 [error[:reason], error[:trigger], error[:field_path]]
142 puts "Message: %s" % e.message
143 puts 'Errors:'
144 e.errors.each_with_index do |error, index|
145 puts "\tError [%d]:" % (index + 1)
146 error.each do |field, value|
qmovie.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 1089 lines
process.hh
(git://github.com/ticking/self.git)
C++ Header · 368 lines
✨ Summary
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
This C++ header file appears to be part of a virtual machine (VM) implementation, specifically for the Self programming language. It provides functionality for managing processes, stacks, and memory allocation within the VM. The code includes functions for switching between different stack modes, handling preemption, and executing continuation functions on the VM stack.
Makefile (http://omnia2droid.googlecode.com/svn/trunk/) Makefile · 6 lines
gtl_minkowski_tutorial.htm
(http://hadesmem.googlecode.com/svn/trunk/)
HTML · 0 lines
✨ Summary
This HTML code outputs a tutorial on implementing Minkowski sum of polygons as convolution of polygon sets using the Boost.Polygon library. It includes examples, images, and licensing information. The output is a web page that explains how to use the library to perform geometric operations, including convolution, and provides an example usage with images.
This HTML code outputs a tutorial on implementing Minkowski sum of polygons as convolution of polygon sets using the Boost.Polygon library. It includes examples, images, and licensing information. The output is a web page that explains how to use the library to perform geometric operations, including convolution, and provides an example usage with images.
27 polygons that may potentially have holes. It should also support disjoint
28 polygons in both input polygon sets. Shown below is what happens when
29 multiple polygons are present in each input polygon set.</p>
30 <p><img border="0" src="images/convolution2.PNG" width="547" height="432"></p>
31 <p>In each of these examples the origin of the coordinate system is in the lower
96 convolutions. First we implement a function that convolves all pairs of
97 edges represented by iterator pairs over points. We assume that the first
98 point is equal to the last point in each sequence because we know the polygons
99 that gave rise to the iterators were produced by the Boost.Polygon algorithm for
100 general polygon formation.</p>
146 <p>Using the function defined above we can implement a function for computing
147 the convolution of all pairs of edges from polygons contained within two polygon
148 sets. We also convolve each polygon with the first vertex of every polygon
149 from the other set to fill in the interiors of the result.</p>
150 <p><font face="Courier New" size="2">void convolve_two_polygon_sets(polygon_set&
users-guide.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 474 lines
22 any later version published by the Free Software Foundation; with no
23 <quote>Invariant Sections</quote>, <quote>Front-Cover Texts</quote> or
24 <quote>Back-Cover Texts</quote>, each as defined in the license. A copy of
25 the license can be found in the file <filename>COPYING.DOC.txt</filename>
26 included with jEdit.
58 <para>
59 Errors are shown in a tree control, with each branch being a file, and each
60 leaf an error. Clicking on a file will open that file; clicking on an error
61 will open the file containing the error and move the caret to its location.
208 Typically, error sources will be registered in your plugin's
209 <function>start()</function> method, but that does not have to be the case.
210 The Console plugin, for example, maintains a separate error source for each
211 console window, and registers an unregisters them as consoles are opened
212 and closed.
loop.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1674 lines
✨ Summary
This C code implements a Linux kernel module that provides a block device driver for creating virtual block devices, known as “loop devices”. It allows users to create and manage these devices, which can be used to emulate other block devices, such as CDs or hard drives. The module can be loaded at runtime, allowing users to dynamically add new loop devices without rebooting the system.
This C code implements a Linux kernel module that provides a block device driver for creating virtual block devices, known as “loop devices”. It allows users to create and manage these devices, which can be used to emulate other block devices, such as CDs or hard drives. The module can be loaded at runtime, allowing users to dynamically add new loop devices without rebooting the system.
wdt977.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 518 lines
✨ Summary
This C code implements a Watchdog driver for the W83977AF chip, which is used to monitor and control system stability. It provides a Linux kernel module that registers a watchdog device with the operating system, allowing it to be controlled and monitored through standard Linux interfaces. The driver can start and stop the watchdog, set its timeout value, and receive notifications when the system goes down or is halted.
This C code implements a Watchdog driver for the W83977AF chip, which is used to monitor and control system stability. It provides a Linux kernel module that registers a watchdog device with the operating system, allowing it to be controlled and monitored through standard Linux interfaces. The driver can start and stop the watchdog, set its timeout value, and receive notifications when the system goes down or is halted.
CHANGES.txt (https://jedit.svn.sourceforge.net/svnroot/jedit) Plain Text · 2185 lines
31 - Updated BibTeX and LaTeX syntax highlighting (Thomas Alspaugh).
33 - PHP mode now recognizes <script language="PHP">...</script>.
35 - Updated Omnimark syntax highlighting (Lionel Fiol).
220 - The order of the elements in the recent file list was being reversed
221 each time jEdit was restarted if 'sort recent files' was switched off.
223 - PluginJAR.generateCache() didn't correctly handle the case where a
477 chooser dialog box.
479 - On some Windows systems, the last few lines of each page would not
480 be printed. This was due to a Java bug; the incorrect
481 FontRenderContext was being returned. There is now a workaround for
ip_vs_core.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 1543 lines
✨ Summary
This C code implements IP Virtual Server (IPVS), a Linux kernel module that provides advanced network load balancing and traffic management features. It sets up various components, including connection tracking, application helpers, protocols, and control interfaces, to manage incoming network connections and distribute them across multiple servers. The module registers hooks with the netfilter framework to integrate with other networking components.
This C code implements IP Virtual Server (IPVS), a Linux kernel module that provides advanced network load balancing and traffic management features. It sets up various components, including connection tracking, application helpers, protocols, and control interfaces, to manage incoming network connections and distribute them across multiple servers. The module registers hooks with the netfilter framework to integrate with other networking components.
503 /*
504 * Notify the client that the destination is unreachable, and
505 * release the socket buffer.
506 * Since it is in IP layer, the TCP socket is not actually
510 #ifdef CONFIG_IP_VS_IPV6
511 if (svc->af == AF_INET6)
512 icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0,
513 skb->dev);
514 else
515 #endif
516 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
518 return NF_DROP;
atgrammar.g (http://ambienttalk.googlecode.com/svn/) Unknown · 629 lines
19 // p.getFirstChild() = (symbol x)
20 // p.getNextSibling() = (bar: (symbol y))
21 // at each step in the algorithm, the current keyword is appended to the previously parsed keywords,
22 // while the only child of the current tree (the argument variable) is added to the arguments
23 // After processing all keywords, an APL tree is returned whose selector is the concatenation of the keywords and whose
292 // However they are used to annotate the resulting ANTLR tree, so that the walker
293 // can easily produce the correct Java ATAbstractGrammar elements.
294 // Each token definition aligns the token with its printed representation.
295 // Statements
296 protected AGBEGIN : "begin"; // AGBegin(TAB stmts)
CRIMEgroupInteractions.at (http://ambienttalk.googlecode.com/svn/) Unknown · 248 lines
53 def findAll(tag) {
54 def result := [];
55 services.each: { |s| if: (is: s taggedAs: tag) then: {result := result + [s];}; };
56 result;
57 };
71 when: service<-export(factId)@FutureMessage becomes: { |result|
72 system.println("RESULT VAN EXPORT " + result);
73 result.each: { |fact| myCrime.insertTuple(fact); };
74 };
75 //myCrime.insertTuple(makeTuple("FarRef", id, service));
109 def services := [];
110 if: (is: description taggedAs: Rule) then: {
111 description.findall( { |varMaps| varMaps.each: { |v|
112 def s := ServiceDB.find(v.get(`id));
113 services := services + [s]; };
cache.c
(http://omnia2droid.googlecode.com/svn/trunk/)
C · 416 lines
✨ Summary
This C code implements a caching system for file systems, known as FS-Cache. It allows multiple file systems to share cached data and reduces I/O operations by storing frequently accessed files in memory. The code provides functions to add, remove, and manage caches, as well as handle errors and withdraw caches from service.
This C code implements a caching system for file systems, known as FS-Cache. It allows multiple file systems to share cached data and reduces I/O operations by storing frequently accessed files in memory. The code provides functions to add, remove, and manage caches, as well as handle errors and withdraw caches from service.
32 down_read(&fscache_addremove_sem);
34 list_for_each_entry(tag, &fscache_cache_tag_list, link) {
35 if (strcmp(tag->name, name) == 0) {
36 atomic_inc(&tag->usage);
54 down_write(&fscache_addremove_sem);
56 list_for_each_entry(tag, &fscache_cache_tag_list, link) {
57 if (strcmp(tag->name, name) == 0) {
58 atomic_inc(&tag->usage);
LICENSE-2.0.txt (https://bitbucket.org/nbargnesi/idea.git) Plain Text · 202 lines
67 2. Grant of Copyright License. Subject to the terms and conditions of
68 this License, each Contributor hereby grants to You a perpetual,
69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70 copyright license to reproduce, prepare Derivative Works of,
74 3. Grant of Patent License. Subject to the terms and conditions of
75 this License, each Contributor hereby grants to You a perpetual,
76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77 (except as stated in this section) patent license to make, have made,
144 7. Disclaimer of Warranty. Unless required by applicable law or
145 agreed to in writing, Licensor provides the Work (and each
146 Contributor provides its Contributions) on an "AS IS" BASIS,
147 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
MavenImportingSettings.java (https://bitbucket.org/nbargnesi/idea.git) Java · 271 lines
246 private void fireAutoImportChanged() {
247 for (Listener each : myListeners) {
248 each.autoImportChanged();
252 private void fireCreateModuleGroupsChanged() {
253 for (Listener each : myListeners) {
254 each.createModuleGroupsChanged();
258 private void fireCreateModuleForAggregatorsChanged() {
259 for (Listener each : myListeners) {
260 each.createModuleForAggregatorsChanged();
i4gl.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 665 lines
198 <KEYWORD1>DOWNSHIFT</KEYWORD1>
199 <KEYWORD1>DROP</KEYWORD1>
200 <KEYWORD1>EACH</KEYWORD1>
201 <KEYWORD1>ELIF</KEYWORD1>
202 <KEYWORD1>ELSE</KEYWORD1>
304 <KEYWORD1>FLUSH</KEYWORD1>
305 <KEYWORD1>FOR</KEYWORD1>
306 <KEYWORD1>FOREACH</KEYWORD1>
307 <KEYWORD1>FOREIGN</KEYWORD1>
308 <KEYWORD1>FORM</KEYWORD1>
bp-core-options.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 538 lines
1 <?php
3 /**
31 // Legacy bbPress config location
32 'bb-config-location' => ABSPATH . 'bb-config.php',
34 /** XProfile **********************************************************/
105 // Add default options
106 foreach ( $options as $key => $value )
107 add_option( $key, $value );
130 // Add default options
131 foreach ( $options as $key => $value )
132 delete_option( $key );
ChromeClientWinCE.cpp (https://bitbucket.org/ultra_iter/qt-vtl.git) C++ · 403 lines
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.
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.
186 # we should not choose a depcomp mode which is confused by this.
187 #
188 # We need to recreate these files for each test, as the compiler may
189 # overwrite some of them when testing with obscure command lines.
190 # This happens at least with the AIX C compiler.
294 # some people rename them; so instead we look at the file content.
295 # Grep'ing the first line is not enough: some people post-process
296 # each Makefile.in and add a new line on top of each file to say so.
297 # So let's grep whole file.
298 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
333 #
334 # This code is only required when automatic dependency tracking
335 # is enabled. FIXME. This creates each `.P' file that we will
336 # need in order to bootstrap the dependency handling code.
337 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
ThreadSpecific.h (https://bitbucket.org/ultra_iter/qt-vtl.git) C Header · 310 lines
perlkw.swg (https://swig.svn.sourceforge.net/svnroot/swig) Unknown · 252 lines
ga.xml (git://github.com/landgraf/matreshka.git) XML · 241 lines
28 <rbnfrule value="5">cúig;</rbnfrule>
29 <rbnfrule value="6">sé;</rbnfrule>
30 <rbnfrule value="7">seacht;</rbnfrule>
31 <rbnfrule value="8">ocht;</rbnfrule>
32 <rbnfrule value="9">naoi;</rbnfrule>
47 <rbnfrule value="5">a cúig;</rbnfrule>
48 <rbnfrule value="6">a sé;</rbnfrule>
49 <rbnfrule value="7">a seacht;</rbnfrule>
50 <rbnfrule value="8">a hocht;</rbnfrule>
51 <rbnfrule value="9">a naoi;</rbnfrule>
59 <rbnfrule value="50">caoga[ ??];</rbnfrule>
60 <rbnfrule value="60">seasca[ ??];</rbnfrule>
61 <rbnfrule value="70">seachtó[ ??];</rbnfrule>
62 <rbnfrule value="80">ochtó[ ??];</rbnfrule>
63 <rbnfrule value="90">nócha[ ??];</rbnfrule>
version.js
(git://github.com/isaacs/npm.git)
JavaScript · 290 lines
✨ Summary
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
This JavaScript code is part of a package manager’s versioning system, specifically for npm (Node Package Manager). It handles Git-related tasks, such as checking if the working directory is clean and creating a new tag with a specific message. The code also writes data to files like package.json
and npm-shrinkwrap.json
. Its purpose is to automate the process of releasing a new version of a package.
ImageGetter.resx (http://lidgren-network-gen3.googlecode.com/svn/trunk/) Unknown · 120 lines
frame.scrbl
(git://github.com/gmarceau/PLT.git)
Racket · 949 lines
✨ Summary
This Racket code defines a set of classes and interfaces for building text editors, including frame classes such as frame:basic
, frame:text
, and frame:searchable
. It also defines mixin classes that add functionality to these frames, such as frame:editor
and frame:searchable-text
. The code provides a framework for creating customizable text editors with features like searching, pasting, and status lines.
This Racket code defines a set of classes and interfaces for building text editors, including frame classes such as frame:basic
, frame:text
, and frame:searchable
. It also defines mixin classes that add functionality to these frames, such as frame:editor
and frame:searchable-text
. The code provides a framework for creating customizable text editors with features like searching, pasting, and status lines.
Header.pl
(git://github.com/zpao/v8monkey.git)
Perl · 183 lines
✨ Summary
The Perl code generates a table with various metrics related to web page loading times, including parsing, content creation, frame creation, style resolution, reflow, total layout time, and total page load time. The table is formatted in a specific way, with columns for the metric name, percentage of total time spent on that task, and a brief description.
The Perl code generates a table with various metrics related to web page loading times, including parsing, content creation, frame creation, style resolution, reflow, total layout time, and total page load time. The table is formatted in a specific way, with columns for the metric name, percentage of total time spent on that task, and a brief description.
exploretags.js
(https://code.google.com/p/ontowiki/)
JavaScript · 249 lines
✨ Summary
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
This JavaScript code is part of a tagging extension for OntoWiki, a semantic web platform. It enables users to add, remove, and manage tags on resources in the platform. The code handles user interactions such as clicking cloud values, deleting properties, and sorting tag clouds, while also refreshing the page with updated tag lists.
5 * @author Sebastian Dietzold <dietzold@informatik.uni-leipzig.de>
6 * @copyright Copyright (c) 2009, {@link http://aksw.org AKSW}
7 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL)
8 * @version $Id: $
9 *
131 var i = 0;
133 $('.select').each(function(){
134 allSelectedTags += "\""+i+"\" : \""+$(this).attr('about')+"\" , ";
135 i++;
172 // reset selectedTags - not working
173 else if (type == 'exploretags' && typeparam == 'reset') {
174 $('.select').each(function(){
175 $(this).toggleClass("select");
176 });
update_ad_group.rb
(https://code.google.com/p/google-api-ads-ruby/)
Ruby · 91 lines
✨ Summary
This Ruby script updates an ad group’s status to ‘PAUSED’ using the Google AdWords API. It connects to the API, specifies the ad group ID, and applies the update. The script handles connection errors and API exceptions, displaying error messages and details for debugging purposes.
This Ruby script updates an ad group’s status to ‘PAUSED’ using the Google AdWords API. It connects to the API, specifies the ad group ID, and applies the update. The script handles connection errors and API exceptions, displaying error messages and details for debugging purposes.