PageRenderTime 477ms queryFilters 0ms Sphinxql 328ms app.CodeModel.GetByIds 87ms findMatchingLines 19ms GetByIds 106ms meta 0ms repositoryFilters 8ms languageFilters 11ms sourceFilters 4ms

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

Source

Language

Repository

Services_Search_QueryParser.php https://github.com/elstenaar86/spotweb.git | PHP | 987 lines
96					# Convert the old style to explicit categories (cat1_z0_a3, cat1_z1_a3, cat1_z2_a3, ... )
97					foreach(SpotCategories::$_categories[$hCat]['z'] as $typeKey => $typeValue) {
98						$newTreeQuery .= "," . substr($dynaList[$i], 0, 4) . '_z' . $typeKey . '_' . substr($dynaList[$i], 5);
98						$newTreeQuery .= "," . substr($dynaList[$i], 0, 4) . '_z' . $typeKey . '_' . substr($dynaList[$i], 5);
99					} # foreach
100					
120				$tmpStr = '';
121				foreach(SpotCategories::$_categories[$hCat] as $subCat => $subcatValues) {
122
131					if ($subCatSelected == '*') {
132						foreach(SpotCategories::$_categories[$hCat]['z'] as $typeKey => $typeValue) {
133							$typeKey = 'z' . $typeKey;
136							} # if
137						} # foreach
138					} elseif (($subCat == $subCatSelected) && ($subCat !== 'z')) {
casos_m.php https://github.com/brass3a4/idheasMac.git | PHP | 1,869 lines
47		if($consulta->num_rows() > 0){
48    		foreach ($consulta->result_array() as $row) {
49        		$ultimoCasoId = $row['casoId'];
55			
56		foreach($datosCaso['tablas'] as $key => $value){
57			if($key != 'casos'){
64		/* Inserta en la BD los arrays */
65		foreach($datosCaso['tablas'] as $key => $value){
66			if($key != 'casos'){
87			/* Pasa la consulta a un cadena */
88			foreach ($consulta->result_array() as $row) {
89				$datos['casos'] = $row;
101			/* Pasa la consulta a un cadena */
102			foreach ($consulta->result_array() as $row) {
103				$datos['infoCaso'] = $row;
XbmcXml.cpp https://github.com/zabinko/MediaElch.git | C++ | 1,952 lines
73    xml.writeTextElement("watched", (movie->watched()) ? "true" : "false");
74    foreach (const QString &studio, movie->studios())
75        xml.writeTextElement("studio", studio);
75        xml.writeTextElement("studio", studio);
76    foreach (const QString &genre, movie->genres())
77        xml.writeTextElement("genre", genre);
77        xml.writeTextElement("genre", genre);
78    foreach (const QString &country, movie->countries())
79        xml.writeTextElement("country", country);
79        xml.writeTextElement("country", country);
80    foreach (const QString &tag, movie->tags())
81        xml.writeTextElement("tag", tag);
81        xml.writeTextElement("tag", tag);
82    foreach (const Actor &actor, movie->actors()) {
83        xml.writeStartElement("actor");
ElggCoreEntityGetterFunctionsTest.php https://github.com/fragilbert/Elgg.git | PHP | 2,885 lines
83		$this->swallowErrors();
84		foreach ($this->entities as $e) {
85			$e->delete();
90		$subtype_arr = array();
91		foreach ($this->subtypes as $type => $subtypes) {
92			foreach ($subtypes as $subtype) {
272		$this->assertIdentical(count($es), 1);
273		foreach ($es as $e) {
274			$this->assertTrue(in_array($e->getType(), $type_arr));
290		$this->assertIdentical(count($es), 1);
291		foreach ($es as $e) {
292			$this->assertTrue(in_array($e->getType(), $type_arr));
308		$this->assertIdentical(count($es), 1);
309		foreach ($es as $e) {
310			$this->assertTrue(in_array($e->getType(), $type_arr));
user_transaction.dwt https://github.com/wangjian2254/eshop.git | Unknown | 1,099 lines
31	  <script type="text/javascript">
32		{foreach from=$lang.profile_js item=item key=key}
33			var {$key} = "{$item}";
33			var {$key} = "{$item}";
34		{/foreach}
35	  </script>
59				</tr>
60				{foreach from=$extend_info_list item=field}
61				<!-- {if $field.id eq 6} -->
84				<!-- {/if} -->
85				{/foreach}
86				<tr>
120		<script type="text/javascript">
121			{foreach from=$lang.profile_js item=item key=key}
122				var {$key} = "{$item}";
Search.php https://github.com/kuaileshike/upload.git | PHP | 1,077 lines
49		$posts = array();
50		foreach(C::t('forum_postlog')->fetch_all_order_by_dateline($num) as $post) {
51			$pIds[] = $post['pid'];
69				$posts = $this->_getPosts(array_keys($unDeletePosts));
70				foreach($unDeletePosts as $pId => $updatePost) {
71					if($posts[$pId]) {
96		$result = array();
97		foreach(C::t('forum_post')->fetch_all_by_pid($tableid, $pIds) as $post) {
98			$result[$post['pid']] = Cloud_Service_SearchHelper::convertPost($post);
104		$posts = array();
105		foreach(Cloud_Service_SearchHelper::getTables('post') as $tableid) {
106			$_posts = $this->_preGetPosts($tableid, $pIds);
119		if ($posts) {
120			foreach($posts as $pId => $post) {
121				$tIds[$post['pId']] = $post['tId'];
function_delete.php https://github.com/kuaileshike/upload.git | PHP | 983 lines
33	$numdeleted = count($arruids);
34	foreach(array('common_member_field_forum', 'common_member_field_home', 'common_member_count',
35		'common_member_profile', 'common_member_status',) as $table) {
38
39	foreach(array( 'common_member_log', 'common_member_verify', 'common_member_validate', 'common_member_magic') as $table) {
40		C::t($table)->delete($arruids, true);
49	$query = C::t('home_doing')->fetch_all_by_uid_doid($arruids);
50	foreach($query as $value) {
51		$doids[$value['doid']] = $value['doid'];
66
67	foreach(C::t('forum_collectionfollow')->fetch_all_by_uid($arruids) as $follow) {
68		C::t('forum_collection')->update_by_ctid($follow['ctid'], 0, -1);
70
71	foreach(C::t('forum_collectioncomment')->fetch_all_by_uid($arruids) as $comment) {
72		C::t('forum_collection')->update_by_ctid($comment['ctid'], 0, 0, -1);
cache_setting.php https://github.com/kuaileshike/upload.git | PHP | 991 lines
31
32	foreach(C::t('common_setting')->fetch_all_not_key($skipkeys) as $setting) {
33		if($setting['skey'] == 'extcredits') {
34			if(is_array($setting['svalue'] = dunserialize($setting['svalue']))) {
35				foreach($setting['svalue'] as $key => $value) {
36					if($value['available']) {
63			if($setting['skey'] == 'search') {
64				foreach($setting['svalue'] as $key => $val) {
65					foreach($val as $k => $v) {
74				$profile_settings = C::t('common_member_profile_setting')->fetch_all_by_available(1);
75				foreach($setting['svalue'] as $key => $val) {
76					$temp = array();
76					$temp = array();
77					foreach($profile_settings as $pval) {
78						if(in_array($pval['fieldid'], $val['field'])) {
admincp_forums.php https://github.com/kuaileshike/upload.git | PHP | 2,132 lines
47		$groups = $forums = $subs = $fids = $showed = array();
48		foreach($query as $forum) {
49			if($forum['type'] == 'group') {
58
59		foreach ($groups as $id => $gforum) {
60			$toggle = $forumcount > 50 && count($forums[$id]) > 2;
62			if(!empty($forums[$id])) {
63				foreach ($forums[$id] as $forum) {
64					$showed[] = showforum($forum);
66					if(!empty($subs[$forum['fid']])) {
67						foreach ($subs[$forum['fid']] as $sub) {
68							$showed[] = showforum($sub, 'sub');
78		if(count($fids) != count($showed)) {
79			foreach($fids as $fid) {
80				if(!in_array($fid, $showed)) {
frozen-bubble.pl https://github.com/LonelyBob/frozenbubble-improvements.git | Perl | 2,255 lines
214    my @sounds = qw(stick destroy_group newroot newroot_solo lose hurry pause menu_change menu_selected rebound launch malus noh snore cancel typewriter applause);
215    foreach (@sounds) {
216	my $sound_path = "$FPATH/snd/$_.wav";
282    my ($player, @images) = @_;
283    foreach (@images) {
284	($_->{'x'} == 0 && $_->{'y'} == 0) and print "remove_images_from_background: warning, X and Y are 0\n";
293    my ($player) = @_;
294    put_image_to_background($_->{img}, $_->{'x'}, $_->{'y'}) foreach @{$sticked_bubbles{$player}};
295}
329    local $::p;
330    foreach $::p (@PLAYERS) {
331	&$f;
336    local $::p_;
337    foreach $::p_ (@PLAYERS) {
338	&$f;
make-boot.r https://github.com/WoodyLin/r3.git | Unknown | 1,196 lines
127	w: uppercase form w
128	foreach [f t] [
129		#"-" #"_"
139	word: form word
140	foreach [f t] [
141		#"-" #"_"
252
253foreach :type-record boot-types [
254	emit-line "ET_" evalclass type
268
269foreach :type-record boot-types [
270	if find [function operator] evalclass [
286
287foreach :type-record boot-types [
288	emit-line/var "T_" typeclass type
class.xmoditea.inc https://github.com/jcplat/console-seolan.git | PHP | 1,551 lines
44    $this->_options->setOpt('Consolidation des caractéristiques','needconscaract','boolean',false,NULL);
45    foreach ($dpts as $dpt) {
46      if (!empty($dpt)) {
172      return;
173    foreach ($this->objectTables() as $table) {
174      if (!in_array($table, $nodel) && $table != $this->table) {
216    if (!empty($more->clearall)) {
217      foreach ($this->objectTables() as $table)
218        updateQuery('delete from '.$table);
228    $tzrfields = $del = $error = $new = $maj = $no = $retry = $log_retry = $error2 = array();
229    foreach ($this->xset->orddesc as $k) {
230      if (strpos($k, 'tzr_') === 0)
239
240    foreach ($dpt_select as $dpt) {
241      $dptsoap = $dpt.'soap';
ditto.class.inc.php https://github.com/good-web-master/modx.evo.custom.git | PHP | 1,226 lines
83		}
84		foreach ($fields as $field) {
85			if (is_array($field)) {
157
158		foreach ($orderBy['parsed'] as $item) {
159			$this->addFields($item[0],'backend');
162		
163		foreach ($orderBy['custom'] as $item) {
164			$this->addFields($item[0],'backend');
169			$inputs = explode(',',$orderBy['unparsed']);
170			foreach ($inputs as $input) {
171				$input = trim($input);
223		if ($filter && count($filters) > 0) {
224			foreach ($filters AS $filter) {
225				if (!empty($filter)) {
ProjectController.class.php https://github.com/fb83/Project-Pier.git | PHP | 1,506 lines
179          
180          foreach ($companies as $company) {
181            trace(__FILE__,"permissions(): processing company {$company->getId()}");
197                $counter = 0;
198                foreach ($users as $user) {
199                  trace(__FILE__,"permissions(): processing user {$user->getId()} in company {$company->getId()}");
208                    
209                    foreach ($permissions as $permission_name => $permission_text) {
210                      
220                  
221                } // foreach
222              } // if
223            } // if
224          } // foreach
225          
ModuleInstaller.php https://github.com/vincentamari/SuperSweetAdmin.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));
tests.mk https://github.com/veddan/rust.git | Unknown | 921 lines
127
128$(foreach target,$(CFG_TARGET), \
129  $(eval $(call DEF_TARGET_COMMANDS,$(target))))
136
137$(foreach target,$(CFG_TARGET), \
138  $(if $(findstring $(target),"arm-linux-androideabi"), \
160 $(shell $(CFG_ADB) push $(S)src/etc/adb_run_wrapper.sh $(CFG_ADB_TEST_DIR) 1>/dev/null) \
161 $(foreach crate,$(TARGET_CRATES),\
162    $(shell $(CFG_ADB) push $(TLIB2_T_arm-linux-androideabi_H_$(CFG_BUILD))/$(call CFG_LIB_GLOB_arm-linux-androideabi,$(crate)) \
187check-lite: cleantestlibs cleantmptestlogs \
188	$(foreach crate,$(TARGET_CRATES),check-stage2-$(crate)) \
189	check-stage2-rpass \
294check-stage$(1)-T-$(2)-H-$(3)-crates-exec: \
295	$$(foreach crate,$$(TEST_CRATES), \
296           check-stage$(1)-T-$(2)-H-$(3)-$$(crate)-exec)
Data.php https://github.com/zc1415926/eva-engine.git | PHP | 1,497 lines
107            if (!empty($result)) {
108                foreach ($result as &$found) {
109
260        $ret = "001";
261        foreach ($list as $key => $value) {
262            if (strpos($locale, '_') !== false) {
318                if ($value === 1) {
319                    foreach($temp as $key => $value) {
320                        if ((is_numeric($key) === false) and ($key != 'QO') and ($key != 'QU')) {
324                } else if ($value === 2) {
325                    foreach($temp as $key => $value) {
326                        if (is_numeric($key) or ($key == 'QO') or ($key == 'QU')) {
533                $_temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem', 'id');
534                foreach($_temp as $key => $found) {
535                    $temp += self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem[@id=\'' . $key . '\']', '', $key);
generate.php https://github.com/lbod/api-viewer.git | PHP | 1,357 lines
68	$b = false;
69	foreach($lines as $line){
70		//	 pull off the preceding tab.
98	$isCode = false;
99	foreach($lines as &$line){
100		if(strpos($line, "\t")===0){
214	$mixins = array();
215	foreach($mixinNodes as $m){
216		//	test 1: make sure the mixin is not the superclass.
231
232	foreach($mixins as $location=>$node){
233		//	properties
234		$nl = $xpath->query("properties/property", $node);
235		foreach($nl as $n){
236			$nm = $n->getAttribute("name");
nightly.conf https://github.com/ftian/pig.git | Perl | 4,984 lines
50e = cogroup c by (name, age), d by (name, age) ;
51f = foreach e generate flatten(c), flatten(d);
52g = group f by registration;
52g = group f by registration;
53h = foreach g generate group, SUM(f.d::contributions);
54i = order h by $1;
105a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
106b = foreach a generate name, org.apache.pig.test.udf.evalfunc.Swap(name, age), TOKENIZE((chararray)name), org.apache.pig.test.udf.evalfunc.CreateMap((chararray)name, age); 
107store b into ':OUTPATH:.intermediate' using BinStorage();
122a = load ':INPATH:/singlefile/textdoc' using TextLoader();
123b = foreach a generate TOKENIZE((chararray)$0);
124store b into ':OUTPATH:' using org.apache.pig.test.udf.storefunc.StringStore();\,
495e = filter d by not IsEmpty(b);
496f = foreach e generate flatten(a), flatten(b);
497store f into ':OUTPATH:';\,
macro.conf https://github.com/ftian/pig.git | Unknown | 599 lines
27                         a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
28                         b = foreach a generate age, name;
29                         store b into ':OUTPATH:';
33          'verify_pig_script' => q#a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
34                                   b = foreach a generate age, name;
35                                   store b into ':OUTPATH:';#,
40                         a = load '$loadfile' as (name, age, gpa);
41                         b = foreach a generate age, name;
42                         store b into ':OUTPATH:';
46          'verify_pig_script' => q#a = load ':INPATH:/singlefile/studenttab10k' as (name, age, gpa);
47                                   b = foreach a generate age, name;
48                                   store b into ':OUTPATH:';#,
53                         a = load '$loadfile' as (name, age, gpa);
54                         $b = foreach a generate age, name;
55                     }
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21