100+ results results for 'foreach' (3046 ms)
79 $class = $this->getI18nFormClass(); 80 foreach ($cultures as $culture) 81 { 132 133 foreach ($this->getObject()->$relationName as $index => $childObject) 134 { 168 $valuesToProcess = $values; 169 foreach ($valuesToProcess as $field => $value) 170 { 270 271 foreach ($this->embeddedForms as $name => $form) 272 {upload.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 248 lines
64 $attach = array(); 65 foreach ( (array) $_REQUEST['media'] as $att_id ) { 66 $att_id = (int) $att_id; 94 break; 95 foreach ( (array) $post_ids as $post_id ) { 96 if ( !current_user_can( 'delete_post', $post_id ) ) 106 break; 107 foreach ( (array) $post_ids as $post_id ) { 108 if ( !current_user_can( 'delete_post', $post_id ) ) 118 break; 119 foreach ( (array) $post_ids as $post_id_del ) { 120 if ( !current_user_can( 'delete_post', $post_id_del ) )Rscf.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 359 lines
156 157 foreach ($files as $local_path => $remote_path) { 158 if (!file_exists($local_path)) { 218 219 foreach ($files as $local_path => $remote_path) { 220 try {PageEdit.aspx.cs https://bitbucket.org/kudutest/kenticogit.git | C# | 400 lines
135 { 136 foreach (string file in Directory.GetFiles(directory, "*.css")) 137 {typeahead.js https://gitlab.com/Blueprint-Marketing/cdnjs | JavaScript | 266 lines
184 var options = {scope: scope}; 185 angular.forEach(['placement', 'container', 'delay', 'trigger', 'keyboard', 'html', 'animation', 'template', 'filter', 'limit', 'minLength', 'watchOptions', 'selectMode', 'comparator'], function(key) { 186 if(angular.isDefined(attr[key])) options[key] = attr[key];widgets.php https://gitlab.com/webkod3r/tripolis | PHP | 281 lines
23 24 foreach ( $sort as $widget ) { 25 if ( in_array( $widget['callback'], $done, true ) ) // We already showed this multi-widget 145 146 foreach ( $wp_registered_widgets as $widget_id => $widget ) { 147 if ( preg_match( '/' . $id_base . '-([0-9]+)$/', $widget_id, $matches ) )angular-globe.js https://gitlab.com/sgruhier/angular-globe | JavaScript | 351 lines
160 var pointsData = []; 161 angular.forEach(newData, function(pointGroup) { 162 if (pointGroup.values && pointGroup.values.length) {cpu_hotplug.c https://github.com/mstsirkin/qemu.git | C | 337 lines
94 95 CPU_FOREACH(cpu) { 96 acpi_set_cpu_present_bit(gpe_cpu, cpu, &error_abort);soapsuds.cs https://github.com/hollow87/mono.git | C# | 332 lines
80 assembly = Assembly.LoadFile (inputAssembly); 81 foreach (Type t in assembly.GetTypes ()) 82 types.Add (new ServiceType (t, serviceEndpoint)); 87 string[] ts = inputTypes.Split (';'); 88 foreach (string type in ts) 89 { 162 MetaData.ConvertCodeSourceStreamToAssemblyFile (writtenFiles, outputAssembly, strongNameFile); 163 foreach (string file in writtenFiles) 164 File.Delete (file); 169 170 foreach (string fn in writtenFiles) 171 Console.WriteLine ("Written file " + fn); 234 235 foreach (string arg in args) 236 {man-provider.cs https://github.com/hollow87/mono.git | C# | 408 lines
34 { 35 foreach(string TocFile in tocFiles) { 36 42 43 foreach(XmlNode node in nodeList) { 44 91 buf.Append ("<p>Available man pages:</p>").Append ("<blockquote>"); 92 foreach (Node n in Tree.Nodes) { 93 buf.Append ("<a href=\"").Append (n.Element).Append ("\">")PaymentMethodBase.php https://gitlab.com/Drulenium-bot/payment | PHP | 404 lines
375 // If the payment's currency is not specified, access is denied. 376 foreach ($supported_currencies as $supported_currency) { 377 if ($supported_currency->getCurrencyCode() != $payment_currency_code) {StringPresenter.php https://gitlab.com/judielsm/Handora | PHP | 488 lines
169 $text = "\n"; 170 foreach ($lines as $line) { 171 $offset++; 231 232 foreach ($exception->getTrace() as $call) { 233 // skip internal framework calls 310 $refl = $exception->getCause(); 311 foreach ($exception->getTrace() as $call) { 312 if (!isset($call['file'])) { 423 $objectProphecy = $exception->getObjectProphecy(); 424 foreach ($methodProphecies as $methodProphecy) { 425 $calls = $objectProphecy->findProphecyMethodCalls( 456 $values = array(); 457 foreach ($tokens as $token) { 458 if ($token instanceof ExactValueToken) {GuzzlePearPharPackageTask.php https://gitlab.com/techniconline/kmc | PHP | 338 lines
114 // add PEAR packages 115 foreach (scandir('./') as $file) { 116 if (substr($file, -4) == '.tgz') { 170 if (!empty($this->subpackages)) { 171 foreach ($this->subpackages as $package) { 172 $pkg = dirname($package); 207 208 foreach ($this->subpackages as $package) { 209 $baseinstalldir = dirname($package); 250 251 foreach ($info['require'] as $type => $version) { 252 if ($type == 'php') { 314 315 foreach ($cl as $line) { 316 $line = trim($line);ngStorage.js https://gitlab.com/Mirros/cdnjs | JavaScript | 212 lines
164 temp$storage = angular.copy(_last$storage); 165 angular.forEach($storage, function(v, k) { 166 if (angular.isDefined(v) && '$' !== k[0]) {Column.php https://gitlab.com/ptisky/API_prestashop | PHP | 394 lines
371 $vars = get_object_vars($this); 372 foreach ($vars as $key => $value) { 373 if (is_object($value)) { 382 $this->$key = array(); 383 foreach ($value as $k => $v) { 384 $this->$key[$k] = clone $v;SQLite.php https://gitlab.com/ptisky/API_prestashop | PHP | 306 lines
213 $cellKeys = array(); 214 foreach($cellIdsResult as $row) { 215 $cellKeys[] = $row['id'];textInput.js https://gitlab.com/I-NOZex/quiz-template | JavaScript | 182 lines
104 // Provide a way for tests to specify exactly which events are bound 105 ko.utils.arrayForEach(ko.bindingHandlers['textInput']['_forceUpdateOn'], function(eventName) { 106 if (eventName.slice(0,5) == 'after') {edit_form.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 290 lines
254 'defaultregion', 'defaultweight', 'visible', 'region', 'weight'); 255 foreach ($blockfields as $field) { 256 $newname = 'bui_' . $field; 261 if (!empty($this->block->config)) { 262 foreach ($this->block->config as $field => $value) { 263 $configfield = 'config_' . $field;DotTreeGenerator.cs https://gitlab.com/essere.lab.public/qualitas.class-corpus | C# | 216 lines
97 StringBuilder builder = new StringBuilder(); 98 foreach ( string line in HeaderLines ) 99 builder.AppendLine( line ); 105 106 foreach ( var s in nodes ) 107 builder.AppendLine( s ); 110 111 foreach ( var s in edges ) 112 builder.AppendLine( s ); 144 yield return GetNodeText( adaptor, child ); 145 foreach ( var t in DefineNodes( child, adaptor ) ) 146 yield return t; 172 yield return string.Format( EdgeFormat, parentName, childName, FixString( parentText ), FixString( childText ) ); 173 foreach ( var t in DefineEdges( child, adaptor ) ) 174 yield return t;view.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 241 lines
107$viewobj->attemptobjs = array(); 108foreach ($attempts as $attempt) { 109 $viewobj->attemptobjs[] = new quiz_attempt($attempt, $quiz, $cm, $course, false);install.js https://gitlab.com/blocknotary/IonicInterviews | JavaScript | 469 lines
298 var lines = Buffer.concat(chunks).toString().trim().split('\n') 299 lines.forEach(function (line) { 300 var items = line.trim().split(/\s+/)class-wp-terms-list-table.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 380 lines
158 $terms = get_terms( $taxonomy, $args ); 159 foreach ( $terms as $term ) 160 $out .= $this->single_row( $term, 0, $taxonomy ); 178 $output = ''; 179 foreach ( $terms as $key => $term ) { 180 355 356 foreach ( $columns as $column_name => $column_display_name ) { 357 if ( isset( $core_columns[$column_name] ) )DomCecilCompilationUnit.cs https://github.com/jfcantin/monodevelop.git | C# | 292 lines
86 87 foreach (ModuleDefinition moduleDefinition in assemblyDefinition.Modules) { 88 AddModuleDefinition (moduleDefinition, loadInternals, instantiateTypeParameter); 89 } 90 foreach (CustomAttribute attr in assemblyDefinition.CustomAttributes) { 91 Add (new DomCecilAttribute (attr)); 147 // need to handle different file extension casings. Some dlls from windows tend to end with .Dll or .DLL rather than '.dll' 148 foreach (string file in Directory.GetFiles (lookupPath, name.Name + ".*")) { 149 string ext = Path.GetExtension (file); 208 Module module = new Module (moduleDefinition); 209 foreach (TypeDefinition type in moduleDefinition.Types) { 210 if (!loadInternal && IsInternal (DomCecilType.GetModifiers (type.Attributes))) 240 { 241 foreach (TypeParameter p in type.TypeParameters) 242 argTypes[p.Name] = type;widgets.php https://bitbucket.org/lordmuffin/origin.git | PHP | 399 lines
80 81foreach ( $sidebars_widgets as $sidebar_id => $widgets ) { 82 if ( 'wp_inactive_widgets' == $sidebar_id ) 123 if ( $number ) { 124 foreach ( $_POST as $key => $val ) { 125 if ( is_array($val) && preg_match('/__i__|%i%/', key($val)) ) { 151 152 foreach ( (array) $wp_registered_widget_updates as $name => $control ) { 153 if ( $name != $id_base || !is_callable($control['callback']) ) 166 if ( !isset($_POST['delete_widget']) ) { 167 foreach ( $sidebars_widgets as $key => $sb ) { 168 if ( is_array($sb) ) 188 // Copy minimal info from an existing instance of this widget to a new instance 189 foreach ( $wp_registered_widget_controls as $control ) { 190 if ( $_GET['base'] === $control['id_base'] ) {Createdat.php https://bitbucket.org/acidel/buykoala.git | PHP | 260 lines
231 // setup all columns to select SUM() except period, store_id and order_status 232 foreach ($columns as $k => $v) { 233 $columns[$k] = new Zend_Db_expr('SUM(' . $k . ')');Currency.php https://bitbucket.org/enurkov/prestashop.git | PHP | 418 lines
142 143 foreach ($selection as $id) 144 { 148 149 foreach ($res as $value) 150 if (!$value) 209 if ($object) 210 foreach ($tab as $key => $currency) 211 $tab[$key] = Currency::getCurrencyInstance($currency['id_currency']); 341 { 342 foreach ($data->currency as $currency) 343 if ($currency['iso_code'] == $defaultCurrency->iso_code) 357 { 358 foreach ($data->currency as $obj) 359 if ($this->iso_code == strval($obj['iso_code']))AbstractAction.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 348 lines
133 { 134 foreach ($tablesList as $table => $columns) { 135 $this->_connection->dropTemporaryTable($table); 181 $productEmulator = new \Magento\Framework\DataObject(); 182 foreach (array_keys($this->_productType->getTypes()) as $typeId) { 183 $productEmulator->setTypeId($typeId); 205 206 foreach ($this->_getProductTypeInstances() as $typeInstance) { 207 /** @var $typeInstance \Magento\Catalog\Model\Product\Type\AbstractType */ 264 265 foreach ($this->_getProductTypeInstances() as $typeInstance) { 266 /** @var $typeInstance \Magento\Catalog\Model\Product\Type\AbstractType */Payment.php https://gitlab.com/Drulenium-bot/payment | PHP | 472 lines
66 $property_names = ['payment_method', 'payment_type']; 67 foreach ($property_names as $property_name) { 68 if (isset($values[$property_name])) { 68 if (isset($values[$property_name])) { 69 foreach ($values[$property_name] as &$item_values) { 70 $item_values['plugin_configuration'] = unserialize($item_values['plugin_configuration']); 136 public function setLineItems(array $line_items) { 137 foreach ($line_items as $line_item) { 138 $this->setLineItem($line_item); 158 public function unsetLineItem($name) { 159 foreach ($this->get('line_items') as $delta => $line_item_item) { 160 if ($line_item_item->getContainedPluginInstance()->getName() == $name) { 173 /** @var \Drupal\plugin\Plugin\Field\FieldType\PluginCollectionItemInterface $field_item */ 174 foreach ($this->get('line_items') as $field_item) { 175 /** @var \Drupal\payment\Plugin\Payment\LineItem\PaymentLineItemInterface $line_item */slideset.js https://gitlab.com/dima-antonenko/projectX | JavaScript | 503 lines
68 69 ['xlarge', 'large', 'medium', 'small'].forEach(function(bp) { 70 200 201 ['xlarge', 'large', 'medium', 'small'].forEach(function(bp) { 202 238 239 filter.forEach(function(item){ 240 if (f.indexOf(item) > -1) infilter = true;iblock_catalog_edit.php https://gitlab.com/alexprowars/bitrix | PHP | 423 lines
185 unset($site, $sitesIterator); 186 foreach ($siteList as $siteIblock => $sites) 187 { 354 <? 355 foreach ($vatList as $vatId => $vatName) 356 {controller.radar.tests.js https://gitlab.com/mnomansheikh/ampuz | JavaScript | 465 lines
144 { x: 256, y: 272, cppx: 256, cppy: 272, cpnx: 256, cpny: 272}, 145 ].forEach(function(expected, i) { 146 expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x); 171 { x: 200, y: 272, cppx: 200, cppy: 275, cpnx: 200, cpny: 261 }, 172 ].forEach(function(expected, i) { 173 expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x); 232 { x: 200, y: 272 }, 233 ].forEach(function(expected, i) { 234 expect(meta.data[i]._model.x).toBeCloseToPixel(expected.x);smooth-scroll.js https://gitlab.com/Mirros/cdnjs | JavaScript | 350 lines
45 /** 46 * A simple forEach() implementation for Arrays, Objects and NodeLists 47 * @private 49 * @param {Function} callback Callback function for each iteration 50 * @param {Array|Object|NodeList} scope Object/NodeList/Array that forEach is iterating over (aka `this`) 51 */ 51 */ 52 var forEach = function (collection, callback, scope) { 53 if (Object.prototype.toString.call(collection) === '[object Object]') { 74 var extended = {}; 75 forEach(defaults, function (value, prop) { 76 extended[prop] = defaults[prop]; 77 }); 78 forEach(options, function (value, prop) { 79 extended[prop] = options[prop];BlogFunctions.cs https://bitbucket.org/kudutest/kenticogit.git | C# | 215 lines
198 Array.Sort(tagsArr); 199 foreach (string tag in tagsArr) 200 {graphe_vari.tex https://bitbucket.org/stepan-a/rfe-tepp-2011.git | LaTeX | 543 lines
6(0 ,4.5655) -- (10.0000,4.5655); 7\foreach \x/\xtext in {0.00/ 0,1.38/ 4,2.76/ 8,4.14/12,5.52/16,6.90/20,8.28/24,9.66/28} 8\draw (\x cm,1pt) -- (\x cm,-3pt) 9node[below] {\xtext}; 10\foreach \y/\ytext in {0.95/-0.3,2.15/-0.2,3.36/-0.1,4.57/ 0.0,5.77/ 0.1,6.98/ 0.2} 11\draw (1pt,\y cm) -- (-3pt,\y cm) node[anchor=east] {\ytext}; 114(0 ,4.3188) -- (10.0000,4.3188); 115\foreach \x/\xtext in {0.00/ 0,1.38/ 4,2.76/ 8,4.14/12,5.52/16,6.90/20,8.28/24,9.66/28} 116\draw (\x cm,1pt) -- (\x cm,-3pt) 117node[below] {\xtext}; 118\foreach \y/\ytext in {0.83/-0.15,2.00/-0.10,3.16/-0.05,4.32/ 0.00,5.48/ 0.05,6.64/ 0.10} 119\draw (1pt,\y cm) -- (-3pt,\y cm) node[anchor=east] {\ytext}; 222(0 ,4.7135) -- (10.0000,4.7135); 223\foreach \x/\xtext in {0.00/ 0,1.38/ 4,2.76/ 8,4.14/12,5.52/16,6.90/20,8.28/24,9.66/28} 224\draw (\x cm,1pt) -- (\x cm,-3pt)themes.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 267 lines
62 } 63 foreach( (array) $themes as $theme ) 64 $allowed_themes[ $theme ] = true; 75 } 76 foreach( (array) $themes as $theme ) 77 unset( $allowed_themes[ $theme ] ); 123 $files_to_delete = $theme_info = array(); 124 foreach ( $themes as $key => $theme ) { 125 $theme_info[ $theme ] = wp_get_theme( $theme ); 150 <ul class="ul-disc"> 151 <?php foreach ( $theme_info as $theme ) 152 echo '<li>', sprintf( __('<strong>%1$s</strong> by <em>%2$s</em>' ), $theme->display('Name'), $theme->display('Author') ), '</li>'; /* translators: 1: theme name, 2: theme author */ ?> 158 <?php 159 foreach ( (array) $themes as $theme ) 160 echo '<input type="hidden" name="checked[]" value="' . esc_attr($theme) . '" />';sites.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 312 lines
83 84 foreach ( (array) $_POST['allblogs'] as $key => $val ) { 85 if ( $val != '0' && $val != $current_site->blog_id ) {class-wp-filesystem-ftpext.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 389 lines
161 $filelist = $this->dirlist($file); 162 foreach ( (array)$filelist as $filename => $filemeta ) 163 $this->chmod($file . '/' . $filename, $mode, $recursive); 207 if ( !empty($filelist) ) 208 foreach ( $filelist as $delete_file ) 209 $this->delete( trailingslashit($file) . $delete_file['name'], $recursive, $delete_file['type'] ); 353 $dirlist = array(); 354 foreach ( $list as $k => $v ) { 355 $entry = $this->parselisting($v); 371 $ret = array(); 372 foreach ( (array)$dirlist as $struc ) { 373 if ( 'd' == $struc['type'] ) {CodeReader.cs https://github.com/hollow87/mono.git | C# | 357 lines
224 // resolve branches 225 foreach (Instruction i in code) { 226 switch (i.OpCode.OperandType) {bot.pl https://gitlab.com/JigmeDatse/synapse | Perl | 309 lines
132 }; 133 foreach (@{$event->{content}->{candidates}}) { 134 if ($_->{sdpMid}) { 159 # batch them up 160 # foreach (@{$event->{content}->{candidates}}) { 161 # push @{$bridgestate->{$room_id}->{candidates}}, $_;Oci.php https://gitlab.com/Ltaimao/wecenter | PHP | 378 lines
243 $desc = array(); 244 foreach ($result as $key => $row) { 245 list ($primary, $primaryPosition, $identity) = array(false, null, false);checkbox.js https://github.com/seanhodges/Closure-Sandbox.git | JavaScript | 329 lines
248 var checkStateClasses = goog.object.getValues(goog.ui.Checkbox.Css); 249 goog.array.forEach(elementClassNames, function(name) { 250 if (!goog.array.contains(checkStateClasses, name)) {SessionManager.js https://github.com/nguyennamtien/etherpad-lite.git | JavaScript | 397 lines
361 362 //foreach trough the sessions and get the sessioninfos 363 async.forEach(sessionIDs, function(sessionID, callback)Client.php https://github.com/mhoofman/wordpress-heroku.git | PHP | 297 lines
225 226 foreach ($commands as $command) { 227 $request = $this->prepareCommand($command); 233 $this->send($requests); 234 foreach ($commands as $command) { 235 $this->dispatch('command.after_send', array('command' => $command)); 242 // Remove failed requests from the successful requests array and add to the failures array 243 foreach ($failureException->getFailedRequests() as $request) { 244 if (isset($commandRequests[$request])) { 250 // Always emit the command after_send events for successful commands 251 foreach ($commandRequests as $success) { 252 $e->addSuccessfulCommand($commandRequests[$success]);meta_view.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 218 lines
27 28foreach( $source_names as $c) 29 { 47} else if ($sort == "by hosts up") { 48 foreach ($sorted_sources as $source => $val) { 49 $sorted_sources[$source] = intval($grid[$source]['HOSTS_UP']); 53} else if ($sort == "by hosts down") { 54 foreach ($sorted_sources as $source => $val) { 55 $sorted_sources[$source] = intval($grid[$source]['HOSTS_DOWN']); 64# Display the sources. The first is ourself, the rest are our children. 65foreach ( $sorted_sources as $source => $val ) 66 { 161 162 foreach ($sorted_sources as $c=>$value) { 163 if ($c==$self) continue;TimedMediaHandler.hooks.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 243 lines
231 ); 232 foreach( $testFiles as $fileName ){ 233 $files[] = $testDir . $fileName;CPgsqlSchema.php https://github.com/LosYear/FluentCMS.git | PHP | 437 lines
92 $db=$this->getDbConnection(); 93 foreach($tableNames as $tableName) 94 { 118 { 119 foreach($table->primaryKey as $pk) 120 { 181 182 foreach($columns as $column) 183 { 269 $command->bindValue(':schema',$table->schemaName); 270 foreach($command->queryAll() as $row) 271 { 298 $command->bindValue(':schema',$table->schemaName); 299 foreach($command->queryAll() as $row) 300 {test.js https://gitlab.com/nVySin/Mo_Grabber | JavaScript | 389 lines
25 26 methods.forEach(function (method) { 27 expect(logger).to.have.property(method);regexcst.pl https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | Perl | 328 lines
230 # to a UnicodeSet object to them here. 231foreach $setName (keys %charClasses) { 232 if ($setName eq "default") { 250print "enum Regex_PatternParseAction {\n"; 251foreach $act (keys %actions) { 252 print " $act,\n";iron-menu-behavior.html https://gitlab.com/hemantr/Test04 | HTML | 319 lines
98 99 this.items.forEach(function(item) { 100 item.setAttribute('tabindex', item === selectedItem ? '0' : '-1');status.php https://gitlab.com/alexprowars/bitrix | PHP | 356 lines
86 $arSqlSelect = array(); 87 foreach($arSelect as $field) 88 if(array_key_exists($field, $arSelectFields)) 107 $arSqlGroup = array(); 108 foreach($arSelect as $field) 109 if(array_key_exists($field, $arGroupFields)) 120 { 121 foreach($arFilter as $key => $val) 122 { 167 $groups = array(); 168 foreach($val as $i => $v) 169 { 343 { 344 foreach ($arGroups as $GROUP_ID) 345 {paysystem.php https://gitlab.com/alexprowars/bitrix | PHP | 297 lines
96 // first - those which have descriptions OR payment system has price 97 foreach($arResult["PAY_SYSTEM"] as $arPaySystem) 98 { 201 // payment system without descriptions OR payment_forward_calc 202 foreach($arResult["PAY_SYSTEM"] as $arPaySystem) 203 {AccountController.cs https://gitlab.com/hebron80/sample-app | C# | 409 lines
343 { 344 foreach (var error in result.Errors) 345 {property_binder.js https://gitlab.com/btluis/Angular2_Ejemplo | JavaScript | 211 lines
53 var renderNode = compileElement.renderNode; 54 boundProps.forEach(function (boundProp) { 55 var bindingIndex = view.bindings.length; 172 } 173 directiveAst.inputs.forEach(function (input) { 174 var bindingIndex = view.bindings.length;StreamBuffer.php https://gitlab.com/techniconline/kmc | PHP | 321 lines
130 { 131 foreach ($this->_translations as $search => $replace) { 132 if (!isset($replacements[$search])) { 137 138 foreach ($replacements as $search => $replace) { 139 if (!isset($this->_translations[$search])) {Str.php https://gitlab.com/techniconline/kmc | PHP | 379 lines
67 { 68 foreach ((array)$needles as $needle) { 69 if ($needle != '' && strpos($haystack, $needle) !== false) return true; 83 { 84 foreach ((array)$needles as $needle) { 85 if ((string)$needle === substr($haystack, -strlen($needle))) return true; 352 { 353 foreach ((array)$needles as $needle) { 354 if ($needle != '' && strpos($haystack, $needle) === 0) return true;table_frame_decorator.cls.php https://gitlab.com/techniconline/kmc | PHP | 358 lines
129 // Insert copies of the table headers before $child 130 foreach ($this->_headers as $header) { 131 317 // Normalise other table parts (i.e. row groups) 318 foreach ($child->get_children() as $grandchild) { 319 if ($grandchild->get_style()->display === "table-row") { 339 340 foreach ($erroneous_frames as $frame) 341 $this->move_after($frame);RssHelper.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 355 lines
137 $elems = ''; 138 foreach ($elements as $elem => $data) { 139 $attributes = array(); 148 $innerElements = ''; 149 foreach ($data as $subElement => $value) { 150 $innerElements .= $this->elem($subElement, array(), $value); 198 199 foreach ($elements as $key => $val) { 200 $attrib = array(); 213 if (is_array($val) && !empty($val[0])) { 214 foreach ($val as $category) { 215 $attrib = array(); 340 if ($attrib) { 341 foreach ($attrib as $key => $value) { 342 $nodes->item(0)->setAttribute($key, $value);sfMessageSource_XLIFF.class.php https://github.com/bheneka/gitta.git | PHP | 447 lines
65 66 foreach ($translationUnit as $unit) 67 { 121 122 foreach ($this->getCatalogueList($catalogue) as $variant) 123 { 193 // for each message add it to the XML file using DOM 194 foreach ($messages as $message) 195 { 259 // for each of the existin units 260 foreach ($units as $unit) 261 { 267 //it will assume that the source is before the target. 268 foreach ($unit->childNodes as $node) 269 {dominators.c https://github.com/hollow87/mono.git | C | 471 lines
241 242 mono_bitset_foreach_bit ((x->dfrontier), j, (m->num_bblocks)) { 243 MonoBasicBlock *w = m->bblocks [j]; 264 265 mono_bitset_foreach_bit (set, i, m->num_bblocks) { 266 mono_bitset_union_fast (dest, m->bblocks [i]->dfrontier);slider.js https://gitlab.com/dima-antonenko/projectX | JavaScript | 482 lines
306 307 move.forEach(function(itm){ 308 340 341 move.forEach(function(itm){ 342Router.php https://github.com/shaunxcode/comicengine.git | PHP | 323 lines
130 public static function parse($request) { 131 foreach (static::$_configurations as $route) { 132 if ($match = $route->parse($request)) { 215 216 foreach (static::$_configurations as $route) { 217 if (!$match = $route->match($url, $context)) { 271 } 272 foreach ($context->persist as $key) { 273 $url += array($key => $context->params[$key]);ImapRequestManager.cpp https://bitbucket.org/kasimling/app-services.git | C++ | 403 lines
109 // Get the max timeout out of all the requests 110 BOOST_FOREACH(const PendingRequest& request, m_pendingRequests) { 111 if(request.timeout == 0) { 222 223 BOOST_FOREACH(const PendingRequest& request, m_pendingRequests) { 224 handled = request.parser->HandleUntaggedResponse(line.substr(2)); 371{ 372 BOOST_FOREACH(const PendingRequest& request, m_pendingRequests) { 373 MojRefCountedPtr<ImapResponseParser> parser = request.parser;DbTable.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 220 lines
165 $tableResources = array(); 166 foreach ($db->listTables() as $actualTableName) { 167 191 192 foreach ($tableResources as $tableResource) { 193 $this->_registry->getResponse()->appendContent('Would create a DbTable at ' . $tableResource->getContext()->getPath()); 197 198 foreach ($tableResources as $tableResource) { 199 $this->_registry->getResponse()->appendContent('Creating a DbTable at ' . $tableResource->getContext()->getPath());node-http-proxy.js https://gitlab.com/VoroninNick/radok | JavaScript | 394 lines
75 // 76 args.forEach(function (arg) { 77 arg = Number(arg) || arg; 291 var handle; 292 middlewares.reverse().forEach(function (layer) { 293 var child = handle; 385 if (options.https && typeof options.https === 'object') { 386 ['ca', 'cert', 'key'].forEach(function (key) { 387 if (options.https[key]) {DefaultConcurrencyAbstractionLayerTest.cs https://gitlab.com/svsamipillai/Rx.NET | C# | 408 lines
40 41 foreach (var file in Directory.GetFiles(cur)) 42 {System_Deployment.aspx.cs https://bitbucket.org/kudutest/kenticogit.git | C# | 244 lines
38 { 39 foreach (DataRow dr in ds.Tables[0].Rows) 40 { 55 { 56 foreach (DataRow dr in ds.Tables[0].Rows) 57 { 72 { 73 foreach (DataRow dr in ds.Tables[0].Rows) 74 { 97 { 98 foreach (DataRow dr in ds.Tables[0].Rows) 99 { 134 { 135 foreach (DataRow dr in ds.Tables[0].Rows) 136 {ProcessWatcher.cpp https://gitlab.com/mkroehnert/ArmarXCore | C++ | 420 lines
27#include <boost/algorithm/string/trim.hpp> // for trim 28#include <boost/foreach.hpp> // for auto_any_base, etc 29#include <boost/iterator/iterator_facade.hpp> // for operator!= 269 std::map<int, int> resultMap; 270 BOOST_FOREACH(int threadId, threadIds) 271 {Tool.php https://bitbucket.org/graaaf/erso.git | PHP | 363 lines
116 117 foreach (self::$_charsTable as $char => $vals) { 118 foreach ($mode as $type) { 119 if (isset($vals[$type])) { 120 foreach ($vals[$type] as $v) { 121 if ('utf8' === $type && is_int($v)) { 155 156 foreach ($allowableTag as $tag) { 157 if ('<' !== substr($tag, 0, 1) || '>' !== substr($tag, -1, 1)) { 220 221 foreach ($attribute as $attr => $value) { 222 $htmlTag .= " $attr=\"$value\""; 304 305 foreach (self::$_customBlocks as $block) { 306 $text = preg_replace("/({$block[0]})(.+?)({$block[1]})/se", "'\\1' . $safeType . '\\3'" , $text);profile2.api.php https://github.com/zzolo/incl.git | PHP | 313 lines
27 $result = db_query('SELECT pid, foo FROM {mytable} WHERE pid IN(:ids)', array(':ids' => array_keys($entities))); 28 foreach ($result as $record) { 29 $entities[$record->pid]->foo = $record->foo;user.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 543 lines
78 $like = array(); 79 foreach(array('username', 'screen_name', 'email') as $key) 80 { 486 $list = ''; 487 foreach ($results as $result) 488 {AdminpController.php https://gitlab.com/deadgood/sportas | PHP | 357 lines
177 $tmpAge = array(); 178 foreach ($age as $key => $item) { 179 $tmpAge[$item] = $item; 194 $arrivalInterval = Tour::find()->where(['id' => 2])->one(); 195 foreach ($acreditationArr as $key => $item) { 196 $acreditation[$item['id'] . '_' . $item['dependency']] = $item['name']; 245 $tmpAge = array(); 246 foreach ($age as $key => $item) { 247 $tmpAge[$item] = $item; 267 $arrivalInterval = Tour::find()->where(['id' => 2])->one(); 268 foreach ($acreditationArr as $key => $item) { 269 $acreditation[$item['id'] . '_' . $item['dependency']] = $item['name'];Curl.php https://github.com/rjdjohnston/Little-Corner.git | PHP | 372 lines
225 // Merge options in with the rest - done as array_merge() does not overwrite numeric keys 226 foreach ($options as $option_code => $option_value) 227 {rx.joinpatterns.js https://gitlab.com/Mirros/cdnjs | JavaScript | 324 lines
81 82 Map.prototype.forEach = function (cb, thisArg) { 83 for (var i = 0; i < this.size; i++) { 170 ActivePlan.prototype.dequeue = function () { 171 this.joinObservers.forEach(function (v) { v.queue.shift(); }); 172 }; 296 function (err) { 297 externalSubscriptions.forEach(function (v) { v.onError(err); }); 298 o.onError(err); 313 var group = new CompositeDisposable(); 314 externalSubscriptions.forEach(function (joinObserver) { 315 joinObserver.subscribe();NodeBuilderGUI.php https://gitlab.com/vanthanhhoh/devlovebook | PHP | 326 lines
44 $_Temp = array('NodeTypes' => array(), 'RequiredNodeTypes' => array(), 'NodeTypeMissed' => array()); 45 foreach($Profiles as $Profile) { 46 $_CP = unserialize(File::GetContent($Profile)); 54 $PrepareProfiles = glob($this->NodeProfilePath . 'default_*.xml'); 55 foreach($PrepareProfiles as $Profile) { 56 $this->NodeBuilder->ResetNodeBuilder(); 61 $MapperContent1 = $MapperContent2 = array(); 62 foreach($NodeTypes['NodeTypes'] as $Name => $NodeType) { 63 $MapperContent1[$Name] = array('title' => $NodeType['NodeTypeInfo']['title'], 190 if(!empty($FieldData['value'])) 191 foreach($FieldData['value'] as $v) 192 $ValueCollections[] = $FieldData['options'][$v]['value']; 209 if(!is_array($FieldData['value'])) $FieldData['value'] = array($FieldData['value']); 210 foreach($FieldData['value'] as $v) 211 $ValueCollections[] = $FieldData['options'][$v]['value'];managefile.php https://gitlab.com/vectorci/Collabtive | PHP | 323 lines
73 } 74 foreach($users as $user) { 75 if (!empty($user["email"])) { 107 $chk = 0; 108 foreach($_FILES as $file) { 109 $fid = $myfile->uploadAsync($file["name"],$file["tmp_name"],$file["type"],$file["size"], $upath, $id, $upfolder); 122 } 123 foreach($users as $user) { 124 if (!empty($user["email"])) { 226 if (!empty($files)) { 227 foreach($files as $file) { 228 if ($file["visible"]) { 251 if (!empty($folders)) { 252 foreach($folders as $folder) { 253 if ($folder["visible"]) {panel.php https://gitlab.com/devdoblea/factutextil.local | PHP | 345 lines
65 if($productos != null){ 66 foreach ($productos as $p) { 67 echo '<tr>'; 109 if($ordenes != null){ 110 foreach ($ordenes as $o) { 111 echo '<tr>'; 242 var data = [ 243 <?php foreach ($os as $o) { 244 echo "['".$o->status."', ".$o->total."],";fields.pm https://github.com/dougwilson/perl.git | Perl | 327 lines
50 } 51 foreach my $f (@_) { 52 my $fno = $fields->{$f};gas-preprocessor.pl https://github.com/energy6/xbmc.git | Perl | 497 lines
37if ((grep /^-c$/, @gcc_cmd) && !(grep /^-o/, @gcc_cmd)) { 38 foreach my $i (@gcc_cmd) { 39 if ($i =~ /\.[csS]$/) { 60# look for -arch flag 61foreach my $i (1 .. $#gcc_cmd-1) { 62 if ($gcc_cmd[$i] eq "-arch") { 198 # discard lines in false .if blocks 199 foreach my $i (0 .. $#ifstack) { 200 if ($ifstack[$i] <= 0) { 233 my @args = split(/\s+/, $arglist); 234 foreach my $i (0 .. $#args) { 235 my @argpair = split(/=/, $args[$i]); 293 my $comma_sep_required = 0; 294 foreach (@arglist) { 295 # allow arithmetic/shift operators in macro argumentsqtypes.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 312 lines
50$needed = array(); 51foreach ($qtypes as $qtypename => $qtype) { 52 if (!isset($counts[$qtypename])) { 61$needed['missingtype'] = true; // The system needs the missing question type. 62foreach ($counts as $qtypename => $count) { 63 if (!isset($qtypes[$qtypename])) { 71$sortedqtypes = array(); 72foreach ($qtypes as $qtypename => $qtype) { 73 $sortedqtypes[$qtypename] = $qtype->local_name(); 202$createabletypes = question_bank::get_creatable_qtypes(); 203foreach ($sortedqtypes as $qtypename => $localname) { 204 $qtype = $qtypes[$qtypename]; 242 if (!empty($requiredtypes)) { 243 foreach ($requiredtypes as $required => $notused) { 244 $strtypes[] = $pluginmanager->plugin_name($required);dashboard.php https://gitlab.com/ngochuynh1991/cuacuon | PHP | 186 lines
106 echo __( 'The following file(s) is/are blocking your XML sitemaps from working properly:', 'wordpress-seo' ), '<br />'; 107 foreach ( $options['blocking_files'] as $file ) { 108 echo esc_html( $file ), '<br/>'; 162 <h2 class="nav-tab-wrapper" id="wpseo-tabs"> 163 <?php foreach ( $tabs as $identifier => $tab ) : ?> 164 <a class="nav-tab" id="<?php echo $identifier; ?>-tab" href="#top#<?php echo $identifier; ?>"><?php echo $tab['label']; ?></a> 164 <a class="nav-tab" id="<?php echo $identifier; ?>-tab" href="#top#<?php echo $identifier; ?>"><?php echo $tab['label']; ?></a> 165 <?php endforeach; ?> 166 </h2> 169 170foreach ( $tabs as $identifier => $tab ) { 171Insert.cs https://bitbucket.org/moisesmiranda/subsonic-4.git | C# | 293 lines
93 Init(); 94 foreach(object o in props) 95 { 144 StringBuilder sb = new StringBuilder(); 145 foreach(string s in ColumnList) 146 { 164 int itemIndex = 0; 165 foreach(string s in ColumnList) 166 { 277 //add in the commands 278 foreach(InsertSetting s in Inserts) 279 {builder.js https://gitlab.com/hemantr/NetBeansProjects | JavaScript | 303 lines
123 // because we require only one of each type 124 args.forEach(function (arg) { 125 var type = Object.prototype.toString.call(arg) 149 var files = []; 150 base.forEach(function (file) { 151 files.push(__dirname + '/../lib/' + file); 153 154 transports.forEach(function (transport) { 155 var dependencies = baseTransports[transport]; 161 // Add the files to the files list, but only if they are not added before 162 dependencies.forEach(function (file) { 163 var path = __dirname + '/../lib/' + file; 171 var results = {}; 172 files.forEach(function (file) { 173 fs.readFile(file, function (err, content) {Container.php https://github.com/obias/zf2.git | PHP | 426 lines
101 102 foreach ($riIterator as $currentResource) { 103 119 } 120 foreach ($currentConstraint->params as $paramName => $paramValue) { 121 if (!isset($currentResourceAttributes[$paramName]) || $currentResourceAttributes[$paramName] != $paramValue) { 216 { 217 foreach ($attributes as $attrName => $attrValue) { 218 $setMethod = 'set' . $attrName; 420 $this->rewind(); 421 foreach ($this->_subResources as $index => $resource) { 422 $this->_subResources[$index] = clone $resource;index.php https://gitlab.com/flyhope/Hiblog | PHP | 189 lines
18 $vars = get_object_vars( $value ); 19 foreach ($vars as $key=>$data) { 20 $value->{$key} = stripslashes_deep( $data );action-2.x.js https://github.com/dumganhar/cocos2d-x.git | JavaScript | 316 lines
49 var timelines = json["Timelines"]; 50 timelines.forEach(function(timeline){ 51 var parser = self.parsers[timeline["Property"]]; 282 if(points){ 283 points.forEach(function(p){ 284 result.push(p["X"]); 290 291 frameList.forEach(function(item){ 292 parser.registerParser(item.name, function(options, resourcePath){ 297 if(frames && frames.length){ 298 frames.forEach(function(frameData){ 299 var frame = item.handle(frameData, resourcePath);Translator.php https://gitlab.com/leon0399/damnit-engine | PHP | 438 lines
166 167 foreach ($locales as $locale) { 168 $this->assertValidLocale($locale); 367 if (isset($this->resources[$locale])) { 368 foreach ($this->resources[$locale] as $resource) { 369 if (!isset($this->loaders[$resource[0]])) { 380 381 foreach ($this->computeFallbackLocales($locale) as $fallback) { 382 if (!isset($this->catalogues[$fallback])) { 394 $locales = array(); 395 foreach ($this->fallbackLocales as $fallback) { 396 if ($fallback === $locale) {ada.exp https://bitbucket.org/killerpenguinassassins/open_distrib_devel.git | Expect | 433 lines
80 81 foreach i $options { 82 if { $i == "ada" } { 262 263 foreach i $options { 264 if { $i == "debug" } { 278 append add_flags " $ldflags" 279 foreach x $libs { 280 if [file exists $x] { 321 if [is_remote host] { 322 foreach x $source { 323 set file [remote_download host $x];Unix.pm https://github.com/dougwilson/perl.git | Perl | 522 lines
154 } 155 foreach (@dirlist) { 156 next unless defined && -d && -w _; 222 my @path = split(':', $ENV{PATH}); 223 foreach (@path) { $_ = '.' if $_ eq '' } 224 return @path; 499 my @collapsed; 500 foreach my $dir (@dirs) { 501 if( $dir eq $updir and # if we have an updirSiteStats.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 486 lines
208 // Now check for underflow/overflow 209 foreach( array( 'total_views', 'total_edits', 'good_articles', 210 'total_pages', 'users', 'admins', 'images' ) as $member ) {_stream_duplex.js.html https://gitlab.com/KongMono/GuitarChord | HTML | 287 lines
263 264<span class="fstat-no" title="function not covered" >function forEach(xs, f) {</span> 265<span class="cstat-no" title="statement not covered" > for (var i = 0, l = xs.length; i < l; i++) {</span>TermI.pm https://github.com/gjuggler/bioperl-live.git | Perl | 387 lines
37 38 foreach my $synonym ( $term->get_synonyms() ) { 39 print $synonym, "\n";Verify.cs https://github.com/josephcooney/ILSpy.git | C# | 312 lines
296 bool isImplemented = false; 297 foreach (var ifaceType in parameter.GetType().GetInterfaces()) 298 {Abstract.php https://bitbucket.org/haichau59/manga.git | PHP | 401 lines
73 // use all remaining parts in the DSN 74 foreach ($dsn as $key => $val) { 75 $dsn[$key] = "$key=$val"; 227 if (is_array($bind)) { 228 foreach ($bind as $name => $value) { 229 if (!is_int($name) && !preg_match('/^:/', $name)) {Packaging.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 337 lines
165 $packageNum = 1; 166 foreach ($packages as $package) { 167 $page->setFillColor(new \Zend_Pdf_Color_Rgb(0.93, 0.92, 0.92)); 300 $i = 0; 301 foreach ($package->getItems() as $itemId => $item) { 302 $item = new \Magento\Framework\DataObject($item);dmDebug.php https://github.com/xdade/diem.git | PHP | 361 lines
58 { 59 foreach($something as $key => $val) 60 { 152 $trace = debug_backtrace(); 153 foreach ($trace as $element) 154 { 200 $first = true; 201 foreach ($trace as $element) 202 {Makefile https://gitlab.com/brian0218/rk3188_r-box_android4.2.2_sdk | Makefile | 357 lines
27md5sum := $(firstword $(wildcard \ 28 $(foreach e,md5sum openssl,\ 29 $(foreach p,$(subst :, ,$(PATH)),$(p)/$(e)*))\ 170find_file1=$(word 1,$(wildcard $(subst //,/,$(addsuffix /$(1),$(2))))) 171find_file=$(foreach f,$(1),$(call find_file1,$(strip $(f)),$(strip $(2))) ) 172obj_pats=.c=.c.o $(AS_SFX)=$(AS_SFX).o 172obj_pats=.c=.c.o $(AS_SFX)=$(AS_SFX).o 173objs=$(addprefix $(BUILD_PFX),$(foreach p,$(obj_pats),$(filter %.o,$(1:$(p))) )) 174 292 @touch $@ 293$(foreach lib,$(filter %_g.a,$(LIBS)),$(eval $(call archive_template,$(lib)))) 294$(foreach lib,$(filter %so.$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_PATCH),$(LIBS)),$(eval $(call so_template,$(lib))))locale.php https://github.com/sharpmachine/wakeupmedia.com.git | PHP | 341 lines
116 117 foreach ($this->weekday_initial as $weekday_ => $weekday_initial_) { 118 $this->weekday_initial[$weekday_] = preg_replace('/_.+_initial$/', '', $weekday_initial_); 158 159 foreach ($this->month_abbrev as $month_ => $month_abbrev_) { 160 $this->month_abbrev[$month_] = preg_replace('/_.+_abbreviation$/', '', $month_abbrev_);AdminLeoSlideshow.php https://gitlab.com/ptisky/API_prestashop | PHP | 344 lines
51 $lang_list = array(); 52 foreach ($languages as $lang) 53 $lang_list[$lang['id_lang']] = $lang['iso_code']; 54 55 foreach ($sliders as $slider) 56 { 57 $curent_lang = 'en'; 58 foreach ($slider as $key => $value) 59 { 94 $lang_list = array(); 95 foreach ($languages as $lang) 96 $lang_list[$lang['iso_code']] = $lang['id_lang']; 109 110 foreach ($content['sliders'] as $slider) 111 {typography_helper.php https://github.com/usagi-project/mynets1.git | PHP | 545 lines
199 $process = TRUE; 200 foreach ($chunks as $chunk) 201 {kodoc.php https://github.com/jongwook/ksa14-kohana.git | PHP | 354 lines
59 60 foreach ($classes as $class) 61 { 74 75 foreach ($classes as $class) 76 { 86 { 87 foreach ($class->tags['package'] as $package) 88 { 90 { 91 foreach ($class->tags['category'] as $category) 92 { 131 132 foreach ($list as $name => $path) 133 {authentication.php https://bitbucket.org/jstechnologies/cats.git | PHP | 238 lines
194 } 195 foreach ($this->_realms[$url->getHost()] as $name => $realm) { 196 if ($realm->isWithin($url)) {OnBehalfOf.tpl https://github.com/timstephenson/NatureBridge.git | Smarty Template | 300 lines
39 <div id="select_org" class="crm-section"> 40 {foreach from=$form.onbehalf item=field key=fieldName} 41 <div class="crm-section {$onBehalfOfFields.$fieldName.name}-section"> 69 {assign var="index" value="1"} 70 {foreach name=outer key=key item=item from=$field} 71 {if $index < 10} 82 {/if} 83 {/foreach} 84 </tr> 109 </div> 110 {/foreach} 111 </div>