PageRenderTime 14ms queryFilters 0ms Sphinxql 301ms app.CodeModel.GetByIds 39ms findMatchingLines 18ms GetByIds 57ms meta 0ms repositoryFilters 8ms languageFilters 2ms sourceFilters 7ms

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

Source

Language

Repository

IndexBuilder.cs https://bitbucket.org/Zaretto/dataobjects.net-gpl | C# | 914 lines
24        CreateInterfaceIndexes();
25        foreach (var hierarchy in context.Model.Hierarchies) {
26          switch (hierarchy.InheritanceSchema) {
50      var processedInterfaces = new HashSet<TypeInfo>();
51      foreach (var @interface in context.Model.Types.Find(TypeAttributes.Interface))
52        CreateInterfaceIndexes(@interface, processedInterfaces);
63      // Build virtual declared interface index
64      foreach (var indexDescriptor in interfaceDef.Indexes.Where(i => !i.IsPrimary)) {
65        var index = BuildIndex(@interface, indexDescriptor, false);
72      var interfaces = @interface.GetInterfaces();
73      foreach (var typeInfo in interfaces)
74        CreateInterfaceIndexes(typeInfo, processedInterfaces);
77      // Build virtual inherited interface index
78      foreach (var parent in interfaces)
79        foreach (var parentIndex in parent.Indexes.Find(IndexAttributes.Primary, MatchType.None)) {
product.php https://bitbucket.org/emetakom/opencart_serbian | PHP | 755 lines
11		
12		foreach ($data['product_description'] as $language_id => $value) {
13			$this->db->query("INSERT INTO " . DB_PREFIX . "product_description SET product_id = '" . (int)$product_id . "', language_id = '" . (int)$language_id . "', name = '" . $this->db->escape($value['name']) . "', meta_keyword = '" . $this->db->escape($value['meta_keyword']) . "', meta_description = '" . $this->db->escape($value['meta_description']) . "', description = '" . $this->db->escape($value['description']) . "'");
16		if (isset($data['product_store'])) {
17			foreach ($data['product_store'] as $store_id) {
18				$this->db->query("INSERT INTO " . DB_PREFIX . "product_to_store SET product_id = '" . (int)$product_id . "', store_id = '" . (int)$store_id . "'");
22		if (isset($data['product_attribute'])) {
23			foreach ($data['product_attribute'] as $product_attribute) {
24				if ($product_attribute['attribute_id']) {
26					
27					foreach ($product_attribute['product_attribute_description'] as $language_id => $product_attribute_description) {				
28						$this->db->query("INSERT INTO " . DB_PREFIX . "product_attribute SET product_id = '" . (int)$product_id . "', attribute_id = '" . (int)$product_attribute['attribute_id'] . "', language_id = '" . (int)$language_id . "', text = '" .  $this->db->escape($product_attribute_description['text']) . "'");
34		if (isset($data['product_option'])) {
35			foreach ($data['product_option'] as $product_option) {
36				if ($product_option['type'] == 'select' || $product_option['type'] == 'radio' || $product_option['type'] == 'checkbox' || $product_option['type'] == 'image') {
ReadPermissionsOptimizationUtil.php https://bitbucket.org/markwu/zurmo | PHP | 1,042 lines
49            assert('is_bool($forcePhp)');
50            foreach (self::getMungableModelClassNames() as $modelClassName)
51            {
116                $models = RedBeanModel::getSubset(null, $i, $subset, null, null, $modelClassName);
117                foreach ($models as $model)
118                {
120                    $securableItemId = $model->getClassId('SecurableItem');
121                    foreach ($users as $user)
122                    {
130
131                    foreach ($groups as $group)
132                    {
137                            self::incrementCount($mungeTableName, $securableItemId, $group);
138                            foreach ($group->users as $user)
139                            {
OWL2RL.pm https://bitbucket.org/tobyink/p5-rdf-closure | Perl | 1,422 lines
78					{
79						foreach my $new_dt (@{ $OWL_Datatype_Subsumptions->{$dt} })
80						{
92					my @nodes = $st->nodes;
93					foreach my $lt (@nodes)
94					{
95						next unless $lt->is_literal;
96						# We're now effectively in a foreach literal loop...
97						
120				# RULE dt-eq
121				foreach my $lt1 (keys %literals)
122				{
122				{
123					foreach my $lt2 (keys %literals)
124					{
StatementSpecRawAnalyzer.cs https://bitbucket.org/crackajaxx/nesper | C# | 521 lines
25            var subselects = WalkSubselectAndDeclaredDotExpr(spec);
26            foreach (var subselect in subselects.Subselects) {
27                AddFilters(subselect.StatementSpecRaw, result);
32        private static void AddFilters(StatementSpecRaw spec, IList<FilterSpecRaw> filters) {
33            foreach (var raw in spec.StreamSpecs) {
34                if (raw is FilterStreamSpecRaw) {
41                    var filterNodes = evalNodeAnalysisResult.FilterNodes;
42                    foreach (var filterNode in filterNodes)
43                    {
54            var visitor = new ExprNodeSubselectDeclaredDotVisitor();
55            foreach (var raw in spec.SelectClauseSpec.SelectExprList)
56            {
76                }
77                foreach (var assignment in spec.UpdateDesc.Assignments)
78                {
nanoweb.php https://bitbucket.org/detroitpro/taphp | PHP | 3,131 lines
242				
243				foreach ($GLOBALS["conf_defaults"] as $key=>$dval) if (!isset($conf[$cpart][$key])) $conf[$cpart][$key][0]=$dval;
244
261
262				foreach ($conf[$cpart][$dir] as $ps) {
263
342		
343		foreach ($conf_arr as $key=>$str) {
344
1181
1182	foreach ($GLOBALS["modules"] as $tmpmod) if (method_exists($tmpmod, "options")) if ($mod_methods=$tmpmod->options()) foreach ($mod_methods as $mod_method) if (!isset($tmp_marr[$mod_method])) $tmp_marr[$mod_method]=$mod_method;
1183		
1379		
1380		foreach ($mimetypes as $s) if (trim($s) && ($s{0}!="#")) if (ereg("([a-zA-Z0-9/.-]+)[ \t]+([a-zA-Z0-9 -]+)", $s, $res)) if ($exts=explode(" ", trim($res[2]))) foreach ($exts as $ext) if (trim($res[1]) && trim($ext)) $mime[$ext]=trim($res[1]);
1381
create_piece.pm https://bitbucket.org/illumos/illumos-stc | Perl | 1,565 lines
78	my @vals = split(/,/, $values);
79	foreach my $val (@vals) {
80		my ($l, $r) = split(/=/, $val);
108	my @vals = split(/,/, $values);
109	foreach my $val (@vals) {
110		my ($l, $r) = split(/=/, $val);
141	my @vals = split(/,/, $values);
142	foreach my $val (@vals) {
143		my ($l, $r) = split(/=/, $val);
176	my @vals = split(/,/, $values);
177	foreach my $val (@vals) {
178		my ($l, $r) = split(/=/, $val);
234	my @vals = split(/,/, $values);
235	foreach my $val (@vals) {
236		my ($l, $r) = split(/=/, $val);
ReadPermissionsOptimizationUtil.php https://bitbucket.org/jim_fulford/fulford_zurmo | PHP | 995 lines
33            assert('is_bool($forcePhp)');
34            foreach (self::getMungableModelClassNames() as $modelClassName)
35            {
58                        $models = RedBeanModel::getSubset(null, $i, $subset, null, null, $modelClassName);
59                        foreach ($models as $model)
60                        {
63                            $users = User::getAll();
64                            foreach ($users as $user)
65                            {
73                            $groups = Group::getAll();
74                            foreach ($groups as $group)
75                            {
80                                    self::incrementCount($mungeTableName, $securableItemId, $group);
81                                    foreach ($group->users as $user)
82                                    {
ForEach.java https://bitbucket.org/aicas/rdt | Java | 558 lines
252      // Comment
253      if (ForEach.this.collects == null && !ForEach.this.disableComment)
254        {
370      Var tempVar =
371        file.generateLocalVar(ForEach.this, ForEach.this.loopVar.getType());
372      this.getSize.writeHelperCode(fail, file);
441      // Comment
442      if (ForEach.this.collects == null && !ForEach.this.disableComment)
443        {
447      Var tempVar =
448        file.generateLocalVar(ForEach.this, ForEach.this.coll.getType()
449            .getElement());
486          Cast cast =
487            new Cast(ForEach.this, false, ForEach.this.loopVar.getType(),
488                     tempVar);
Atajo.php https://bitbucket.org/punketo28/sistema-de-control-de-actividades-del-poa | PHP | 1,332 lines
86		if($query->num_rows() > 0){
87		  foreach ($query->result() as $fila){
88		    $searchString2 = $fila->$apuntadorSearchNM[$i]['campo11'];
103	      if($query->num_rows() > 0){
104		foreach ($query->result() as $fila){
105		  $searchString2 = $fila->$apuntadorSearchNM[0]['campo11'];
127		if($query->num_rows() > 0){
128		  foreach ($query->result() as $fila){
129		    $searchString2 = $fila->$apuntadorSearchNM1[$i]['campo11'];
147		if($query->num_rows() > 0){
148		  foreach ($query->result() as $fila){
149		    $searchString2 = $fila->$apuntadorSearchNM1[0]['campo11'];
174		if($query->num_rows() > 0){
175		  foreach ($query->result() as $fila){
176		    $searchString2 = $fila->$apuntadorSearchNM2[$i]['campo11'];
Tags.pm https://bitbucket.org/anall/dw-free-work | Perl | 1,617 lines
47    # prepopulate our structures
48    foreach my $u (@uobjs) {
49        # don't load if we've previously gotten this one
62    my $memc = LJ::MemCache::get_multi(@memkeys) || {};
63    foreach my $key (keys %$memc) {
64        if ($key =~ /^tags:(\d+)$/) {
82    my $ts = $gc->new_task_set();
83    foreach my $u (values %need) {
84        $ts->add_task(Gearman::Task->new("load_usertags", \"$u->{userid}",
117    # prepopulate our structures
118    foreach my $u (@uobjs) {
119        # we will have to load these
127    my $memc = LJ::MemCache::get_multi(@memkeys) || {};
128    foreach my $key (keys %$memc) {
129        if ($key =~ /^kws:(\d+)$/) {
Makefile.kmk https://bitbucket.org/diagiman/vbox-trunk | Unknown | 939 lines
109# Check for additional manuals
110VBOX_ADD_MANUALS := $(foreach f,$(VBOX_MANUAL_ADD_LANGUAGES),$(VBOX_PATH_DIST)/VirtualBox.app/Contents/MacOS/UserManual_$(f).pdf)
111
173		            $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/*.lproj/*) \
174		$(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), $(VBOX_BRAND_$(f)_VIRTUALBOX_WELCOME_RTF)) \
175		$(VBOX_DARWIN_INST_DEP_ON_MAKEFILE)
208	$(INSTALL) -m 0644 $(VBOX_BRAND_DARWIN_INSTALLER_BG)                                    $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res/background.tif
209	$(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \
210		$(MKDIR) -p \
250$(VBOX_PATH_PACK_TMP)/Packages/VBoxKEXTs.pkg: \
251		$(foreach kext,$(VBOX_DI_KEXTS_UNIVERSAL), $(call VBOX_DI_FN_DEP_BOTH,$(kext).kext/Contents/MacOS/$(kext))) \
252		$(foreach kext,$(VBOX_DI_KEXTS), $(VBOX_PATH_DIST)/$(kext).kext/Contents/Info.plist) \
254		            $(VBOX_PATH_DI_SRC)/VBoxKEXTs/*.lproj/*) \
255		$(foreach f,$(VBOX_INSTALLER_ADD_LANGUAGES), \
256			$(VBOX_BRAND_$(f)_VBOXKEXTS_DESCRIPTION_PLIST) \
DbModelComparer.cs https://hg.codeplex.com/vita | C# | 459 lines
57    private void ResetPeers(IEnumerable<DbTableInfo> tables) {
58      foreach (var t in tables) {
59        t.Peer = null;
59        t.Peer = null;
60        foreach (var c in t.Columns) 
61          c.Peer = null; 
61          c.Peer = null; 
62        foreach(var k in t.Keys) 
63          k.Peer = null;
63          k.Peer = null;
64        foreach(var rc in t.RefConstraints) 
65          rc.Peer = null; 
69    private static void ResetChangeInfo(IEnumerable<DbTableInfo> tables) {
70      foreach (var t in tables) {
71        t.ChangeType = DbObjectChange.None;
EntityModelInfoBuilder.cs https://hg.codeplex.com/vita | C# | 718 lines
88      // Collect initial entities
89      foreach (var module in _modelInfo.Model.Modules)
90        foreach (var entType in module.Entities)
102        var props = entInfo.EntityType.GetAllProperties();
103        foreach (var prop in props) {
104          var propType = prop.PropertyType;
142      // 1. Go thru replacements, find/create entity info for "new" entities, and register this entity info under the key of replaced entity type
143      foreach (var replInfo in _modelInfo.Model.Replacements) {
144        var oldEntInfo = GetEntity(replInfo.ReplacedType);
154      // 3. Trace replacedBy reference, find final replacing type and register entity info for final type under the "replaced type" key
155      foreach (var entInfo in _allEntities) {
156        if (entInfo.ReplacedBy == null) continue; 
162    private void RegisterEntities() {
163      foreach (var entInfo in _allEntities) {
164        var otherEnt = _modelInfo.GetEntityInfo(entInfo.FullName);
CMakeLists.txt https://bitbucket.org/iesahin/otapexplorer | CMake | 1,053 lines
418  file(GLOB OTAP_WS_QUERY_FILES ${PROJECT_SOURCE_DIR}/../experiments/otap-word-spot/otm20/queries/*.png)
419  foreach(ff ${OTAP_WS_QUERY_FILES})
420    message (${ff})
420    message (${ff})
421  endforeach(ff)
422  set (OTAP_WS_OUTPUT_DIR ${PROJECT_SOURCE_DIR}/../experiments/otap-word-spot/otm20/results/)
429  
430  foreach(query_file ${OTAP_WS_QUERY_FILES})
431    string(RANDOM outdir_name)
438
439    foreach(feature ${OTAP_WS_FEATURES})
440      foreach(serial_cmp ${OTAP_WS_SERIAL_COMPARATORS})
440      foreach(serial_cmp ${OTAP_WS_SERIAL_COMPARATORS})
441	foreach(scalar_cmp ${OTAP_WS_SCALAR_COMPARATORS})
442	  add_custom_command(TARGET otap-word-spot
T4MVC.tt https://bitbucket.org/mgreuel/noblog | Unknown | 2,474 lines
64using <#=settings.T4MVCNamespace #>;
65<#foreach (var referencedNamespace in settings.ReferencedNamespaces) { #>
66using <#=referencedNamespace #>;
76<#} #>
77<#foreach (var area in Areas.Where(a => !string.IsNullOrEmpty(a.Name))) { #>
78    static readonly <#=area.Name #>Class s_<#=area.Name #> = new <#=area.Name #>Class();
83<#} #>
84<#foreach (var controller in DefaultArea.GetControllers()) { #>
85    public static <#=controller.FullClassName #> <#=controller.Name #> = new <#=controller.FullDerivedClassName #>();
90{
91<#foreach (var area in Areas.Where(a => !string.IsNullOrEmpty(a.Name))) { #>
92    [<#= GeneratedCode #>, DebuggerNonUserCode]
95        public readonly string Name = "<#=ProcessAreaOrControllerName(area.Name) #>";
96<#foreach (var controller in area.GetControllers()) { #>
97        public <#=controller.FullClassName #> <#=controller.Name #> = new <#=controller.FullDerivedClassName #>();
lime.php https://bitbucket.org/_richardJ/lime | PHP | 1,317 lines
65		$out = array();
66		foreach($var as $k => $v) {
67			$out[] = (!$i ? lime_export($k).' => ' : '') . lime_export($v);
96	$i = 0;
97	foreach($array as $k => $v) {
98		if ($k !== $i++) {
271		echo ' * ' . $this->id . ' / ' . $this->key . PHP_EOL;
272		foreach ($this->close as $config) {
273			$config->dump();
294		// rightmost configurations followset yields reduce.
295		foreach($this->close as $c) {
296			if ($c->rightmost) {
296			if ($c->rightmost) {
297				foreach ($c->follow->all() as $glyph) {
298					$this->add_reduce($lime->sym($glyph), $c->rule);
tests.mk https://github.com/mcpherrinm/rust.git | Makefile | 1,067 lines
130
131$(foreach target,$(CFG_TARGET), \
132  $(eval $(call DEF_TARGET_COMMANDS,$(target))))
139
140$(foreach target,$(CFG_TARGET), \
141  $(if $(findstring $(target),"arm-linux-androideabi"), \
163 $(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
164 $(foreach crate,$(TARGET_CRATES), \
165    $(shell $(CFG_ADB) push $(TLIB2_T_arm-linux-androideabi_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_arm-linux-androideabi,$(crate)) \
185check-lite: cleantestlibs cleantmptestlogs \
186	$(foreach crate,$(TEST_TARGET_CRATES),check-stage2-$(crate)) \
187	check-stage2-rpass check-stage2-rpass-valgrind \
217
218$(foreach stage,$(STAGES), \
219 $(eval $(call DEF_CHECK_BUILD_COMPILETEST_FOR_STAGE,$(stage))))
tests.mk https://github.com/osaut/rust.git | Makefile | 712 lines
91
92$(foreach target,$(CFG_TARGET_TRIPLES), \
93  $(eval $(call DEF_TARGET_COMMANDS,$(target))))
210check-stage$(1)-T-$(2)-H-$(3)-crates-exec: \
211	$$(foreach crate,$$(TEST_CRATES), \
212           check-stage$(1)-T-$(2)-H-$(3)-$$(crate)-exec)
216check-stage$(1)-T-$(2)-H-$(3)-crates-exec: \
217	$$(foreach crate,$$(TEST_TARGET_CRATES), \
218           check-stage$(1)-T-$(2)-H-$(3)-$$(crate)-exec)
222check-stage$(1)-T-$(2)-H-$(3)-doc-exec: \
223        $$(foreach docname,$$(DOC_TEST_NAMES), \
224           check-stage$(1)-T-$(2)-H-$(3)-doc-$$(docname)-exec)
234
235$(foreach host,$(CFG_HOST_TRIPLES), \
236 $(foreach target,$(CFG_TARGET_TRIPLES), \
perf.html http://svn.apache.org/repos/asf/pig/ | HTML | 1,376 lines
251<li>
252<a href="#PushDownForEachFlatten">PushDownForEachFlatten</a>
253</li>
260<li>
261<a href="#AddForEach">AddForEach</a>
262</li>
263<li>
264<a href="#MergeForEach">MergeForEach</a>
265</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">
1289<li>Between the load of the sorted input and the merge join statement there can only be filter statements and 
1290foreach statement where the foreach statement should meet the following conditions: 
1291<ul>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21