PageRenderTime 513ms queryFilters 0ms Sphinxql 286ms app.CodeModel.GetByIds 71ms findMatchingLines 22ms GetByIds 93ms meta 0ms repositoryFilters 7ms languageFilters 8ms sourceFilters 4ms

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

Source

Language

Repository

neurogriditem.cpp https://bitbucket.org/kulibali/neurocogling | C++ | 1,412 lines
150        // copy colors
151        foreach (Index cell_index, _all_grid_cells)
152        {
314
315        foreach (NeuroItem *item, connections())
316        {
332        QList<Index> top_incoming, top_outgoing;
333        foreach (NeuroNetworkItem *ni, top_connected)
334        {
343        QList<Index> bottom_incoming, bottom_outgoing;
344        foreach (NeuroNetworkItem *ni, bottom_connected)
345        {
359
360        foreach (NeuroItem *item, this->connections())
361        {
ParserControlDataBuilder.cs https://bitbucket.org/earwicker/spec | C# | 636 lines
77    private void GetNonTerminalsFromGrammar() {
78      foreach (BnfTerm t in _grammar.AllTerms) {
79        NonTerminal nt = t as NonTerminal;
84    private void InitNonTerminalData() {
85      foreach (NonTerminal nt in Data.NonTerminals)
86        NtData.GetOrCreate(nt);
98      LR0Item._maxID = 0; 
99      foreach(NonTerminal nt in Data.NonTerminals) {
100        NtData ntInfo = NtData.GetOrCreate(nt);
107        //actually create productions for each sequence
108        foreach (BnfTermList prodOperands in allData) {
109          Production prod = CreateProduction(nt, prodOperands);
112          Data.Productions.Add(prod);
113        }//foreach prodOperands
114      }
Irony_GrammarDataBuilder.cs https://bitbucket.org/earwicker/spec | C# | 611 lines
116      //check all child elements
117      foreach(BnfTermList elemList in nt.Rule.Data)
118        for(int i = 0; i < elemList.Count; i++) {
135      if (_grammar.CaseSensitive) return;
136      foreach (Terminal term in Data.Terminals)
137        if (term is SymbolTerminal)
143      Data.TerminalsWithoutPrefixes.Clear();
144      foreach (Terminal term in Data.Terminals) {
145        IList<string> prefixes = term.GetFirsts();
150        //Go through prefixes one-by-one
151        foreach (string prefix in prefixes) {
152          if (string.IsNullOrEmpty(prefix)) continue;
165        }
166      }//foreach term
167      //Now add _noPrefixTerminals to every list in table
query.php https://bitbucket.org/kandsten/hitta.sverok.se | PHP | 2,574 lines
36	$entryMapper = entityFieldMap();
37	foreach ($entryMapper as $key => $column) { if (array_key_exists($key, $data)) { $columnData[$column] = $data[$key]; } }
38	
46	
47	foreach ($columnData as $column => $value)
48	{
72		$vals[] = $data['id'];
73		foreach ($cols as $colname) { $defs[] = "$colname = ?"; };
74		
155	$entryMapper = eventFieldMap();
156	foreach ($entryMapper as $key => $column) { if (array_key_exists($key, $data)) { $columnData[$column] = $data[$key]; } }
157	
162	
163	foreach ($columnData as $column => $value)
164	{
stdlib.js https://bitbucket.org/pthrasher/nocschedule | JavaScript | 2,443 lines
101    
102    this.forEach && typeof time === 'function' &&
103      this.forEach(function() {
535  extend: {
536    forEach: function(block, context) {
537      if (!block) return new JS.Enumerator(this, 'forEach');
558        var push = Array.prototype.push;
559        JS.Enumerable.forEach.call(array, function(item) {
560          push.call(this, item);
950JS.Enumerable.include({
951  forEach:    JS.Enumerable.forEach,
952  collect:    JS.Enumerable.instanceMethod('map'),
1496      if (!list || !block) return;
1497      if (list.forEach) return list.forEach(block, context);
1498      for (var i = 0, n = list.length; i < n; i++) {
send-notifications.php https://bitbucket.org/pmjones/mtrack | PHP | 593 lines
26$last = MTrackDB::unixtime(time() - 600);
27foreach (MTrackDB::q('select last_run from last_notification')->fetchAll()
28    as $row) {
48$cs_by_cid = array();
49foreach ($changes as $CS) {
50  $cids[] = $CS->cid;
70if (count($cids)) {
71  foreach (MTrackDB::q("select * from change_audit where cid in ($cidlist)")
72      ->fetchAll(PDO::FETCH_ASSOC) as $citem) {
74  }
75  foreach (MTrackDB::q(
76        "select * from effort where cid in ($cidlist)")
82$comp_by_id = array();
83foreach (MTrackDB::q('select c.compid, c.name, p.name from components c left join components_by_project cbp on (c.compid = cbp.compid) left join projects p on (cbp.projid = p.projid) where deleted <> 1 order by c.name')
84    ->fetchAll(PDO::FETCH_NUM) as $row) {
entity_getter_functions.php https://bitbucket.org/cash/elgg | PHP | 2,045 lines
85		$this->swallowErrors();
86		foreach ($this->entities as $e) {
87			$e->delete();
92		$subtype_arr = array();
93		foreach ($this->subtypes as $type => $subtypes) {
94			foreach ($subtypes as $subtype) {
255		$this->assertIdentical(count($es), 1);
256		foreach ($es as $e) {
257			$this->assertTrue(in_array($e->getType(), $type_arr));
273		$this->assertIdentical(count($es), 1);
274		foreach ($es as $e) {
275			$this->assertTrue(in_array($e->getType(), $type_arr));
291		$this->assertIdentical(count($es), 1);
292		foreach ($es as $e) {
293			$this->assertTrue(in_array($e->getType(), $type_arr));
Object.vm https://bitbucket.org/bureauvirtuel/bureauvirtuel | Unknown | 1,597 lines
42
43#foreach ($fk in $table.ForeignKeys)
44#set ( $tblFK = $table.Database.getTable($fk.ForeignTableName) )
76  ## member variables
77  #foreach ($col in $table.Columns)
78    #set ( $cjtype = $col.JavaNative )
114  ## getter and setter methods
115  #foreach ($col in $table.Columns)
116    #set ( $cfc=$col.JavaName )
181          #set ( $relCol = "" )
182          #foreach ($columnName in $col.foreignKey.LocalColumns)
183            #set ( $column = $table.getColumn($columnName) )
203
204      #foreach ($fk in $col.Referrers)
205        #set ( $fkColName = $fk.ForeignLocalMapping.get($col.Name) )
theme.inc https://bitbucket.org/robbiethegeek/robbie-drupal7 | Pascal | 2,580 lines
153  // Grab stylesheets from base theme
154  foreach ($base_theme as $base) {
155    if (!empty($base->stylesheets)) {
155    if (!empty($base->stylesheets)) {
156      foreach ($base->stylesheets as $media => $stylesheets) {
157        foreach ($stylesheets as $name => $stylesheet) {
165  if (!empty($theme->stylesheets)) {
166    foreach ($theme->stylesheets as $media => $stylesheets) {
167      foreach ($stylesheets as $name => $stylesheet) {
173  // And now add the stylesheets properly
174  foreach ($final_stylesheets as $media => $stylesheets) {
175    foreach ($stylesheets as $stylesheet) {
183  // Grab scripts from base theme
184  foreach ($base_theme as $base) {
185    if (!empty($base->scripts)) {
ConfigurationManager.cs https://bitbucket.org/vadim/sql-dbdiff | C# | 1,590 lines
544			co = Color.Empty;
545			foreach (Configuration c in configList)
546			{
554			co = Color.Empty;
555			foreach (Configuration c in configList)
556			{
564			co = Color.Empty;
565			foreach (Configuration c in configList)
566			{
574			i = null;
575			foreach (Configuration c in configList)
576			{
583			co = Color.Empty;
584			foreach (Configuration c in configList)
585			{
theme.inc https://bitbucket.org/smerrill/drupalcamp-hudson | Pascal | 2,029 lines
99  // Grab stylesheets from base theme
100  foreach ($base_theme as $base) {
101    if (!empty($base->stylesheets)) {
101    if (!empty($base->stylesheets)) {
102      foreach ($base->stylesheets as $media => $stylesheets) {
103        foreach ($stylesheets as $name => $stylesheet) {
111  if (!empty($theme->stylesheets)) {
112    foreach ($theme->stylesheets as $media => $stylesheets) {
113      foreach ($stylesheets as $name => $stylesheet) {
119  // And now add the stylesheets properly
120  foreach ($final_stylesheets as $media => $stylesheets) {
121    foreach ($stylesheets as $stylesheet) {
129  // Grab scripts from base theme
130  foreach ($base_theme as $base) {
131    if (!empty($base->scripts)) {
sf-upgrade-support.php https://bitbucket.org/openfarmtech/weblog-content | PHP | 1,594 lines
50
51	foreach ($wpdb->get_col("DESC $table_name", 0) as $column )
52	{
61	# we cannot directly tell that whether this succeeded!
62	foreach ($wpdb->get_col("DESC $table_name", 0) as $column )
63	{
106	{
107		foreach($topics as $topic)
108		{
116		{
117			foreach($topiclist as $topic)
118			{
127	{
128		foreach($posts as $post)
129		{
LazyLoadingFixture.cs https://bitbucket.org/bitpusher/soapi.cs | C# | 1,072 lines
61        {
62            foreach (Site item in Context.Sites)
63            {
72
73            foreach (Answer item in SO.Answers.ById(2917525))
74            {
75
76                foreach (var i in item.Comments)
77                {
99        {
100            foreach (Comment item in SO.Answers.ById(2907216).Comments)
101            {
115
116            foreach (Badge item in SO.Badges)
117            {
flag.d https://bitbucket.org/k4nagatsuki/cwxeditor | D | 1,694 lines
40	auto fe = e.newElement("Flags");
41	foreach (flag; flags) { mixin(S_TRACE);
42		assert (flag.parent.root == _root);
46	auto se = e.newElement("Steps");
47	foreach (step; steps) { mixin(S_TRACE);
48		assert (step.parent.root == _root);
72	auto fe = ret.newElement("Flags");
73	foreach (flag; dir.flags) { mixin(S_TRACE);
74		flag.toNode(fe);
76	auto se = ret.newElement("Steps");
77	foreach (step; dir.steps) { mixin(S_TRACE);
78		step.toNode(se);
79	}
80	foreach (subdir; dir.subDirs) { mixin(S_TRACE);
81		auto e = ret.newElement(XML_ROOT_FLAG_DIRECTORY);
replacedialog.d https://bitbucket.org/k4nagatsuki/cwxeditor | D | 4,173 lines
115			size_t dmy = 0;
116			foreach_reverse (u; _uArr) u.undo();
117			if (_path) addResult(_path, dmy);
121			size_t dmy = 0;
122			foreach_reverse (u; _uArr) u.redo();
123			if (_path) addResult(_path, dmy);
126		void dispose() { mixin(S_TRACE);
127			foreach (u; _uArr) u.dispose();
128		}
475				static if (is(T:Flag)) {
476					foreach (key; _summ.useCounter.flag.keys) { mixin(S_TRACE);
477						if (_prop.sys.randomValue == cast(string)key) continue;
481				} else static if (is(T:Step)) {
482					foreach (key; _summ.useCounter.step.keys) { mixin(S_TRACE);
483						if (_prop.sys.randomValue == cast(string)key) continue;
flagtable.d https://bitbucket.org/k4nagatsuki/cwxeditor | D | 1,849 lines
75	void delStep(Flag[] flag, Step[] step) { mixin(S_TRACE);
76		foreach (s; step) { mixin(S_TRACE);
77			if (s is _step) { mixin(S_TRACE);
189			stepName.setText(_step.name);
190			foreach (i, stepVal; stepVals) { mixin(S_TRACE);
191				if (i < _step.count) { mixin(S_TRACE);
199			stepName.setText("");
200			foreach (i, stepVal; stepVals) { mixin(S_TRACE);
201				stepVal.setText(.tryFormat(prop.msgs.dlgTxtStep, i));
215		string[] vals;
216		foreach (stepVal; stepVals) { mixin(S_TRACE);
217			vals ~= stepVal.getText();
277	void delFlag(Flag[] flag, Step[] step) { mixin(S_TRACE);
278		foreach (f; flag) { mixin(S_TRACE);
279			if (f is _flag) { mixin(S_TRACE);
castcarddialog.d https://bitbucket.org/k4nagatsuki/cwxeditor | D | 1,468 lines
152				_resM.setSelection(race.magicResist);
153				foreach (el; _res.keys) { mixin(S_TRACE);
154					_res[el].setSelection(race.resist(el));
163				_resM.setSelection(false);
164				foreach (el; _res.keys) { mixin(S_TRACE);
165					_res[el].setSelection(false);
174			if (race) { mixin(S_TRACE);
175				foreach (enh, i; _enhTbl) { mixin(S_TRACE);
176					if (_enhR) { mixin(S_TRACE);
182			} else { mixin(S_TRACE);
183				foreach (enh, i; _enhTbl) { mixin(S_TRACE);
184					if (_enhR) { mixin(S_TRACE);
294			_race.add(_prop.msgs.noRace);
295			foreach (race; skin.races) { mixin(S_TRACE);
296				_race.add(race.name);
areatable.d https://bitbucket.org/k4nagatsuki/cwxeditor | D | 3,122 lines
182		areaIDs.length = 0;
183		foreach (a; summ.areas) areaIDs ~= a.id;
184		battleIDs.length = 0;
184		battleIDs.length = 0;
185		foreach (a; summ.battles) battleIDs ~= a.id;
186		packageIDs.length = 0;
186		packageIDs.length = 0;
187		foreach (a; summ.packages) packageIDs ~= a.id;
188	}
243			ulong[] oldIDs;
244			foreach (i, a; arr) { mixin(S_TRACE);
245				auto oID = a.id;
249			}
250			foreach (i, a; arr) { mixin(S_TRACE);
251				auto oID = a.id;
HalfOctant4.pl https://bitbucket.org/maphew/cahill-keyes | Perl | 1,203 lines
49
50foreach $m (0 .. 45) {	# Loop for each meridian.
51	$M = $m . ',' ;	# part of hash key (array row number)
80		$dP [$m] = $L{$M . 4} / 90;
81		foreach $p (1 .. 89) {
82			$xP {$M . $p} = $xG - $p * $dP[$m];
101		$dP[$m] = $L {$M . 4} / 90;	# Distance between parallels
102		foreach $p (1 .. 89) {
103			$distance = $p * $dP [$m];
119			}
120		}	# End of foreach $p loop, that is, end of parallel calculation
121	}	# End of calculating meridian joints
126#	because that parallel still hadn't been calculated.
127foreach $m (0 .. 45) {
128	$M = $m . ',' ;
libmpdee.el https://bitbucket.org/henrik/emacs-old | Lisp | 1,640 lines
1090  (setq foreach (mpd-get-songs conn "currentsong" foreach))
1091  (or (functionp foreach) (setq foreach (car foreach))) foreach)
1092
1145    (and mpd-song-receiver
1146	 (setq foreach (mpd-seq-add mpd-song-receiver foreach 'file)))
1147    (if (functionp foreach) foreach
1211of all the artists in the list. Use CONN for the connection, and call function
1212FOREACH, if specified, with each name. If FOREACH is a function, return FOREACH,
1213else return the list of albums."
1219     (list mpd-inter-conn str 'mpd-display-bullet)))
1220  (or (functionp foreach) (setq foreach nil))
1221  (mpd-execute-command
1253      (when (plist-get mpd-output-receiver 'outputid)
1254	(setq foreach (apply 'mpd-seq-add mpd-output-receiver foreach)))
1255      (setq mpd-output-receiver nil))
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21