PageRenderTime 420ms queryFilters 0ms Sphinxql 309ms app.CodeModel.GetByIds 44ms findMatchingLines 17ms GetByIds 61ms meta 0ms repositoryFilters 10ms languageFilters 9ms sourceFilters 3ms

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

Source

Language

Repository

perf.html http://svn.apache.org/repos/asf/pig/ | HTML | 1,430 lines
240<li>
241<a href="#PushDownForEachFlatten">PushDownForEachFlatten</a>
242</li>
249<li>
250<a href="#AddForEach">AddForEach</a>
251</li>
252<li>
253<a href="#MergeForEach">MergeForEach</a>
254</li>
409<h3 class="h4">When the Combiner is Not Used</h3>
410<p>The combiner is generally not used if there is any operator that comes between the GROUP and FOREACH statements in the execution plan. Even if the statements are next to each other in your script, the optimizer might rearrange them. In this example, the optimizer will push FILTER above FOREACH which will prevent the use of the combiner:</p>
411<pre class="code">
1332
1333<li>There may be filter statements and foreach statements between the sorted data source and the join statement. The foreach statement should meet the following conditions: 
1334  <ul>
tests.mk https://github.com/kthguru/rust.git | Makefile | 947 lines
207
208$(foreach host,$(CFG_TARGET_TRIPLES), \
209 $(eval $(call DEF_DOC_TEST_HOST,$(host))))
688
689$(foreach host,$(CFG_TARGET_TRIPLES), \
690 $(eval $(foreach target,$(CFG_TARGET_TRIPLES), \
690 $(eval $(foreach target,$(CFG_TARGET_TRIPLES), \
691  $(eval $(foreach stage,$(STAGES), \
692   $(eval $(call TEST_STAGEN,$(stage),$(target),$(host))))))))
737
738$(foreach host,$(CFG_TARGET_TRIPLES), \
739 $(eval $(foreach target,$(CFG_TARGET_TRIPLES), \
748check-stage$(1)-H-$(2):					\
749	$$(foreach target,$$(CFG_TARGET_TRIPLES),	\
750	 check-stage$(1)-T-$$(target)-H-$(2))
datetime.d https://bitbucket.org/alexrp/gdc | D | 33,972 lines
714
715        foreach(stdTime; [-1234567890L, -250, 0, 250, 1235657390L])
716        {
716        {
717            foreach(tz; testTZs)
718                test(stdTime, tz);
777
778        foreach(tz1; testTZs)
779        {
779        {
780            foreach(tz2; testTZs)
781            {
781            {
782                foreach(dt; chain(testDateTimesBC, testDateTimesAD))
783                        test(dt, tz1, tz2);
foreachir.h https://bitbucket.org/GregorR/fythe | C++ Header | 81 lines
1FOREACH(This)
2FOREACH(ThisSet)
2FOREACH(ThisSet)
3FOREACH(Arg)
4FOREACH(Null)
4FOREACH(Null)
5FOREACH(Global)
6FOREACH(ExpandGlobal)
6FOREACH(ExpandGlobal)
7FOREACH(Version)
8FOREACH(New)
8FOREACH(New)
9FOREACH(Length)
10FOREACH(Member)
10FOREACH(Member)
11FOREACH(MemberSet)
12FOREACH(Equal)
foreachop.h https://bitbucket.org/GregorR/fythe | C++ Header | 133 lines
1FOREACH(Prologue)
2FOREACH(Epilogue)
2FOREACH(Epilogue)
3FOREACH(This)
4FOREACH(ThisSet)
4FOREACH(ThisSet)
5FOREACH(Arg)
6FOREACH(Null)
6FOREACH(Null)
7FOREACH(Global)
8FOREACH(ExpandGlobal)
8FOREACH(ExpandGlobal)
9FOREACH(Version)
10FOREACH(New)
10FOREACH(New)
11FOREACH(Length)
12FOREACH(Member)
theme.inc https://github.com/mikl/drupal.git | Pascal | 2,562 lines
144  // Grab stylesheets from base theme
145  foreach ($base_theme as $base) {
146    if (!empty($base->stylesheets)) {
146    if (!empty($base->stylesheets)) {
147      foreach ($base->stylesheets as $media => $stylesheets) {
148        foreach ($stylesheets as $name => $stylesheet) {
156  if (!empty($theme->stylesheets)) {
157    foreach ($theme->stylesheets as $media => $stylesheets) {
158      foreach ($stylesheets as $name => $stylesheet) {
164  // And now add the stylesheets properly
165  foreach ($final_stylesheets as $media => $stylesheets) {
166    foreach ($stylesheets as $stylesheet) {
174  // Grab scripts from base theme
175  foreach ($base_theme as $base) {
176    if (!empty($base->scripts)) {
Parseable.pm https://github.com/gitpan/List-Parseable.git | Perl | 1,526 lines
49   my($self,@opts) = @_;
50   foreach my $opt (@opts) {
51      if ($opt eq "exit"    ||
85   my($self,%hash) = @_;
86   foreach my $var (keys %hash) {
87      $$self{"vars"}{$var} = $hash{$var};
100   my @tmp;
101   foreach my $ele (@list) {
102      if (ref($ele) eq "ARRAY") {
291      my $val = shift(@args);
292      foreach my $ele (@args) {
293         if (ref($ele)) {
303      my $min = $args[0];
304      foreach my $val (@args) {
305         if (ref($val)) {
MatrixSparse.pm https://github.com/gitpan/Math-MatrixSparse.git | Perl | 3,601 lines
73    $this->{special}->{structure} = ".";
74    foreach my $entry (@entries) {
75	my ($i,$j,$value) = $entry=~m/^\s*(\d+)\s+(\d+)\s+(.+)\s*$/;
88    my $i=1;
89    foreach my $entry (@data){
90	$this->assign($i,$i,$entry);
105    my @entries = split(/\n/,$string);
106    foreach my $entry (@entries) {
107	my ($i,$value) = $entry=~m/^(\d+)\s+(.+)$/;
240    my $curcol = 1;
241    foreach my $i (0..($#colpointers-1)) {
242	my $thiscol = $colpointers[$i];
245	my @valslice = @values[$thiscol-1..$nextcol-2];
246	foreach my $j (0..$#rowslice) {
247	    $this->assign($rowslice[$j],$curcol,$valslice[$j]);
Makefile.in https://github.com/fredrik-johansson/flint2.git | Unknown | 222 lines
53EXT_SOURCES = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), $(wildcard $(ext)/$(dir)/*.c)))
54EXT_TEST_SOURCES = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), $(wildcard $(ext)/$(dir)/test/t-*.c)))
55EXT_TUNE_SOURCES = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), $(wildcard $(ext)/$(dir)/tune/*.c)))
55EXT_TUNE_SOURCES = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), $(wildcard $(ext)/$(dir)/tune/*.c)))
56EXT_PROF_SOURCES = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), $(wildcard $(ext)/$(dir)/profile/p-*.c)))
57EXT_OBJS = $(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), build/$(dir).lo))
100$(FLINT_LIB): $(LOBJS) $(LIB_SOURCES) $(EXT_SOURCES) $(HEADERS) $(EXT_HEADERS) | build build/interfaces
101	$(AT)$(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), mkdir -p build/$(dir); BUILD_DIR=$(CURDIR)/build/$(dir); export BUILD_DIR; MOD_DIR=$(dir); export MOD_DIR; $(MAKE) -f $(CURDIR)/Makefile.subdirs -C $(ext)/$(dir) shared || exit $$?;))
102	$(AT)$(foreach dir, $(BUILD_DIRS), mkdir -p build/$(dir); BUILD_DIR=../build/$(dir); export BUILD_DIR; MOD_DIR=$(dir); export MOD_DIR; $(MAKE) -f ../Makefile.subdirs -C $(dir) shared || exit $$?;)
159	$(AT)$(foreach dir, $(MOD), test ! -d $(dir) || mkdir -p build/$(dir)/test; BUILD_DIR=../build/$(dir); export BUILD_DIR; test ! -d $(dir) || $(MAKE) -f ../Makefile.subdirs -C $(dir) check || exit $$?;)
160	$(AT)$(foreach ext, $(EXTENSIONS), $(AT)$(foreach dir, $(MOD), MOD_DIR=$(dir); export MOD_DIR; test ! -d $(ext)/$(dir) || mkdir -p build/$(dir)/test; BUILD_DIR=$(CURDIR)/build/$(dir); export BUILD_DIR; test ! -d $(ext)/$(dir) || $(MAKE) -f $(CURDIR)/Makefile.subdirs -C $(ext)/$(dir) check || exit $$?;))
161endif
165	$(AT)$(foreach dir, $(BUILD_DIRS), mkdir -p build/$(dir)/test; BUILD_DIR=../build/$(dir); export BUILD_DIR; $(MAKE) -f ../Makefile.subdirs -C $(dir) valgrind || exit $$?;)
166	$(AT)$(foreach ext, $(EXTENSIONS), $(foreach dir, $(patsubst $(ext)/%.h, %, $(wildcard $(ext)/*.h)), mkdir -p build/$(dir)/test; BUILD_DIR=$(CURDIR)/build/$(dir); export BUILD_DIR; MOD_DIR=$(dir); export MOD_DIR; $(MAKE) -f $(CURDIR)/Makefile.subdirs -C $(ext)/$(dir) valgrind || exit $$?;))
167else
theme.inc https://github.com/martini7/Drupal-6.20.git | Pascal | 2,032 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)) {
Catalog.php https://github.com/andreydust/Booot.git | PHP | 1,869 lines
90			
91			foreach ($mpath as $ppath) {
92				if(!isset($skipFirst)) { $skipFirst=true; continue; }
103		$topicsByTop = array();
104		foreach ($topics as $topic) $topicsByTop[$topic['top']][] = $topic;
105		
108		//По путю модуля
109		foreach ($mpath as $k=>$chunk) {
110			//По топикам
111			if(isset($topicsByTop[$top]))
112			foreach ($topicsByTop[$top] as $topic) {
113				if($topic['nav'] == $chunk) {
230		$topImages = array();
231		foreach ($topImagesRows as $key => $value) $topImages[$key] = $value['id'];
232		img()->PrepareImages('Catalog', $topImages);
ArcanistXHPASTLinter.php https://github.com/seporaitis/arcanist.git | PHP | 1,740 lines
517    $foreach_loops = $root->selectDescendantsOfType('n_FOREACH');
518    foreach ($foreach_loops as $foreach_loop) {
519      $var_map = array();
520
521      $foreach_expr = $foreach_loop->getChildOftype(0, 'n_FOREACH_EXPRESSION');
522
797      $all_foreach_vars = array();
798      foreach ($foreaches as $foreach) {
799        $foreach_expr = $foreach->getChildOfType(0, 'n_FOREACH_EXPRESSION');
840
841      foreach ($all_foreach_vars as $var) {
842        $concrete = $this->getConcreteVariableString($var);
1234    $fors = $root->selectDescendantsOfType('n_FOR_EXPRESSION');
1235    $foreach = $root->selectDescendantsOfType('n_FOREACH_EXPRESSION');
1236    $decl = $root->selectDescendantsOfType('n_DECLARATION_PARAMETER_LIST');
RootWorkspace.cs https://github.com/directhex/monodevelop.git | C# | 1,629 lines
214		{
215			foreach (WorkspaceItem it in Items) {
216				SolutionEntityItem si = it.FindSolutionItem (fileName);
230			List<T> list = new List<T> ();
231			foreach (WorkspaceItem it in Items) {
232				list.AddRange (it.GetAllSolutionItems<T> ());
249			List<T> list = new List<T> ();
250			foreach (WorkspaceItem it in Items)
251				GetAllItems<T> (list, it);
260			if (item is Workspace) {
261				foreach (WorkspaceItem citem in ((Workspace)item).Items)
262					GetAllItems<T> (list, citem);
267		{
268			foreach (WorkspaceItem it in Items) {
269				Project p = it.GetProjectContainingFile (fileName);
Solver.php https://github.com/cucentric/composer.git | PHP | 2,073 lines
83
84        foreach ($providers as $provider) {
85            // self fulfilling rule?
111
112        foreach ($updates as $update) {
113            $literals[] = new Literal($update, true);
155        $literals = array();
156        foreach ($packages as $package) {
157            $literals[] = new Literal($package, true);
231        if ($newRule) {
232            foreach ($this->rules->getIterator() as $rule) {
233                if ($rule->equals($newRule)) {
264
265            foreach ($package->getRequires() as $link) {
266                $possibleRequires = $this->pool->whatProvides($link->getTarget(), $link->getConstraint());
Makefile https://github.com/TopographicaSVN/TopographicaSVN.git | Makefile | 1,244 lines
91python-uninstall:
92	rm -rf python ${foreach f,${PYTHON2_UNINSTALL}, ${PREFIX}/${f}} Python-2.4*/ Python-2.5*/
93
110tcl-uninstall:
111	rm -rf tcl ${foreach f,${TCL_UNINSTALL}, ${PREFIX}/${f}} tcl8*/
112
131tk-uninstall:
132	rm -rf tk ${foreach f,${TK_UNINSTALL}, ${PREFIX}/${f}} tk8*/
133
149ipython-uninstall:
150	rm -rf ipython ${IPYTHON} $(foreach f, ${IPYTHON_UNINSTALL}, ${PREFIX}/${f})
151
169freetype-uninstall:
170	rm -rf freetype $(foreach f, ${FREETYPE_UNINSTALL}, ${PREFIX}/${f})
171
class.latte https://github.com/sethmay/apigen.git | Unknown | 338 lines
14	<dl class="tree" n:if="$class->parentClass || $class->ownInterfaces || $class->ownTraits">
15		<dd n:foreach="$tree as $item" style="padding-left:{($iterator->counter - 1) * 30}px">
16			<img src="resources/inherit.png" alt="Extended by" n:if="$iterator->counter > 1">
22				<a href="{$interface|classUrl}" n:tag-if="$interface->documented">{$interface->name}</a>{sep}, {/sep}
23			{/foreach}{/if}
24			{var $itemOwnTraits = $item->ownTraits}
24			{var $itemOwnTraits = $item->ownTraits}
25			{if $itemOwnTraits} uses {foreach $itemOwnTraits as $trait}
26				<a href="{$trait|classUrl}" n:tag-if="$trait->documented">{$trait->name}</a>{sep}, {/sep}
26				<a href="{$trait|classUrl}" n:tag-if="$trait->documented">{$trait->name}</a>{sep}, {/sep}
27			{/foreach}{/if}
28		</dd>
205		{foreach $methods as $data}
206			<span n:tag-if="$data['method']->deprecated" class="deprecated"><a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)">{$data['method']->name}()</a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->name}(){sep}, {/sep}{/foreach}){/if}</span>{sep}, {/sep}
207		{/foreach}
class.latte https://github.com/sethmay/apigen.git | Unknown | 338 lines
14	<dl class="tree" n:if="$class->parentClass || $class->ownInterfaces || $class->ownTraits">
15		<dd n:foreach="$tree as $item" style="padding-left:{($iterator->counter - 1) * 30}px">
16			<img src="resources/inherit.png" alt="Extended by" n:if="$iterator->counter > 1">
22				<a href="{$interface|classUrl}" n:tag-if="$interface->documented">{$interface->name}</a>{sep}, {/sep}
23			{/foreach}{/if}
24			{var $itemOwnTraits = $item->ownTraits}
24			{var $itemOwnTraits = $item->ownTraits}
25			{if $itemOwnTraits} uses {foreach $itemOwnTraits as $trait}
26				<a href="{$trait|classUrl}" n:tag-if="$trait->documented">{$trait->name}</a>{sep}, {/sep}
26				<a href="{$trait|classUrl}" n:tag-if="$trait->documented">{$trait->name}</a>{sep}, {/sep}
27			{/foreach}{/if}
28		</dd>
205		{foreach $methods as $data}
206			<span n:tag-if="$data['method']->deprecated" class="deprecated"><a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)">{$data['method']->name}()</a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}{$alias->name}(){sep}, {/sep}{/foreach}){/if}</span>{sep}, {/sep}
207		{/foreach}
Generator.php https://github.com/sethmay/apigen.git | PHP | 1,573 lines
171		}
172		foreach ($this->config->source as $source) {
173			$entries = array();
174			if (is_dir($source)) {
175				foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($source, $flags)) as $entry) {
176					if (!$entry->isFile()) {
184
185			foreach ($entries as $entry) {
186		        $includeFile = false;
187		        // Check to see if the files should be included
188			    foreach ($this->config->include as $mask) {
189			        if (fnmatch($mask, $entry->getPathName(), FNM_NOESCAPE)) {
194		        // Check to see if the files matches an exlude mask
195			    foreach ($this->config->exclude as $mask) {
196					if (fnmatch($mask, $entry->getPathName(), FNM_NOESCAPE)) {
ModuleInstaller.php https://github.com/mikmagic/sugarcrm_dev.git | PHP | 2,352 lines
142					$str = "<?php \n //WARNING: The contents of this file are auto-generated\n";
143					foreach($installdefs['beans'] as $bean){
144						if(!empty($bean['module']) && !empty($bean['class']) && !empty($bean['path'])){
178
179				foreach($tasks as $task){
180					$this->$task();
253		if(isset($this->installdefs['pre_execute']) && is_array($this->installdefs['pre_execute'])){
254			foreach($this->installdefs['pre_execute'] as $includefile){
255				require_once(str_replace('<basepath>', $this->base_dir, $includefile));
262		if(isset($this->installdefs['post_execute']) && is_array($this->installdefs['post_execute'])){
263			foreach($this->installdefs['post_execute'] as $includefile){
264				require_once(str_replace('<basepath>', $this->base_dir, $includefile));
271		if(isset($this->installdefs['pre_uninstall']) && is_array($this->installdefs['pre_uninstall'])){
272			foreach($this->installdefs['pre_uninstall'] as $includefile){
273				require_once(str_replace('<basepath>', $this->base_dir, $includefile));
check_nwc_health https://github.com/bigbrozer/netplugins.git | Perl | 8,211 lines
44  };
45  foreach (qw(shortname usage version url plugin blurb extra
46      license timeout)) {
301  $self->{_attr} = { %attr };
302  foreach (keys %{$self->{_attr}}) {
303    if (exists $params{$_}) {
311  # Chomp _attr values
312  chomp foreach values %{$self->{_attr}};
313
344    do { $self->print_usage(); exit 0 } if $commandline{usage};
345    foreach (map { $_->{spec} =~ /^([\w\-]+)/; $1; } @{$self->{_args}}) {
346      my $field = $_;
350    }
351    foreach (grep { exists $_->{default} } @{$self->{_args}}) {
352      $_->{spec} =~ /^([\w\-]+)/;
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21