PageRenderTime 431ms queryFilters 0ms Sphinxql 340ms app.CodeModel.GetByIds 22ms findMatchingLines 15ms GetByIds 37ms meta 0ms repositoryFilters 3ms languageFilters 2ms sourceFilters 3ms

4,916,907 results for 'foreach' (431 ms)

Source

Language

Repository

angular-1.0.1.js https://bitbucket.org/deshartman/containerdirective.git | JavaScript | 14,327 lines
88     var log = [];
89     angular.forEach(values, function(value, key){
90       this.push(key + ': ' + value);
99 */
100function forEach(obj, iterator, context) {
101  var key;
108      }
109    } else if (obj.forEach && obj.forEach !== forEach) {
110      obj.forEach(iterator, context);
447  var results = [];
448  forEach(obj, function(value, index, list) {
449    results.push(iterator.call(context, value, index, list));
1264    'element': jqLite,
1265    'forEach': forEach,
1266    'injector': createInjector,
tester.tcl https://bitbucket.org/aware/sqlite.git | TCL | 1,651 lines
258
259  foreach filename $args {
260    # On windows, sometimes even a [file delete -force] can fail just after
339  set leftover [list]
340  foreach a $argv {
341    switch -regexp -- $a {
349      {^-+soft-heap-limit=.+$} {
350        foreach {dummy cmdlinearg(soft-heap-limit)} [split $a =] break
351      }
352      {^-+maxerror=.+$} {
353        foreach {dummy cmdlinearg(maxerror)} [split $a =] break
354      }
355      {^-+malloctrace=.+$} {
356        foreach {dummy cmdlinearg(malloctrace)} [split $a =] break
357        if {$cmdlinearg(malloctrace)} {
fts3auto.test https://bitbucket.org/aware/sqlite.git | Unknown | 711 lines
66
67  foreach {k v} [lrange $args 0 [expr $nArg-3]] {
68    switch -- $k {
81  set matchinfo_asc [list]
82  foreach docid [lsort -integer -incr [array names aHit]] {
83    lappend matchinfo_asc $docid $aMatchinfo($docid)
85  set matchinfo_desc [list]
86  foreach docid [lsort -integer -decr [array names aHit]] {
87    lappend matchinfo_desc $docid $aMatchinfo($docid)
157  set out [list]
158  foreach t $expr {
159    if {[string match *:* $t]} {
182  lappend out [fix_phrase_expr $cols [lindex $expr 0] iColFilter]
183  foreach {a b} [lrange $expr 1 end] {
184    if {[string match -nocase near $a]}   { set a 10 }
capi3c.test https://bitbucket.org/aware/sqlite.git | Unknown | 1,373 lines
239    set cnamelist [list]
240    foreach i $idxlist {lappend cnamelist [sqlite3_column_name $STMT $i]} 
241    set cnamelist
247      set cnamelist [list]
248      foreach i $idxlist {
249        lappend cnamelist [utf8 [sqlite3_column_name16 $STMT $i]]
257    set cnamelist [list]
258    foreach i $idxlist {lappend cnamelist [sqlite3_column_name $STMT $i]} 
259    set cnamelist
265      set cnamelist [list]
266      foreach i $idxlist {
267        lappend cnamelist [utf8 [sqlite3_column_name16 $STMT $i]]
275    set cnamelist [list]
276    foreach i $idxlist {lappend cnamelist [sqlite3_column_decltype $STMT $i]} 
277    set cnamelist
capi3.test https://bitbucket.org/aware/sqlite.git | Unknown | 1,230 lines
257    set cnamelist [list]
258    foreach i $idxlist {lappend cnamelist [sqlite3_column_name $STMT $i]} 
259    set cnamelist
265      set cnamelist [list]
266      foreach i $idxlist {
267        lappend cnamelist [utf8 [sqlite3_column_name16 $STMT $i]]
275    set cnamelist [list]
276    foreach i $idxlist {lappend cnamelist [sqlite3_column_name $STMT $i]} 
277    set cnamelist
283      set cnamelist [list]
284      foreach i $idxlist {
285        lappend cnamelist [utf8 [sqlite3_column_name16 $STMT $i]]
293    set cnamelist [list]
294    foreach i $idxlist {lappend cnamelist [sqlite3_column_decltype $STMT $i]} 
295    set cnamelist
boundary4.tcl https://bitbucket.org/aware/sqlite.git | TCL | 340 lines
29#
30foreach x {
31  0x7f
58  set y {}
59  foreach x $inlist {
60    lappend y [list [expr {rand()}] $x]
63  set outlist {}
64  foreach x $y {
65    lappend outlist [lindex $x 1]
74  set mn [lindex $inlist 0]
75  foreach x $inlist {
76    if {$x<$mn} {set mn $x}
81    set valid 0
82    foreach x $inlist {
83      if {$x>$mx && (!$valid || $mn>$x)} {
boundary2.tcl https://bitbucket.org/aware/sqlite.git | TCL | 445 lines
28#
29foreach x {
30  0
59  set y {}
60  foreach x $inlist {
61    lappend y [list [expr {rand()}] $x]
64  set outlist {}
65  foreach x $y {
66    lappend outlist [lindex $x 1]
75  set mn [lindex $inlist 0]
76  foreach x $inlist {
77    if {$x<$mn} {set mn $x}
82    set valid 0
83    foreach x $inlist {
84      if {$x>$mx && (!$valid || $mn>$x)} {
CodeSniffer.php https://bitbucket.org/bestteam/expenses.git | PHP | 2,138 lines
304        $newExtensions = array();
305        foreach ($extensions as $ext) {
306            if (isset($this->allowedFileExtensions[$ext]) === true) {
492        $lastDir      = '';
493        foreach ($todo as $file) {
494            $this->file = $file;
535            }
536        }//end foreach
537
560    {
561        foreach ($this->_tokenListeners['multifile'] as $listenerData) {
562            // Set the name of the listener for error messages.
562            // Set the name of the listener for error messages.
563            foreach ($this->files as $file) {
564                $file->setActiveListener($listenerData['class']);
AbstractVisitor.php https://bitbucket.org/bestteam/expenses.git | PHP | 521 lines
109
110        foreach ($class->getProperties() as $property) {
111            $property->accept($this);
112        }
113        foreach ($class->getMethods() as $method) {
114            $method->accept($this);
133
134        foreach ($trait->getMethods() as $method) {
135            $method->accept($this);
168
169        foreach ($function->getParameters() as $parameter) {
170            $parameter->accept($this);
189
190        foreach ($interface->getMethods() as $method) {
191            $method->accept($this);
DboSource.php https://bitbucket.org/bestteam/expenses.git | PHP | 3,294 lines
572
573			foreach ($field as $f) {
574				$conditions[$args[2]->alias . '.' . $f] = $params[$c++];
713		if (isset($result[0]) && is_array($result[0])) {
714			foreach ($result[0] as $field => $value) {
715				if (strpos($field, $this->virtualFieldSeparator) === false) {
806		if (is_array($data)) {
807			foreach ($data as $i => $dataItem) {
808				$data[$i] = $this->name($dataItem);
906		} else {
907			foreach ($log['log'] as $k => $i) {
908				print (($k + 1) . ". {$i['query']}\n");
1060
1061		foreach ($_associations as $type) {
1062			foreach ($model->{$type} as $assoc => $assocData) {
Selector.js https://bitbucket.org/sebsto/phonegapdemo.git | JavaScript | 1,475 lines
421		};
422		array.forEach(g.views.views, function(view){
423			view.content.domouseup = doContentMouseUp;
472		this.connect(g, "updateRow", function(rowIndex){
473			array.forEach(g.layout.cells, function(cell){
474				if(this.isSelected("cell", rowIndex, cell.index)){
622		var found = false;
623		array.forEach(pointSet, function(item){
624			if(item){
646		pointSet = pointSet.concat(this._selected.cell);
647		array.forEach(pointSet, function(item){
648			if(item){
665		
666		array.forEach(this._selected.row, function(item){
667			array.forEach(this.grid.layout.cells, function(cell){
formatqti.php https://bitbucket.org/moodle/moodle.git | PHP | 914 lines
63        // Each <item> tag contains data related to a single question.
64        foreach ($rawquestions as $quest) {
65            // Second step : parse each question data into the intermediate
119
120        foreach ($presentation->blocks as $pblock) {
121            $block = new stdClass();
130                            array(), false);
131                    foreach ($subblocks as $sblock) {
132                        $this->process_block($sblock, $block);
142                                    array(), false);
143                            foreach ($bbsubquestions as $bbsubquestion) {
144                                $subquestion = new stdClass();
178                                    array(), false);
179                            foreach ($mcchoices as $mcchoice) {
180                                $choices = new stdClass();
questionlib_test.php https://bitbucket.org/moodle/moodle.git | PHP | 2,196 lines
646
647        foreach ($questions as $question) {
648            $this->assertEquals($qcat, $question->categoryobject);
665
666        foreach ($questions as $question) {
667            $tags = core_tag_tag::get_item_tags('core_question', 'question', $question->id);
669            $actualtags = $question->tags;
670            foreach ($tags as $tag) {
671                $expectedtags[$tag->id] = $tag->get_display_name();
702
703        foreach ($questions as $question) {
704            $tags = core_tag_tag::get_item_tags('core_question', 'question', $question->id);
706            $actualcoursetags = $question->coursetags;
707            foreach ($tags as $tag) {
708                $expectedcoursetags[$tag->id] = $tag->get_display_name();
lib.php https://bitbucket.org/moodle/moodle.git | PHP | 1,014 lines
163            'descriptionmarkersformat', 'shortname', 'maxscore');
164        foreach ($newcriteria as $id => $criterion) {
165            if (preg_match('/^NEWID\d+$/', $id)) {
168                    'descriptionmarkersformat' => FORMAT_MOODLE); // TODO format is not supported yet.
169                foreach ($criteriafields as $key) {
170                    if (array_key_exists($key, $criterion)) {
180                $data = array();
181                foreach ($criteriafields as $key) {
182                    if (array_key_exists($key, $criterion) && $criterion[$key] != $currentcriteria[$id][$key]) {
196        // Remove deleted criteria from DB.
197        foreach (array_keys($currentcriteria) as $id) {
198            if (!array_key_exists($id, $newcriteria)) {
212        $commentfields = array('sortorder', 'description');
213        foreach ($newcomment as $id => $comment) {
214            if (preg_match('/^NEWID\d+$/', $id)) {
locallib.php https://bitbucket.org/moodle/moodle.git | PHP | 1,255 lines
244        }
245        foreach ($this->configstores as $store) {
246            if (isset($store['lock']) && $store['lock'] === $name) {
271        );
272        foreach ($modemappings as $mode => $stores) {
273            if (!array_key_exists($mode, $mappings)) {
276            $sort = 0;
277            foreach ($stores as $store) {
278                if (!array_key_exists($store, $this->configstores)) {
366        }
367        foreach ($this->configmodemappings as $mapping) {
368            if ($mapping['store'] === $name) {
371        }
372        foreach ($this->configdefinitionmappings as $mapping) {
373            if ($mapping['store'] === $name) {
Form.php https://bitbucket.org/mercysam/zfs.git | PHP | 3,048 lines
235        $elements = array();
236        foreach ($this->getElements() as $name => $element) {
237            $elements[] = clone $element;
241        $subForms = array();
242        foreach ($this->getSubForms() as $name => $subForm) {
243            $subForms[$name] = clone $subForm;
247        $displayGroups = array();
248        foreach ($this->_displayGroups as $group)  {
249            $clone    = clone $group;
250            $elements = array();
251            foreach ($clone->getElements() as $name => $e) {
252                $elements[] = $this->getElement($name);
266    {
267        foreach ($this->getElements() as $element) {
268            $element->setValue(null);
Boolean.php https://bitbucket.org/mercysam/zfs.git | PHP | 806 lines
95            if (is_array($signs)) {
96                foreach ($signs as $sign ) {
97                    if ($sign !== true) {
122                $this->_signs = array();
123                foreach ($this->_subqueries as $prevSubquery) {
124                    $this->_signs[] = true;
143
144        foreach ($this->_subqueries as $subqueryId => $subquery) {
145            $query->addSubquery($subquery->rewrite($index),
163        // Optimize all subqueries
164        foreach ($this->_subqueries as $id => $subquery) {
165            $subqueries[] = $subquery->optimize($index);
169        // Remove insignificant subqueries
170        foreach ($subqueries as $id => $subquery) {
171            if ($subquery instanceof Zend_Search_Lucene_Search_Query_Insignificant) {
Data.php https://bitbucket.org/mercysam/zfs.git | PHP | 1,208 lines
94            if (!empty($result)) {
95                foreach ($result as &$found) {
96
249        $ret = "001";
250        foreach ($list as $key => $value) {
251            if (strpos($locale, '_') !== false) {
319                if ($value === 1) {
320                    foreach($temp as $key => $value) {
321                        if ((is_numeric($key) === false) and ($key != 'QO') and ($key != 'QU')) {
325                } else if ($value === 2) {
326                    foreach($temp as $key => $value) {
327                        if (is_numeric($key) or ($key == 'QO') or ($key == 'QU')) {
515                $temp2 = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/fields/field', 'type');
516                foreach ($temp2 as $key => $keyvalue) {
517                    $temp += self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/fields/field[@type=\'' . $key . '\']/displayName', '', $key);
Abstract.php https://bitbucket.org/mercysam/zfs.git | PHP | 1,315 lines
258                $path   = rtrim($path, DIRECTORY_SEPARATOR);
259                foreach (array(self::FILTER, self::VALIDATE) as $type) {
260                    $cType        = ucfirst(strtolower($type));
283        }
284        foreach ($spec as $type => $paths) {
285            if (is_numeric($type) && is_array($paths)) {
294                if (!isset($paths['prefix']) || !isset($paths['path'])) {
295                    foreach ($paths as $prefix => $spec) {
296                        if (is_array($spec)) {
296                        if (is_array($spec)) {
297                            foreach ($spec as $path) {
298                                if (!is_string($path)) {
338        $files                    = $this->_getFiles($files, true, true);
339        foreach ($files as $file) {
340            $this->_files[$file]['validators'][] = $name;
db_tools.php https://bitbucket.org/itoxable/chiron-gaming.git | PHP | 2,420 lines
414		// Iterate through the columns to create a table
415		foreach ($table_data['COLUMNS'] as $column_name => $column_data)
416		{
503						$primary_key_stmts = $this->sql_create_primary_key($table_name, $table_data['PRIMARY_KEY']);
504						foreach ($primary_key_stmts as $pk_stmt)
505						{
587		{
588			foreach ($table_data['KEYS'] as $key_name => $key_data)
589			{
599
600				foreach ($key_stmts as $key_stmt)
601				{
654		{
655			foreach ($schema_changes['add_tables'] as $table => $table_data)
656			{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21