PageRenderTime 348ms queryFilters 0ms Sphinxql 274ms app.CodeModel.GetByIds 12ms findMatchingLines 22ms GetByIds 34ms meta 0ms repositoryFilters 10ms languageFilters 11ms sourceFilters 5ms

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

Source

Language

Repository

MDTableWriter.cs https://bitbucket.org/0xd4d/dnlib.git | C# | 711 lines
86				var cols = table.TableInfo.Columns;
87				foreach (var row in table.GetRawRows()) {
88					foreach (var col in cols)
101			var cols = table.TableInfo.Columns;
102			foreach (var row in table) {
103				writer.Write(row.Generation);
117			var cols = table.TableInfo.Columns;
118			foreach (var row in table) {
119				cols[0].Write(writer, row.ResolutionScope);
131			var cols = table.TableInfo.Columns;
132			foreach (var row in table) {
133				writer.Write(row.Flags);
148			var cols = table.TableInfo.Columns;
149			foreach (var row in table)
150				cols[0].Write(writer, row.Field);
Renamer.cs https://bitbucket.org/manojdjoshi/de4dot.git | C# | 1,752 lines
193
194			foreach (var file in files)
195				modules.add(new Module(file));
220		void renameResourceKeys() {
221			foreach (var module in modules.TheModules) {
222				if (!module.ObfuscatedFile.RenameResourceKeys)
228		void removeUselessOverrides(MethodNameGroups groups) {
229			foreach (var group in groups.getAllGroups()) {
230				foreach (var method in group.Methods) {
255
256			foreach (var module in modules.TheModules) {
257				if (module.ObfuscatedFile.RemoveNamespaceWithOneType)
261			var state = new TypeRenamerState();
262			foreach (var type in modules.AllTypes)
263				state.addTypeName(memberInfos.type(type).oldName);
TablesHeap.cs https://bitbucket.org/manojdjoshi/dnlib.git | C# | 886 lines
287		public void SetReadOnly() {
288			foreach (var mdt in Tables)
289				mdt.SetReadOnly();
327			length = 24;
328			foreach (var mdt in Tables) {
329				if (mdt.IsEmpty)
352			writer.Write(GetSortedMask());
353			foreach (var mdt in Tables) {
354				if (!mdt.IsEmpty)
410			var cols = table.TableInfo.Columns;
411			foreach (var row in table) {
412				writer.Write(row.Generation);
422			var cols = table.TableInfo.Columns;
423			foreach (var row in table) {
424				cols[0].Write(writer, row.ResolutionScope);
lime.php https://bitbucket.org/madeye/shadowsocks-android.git | PHP | 910 lines
130		echo " * ".$this->id.' / '.$this->key."\n";
131		foreach ($this->close as $config) $config->dump();
132	}
156		$table = array();
157		foreach ($this->action as $step) {
158			$glyph = $step->glyph();
178		$out = array();
179		foreach ($table as $glyph => $step) {
180			if ($step->sane()) $out[$glyph] = $step->instruction();
541	function fixlinks() {
542		foreach ($this->state as $s) foreach ($s->close as $c) $c->fixlinks();
543	}
545		$q = array();
546		foreach ($this->state as $s) foreach ($s->close as $c) $q[] = $c;
547		while ($q) {
NCDConfigParser_parse.out https://bitbucket.org/madeye/shadowsocks-android.git | Unknown | 951 lines
226State 9:
227          statement ::= FOREACH ROUND_OPEN * value AS NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
228          statement ::= FOREACH ROUND_OPEN * value AS NAME COLON NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
276          statement ::= * IF ROUND_OPEN value ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE elif_maybe else_maybe name_maybe SEMICOLON
277          statement ::= * FOREACH ROUND_OPEN value AS NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
278          statement ::= * FOREACH ROUND_OPEN value AS NAME COLON NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
285                            IF shift  50
286                       FOREACH shift  56
287                     statement shift  15
295          statement ::= IF ROUND_OPEN value ROUND_CLOSE CURLY_OPEN * statements CURLY_CLOSE elif_maybe else_maybe name_maybe SEMICOLON
296          statement ::= * FOREACH ROUND_OPEN value AS NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
297          statement ::= * FOREACH ROUND_OPEN value AS NAME COLON NAME ROUND_CLOSE CURLY_OPEN statements CURLY_CLOSE name_maybe SEMICOLON
304                            IF shift  50
305                       FOREACH shift  56
306                     statement shift  15
class.latte https://bitbucket.org/gencer/apigen.git | Unknown | 422 lines
26	<dl class="tree" n:if="$class->parentClass || $class->ownInterfaces || $class->ownTraits">
27		<dd n:foreach="$tree as $item" style="padding-left:{($iterator->counter - 1) * 30}px">
28			<img src="resources/inherit.png" alt="Extended by" n:if="$iterator->counter > 1">
36			{var $itemOwnTraits = $item->ownTraits}
37			{if $itemOwnTraits} uses {foreach $itemOwnTraits as $trait}
38				<a href="{$trait|classUrl}" n:tag-if="$trait->documented"><span n:class="$trait->deprecated ? deprecated, !$trait->valid ? invalid">{$trait->name}</span></a>{sep}, {/sep}
38				<a href="{$trait|classUrl}" n:tag-if="$trait->documented"><span n:class="$trait->deprecated ? deprecated, !$trait->valid ? invalid">{$trait->name}</span></a>{sep}, {/sep}
39			{/foreach}{/if}
40		</dd>
221		{foreach $methods as $data}
222			<a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)"><span n:tag-if="$data['method']->deprecated" class="deprecated">{$data['method']->originalName}()</span></a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}<span n:tag-if="$data['method']->deprecated" class="deprecated">{$alias->name}()</span>{sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
223		{/foreach}
250		{foreach $methods as $data}
251			<a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)"><span n:tag-if="$data['method']->deprecated" class="deprecated">{$data['method']->originalName}()</span></a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}<span n:tag-if="$data['method']->deprecated" class="deprecated">{$alias->name}()</span>{sep}, {/sep}{/foreach}){/if}{sep}, {/sep}
252		{/foreach}
class.latte https://bitbucket.org/gencer/apigen.git | Unknown | 426 lines
27	<dl class="tree well" n:if="$class->parentClass || $class->ownInterfaces || $class->ownTraits">
28		<dd n:foreach="$tree as $item" style="padding-left:{($iterator->counter - 1) * 30}px">
29			<img src="resources/inherit.png" alt="Extended by" n:if="$iterator->counter > 1">
37			{var $itemOwnTraits = $item->ownTraits}
38			{if $itemOwnTraits} uses {foreach $itemOwnTraits as $trait}
39				<a href="{$trait|classUrl}" n:tag-if="$trait->documented"><span n:class="$trait->deprecated ? deprecated, !$trait->valid ? invalid">{$trait->name}</span></a>{sep}, {/sep}
39				<a href="{$trait|classUrl}" n:tag-if="$trait->documented"><span n:class="$trait->deprecated ? deprecated, !$trait->valid ? invalid">{$trait->name}</span></a>{sep}, {/sep}
40			{/foreach}{/if}
41		</dd>
226		{foreach $methods as $data}
227			<code><a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)"><span n:tag-if="$data['method']->deprecated" class="deprecated">{$data['method']->name}()</span></a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}<span n:tag-if="$data['method']->deprecated" class="deprecated">{$alias->name}()</span>{sep}, {/sep}{/foreach}){/if}</code>{sep}, {/sep}
228		{/foreach}
253		{foreach $methods as $data}
254			<code><a href="{$data['method']|methodUrl:$data['method']->declaringTrait}" n:tag-if="$template->getClass($traitName)"><span n:tag-if="$data['method']->deprecated" class="deprecated">{$data['method']->name}()</span></a>{if $data['aliases']}(as {foreach $data['aliases'] as $alias}<span n:tag-if="$data['method']->deprecated" class="deprecated">{$alias->name}()</span>{sep}, {/sep}{/foreach}){/if}</code>{sep}, {/sep}
255		{/foreach}
Generator.php https://bitbucket.org/gencer/apigen.git | PHP | 1,718 lines
164
165		foreach ($this->config->source as $source) {
166			$entries = array();
167			if (is_dir($source)) {
168				foreach (new \RecursiveIteratorIterator(new SourceFilesFilterIterator(new \RecursiveDirectoryIterator($source, $flags), $this->config->exclude)) as $entry) {
169					if (!$entry->isFile()) {
177				}
178				foreach (new \RecursiveIteratorIterator(new \Phar($source, $flags)) as $entry) {
179					if (!$entry->isFile()) {
188			$regexp = '~\\.' . implode('|', $this->config->extensions->toArray()) . '$~i';
189			foreach ($entries as $entry) {
190				if (!preg_match($regexp, $entry->getFilename())) {
211
212		foreach ($files as $filePath => $size) {
213			$content = $this->charsetConvertor->convertFile($filePath);
TreeWalkerChain.php https://bitbucket.org/gencer/doctrine2.git | PHP | 575 lines
111    {
112        foreach ($this->_walkers as $walker) {
113            $walker->walkSelectStatement($AST);
123    {
124        foreach ($this->_walkers as $walker) {
125            $walker->walkSelectClause($selectClause);
133    {
134        foreach ($this->_walkers as $walker) {
135            $walker->walkFromClause($fromClause);
143    {
144        foreach ($this->_walkers as $walker) {
145            $walker->walkFunction($function);
153    {
154        foreach ($this->_walkers as $walker) {
155            $walker->walkOrderByClause($orderByClause);
folders-lib.pl https://bitbucket.org/gencer/webmin.git | Perl | 3,608 lines
127	# Clean up any cached mails that no longer exist on the server
128	foreach $f (keys %cached) {
129		if (!$onserver{$f}) {
198	local ($sf, %len, $count);
199	foreach $sf (@{$_[2]->{'subfolders'}}) {
200		print DEBUG "working out size of ",&folder_name($sf),"\n";
209	local $pos = 0;
210	foreach $sf (@{$_[2]->{'subfolders'}}) {
211		local ($sfstart, $sfend);
222		local $sm;
223		foreach $sm (@submail) {
224			if ($sm) {
253	local $changed = 0;
254	foreach my $sfn (keys %wantmap) {
255		local $sf = $namemap{$sfn};
apache-lib.pl https://bitbucket.org/gencer/webmin.git | Perl | 1,993 lines
36			local @mods = map { "$_/$ver" } &configurable_modules();
37			foreach my $m (@mods) {
38				if ($m =~ /(\S+)\/(\S+)/) {
62	$httpd_size = $site{'size'};
63	foreach $m (split(/\s+/, $site{'modules'})) {
64		if ($m =~ /(\S+)\/(\S+)/) {
67		}
68	foreach $m (keys %httpd_modules) {
69		if (!-r "$module_root_directory/$m.pl") {
72		}
73	foreach $f (split(/\s+/, $site{'htaccess'})) {
74		if (-r $f) { push(@htaccess_files, $f); }
75		}
76	foreach $m (keys %httpd_modules) {
77		do "$m.pl";
CActiveFinder.php https://bitbucket.org/gencer/yii.git | PHP | 1,661 lines
77				$array=array();
78				foreach($result as $object)
79					$array[$object->$index]=$object;
165		{
166			foreach($this->_joinTree->children as $child)
167				$child->afterFind();
295		// $with is an array, keys are relation name, values are relation spec
296		foreach($with as $key=>$value)
297		{
402			$prefix='t'.$id.'_c';
403		foreach($table->getColumnNames() as $key=>$name)
404		{
421		{
422			foreach($this->children as $child)
423				$child->destroy();
Renamer.cs https://bitbucket.org/ef123/de4dot.git | C# | 1,753 lines
193
194			foreach (var file in files)
195				modules.add(new Module(file));
220		void renameResourceKeys() {
221			foreach (var module in modules.TheModules) {
222				if (!module.ObfuscatedFile.RenameResourceKeys)
228		void removeUselessOverrides(MethodNameGroups groups) {
229			foreach (var group in groups.getAllGroups()) {
230				foreach (var method in group.Methods) {
255
256			foreach (var module in modules.TheModules) {
257				if (module.ObfuscatedFile.RemoveNamespaceWithOneType)
261			var state = new TypeRenamerState();
262			foreach (var type in modules.AllTypes)
263				state.addTypeName(memberInfos.type(type).oldName);
Renamer.cs https://bitbucket.org/SquallATF/de4dot.git | C# | 1,790 lines
196
197			foreach (var file in files)
198				modules.Add(new Module(file));
201		static void WarnIfXaml(IEnumerable<IObfuscatedFile> files) {
202			foreach (var file in files) {
203				foreach (var tmp in file.ModuleDefMD.Resources) {
223				var rsrcSet = ResourceReader.Read(module, rsrc.Data);
224				foreach (var elem in rsrcSet.ResourceElements) {
225					if (elem.Name.EndsWith(".baml"))
256		void RenameResourceKeys() {
257			foreach (var module in modules.TheModules) {
258				if (!module.ObfuscatedFile.RenameResourceKeys)
264		void RemoveUselessOverrides(MethodNameGroups groups) {
265			foreach (var group in groups.GetAllGroups()) {
266				foreach (var method in group.Methods) {
Data.php https://bitbucket.org/jfrubiom/zendframework-1.x.git | PHP | 1,518 lines
109            if (!empty($result)) {
110                foreach ($result as &$found) {
111
262        $ret = "001";
263        foreach ($list as $key => $value) {
264            if (strpos($locale, '_') !== false) {
340                if ($value === 1) {
341                    foreach($temp as $key => $value) {
342                        if ((is_numeric($key) === false) and ($key != 'QO') and ($key != 'QU')) {
346                } else if ($value === 2) {
347                    foreach($temp as $key => $value) {
348                        if (is_numeric($key) or ($key == 'QO') or ($key == 'QU')) {
555                $_temp = self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem', 'id');
556                foreach($_temp as $key => $found) {
557                    $temp += self::_getFile($locale, '/ldml/dates/calendars/calendar[@type=\'' . $value . '\']/dateTimeFormats/availableFormats/dateFormatItem[@id=\'' . $key . '\']', '', $key);
Fit.pm https://bitbucket.org/bruceravel/demeter.git | Perl | 2,227 lines
218#     my @list = @{ $component_of{ident $self}{$which} };
219#     foreach my $obj (@list) {
220#       $obj -> set($rhash);
363  ## and clear all trouble attributes
364  foreach my $gds (@{ $self->gds }) {
365    $gds -> Use(1);
367  };
368  foreach my $d (@{ $self->data }) {
369    $d -> fitting(0);
371  };
372  foreach my $p (@{ $self->paths }) {
373    $p -> _update('path') if (ref($p) =~ m{FSPath});
411
412  foreach my $gds (@{ $self->gds }) {
413    $self->dispense("fit", "erase_gds", {items=>$gds->name});
Sanity.pm https://bitbucket.org/bruceravel/demeter.git | Perl | 1,092 lines
36  my @data = @{ $self->data };
37  foreach my $d (@data) {
38    next if $d->from_athena;
57  my @paths = @{ $self->paths };
58  foreach my $p (@paths) {
59    next if not $p->include;
77  my @paths = @{ $self->paths };
78  foreach my $p (@paths) {
79    next if not $p->include;
97  my @paths = @{ $self->paths };
98  foreach my $g (@gds) {
99    my $name = lc($g->name);
101    next if ($g->gds ne 'guess');
102    foreach my $d (@gds) {
103      next if ($d->gds !~ m{(?:def|restrain)});
model.cpp https://bitbucket.org/kyanha/qt-creator.git | C++ | 1,880 lines
104{
105    foreach (const QWeakPointer<AbstractView> &view, m_viewList)
106        detachView(view.data(), true);
135    QList<Import> removedImportList;
136    foreach (const Import &import, toBeRemovedImportList) {
137        if (m_imports.contains(import)) {
143    QList<Import> addedImportList;
144    foreach (const Import &import, toBeAddedImportList) {
145        if (!m_imports.contains(import)) {
172
173    foreach (const QWeakPointer<AbstractView> &view, m_viewList)
174        view->importsChanged(addedImports, removedImports);
191
192        foreach (const QWeakPointer<AbstractView> &view, m_viewList)
193            view->fileUrlChanged(oldPath, fileUrl);
ConfigurationManager.cs https://bitbucket.org/nekokun/nekokun.git | C# | 1,931 lines
237
238            foreach (Configuration c in configList)
239            {
246            b = null;
247            foreach (Configuration c in configList)
248            {
255            b = null;
256            foreach (Configuration c in configList)
257            {
264            b = null;
265            foreach (Configuration c in configList)
266            {
273            s = null;
274            foreach (Configuration c in configList)
275            {
mod.member.php https://bitbucket.org/sbeuken/artelux.git | PHP | 2,909 lines
378
379			foreach(get_object_vars($this) as $key => $value)
380			{
463
464		foreach(get_object_vars($this) as $key => $value)
465		{
514
515		foreach(get_object_vars($this) as $key => $value)
516		{
536
537		foreach(get_object_vars($this) as $key => $value)
538		{
558
559		foreach(get_object_vars($this) as $key => $value)
560		{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21