rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
rng = float_range(a,b, float(b-a)/(plot_points)) rng.append(float(b)) return var, rng def float_range(a, b, step): """ Returns the """ (a,b,step) = (float(a),float(b),float(step)) v = [a] w = a + step while w < b: v.append(w) w += step if w <= b: v.append(b) return v | step = (b-a)/float(plot_points) values = [a + step*i for i in xrange(plot_points)] return var, values | def var_and_list_of_values(v, plot_points): """ INPUT: plot_points -- integer >= 2 (the endpoints) v -- (v0, v1) or (var, v0, v1); if the former return the range of values between v0 and v1 taking plot_points steps; if var is given, also return var. OUTPUT: var -- a variable or None list -- a list of floats """ plot_p... | ba649c786a148ae37b4e24bda03457fb9056c8dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ba649c786a148ae37b4e24bda03457fb9056c8dc/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
67,
464,
67,
1098,
67,
792,
67,
2372,
12,
90,
16,
3207,
67,
4139,
4672,
3536,
12943,
30,
3207,
67,
4139,
1493,
3571,
1545,
576,
261,
5787,
7902,
13,
331,
1493,
261,
90,
20,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
67,
464,
67,
1098,
67,
792,
67,
2372,
12,
90,
16,
3207,
67,
4139,
4672,
3536,
12943,
30,
3207,
67,
4139,
1493,
3571,
1545,
576,
261,
5787,
7902,
13,
331,
1493,
261,
90,
20,
16,
... |
pat = re.compile(r'^\s*class\s*' + name + r'\b') | pat = re.compile(r'^(\s*)class\s*' + name + r'\b') candidates = [] | def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r... | bec9f6027f5924ff1411304496084e6797e53c8f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/bec9f6027f5924ff1411304496084e6797e53c8f/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... |
query_tags = dict(q=query_text, format='xml', addressdetails=1) | query_tags = dict(q=query_text.encode("UTF-8"), format='xml', addressdetails=1) | def _fetch_entries(query_text, with_polygons): """ Query the nominatim service for the given city query and return a (python) list of entries for the given squery (eg. "Paris"). Each entry is a dictionary key -> value (value is always a string). """ # For some reason, the "xml" nominatim output is ALWAYS used, even # t... | 08543a6c235c003714a656298c0d1f16ac2f1ec9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14904/08543a6c235c003714a656298c0d1f16ac2f1ec9/nominatim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
67,
8219,
12,
2271,
67,
955,
16,
598,
67,
20917,
87,
4672,
3536,
2770,
326,
12457,
267,
22204,
1156,
364,
326,
864,
12797,
843,
471,
327,
279,
261,
8103,
13,
666,
434,
3222,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
67,
8219,
12,
2271,
67,
955,
16,
598,
67,
20917,
87,
4672,
3536,
2770,
326,
12457,
267,
22204,
1156,
364,
326,
864,
12797,
843,
471,
327,
279,
261,
8103,
13,
666,
434,
3222,... |
creatorcode, filetype = _KNOWN_MAC_EXT[ext] | creatorcode, filetype = _KNOWN_MAC_EXT[string.upper(ext)] | def markfilename(filename,creatorcode=None,filetype=None,ext='PDF'): try: if creatorcode is None or filetype is None and ext is not None: try: creatorcode, filetype = _KNOWN_MAC_EXT[ext] except: return macfs.FSSpec(filename).SetCreatorType(creatorcode,filetype) macostools.touched(filename) except: pass | 77857aecc01c84d710dd1da2547485eb140307e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/77857aecc01c84d710dd1da2547485eb140307e5/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
3459,
12,
3459,
16,
20394,
710,
33,
7036,
16,
7540,
5872,
33,
7036,
16,
408,
2218,
17508,
11,
4672,
775,
30,
309,
11784,
710,
353,
599,
578,
18902,
353,
599,
471,
1110,
353,
486,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
3459,
12,
3459,
16,
20394,
710,
33,
7036,
16,
7540,
5872,
33,
7036,
16,
408,
2218,
17508,
11,
4672,
775,
30,
309,
11784,
710,
353,
599,
578,
18902,
353,
599,
471,
1110,
353,
486,... |
tag_col.add_attribute(render_tags, "cell-background", self.CTASKS_MODEL_BGCOL) | tag_col.add_attribute( render_tags, "cell-background", self.CTASKS_MODEL_BGCOL) | def __create_closed_tasks_tview(self): | fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
12204,
67,
9416,
67,
88,
1945,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
12204,
67,
9416,
67,
88,
1945,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
i = min( out.find('not defined'), out.find('(in') ) | i = min( out.find('not defined'), out.find('\(in'), out.find('Argument types') ) | def set(self, var, value): """ Set the variable var to the given value. """ cmd = '%s=%s'%(var,value) out = self.eval(cmd) i = min( out.find('not defined'), out.find('(in') ) if i != -1: raise RuntimeError, out | 86f89936c69cf79b2617a6cbab97276a7bb2101a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/86f89936c69cf79b2617a6cbab97276a7bb2101a/lie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
569,
16,
460,
4672,
3536,
1000,
326,
2190,
569,
358,
326,
864,
460,
18,
3536,
1797,
273,
1995,
87,
5095,
87,
11,
17105,
1401,
16,
1132,
13,
596,
273,
365,
18,
8622... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12,
2890,
16,
569,
16,
460,
4672,
3536,
1000,
326,
2190,
569,
358,
326,
864,
460,
18,
3536,
1797,
273,
1995,
87,
5095,
87,
11,
17105,
1401,
16,
1132,
13,
596,
273,
365,
18,
8622... |
audio_str = stringtags(audio) | def runAction(funcs, audio, state = None, quick_action=None): """Runs an action on audio funcs can be a list of Function objects or a filename of an action file (see getAction). audio must dictionary-like object.""" if isinstance(funcs, basestring): funcs = getAction(funcs)[0] if state is None: state = {} audio_str ... | 369fc32e9c7b6f40115e708fde31e7238e87e79a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3907/369fc32e9c7b6f40115e708fde31e7238e87e79a/findfunc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1803,
12,
17728,
16,
7447,
16,
919,
273,
599,
16,
9549,
67,
1128,
33,
7036,
4672,
3536,
9361,
392,
1301,
603,
7447,
225,
15630,
848,
506,
279,
666,
434,
4284,
2184,
578,
279,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1803,
12,
17728,
16,
7447,
16,
919,
273,
599,
16,
9549,
67,
1128,
33,
7036,
4672,
3536,
9361,
392,
1301,
603,
7447,
225,
15630,
848,
506,
279,
666,
434,
4284,
2184,
578,
279,
154... | |
if line.strip().startswith('>'): self.handle_quote_block(line) continue if self._quote_buffer: self.close_quote_block(escape_newlines) | def format(self, text, out=None, escape_newlines=False): self.reset(text, out) if isinstance(text, basestring): text = text.splitlines() for line in text: # Handle code block if self.in_code_block or WikiParser.ENDBLOCK not in line: match = WikiParser._startblock_re.match(line) if match or self.in_code_block: self.han... | a7b8bdff468cc5bd76bd005a010e231b6bb059c4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/a7b8bdff468cc5bd76bd005a010e231b6bb059c4/formatter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
977,
16,
596,
33,
7036,
16,
4114,
67,
31276,
33,
8381,
4672,
365,
18,
6208,
12,
955,
16,
596,
13,
309,
1549,
12,
955,
16,
10699,
4672,
977,
273,
977,
18,
4939,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
977,
16,
596,
33,
7036,
16,
4114,
67,
31276,
33,
8381,
4672,
365,
18,
6208,
12,
955,
16,
596,
13,
309,
1549,
12,
955,
16,
10699,
4672,
977,
273,
977,
18,
4939,
3... | |
if not isinstance(v, sage.modules.free_module_element.FreeModuleElement): | if not isinstance(v, free_module_element.FreeModuleElement): | def echelon_coordinates(self, v): """ Write $v$ in terms of the echelonized basis for self. | 0d868db34b3e11c7873834839f013351420aad0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/0d868db34b3e11c7873834839f013351420aad0c/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
343,
292,
265,
67,
16941,
12,
2890,
16,
331,
4672,
3536,
2598,
271,
90,
8,
316,
6548,
434,
326,
425,
343,
292,
265,
1235,
10853,
364,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
343,
292,
265,
67,
16941,
12,
2890,
16,
331,
4672,
3536,
2598,
271,
90,
8,
316,
6548,
434,
326,
425,
343,
292,
265,
1235,
10853,
364,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-... |
sage: print is_bitrade(T1, T2) | sage: is_bitrade(T1, T2) | def beta1(rce, T1, T2): """ Find the unique (x, c, e) in T2 such that (r, c, e) is in T1. INPUT: rce -- tuple (or list) (r, c, e) in T1 T1, T2 -- latin bitrade OUTPUT: (x, c, e) in T2. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2,3,4) ) sa... | 0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0d333d6beb48cce2a6cb9f6c18b5d14e9b0765b2/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6796,
21,
12,
86,
311,
16,
399,
21,
16,
399,
22,
4672,
3536,
4163,
326,
3089,
261,
92,
16,
276,
16,
425,
13,
316,
399,
22,
4123,
716,
261,
86,
16,
276,
16,
425,
13,
353,
316,
399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6796,
21,
12,
86,
311,
16,
399,
21,
16,
399,
22,
4672,
3536,
4163,
326,
3089,
261,
92,
16,
276,
16,
425,
13,
316,
399,
22,
4123,
716,
261,
86,
16,
276,
16,
425,
13,
353,
316,
399... |
print "showing 'global' help; commands=", self.commands | def parse_command_line (self, args): """Parse the setup script's command line. 'args' must be a list of command-line arguments, most likely 'sys.argv[1:]' (see the 'setup()' function). This list is first processed for "global options" -- options that set attributes of the Distribution instance. Then, it is alternate... | 2bd3f4250d59cabc0dda29fc3289beda315ce06a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2bd3f4250d59cabc0dda29fc3289beda315ce06a/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
261,
2890,
16,
833,
4672,
3536,
3201,
326,
3875,
2728,
1807,
1296,
980,
18,
225,
296,
1968,
11,
1297,
506,
279,
666,
434,
1296,
17,
1369,
1775,
16,
4486,
1037... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
3076,
67,
1369,
261,
2890,
16,
833,
4672,
3536,
3201,
326,
3875,
2728,
1807,
1296,
980,
18,
225,
296,
1968,
11,
1297,
506,
279,
666,
434,
1296,
17,
1369,
1775,
16,
4486,
1037... | |
assert len(text) <= self.MAX_WIDTH - self.HEADER_WIDTH, \ "Annotation %s too long for %s line" % (repr(text), tag) | if len(text) > self.MAX_WIDTH - self.HEADER_WIDTH: import warnings warnings.warn("Annotation %r too long for %s line" % (text, tag)) | def _write_single_line(self, tag, text): "Used in the the 'header' of each GenBank record.""" assert len(tag) < self.HEADER_WIDTH assert len(text) <= self.MAX_WIDTH - self.HEADER_WIDTH, \ "Annotation %s too long for %s line" % (repr(text), tag) self.handle.write("%s%s\n" % (tag.ljust(self.HEADER_WIDTH), text.replace("\... | f25ccef1e07129a377954021e08e980b82b6e795 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/f25ccef1e07129a377954021e08e980b82b6e795/InsdcIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
7526,
67,
1369,
12,
2890,
16,
1047,
16,
977,
4672,
315,
6668,
316,
326,
326,
296,
3374,
11,
434,
1517,
10938,
16040,
1409,
12123,
1815,
562,
12,
2692,
13,
411,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
7526,
67,
1369,
12,
2890,
16,
1047,
16,
977,
4672,
315,
6668,
316,
326,
326,
296,
3374,
11,
434,
1517,
10938,
16040,
1409,
12123,
1815,
562,
12,
2692,
13,
411,
365,
18,
... |
OUT.info(overlay.__str__(), 1) if not overlay.is_official(): OUT.warn('*** This is no official gentoo overlay ***\n', 1) if not overlay.is_supported(): OUT.error('*** You are lacking the necessary tools to install t' 'his overlay ***\n') | if overlay: OUT.info(overlay.__str__(), 1) if not overlay.is_official(): OUT.warn('*** This is no official gentoo overlay ***\n', 1) if not overlay.is_supported(): OUT.error('*** You are lacking the necessary tools to install t' 'his overlay ***\n') else: OUT.warn('Overlay "' + i + '" does not exist!', 2) result = 1 | def run(self): ''' Print information about the selected overlays.''' | c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7305/c79a8463f79cb042eacb8bc6fadc0db8b20f4c0f/action.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
3038,
1779,
2973,
326,
3170,
9218,
87,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
9163,
3038,
1779,
2973,
326,
3170,
9218,
87,
1093,
6309,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print '%d sites, %d keys, %d persons, %d nodes & %d slices'%( number_sites, number_keys,number_persons,number_nodes,number_slices) | print '%d keys, %d sites, %d persons, %d nodes & %d slices'%( number_keys, number_sites,number_persons,number_nodes,number_slices), print 'fast_flag',fast_flag if local_index is not None: print 'Running locally on index %d'%local_index | def show_test(): print '%d sites, %d keys, %d persons, %d nodes & %d slices'%( number_sites, number_keys,number_persons,number_nodes,number_slices) | e12b56d5b3d0bf32ad1d930f36276184dea09d45 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/e12b56d5b3d0bf32ad1d930f36276184dea09d45/TestPeers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
3813,
13332,
1172,
1995,
72,
1311,
16,
738,
72,
9180,
16,
738,
72,
6175,
87,
16,
738,
72,
2199,
473,
738,
72,
12390,
11,
17105,
1300,
67,
2452,
16,
1300,
67,
12180,
16,
269... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
3813,
13332,
1172,
1995,
72,
1311,
16,
738,
72,
9180,
16,
738,
72,
6175,
87,
16,
738,
72,
2199,
473,
738,
72,
12390,
11,
17105,
1300,
67,
2452,
16,
1300,
67,
12180,
16,
269... |
sage: ZZ._tester() Testing utilities for Integer Ring | sage: QQ._tester() Testing utilities for Rational Field | def __init__(self, instance, elements = None, verbose = False, prefix = "", **options): """ A gadget attached to an instance providing it with testing utilities. | 2e93f797c6c79f37d5bddd19d9592c505bf4e432 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/2e93f797c6c79f37d5bddd19d9592c505bf4e432/sage_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
16,
2186,
273,
599,
16,
3988,
273,
1083,
16,
1633,
273,
23453,
2826,
2116,
4672,
3536,
432,
314,
361,
588,
7495,
358,
392,
791,
17721,
518,
598,
776... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
791,
16,
2186,
273,
599,
16,
3988,
273,
1083,
16,
1633,
273,
23453,
2826,
2116,
4672,
3536,
432,
314,
361,
588,
7495,
358,
392,
791,
17721,
518,
598,
776... |
self.make_main() self.make_osname() | self.make_main() self.make_osname() | def make_initial_modules(self): | 3ec38f0ee48b31c80510c60b3df0e6bc4dfb89f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/3ec38f0ee48b31c80510c60b3df0e6bc4dfb89f9/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
6769,
67,
6400,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
6769,
67,
6400,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print header | self.stdout.write("%s\n"%str(header)) | def print_topics(self, header, cmds, cmdlen, maxcol): if cmds: print header if self.ruler: print self.ruler * len(header) self.columnize(cmds, maxcol-1) print | 90e52fb339295b9beb2c32ed803b2fefd10dad3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/90e52fb339295b9beb2c32ed803b2fefd10dad3b/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
17905,
12,
2890,
16,
1446,
16,
13446,
16,
1797,
1897,
16,
943,
1293,
4672,
309,
13446,
30,
365,
18,
10283,
18,
2626,
27188,
87,
64,
82,
28385,
701,
12,
3374,
3719,
309,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
17905,
12,
2890,
16,
1446,
16,
13446,
16,
1797,
1897,
16,
943,
1293,
4672,
309,
13446,
30,
365,
18,
10283,
18,
2626,
27188,
87,
64,
82,
28385,
701,
12,
3374,
3719,
309,
365,
... |
of the original `document` document, pass settings=document.settings. | of the original `document`, pass settings=document.settings. | def publish_from_doctree(document, destination_path=None, writer=None, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides=None, config_section=None, enable_exit_status=None): """ Set up & run a `Publisher` to render from an existing document tree data structure, for programmatic use with str... | 7c769158fc2c5ea0ecb7db2d874d0f148fafdb55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/7c769158fc2c5ea0ecb7db2d874d0f148fafdb55/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
67,
2080,
67,
2896,
299,
992,
12,
5457,
16,
2929,
67,
803,
33,
7036,
16,
2633,
33,
7036,
16,
2633,
67,
529,
2218,
84,
23715,
2409,
781,
2187,
1947,
33,
7036,
16,
1947,
67,
2793... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3808,
67,
2080,
67,
2896,
299,
992,
12,
5457,
16,
2929,
67,
803,
33,
7036,
16,
2633,
33,
7036,
16,
2633,
67,
529,
2218,
84,
23715,
2409,
781,
2187,
1947,
33,
7036,
16,
1947,
67,
2793... |
self.trackno = '0%s' % int(self.trackno) | self.trackno = u'0%s' % int(self.trackno) | def _finalize(self): """ Correct same data based on specific rules """ AudioInfo._finalize(self) if self.trackof: try: # XXX Why is this needed anyway? if int(self.trackno) < 10: self.trackno = '0%s' % int(self.trackno) except (KeyboardInterrupt, SystemExit): sys.exit(0) except: pass | 88e00aef361a50863d94e2424e34a47bc9f3c482 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11721/88e00aef361a50863d94e2424e34a47bc9f3c482/mediainfo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30343,
12,
2890,
4672,
3536,
30626,
1967,
501,
2511,
603,
2923,
2931,
3536,
15045,
966,
6315,
30343,
12,
2890,
13,
309,
365,
18,
4101,
792,
30,
775,
30,
468,
11329,
3497,
93,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
30343,
12,
2890,
4672,
3536,
30626,
1967,
501,
2511,
603,
2923,
2931,
3536,
15045,
966,
6315,
30343,
12,
2890,
13,
309,
365,
18,
4101,
792,
30,
775,
30,
468,
11329,
3497,
93,
353,
... |
streams = [(None, "", "", _("none"), "")] | streams = [] | #def __call__(self, *args, **kwargs): #self.fnc(*self.args) | 71dcc2c21cb3488861444e6f4e82a25b77df70ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/71dcc2c21cb3488861444e6f4e82a25b77df70ed/AudioSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
468,
2890,
18,
4293,
71,
30857,
2890,
18,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
1001,
1991,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
468,
2890,
18,
4293,
71,
30857,
2890,
18,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print "Chleaning up..." | print "Cleaning up..." | def usage(ret): print """Usage: darcs-git optimize [OPTION]... | fbb30a4a0042b51755c1c964745ac23f5bc46d42 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11991/fbb30a4a0042b51755c1c964745ac23f5bc46d42/darcs-git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
1349,
4672,
1172,
3536,
5357,
30,
302,
297,
2143,
17,
6845,
10979,
306,
7425,
65,
2777,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
1349,
4672,
1172,
3536,
5357,
30,
302,
297,
2143,
17,
6845,
10979,
306,
7425,
65,
2777,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.params['is_multi'] = False geom_type = value.geom_type.upper() | def render(self, name, value, attrs=None): # Update the template parameters with any attributes passed in. if attrs: self.params.update(attrs) | cd0c9da3738122a2c01aa6f8bfc338e309ad332e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10327/cd0c9da3738122a2c01aa6f8bfc338e309ad332e/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
508,
16,
460,
16,
3422,
33,
7036,
4672,
468,
2315,
326,
1542,
1472,
598,
1281,
1677,
2275,
316,
18,
309,
3422,
30,
365,
18,
2010,
18,
2725,
12,
7039,
13,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
508,
16,
460,
16,
3422,
33,
7036,
4672,
468,
2315,
326,
1542,
1472,
598,
1281,
1677,
2275,
316,
18,
309,
3422,
30,
365,
18,
2010,
18,
2725,
12,
7039,
13,
2,
-100,... | |
inEscapeValues.append( str( value ) ) self.__putConnection(connection) | inEscapeValues.append( str( value ) ) self.__putConnection( connection ) | def _escapeValues( self, inValues = [] ): """ Escapes all strings in the list of values provided """ self.logger.debug( '_escapeValues:', inValues ) | 0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6939,
1972,
12,
365,
16,
316,
1972,
273,
5378,
262,
30,
3536,
512,
1017,
7315,
777,
2064,
316,
326,
666,
434,
924,
2112,
3536,
365,
18,
4901,
18,
4148,
12,
2070,
6939,
1972,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6939,
1972,
12,
365,
16,
316,
1972,
273,
5378,
262,
30,
3536,
512,
1017,
7315,
777,
2064,
316,
326,
666,
434,
924,
2112,
3536,
365,
18,
4901,
18,
4148,
12,
2070,
6939,
1972,
30,
... |
if connections: conn_name = unicode(connections[0][1]) else: conn_name = None | conn_name = unicode(connections[0][1]) if connections else None | def __init__(self, widget, storage): self.w = widget self.storage = storage self._translateText() | 201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8560/201b1c9e4adf26ba529bd9bf36b9e00c8fe2621e/gui_option.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3604,
16,
2502,
4672,
365,
18,
91,
273,
3604,
365,
18,
5697,
273,
2502,
365,
6315,
13929,
1528,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3604,
16,
2502,
4672,
365,
18,
91,
273,
3604,
365,
18,
5697,
273,
2502,
365,
6315,
13929,
1528,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
c_nickname = 0 c_date_creation = 1 c_body = 2 c_nb_votes_yes = 3 c_nb_votes_total = 4 c_star_score = 5 c_title = 6 c_id = 7 | c_star_score = 6 | def calculate_avg_score(res): """ private function Calculate the avg score of reviews present in res @param res: tuple of tuple returned from query_retrieve_comments_or_remarks @return a float of the average score rounded to the closest 0.5 """ c_nickname = 0 c_date_creation = 1 c_body = 2 c_nb_votes_yes = 3 c_nb_vote... | a938eb422a40edd6c4c0b8e579325ccfbbd20cce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/a938eb422a40edd6c4c0b8e579325ccfbbd20cce/webcomment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
67,
14141,
67,
6355,
12,
455,
4672,
3536,
3238,
445,
9029,
326,
11152,
4462,
434,
283,
7061,
3430,
316,
400,
632,
891,
400,
30,
3193,
434,
3193,
2106,
628,
843,
67,
17466,
67,
92... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
67,
14141,
67,
6355,
12,
455,
4672,
3536,
3238,
445,
9029,
326,
11152,
4462,
434,
283,
7061,
3430,
316,
400,
632,
891,
400,
30,
3193,
434,
3193,
2106,
628,
843,
67,
17466,
67,
92... |
client.name = match.group('name') return b3.events.Event(b3.events.EVT_CLIENT_PRIVATE_SAY, data, client, tclient) | name = self.stripColors(match.group('name')) if int(match.group('cid')) == 0 and client.name != name: self.debug('UrT bug spotted: cid does not match name on a Saytell line') client2 = self.clients.getClientsByName(name) if not client2: self.warning('Could not get client with name %s' % name) return None self.debug('ci... | def OnSaytell(self, action, data, match=None): #5:39 saytell: 15 16 repelSteeltje: nno #5:39 saytell: 15 15 repelSteeltje: nno | a15137b80f12a8ff24cd69ebfb8813fbeb288b32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/a15137b80f12a8ff24cd69ebfb8813fbeb288b32/iourt41.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
528,
88,
1165,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
25,
30,
5520,
12532,
88,
1165,
30,
4711,
2872,
2071,
292,
510,
73,
20224,
78,
73,
30,
290,
2135,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
55,
528,
88,
1165,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
25,
30,
5520,
12532,
88,
1165,
30,
4711,
2872,
2071,
292,
510,
73,
20224,
78,
73,
30,
290,
2135,
... |
'analytic_journal_id': analitical_journal_sale | 'analytic_journal_id': analitical_journal_sale, 'company_id': company_id.id | def generate_configurable_chart(self, cr, uid, ids, context=None): obj_acc = self.pool.get('account.account') obj_acc_tax = self.pool.get('account.tax') obj_journal = self.pool.get('account.journal') obj_acc_tax_code = self.pool.get('account.tax.code') obj_acc_template = self.pool.get('account.account.template') obj_ac... | f943acfa3702f01fdf9706c676422fee6dbe481d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f943acfa3702f01fdf9706c676422fee6dbe481d/installer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1425,
7463,
67,
11563,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
8981,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
1081,
67,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
1425,
7463,
67,
11563,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1081,
67,
8981,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
4631,
6134,
1081,
67,
8... |
<input type="submit" value="Generate diff"> | <input type=submit value="Generate diff"> | def startFormatting(title, identifier, source): document = """Content-Type:text/html;charset=UTF-8 | 943afbec53903141cfdc88408bfe2ea256880388 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10248/943afbec53903141cfdc88408bfe2ea256880388/trackerlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
23974,
12,
2649,
16,
2756,
16,
1084,
4672,
1668,
273,
3536,
1350,
17,
559,
30,
955,
19,
2620,
31,
9999,
33,
5159,
17,
28,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
names = filter(lambda x: x[0] != '.', names) | names = [x for x in names if x[0] != '.'] | def glob1(dirname, pattern): if not dirname: dirname = os.curdir if isinstance(pattern, str) and not isinstance(dirname, str): dirname = str(dirname, sys.getfilesystemencoding() or sys.getdefaultencoding()) try: names = os.listdir(dirname) except os.error: return [] if pattern[0] != '.': names = filter(lambda x: x[0] !... | f7a0e3819c98e4bd5e716839a5a28fe37d741a37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/f7a0e3819c98e4bd5e716839a5a28fe37d741a37/glob.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
21,
12,
12287,
16,
1936,
4672,
309,
486,
4283,
30,
4283,
273,
1140,
18,
1397,
1214,
309,
1549,
12,
4951,
16,
609,
13,
471,
486,
1549,
12,
12287,
16,
609,
4672,
4283,
273,
609,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
21,
12,
12287,
16,
1936,
4672,
309,
486,
4283,
30,
4283,
273,
1140,
18,
1397,
1214,
309,
1549,
12,
4951,
16,
609,
13,
471,
486,
1549,
12,
12287,
16,
609,
4672,
4283,
273,
609,
... |
ainfo += (". Distance between %s-%s is %.3f." % \ (self, self.molecule.assy.ppa2, vlen(self.posn()-self.molecule.assy.ppa2.posn()))) | ainfo += (". Distance between %s-%s is %.3f Angstroms." % \ (self, self.molecule.assy.ppa2, vlen(self.posn()-self.molecule.assy.ppa2.posn()))) | def getinfo(self): # Return information about the selected atom for the msgbar # [mark 2004-10-14] # bruce 041217 revised XYZ format to %.2f, added bad-valence info # (for the same atoms as self.bad(), but in case conditions are added to # that, using independent code). # bruce 050218 changing XYZ format to %.3f (afte... | b6bc4220dfbe465baf9d2fdb42a69aa050e03d3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/b6bc4220dfbe465baf9d2fdb42a69aa050e03d3d/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1376,
12,
2890,
4672,
468,
2000,
1779,
2973,
326,
3170,
3179,
364,
326,
1234,
3215,
468,
306,
3355,
4044,
24,
17,
2163,
17,
3461,
65,
468,
5186,
3965,
16486,
2138,
4033,
283,
26779,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1376,
12,
2890,
4672,
468,
2000,
1779,
2973,
326,
3170,
3179,
364,
326,
1234,
3215,
468,
306,
3355,
4044,
24,
17,
2163,
17,
3461,
65,
468,
5186,
3965,
16486,
2138,
4033,
283,
26779,... |
self._build_struct() | self._build_struct(previewing=previewing) | def _ok_or_preview(self, doneMsg=False): QApplication.setOverrideCursor( QCursor(Qt.WaitCursor) ) self.win.assy.current_command_info(cmdname = self.cmdname) #bruce 060616 try: self._build_struct() if doneMsg: env.history.message(self.cmd + self.done_msg()) except CadBug, e: env.history.message(redmsg("Bug in the CAD sy... | f7dbe96def1c5efb7d99ae8870d89bdd73fbc5fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f7dbe96def1c5efb7d99ae8870d89bdd73fbc5fb/GeneratorBaseClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
601,
67,
280,
67,
12102,
12,
2890,
16,
2731,
3332,
33,
8381,
4672,
2238,
3208,
18,
542,
6618,
6688,
12,
2238,
6688,
12,
23310,
18,
5480,
6688,
13,
262,
365,
18,
8082,
18,
428,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
601,
67,
280,
67,
12102,
12,
2890,
16,
2731,
3332,
33,
8381,
4672,
2238,
3208,
18,
542,
6618,
6688,
12,
2238,
6688,
12,
23310,
18,
5480,
6688,
13,
262,
365,
18,
8082,
18,
428,
9... |
localSEList = localSEList.split(',') | localSEList = localSEList.replace(' ','').split(',') else: localSEList = [localSEList.replace(' ','')] self.log.verbose(localSEList) | def runLocal(self,jobJDL,jobXML): """Under development. This method is equivalent to submit(job,mode='Local'). All output files are written to the local directory. """ if not self.site or self.site == 'Unknown': return self.__errorReport('LocalSite/Site configuration section is unknown, please set this correctly') | 17899ce1f92562f58f6cd97677fc708ae41137b5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/17899ce1f92562f58f6cd97677fc708ae41137b5/Dirac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2042,
12,
2890,
16,
4688,
46,
8914,
16,
4688,
4201,
4672,
3536,
14655,
17772,
18,
225,
1220,
707,
353,
7680,
358,
4879,
12,
4688,
16,
3188,
2218,
2042,
16063,
4826,
876,
1390,
854,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
2042,
12,
2890,
16,
4688,
46,
8914,
16,
4688,
4201,
4672,
3536,
14655,
17772,
18,
225,
1220,
707,
353,
7680,
358,
4879,
12,
4688,
16,
3188,
2218,
2042,
16063,
4826,
876,
1390,
854,... |
self.result, self.stdout_lines, self.stderr_lines =\ spawn_process(command, 1, None, *args) | if http_library: args.append('--http-library=' + http_library) if server_minor_version: args.append('--server-minor-version=' + str(server_minor_version)) result, stdout_lines, stderr_lines = spawn_process(command, 1, None, *args) | def run(self): command = sys.argv[0] | fc4c6af27dc5cac46541286b147d6239dcd54ef9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1387/fc4c6af27dc5cac46541286b147d6239dcd54ef9/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1296,
273,
2589,
18,
19485,
63,
20,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1296,
273,
2589,
18,
19485,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
except: | else: | def DamnSysinfo(): try: sysinfo='DamnVid version: '+DV.version+'\nDamnVid mode: ' if DV.bit64: sysinfo+='64-bit' else: sysinfo+='32-bit' sysinfo+='\nDamnVid arguments: ' if len(sys.argv[1:]): sysinfo+=' '.join(sys.argv[1:]) else: sysinfo+='(None)' sysinfo+='\nMachine name: ' if len(platform.node()): sysinfo+=platform.n... | eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
12712,
1376,
13332,
775,
30,
2589,
1376,
2218,
40,
301,
82,
58,
350,
1177,
30,
15126,
30199,
18,
1589,
6797,
64,
82,
40,
301,
82,
58,
350,
1965,
30,
296,
309,
463,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
12712,
1376,
13332,
775,
30,
2589,
1376,
2218,
40,
301,
82,
58,
350,
1177,
30,
15126,
30199,
18,
1589,
6797,
64,
82,
40,
301,
82,
58,
350,
1965,
30,
296,
309,
463,
58,
... |
I = self.index_set() J = other.index_set() | I = self.index_object() J = other.index_object() | def convolution_periodic(self, other): """ Convolves two collections indexed by a range(...) of the same length (automatically expands the shortest one by extending it by 0 if they have different lengths). If {a_n} and {b_n} are sequences of length N (n=0,1,...,N-1), extended periodically for all n in ZZ, then the conv... | 431e77dd49c749a75ebdd4465e177155608021e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/431e77dd49c749a75ebdd4465e177155608021e6/dft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26828,
67,
6908,
335,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
6980,
8808,
635,
279,
1048,
5825,
13,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26828,
67,
6908,
335,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
6980,
8808,
635,
279,
1048,
5825,
13,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635... |
sage: n._easy_vector() | sage: n._easy_vector() | def _easy_vector(self): """ Return a very sparse vector v such that v times the eigenvector matrix has all entries nonzero. | 4df1fa21a59de152e324e619f3757a6713ee3688 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/4df1fa21a59de152e324e619f3757a6713ee3688/numerical.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
73,
15762,
67,
7737,
12,
2890,
4672,
3536,
2000,
279,
8572,
9387,
3806,
331,
4123,
716,
331,
4124,
326,
11043,
3074,
1229,
3148,
711,
777,
3222,
16966,
18,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
73,
15762,
67,
7737,
12,
2890,
4672,
3536,
2000,
279,
8572,
9387,
3806,
331,
4123,
716,
331,
4124,
326,
11043,
3074,
1229,
3148,
711,
777,
3222,
16966,
18,
2,
-100,
-100,
-100,
-100... |
raise DistutilsFileError( "could not create '%s': %s" % (head, exc.args[-1])) | if not (exc.errno == errno.EEXIST and os.path.isdir(head)): raise DistutilsFileError( "could not create '%s': %s" % (head, exc.args[-1])) created_dirs.append(head) | def mkpath(name, mode=0o777, verbose=1, dry_run=0): """Create a directory and any missing ancestor directories. If the directory already exists (or if 'name' is the empty string, which means the current directory, which of course exists), then do nothing. Raise DistutilsFileError if unable to create some directory alo... | f75c04386be7686a2e5a2310a1b02445a2c91b6b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/f75c04386be7686a2e5a2310a1b02445a2c91b6b/dir_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
803,
12,
529,
16,
1965,
33,
20,
83,
14509,
16,
3988,
33,
21,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
181... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5028,
803,
12,
529,
16,
1965,
33,
20,
83,
14509,
16,
3988,
33,
21,
16,
10299,
67,
2681,
33,
20,
4672,
3536,
1684,
279,
1867,
471,
1281,
3315,
9731,
6402,
18,
225,
971,
326,
1867,
181... |
try: method = getattr(self, 'do_' + tag) except AttributeError: self.unknown_starttag(tag, attrs) return j-i method(attrs) return j-i self.stack.append(tag) method(attrs) return j-i def parse_endtag(self, data): if data[:2] <> '</' or data[-1:] <> '>': raise RuntimeError, 'unexpected call to parse_endtag' tag = strin... | self.unknown_endtag(tag) return found = len(self.stack) for i in range(found): if self.stack[i] == tag: found = i while len(self.stack) > found: tag = self.stack[-1] try: method = getattr(self, 'end_' + tag) except AttributeError: method = None if method: self.handle_endtag(tag, method) else: self.unknown_endtag(tag) d... | def parse_starttag(self, i): rawdata = self.rawdata try: j = string.index(rawdata, '>', i) except string.index_error: return -1 # Now parse the data between i+1 and j into a tag and attrs attrs = [] tagfind = regex.compile('[a-zA-Z][a-zA-Z0-9]*') attrfind = regex.compile( '[ \t\n]+\([a-zA-Z_][a-zA-Z_0-9]*\)' + '\([ \t\... | 0962d37049e695de02bc943f8ac73708f5bbb71a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/0962d37049e695de02bc943f8ac73708f5bbb71a/sgmllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
775,
30,
525,
273,
533,
18,
1615,
12,
1899,
892,
16,
7481,
16,
277,
13,
1335,
533,
18,
1615,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
1937,
2692,
12,
2890,
16,
277,
4672,
1831,
892,
273,
365,
18,
1899,
892,
775,
30,
525,
273,
533,
18,
1615,
12,
1899,
892,
16,
7481,
16,
277,
13,
1335,
533,
18,
1615,
67,
... |
cls._connection._SO_columnClause(cls, kw), connection=connection) | conn._SO_columnClause(cls, kw), connection=conn) | def selectBy(cls, connection=None, **kw): return SelectResults(cls, cls._connection._SO_columnClause(cls, kw), connection=connection) | 037450d58325667d5fa7c8539afdd8393fe0bff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/037450d58325667d5fa7c8539afdd8393fe0bff2/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
858,
12,
6429,
16,
1459,
33,
7036,
16,
2826,
9987,
4672,
327,
6766,
3447,
12,
6429,
16,
2028,
6315,
4071,
6315,
3584,
67,
2827,
7044,
12,
6429,
16,
5323,
3631,
1459,
33,
4071,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
858,
12,
6429,
16,
1459,
33,
7036,
16,
2826,
9987,
4672,
327,
6766,
3447,
12,
6429,
16,
2028,
6315,
4071,
6315,
3584,
67,
2827,
7044,
12,
6429,
16,
5323,
3631,
1459,
33,
4071,
13... |
for i in range(count/1024): self.read(1024) | for i in range(count // 1024): self.read(1024) | def seek(self, offset): if self.mode == WRITE: if offset < self.offset: raise IOError('Negative seek in write mode') count = offset - self.offset for i in range(count/1024): self.write(1024*'\0') self.write((count%1024)*'\0') elif self.mode == READ: if offset < self.offset: # for negative seek, rewind and do positive s... | fb0ea525d528153838586bf8ece15a45bbf5ddf3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fb0ea525d528153838586bf8ece15a45bbf5ddf3/gzip.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
1384,
4672,
309,
365,
18,
3188,
422,
20967,
30,
309,
1384,
411,
365,
18,
3348,
30,
1002,
8340,
2668,
14959,
6520,
316,
1045,
1965,
6134,
1056,
273,
1384,
300,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6520,
12,
2890,
16,
1384,
4672,
309,
365,
18,
3188,
422,
20967,
30,
309,
1384,
411,
365,
18,
3348,
30,
1002,
8340,
2668,
14959,
6520,
316,
1045,
1965,
6134,
1056,
273,
1384,
300,
365,
... |
doc = getattr(value, "__doc__", None) | if callable(value): doc = getattr(value, "__doc__", None) else: doc = None | def spilldata(msg, attrs, predicate): ok, attrs = _split_list(attrs, predicate) if ok: hr.maybe() push(msg) for name, kind, homecls, value in ok: base = self.docother(getattr(object, name), name, mod) doc = getattr(value, "__doc__", None) if doc is None: push('<dl><dt>%s</dl>\n' % base) else: doc = self.markup(getdoc(v... | 3c6677fe59a92eaaf12367e60418a91a663cc9a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3c6677fe59a92eaaf12367e60418a91a663cc9a6/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
737,
892,
12,
3576,
16,
3422,
16,
5641,
4672,
1529,
16,
3422,
273,
389,
4939,
67,
1098,
12,
7039,
16,
5641,
13,
309,
1529,
30,
15407,
18,
19133,
1435,
1817,
12,
3576,
13,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
737,
892,
12,
3576,
16,
3422,
16,
5641,
4672,
1529,
16,
3422,
273,
389,
4939,
67,
1098,
12,
7039,
16,
5641,
13,
309,
1529,
30,
15407,
18,
19133,
1435,
1817,
12,
3576,
13,
364,
... |
self.get_time = self.get_time_mac | self.get_time = _get_time_mac | def __init__(self, timer=None): self.timings = {} self.cur = None self.cmd = "" | e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e5b78a4bafbe2eee27f64fd9f04f745a2a189bd3/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5441,
33,
7036,
4672,
365,
18,
8584,
899,
273,
2618,
365,
18,
1397,
273,
599,
365,
18,
4172,
273,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5441,
33,
7036,
4672,
365,
18,
8584,
899,
273,
2618,
365,
18,
1397,
273,
599,
365,
18,
4172,
273,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return d factory = ClientFactory(_login, (jdict), {}) factory.continueTrying = False self.connection = reactor.connectTCP(self.hostname, self.port, factory) | return d | def _login(self, *args, **kwargs): d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, args[0]) return d | 53db6e6d94620c51267e1f2f876662c701f8b791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53db6e6d94620c51267e1f2f876662c701f8b791/test_remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5819,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
18,
29260,
16,
261,
5733,
18,
2404,
429,
9334,
366,
74,
3719,
302,
18,
1289,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5819,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
18,
29260,
16,
261,
5733,
18,
2404,
429,
9334,
366,
74,
3719,
302,
18,
1289,
24... |
template = self.gettext('%s: %s to %s') | template = self.gettext(u'%s: %s to %s') | def get_diff_with(self, row, context): """Return a text with the diff between the last and new issue state""" root = context.root modifications = [] history = self.get_handler('.history') if history.lines: # Edit issue template = self.gettext('%s: %s to %s') else: # New issue template = self.gettext('%s: %s%s') # Modif... | 9309f78f1a658af4a8f3238c13d559498a7f304a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/9309f78f1a658af4a8f3238c13d559498a7f304a/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5413,
67,
1918,
12,
2890,
16,
1027,
16,
819,
4672,
3536,
990,
279,
977,
598,
326,
3122,
3086,
326,
1142,
471,
394,
5672,
919,
8395,
1365,
273,
819,
18,
3085,
17953,
273,
5378,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5413,
67,
1918,
12,
2890,
16,
1027,
16,
819,
4672,
3536,
990,
279,
977,
598,
326,
3122,
3086,
326,
1142,
471,
394,
5672,
919,
8395,
1365,
273,
819,
18,
3085,
17953,
273,
5378,... |
elif component == 'group': tp = ModelGroupDefinition(self) tp.fromDom(node) self.modelGroups[tp.getAttribute('name')] = tp elif component == 'notation': tp = Notation(self) tp.fromDom(node) self.notations[tp.getAttribute('name')] = tp | def load(self, node): self.setAttributes(node) self.targetNamespace = self.getTargetNamespace() contents = self.getContents(node) | 66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
365,
18,
3299,
3402,
273,
365,
18,
588,
2326,
3402,
1435,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
365,
18,
3299,
3402,
273,
365,
18,
588,
2326,
3402,
1435,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,... | |
gens = [ "()" ] | k = max(self.entries()) gens = [range(1,k+1)] | def row_stabilizer(self): """ Return the PermutationGroup corresponding to the row stabilizer of self. EXAMPLES:: sage: rs = Tableau([[1,2,3],[4,5]]).row_stabilizer() sage: rs.order() == factorial(3)*factorial(2) True sage: PermutationGroupElement([(1,3,2),(4,5)]) in rs True sage: PermutationGroupElement([(1,4)]) in ... | d1a8bb7da95c4f8a309323a5bdf498d536831868 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d1a8bb7da95c4f8a309323a5bdf498d536831868/tableau.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
334,
22681,
1824,
12,
2890,
4672,
3536,
2000,
326,
13813,
9245,
1114,
4656,
358,
326,
1027,
384,
22681,
1824,
434,
365,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
359... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
334,
22681,
1824,
12,
2890,
4672,
3536,
2000,
326,
13813,
9245,
1114,
4656,
358,
326,
1027,
384,
22681,
1824,
434,
365,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
359... |
return sorted(ret, key=lambda user: str(user['name']).lower()) | return sorted(ret, key=lambda user: user['name'].lower()) | def get_local_usernames(self): local_users = self.user_names() ret = [{'name': self.getUserFullName(self.getUser(user_id)), 'uid': user_id} for user_id in local_users] return sorted(ret, key=lambda user: str(user['name']).lower()) | 7a497d318e2ae663be23c453986c852d31ae7c6d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/7a497d318e2ae663be23c453986c852d31ae7c6d/AuthenticationTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3729,
67,
1355,
1973,
12,
2890,
4672,
1191,
67,
5577,
273,
365,
18,
1355,
67,
1973,
1435,
325,
273,
20031,
11,
529,
4278,
365,
18,
588,
1299,
19223,
12,
2890,
18,
588,
1299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3729,
67,
1355,
1973,
12,
2890,
4672,
1191,
67,
5577,
273,
365,
18,
1355,
67,
1973,
1435,
325,
273,
20031,
11,
529,
4278,
365,
18,
588,
1299,
19223,
12,
2890,
18,
588,
1299,
... |
return x.lower().startswith(name) | return x.lower().startswith(name.lower()) | def output (x): return x.lower().startswith(name) | e2d8208cfe15b10803418904dee24b45de312444 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9450/e2d8208cfe15b10803418904dee24b45de312444/notmuch_addresses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
261,
92,
4672,
327,
619,
18,
8167,
7675,
17514,
1918,
12,
529,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
261,
92,
4672,
327,
619,
18,
8167,
7675,
17514,
1918,
12,
529,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
'state_id': fields.many2one('res.country.state', 'State', domain="[('country_id', '=', country_id)]"), | def _default_value(self, cursor, user, field, context=None): if field in ('country_id', 'state_id'): value = False else: value = '' if not context.get('address', False): return value for ham, spam, address in context['address']: if address.get('type', False) == 'default': return address.get(field, value) elif not addre... | 330e145035bdd4999d57a905265df8a514b0f1a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/330e145035bdd4999d57a905265df8a514b0f1a6/partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
1132,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
819,
33,
7036,
4672,
309,
652,
316,
7707,
9082,
67,
350,
2187,
296,
2019,
67,
350,
11,
4672,
460,
273,
1083,
469,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
1132,
12,
2890,
16,
3347,
16,
729,
16,
652,
16,
819,
33,
7036,
4672,
309,
652,
316,
7707,
9082,
67,
350,
2187,
296,
2019,
67,
350,
11,
4672,
460,
273,
1083,
469,
30,
... | |
"""isinstance(%s, numbers.Number)""" | def _isNumberType(self, node, results): """isinstance(%s, numbers.Number)""" return self._handle_type2abc(node, results, "numbers", "Number") | cbeb9fa6177ce88fef04904295aa2defc9a7a467 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/cbeb9fa6177ce88fef04904295aa2defc9a7a467/fix_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
1854,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
13851,
3113,
315,
1854,
7923,
2,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
291,
1854,
559,
12,
2890,
16,
756,
16,
1686,
4672,
327,
365,
6315,
4110,
67,
723,
22,
18947,
12,
2159,
16,
1686,
16,
315,
13851,
3113,
315,
1854,
7923,
2,
-100,
-100,
-100,
-100,
... | |
datanetwork = DataNetwork( "127.0.0.1", 57000, "pydon", 1, 20 ) | datanetwork = DataNetwork( "127.0.0.1", 57000, "pydon", 0, 20 ) while not datanetwork.osc.registered: print "waiting to be registered" myTime.sleep( 1.0 ) datanetwork.osc.subscribeNode( 1, setDataAction ) | def sendLabel( self, nodeid, data ): self.osc.setLabel( nodeid, data ) | 1cac18f12b1b91166cc9cec5d8fe119bffa40e08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10633/1cac18f12b1b91166cc9cec5d8fe119bffa40e08/pydon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2224,
12,
365,
16,
756,
350,
16,
501,
262,
30,
365,
18,
538,
71,
18,
542,
2224,
12,
756,
350,
16,
501,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2224,
12,
365,
16,
756,
350,
16,
501,
262,
30,
365,
18,
538,
71,
18,
542,
2224,
12,
756,
350,
16,
501,
262,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
cookie['CommentURL'] = attr.split('=')[1] | cookie['CommentURL'] = getAttrPair(attr)[1] | def getCookiesFromResponse(self, response): """Generates a cookie dictionary from headers in response """ cookies = {} cookieStrings = [] if response.has_key('set-cookie') or response.has_key('set-cookie2'): scheme, host, port, path = parseURL(self.redirectedURL) | 4491d8144eecfcd710927371419ddc04f5f0a128 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/4491d8144eecfcd710927371419ddc04f5f0a128/httpclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
5389,
1265,
1064,
12,
2890,
16,
766,
4672,
3536,
6653,
279,
3878,
3880,
628,
1607,
316,
766,
3536,
7237,
273,
2618,
3878,
7957,
273,
5378,
309,
766,
18,
5332,
67,
856,
2668,
542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
5389,
1265,
1064,
12,
2890,
16,
766,
4672,
3536,
6653,
279,
3878,
3880,
628,
1607,
316,
766,
3536,
7237,
273,
2618,
3878,
7957,
273,
5378,
309,
766,
18,
5332,
67,
856,
2668,
542,
... |
""" SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host """ | """SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host. """ | def helo(self, name=''): """ SMTP 'helo' command. Hostname to send for this command defaults to the FQDN of the local host """ name=string.strip(name) if len(name)==0: name=socket.gethostbyaddr(socket.gethostname())[0] self.putcmd("helo",name) (code,msg)=self.getreply() self.helo_resp=msg return code | de1c0a3c6cefc0960617175f1a9491221d9defa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/de1c0a3c6cefc0960617175f1a9491221d9defa6/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
83,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
55,
14636,
296,
76,
24214,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13150,
83,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
55,
14636,
296,
76,
24214,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
35... |
result = (self['console_refs'] + self['vbd_refs'] + self['vif_refs'] + self['vtpm_refs']) | result = [] result.extend([u for u in self['devices'].keys() if self['devices'][u][0] == 'vkbd']) result.extend(self['console_refs'] + self['vbd_refs'] + self['vif_refs'] + self['vtpm_refs']) | def ordered_device_refs(self): result = (self['console_refs'] + self['vbd_refs'] + self['vif_refs'] + self['vtpm_refs']) result.extend([u for u in self['devices'].keys() if u not in result]) return result | 61837840ef35464a7318cfc21f102f1287c63dcf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/61837840ef35464a7318cfc21f102f1287c63dcf/XendConfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5901,
67,
5964,
67,
9316,
12,
2890,
4672,
563,
273,
5378,
3639,
563,
18,
14313,
3816,
89,
364,
582,
316,
365,
3292,
12506,
29489,
2452,
1435,
309,
365,
3292,
12506,
3546,
63,
89,
6362,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5901,
67,
5964,
67,
9316,
12,
2890,
4672,
563,
273,
5378,
3639,
563,
18,
14313,
3816,
89,
364,
582,
316,
365,
3292,
12506,
29489,
2452,
1435,
309,
365,
3292,
12506,
3546,
63,
89,
6362,
... |
self.delay = util.get_attr(dom, "delay", default="0") self.bandwidth = util.get_attr(dom, "bandwidth", default="0") self.lossratio = util.get_attr(dom,"lossratio", default=0.0) | try: self.delay = int(util.get_attr(dom, "delay", default="0")) except: self.delay = 0 try: self.bandwidth = int(util.get_attr(dom, "bandwidth", default="0")) except: self.bandwidth = 10000 try: self.lossratio = float(util.get_attr(dom,"lossratio", default=0.0)) except: self.lossratio = 0.0 | def decode_xml(self, dom): generic.Connection.decode_xml(self, dom) self.delay = util.get_attr(dom, "delay", default="0") self.bandwidth = util.get_attr(dom, "bandwidth", default="0") self.lossratio = util.get_attr(dom,"lossratio", default=0.0) self.capture = util.parse_bool(util.get_attr(dom, "capture", default="false... | c9b35082c89d471f3efd5802f48075897c86772e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3860/c9b35082c89d471f3efd5802f48075897c86772e/dummynet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
2902,
12,
2890,
16,
4092,
4672,
5210,
18,
1952,
18,
3922,
67,
2902,
12,
2890,
16,
4092,
13,
775,
30,
365,
18,
10790,
273,
509,
12,
1367,
18,
588,
67,
1747,
12,
9859,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
67,
2902,
12,
2890,
16,
4092,
4672,
5210,
18,
1952,
18,
3922,
67,
2902,
12,
2890,
16,
4092,
13,
775,
30,
365,
18,
10790,
273,
509,
12,
1367,
18,
588,
67,
1747,
12,
9859,
16,
... |
try: | if hasattr(module,'bobo_application'): | def get_module_info(self, server_name, module_name, module): | 6e60c63abb35f639b7efc369be01caf096484aa1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/6e60c63abb35f639b7efc369be01caf096484aa1/Publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2978,
67,
1376,
12,
2890,
16,
1438,
67,
529,
16,
1605,
67,
529,
16,
1605,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2978,
67,
1376,
12,
2890,
16,
1438,
67,
529,
16,
1605,
67,
529,
16,
1605,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
try: v,expires,domain,path,secure=self.cookies[name] except: v,expires,domain,path,secure='','','','','' self.cookies[name]=v+value,expires,domain,path,secure | self.setCookie(name,value) | def appendCookie(self, name, value): | b848b28c6e7efd6f3933bba219f4532ebd6acb2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b848b28c6e7efd6f3933bba219f4532ebd6acb2a/Response.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
6151,
12,
2890,
16,
508,
16,
460,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
6151,
12,
2890,
16,
508,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert itemIndex < len(self.blockItem.contents) | if itemIndex >= len(self.blockItem.contents): assert False, "index (%s) out of range (%s)" \ % (itemIndex, len(self.blockItem.contents)) return -1 | def RowToIndex(self, row): """ Map Row->Index taking into account collapsed sections. | 4f2113f2d62cae22bdd185dcc9cc7cb237737b27 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/4f2113f2d62cae22bdd185dcc9cc7cb237737b27/Sections.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6556,
19418,
12,
2890,
16,
1027,
4672,
3536,
1635,
6556,
2122,
1016,
13763,
1368,
2236,
17027,
7178,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6556,
19418,
12,
2890,
16,
1027,
4672,
3536,
1635,
6556,
2122,
1016,
13763,
1368,
2236,
17027,
7178,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
print { 'consumer': request.consumer, 'token':request_token, 'verifier':request.GET.get('oauth_verifier'), 'http_url': request.client.access_token_url, } | def access_token(cls, request, *args, **kwargs): token_type, request_token = request.secure_session['oauth_tokens'].get(cls.conf.name, (None, None)) if token_type != 'request_token': return HttpResponse('', status=400) | 6797d0967602ed928e763a9c9407ae41d53f71fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14173/6797d0967602ed928e763a9c9407ae41d53f71fc/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
67,
2316,
12,
6429,
16,
590,
16,
380,
1968,
16,
2826,
4333,
4672,
1147,
67,
723,
16,
590,
67,
2316,
273,
590,
18,
8869,
67,
3184,
3292,
7280,
67,
7860,
29489,
588,
12,
6429,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2006,
67,
2316,
12,
6429,
16,
590,
16,
380,
1968,
16,
2826,
4333,
4672,
1147,
67,
723,
16,
590,
67,
2316,
273,
590,
18,
8869,
67,
3184,
3292,
7280,
67,
7860,
29489,
588,
12,
6429,
18... | |
stats_dont_force | stats_dont_force, stats_approx_nodata | def stats_dont_force(): ds = gdal.Open('data/byte.tif') stats = ds.GetRasterBand(1).GetStatistics(0, 0) if stats != [0, 0, 0, -1]: gdaltest.post_reason('did not get expected stats') print(stats) return 'fail' return 'success' | 0309ca910b3ec0d323874dd417dfb5db2b607c47 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10290/0309ca910b3ec0d323874dd417dfb5db2b607c47/gdal_stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
67,
72,
1580,
67,
5734,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
7229,
18,
26922,
6134,
3177,
273,
3780,
18,
967,
18637,
14231,
12,
21,
2934,
967,
8569,
12,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3177,
67,
72,
1580,
67,
5734,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
7229,
18,
26922,
6134,
3177,
273,
3780,
18,
967,
18637,
14231,
12,
21,
2934,
967,
8569,
12,
20... |
other_invitation_ids = self.search(cr, uid, [('ref', '=', res_obj._name + ',' + str(res_obj.id))])a | other_invitation_ids = self.search(cr, uid, [('ref', '=', res_obj._name + ',' + str(res_obj.id))]) | def _send_mail(self, cr, uid, ids, mail_to, email_from=tools.config.get('email_from', False), context=None): """ Send mail for event invitation to event attendees. @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of attendee’s IDs. @param emai... | 5783cb0ae7a995fa28e0578f46967f7d74d4ae44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/5783cb0ae7a995fa28e0578f46967f7d74d4ae44/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4791,
67,
869,
16,
2699,
67,
2080,
33,
6642,
18,
1425,
18,
588,
2668,
3652,
67,
2080,
2187,
1083,
3631,
819,
33,
7036... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4661,
67,
4408,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
4791,
67,
869,
16,
2699,
67,
2080,
33,
6642,
18,
1425,
18,
588,
2668,
3652,
67,
2080,
2187,
1083,
3631,
819,
33,
7036... |
'<fieldset><legend>JMol toggle switches</legend>', | '<fieldset><legend>Jmol toggle switches</legend>', | def html_program_settings_table(fdict): """Used in 'Step 2: Fill out Submission Form'. Also allows the user to selected advanced options before completing submission. """ l = ['<table class="inner_table">', '<tr class="inner_title"><th>TLSMD Program Options</th></tr>', '<tr><td align="center">', '<table width="100%">... | 745c517356d13d2fe623edb98be33fb0b7446288 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/745c517356d13d2fe623edb98be33fb0b7446288/webtlsmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302... |
self.namedargs[name] = val | do_strip = False if do_strip and isinstance(val, unicode): val = val.strip() self.namedargs[name] = (do_strip, val) | def get(self, n, default): self.count += 1 if isinstance(n, (int, long)): try: a=self.args[n] except IndexError: return default if isinstance(a, unicode): return a.strip() tmp = [] flatten(a, self.expander, self.variables, tmp) _insert_implicit_newlines(tmp) tmp = u"".join(tmp).strip() if len(tmp)>256*1024: raise Memor... | 1967a60d9f98751cfe57048904256afcddb9fa26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12391/1967a60d9f98751cfe57048904256afcddb9fa26/evaluate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
290,
16,
805,
4672,
365,
18,
1883,
1011,
404,
309,
1549,
12,
82,
16,
261,
474,
16,
1525,
3719,
30,
775,
30,
279,
33,
2890,
18,
1968,
63,
82,
65,
1335,
10195,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
290,
16,
805,
4672,
365,
18,
1883,
1011,
404,
309,
1549,
12,
82,
16,
261,
474,
16,
1525,
3719,
30,
775,
30,
279,
33,
2890,
18,
1968,
63,
82,
65,
1335,
10195,
30,... |
self.cached_icon[iface.uri] = None | def get_icon(self, iface): """Get an icon for this interface. If the icon is in the cache, use that. If not, start a download. If we already started a download (successful or not) do nothing. Returns None if no icon is currently available.""" try: return self.cached_icon[iface.uri] except KeyError: path = iface_cache.g... | fd0fa6f374b393d1670715592793f9d94e03cc9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10543/fd0fa6f374b393d1670715592793f9d94e03cc9b/iface_browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3950,
12,
2890,
16,
9751,
4672,
3536,
967,
392,
4126,
364,
333,
1560,
18,
971,
326,
4126,
353,
316,
326,
1247,
16,
999,
716,
18,
971,
486,
16,
787,
279,
4224,
18,
971,
732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3950,
12,
2890,
16,
9751,
4672,
3536,
967,
392,
4126,
364,
333,
1560,
18,
971,
326,
4126,
353,
316,
326,
1247,
16,
999,
716,
18,
971,
486,
16,
787,
279,
4224,
18,
971,
732,
... | |
if math.atan2(a, -1.) != math.atan2(b, -1.): self.fail("zero has wrong sign: expected %s, got %s" % (repr(a), repr(b))) | if math.copysign(1., a) != math.copysign(1., b): self.fail(msg or 'zero has wrong sign: expected {!r}, ' 'got {!r}'.format(a, b)) | def rAssertAlmostEqual(self, a, b, rel_err = 2e-15, abs_err = 5e-323): """Check that two floating-point numbers are almost equal.""" | 6661e7f809b88079d7a53410252fe9b993e372c9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/6661e7f809b88079d7a53410252fe9b993e372c9/test_cmath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8213,
1067,
10329,
5812,
12,
2890,
16,
279,
16,
324,
16,
1279,
67,
370,
273,
576,
73,
17,
3600,
16,
2417,
67,
370,
273,
1381,
73,
17,
1578,
23,
4672,
3536,
1564,
716,
2795,
1386... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8213,
1067,
10329,
5812,
12,
2890,
16,
279,
16,
324,
16,
1279,
67,
370,
273,
576,
73,
17,
3600,
16,
2417,
67,
370,
273,
1381,
73,
17,
1578,
23,
4672,
3536,
1564,
716,
2795,
1386... |
this = apply(_quickfix.new_ContraTradeQty, args) | this = _quickfix.new_ContraTradeQty(*args) | def __init__(self, *args): this = apply(_quickfix.new_ContraTradeQty, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
442,
2033,
22583,
53,
4098,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
442,
2033,
22583,
53,
4098,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
... |
manifest=None, interactive=False, keepGoing=False): | manifest=None, interactive=False): | def runTests(xpcshell, testdirs=[], xrePath=None, testFile=None, manifest=None, interactive=False, keepGoing=False): """Run the tests in |testdirs| using the |xpcshell| executable. |xrePath|, if provided, is the path to the XRE to use. |testFile|, if provided, indicates a single test to run. |manifeest|, if provided, i... | 9b0417d1e3462355f64af4516883b72fb55174df /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/9b0417d1e3462355f64af4516883b72fb55174df/runxpcshelltests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
14650,
12,
92,
2436,
10304,
16,
1842,
8291,
22850,
6487,
619,
266,
743,
33,
7036,
16,
1842,
812,
33,
7036,
16,
5643,
33,
7036,
16,
12625,
33,
8381,
4672,
3536,
1997,
326,
7434,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
14650,
12,
92,
2436,
10304,
16,
1842,
8291,
22850,
6487,
619,
266,
743,
33,
7036,
16,
1842,
812,
33,
7036,
16,
5643,
33,
7036,
16,
12625,
33,
8381,
4672,
3536,
1997,
326,
7434,
3... |
parser.set_defaults( num_jobs = 2 ) | parser.add_option( "-v", "--verbose", dest="loglevel", type="int", help="loglevel. The higher, the more output [default=%default]" ) parser.set_defaults( num_jobs = 2, loglevel = 10, ) | def main(): print "SphinxReport: version %s started" % str("$Id$") t = time.time() parser = optparse.OptionParser( version = "%prog version: $Id$", usage = USAGE ) parser.add_option( "-a", "--num-jobs", dest="num_jobs", type="int", help="number of parallel jobs to run [default=%default]" ) parser.set_defaults( num_... | 1b4b4200f8648c36fd1997635dcd37d2585d8fe2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8044/1b4b4200f8648c36fd1997635dcd37d2585d8fe2/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
1172,
315,
55,
15922,
4820,
30,
1177,
738,
87,
5746,
6,
738,
609,
2932,
8,
548,
8,
7923,
268,
273,
813,
18,
957,
1435,
225,
2082,
273,
2153,
2670,
18,
1895,
2678,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
1172,
315,
55,
15922,
4820,
30,
1177,
738,
87,
5746,
6,
738,
609,
2932,
8,
548,
8,
7923,
268,
273,
813,
18,
957,
1435,
225,
2082,
273,
2153,
2670,
18,
1895,
2678,
1... |
return None | raise IndexError, 'No layer %d on datasource' % iLayer def GetLayerByName(self,name): l_obj = _gdal.OGR_DS_GetLayerByName( self._o, name) if l_obj is not None and l_obj != 'NULL': return Layer( l_obj ) else: raise IndexError, 'No layer %s on datasource' % name | def GetLayer(self,iLayer=0): # If given a layer name, scan for it. if type(iLayer).__name__ == 'str': layer_count = self.GetLayerCount() for i in range(layer_count): if self.GetLayer(i).GetName() == iLayer: return self.GetLayer(i) return None l_obj = _gdal.OGR_DS_GetLayer( self._o, iLayer) if l_obj is not None: return... | 3168cde22e4a9933a110dc046a57cda148cf2a16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10290/3168cde22e4a9933a110dc046a57cda148cf2a16/ogr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4576,
12,
2890,
16,
77,
4576,
33,
20,
4672,
468,
971,
864,
279,
3018,
508,
16,
4135,
364,
518,
18,
309,
618,
12,
77,
4576,
2934,
972,
529,
972,
422,
296,
701,
4278,
3018,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
4576,
12,
2890,
16,
77,
4576,
33,
20,
4672,
468,
971,
864,
279,
3018,
508,
16,
4135,
364,
518,
18,
309,
618,
12,
77,
4576,
2934,
972,
529,
972,
422,
296,
701,
4278,
3018,
67,
... |
elif item == Marker: break | def elementInActiveFormattingElements(self, name): """Check if an element eists between the end of the active formatting elements and the last marker. If it does, return it, else return false""" | b5d0322c2f206dda5168352c9b5237b0cd817acf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/b5d0322c2f206dda5168352c9b5237b0cd817acf/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
382,
3896,
23974,
3471,
12,
2890,
16,
508,
4672,
3536,
1564,
309,
392,
930,
425,
1486,
3086,
326,
679,
434,
326,
2695,
10407,
2186,
471,
326,
1142,
5373,
18,
971,
518,
1552,
16,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
930,
382,
3896,
23974,
3471,
12,
2890,
16,
508,
4672,
3536,
1564,
309,
392,
930,
425,
1486,
3086,
326,
679,
434,
326,
2695,
10407,
2186,
471,
326,
1142,
5373,
18,
971,
518,
1552,
16,
3... | |
_handlerList.remove(self) | def close(self): """ Tidy up any resources used by the handler. | 578b37d7e01b9e9daa78130b4a2907f8051270db /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/578b37d7e01b9e9daa78130b4a2907f8051270db/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
399,
29609,
731,
1281,
2703,
1399,
635,
326,
1838,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
3536,
399,
29609,
731,
1281,
2703,
1399,
635,
326,
1838,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if time_inactive > 5.0: | if time_inactive > 5.0 and not xiso.paused: | def extract_xiso(self): # get infos from ui drives = ["/c/","/e/","/f/","/g/"] filename = self.ui_entry_xiso.get_text() local_folder = self.ui_entry_folder.get_text() ftp_folder = drives[self.ui_combobox_xbox_drive.get_active()] + \ self.ui_entry_xbox_folder.get_text() | 542fe86df2186d19d11d938b75af0f99317796c7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2692/542fe86df2186d19d11d938b75af0f99317796c7/gxiso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
225,
468,
336,
10626,
628,
5915,
5081,
3606,
273,
8247,
19,
71,
19,
15937,
19,
73,
19,
15937,
19,
74,
19,
15937,
19,
75,
4898,
65,
1544,
273,
365,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
5674,
83,
12,
2890,
4672,
225,
468,
336,
10626,
628,
5915,
5081,
3606,
273,
8247,
19,
71,
19,
15937,
19,
73,
19,
15937,
19,
74,
19,
15937,
19,
75,
4898,
65,
1544,
273,
365,... |
tag = path.split('/', 2)[2] | tag = path.split('/')[-1] | def gettags(self): tags = {} start = self.revnum(self.head) try: for entry in self.get_log(['/tags'], 0, start): orig_paths, revnum, author, date, message = entry for path in orig_paths: if not path.startswith('/tags/'): continue ent = orig_paths[path] source = ent.copyfrom_path rev = ent.copyfrom_rev tag = path.split(... | 5e7abc40b0259c2fb3e1b68ca0474e96593d2bc0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/5e7abc40b0259c2fb3e1b68ca0474e96593d2bc0/subversion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4156,
12,
2890,
4672,
2342,
273,
2618,
787,
273,
365,
18,
9083,
2107,
12,
2890,
18,
1978,
13,
775,
30,
364,
1241,
316,
365,
18,
588,
67,
1330,
12,
3292,
19,
4156,
17337,
374,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4156,
12,
2890,
4672,
2342,
273,
2618,
787,
273,
365,
18,
9083,
2107,
12,
2890,
18,
1978,
13,
775,
30,
364,
1241,
316,
365,
18,
588,
67,
1330,
12,
3292,
19,
4156,
17337,
374,
16... |
gLogger.error("Failed to obtained successful files for FTS request",res['Message']) | gLogger.error( "Failed to obtained successful files for FTS request", res['Message'] ) | def monitorTransfer(self,ftsReqDict): """ Monitors transfer obtained from TransferDB """ | 75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75f9ff3f5f046181ee9f2e9b6a6d0d0b668c1251/FTSMonitorAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
5912,
12,
2890,
16,
1222,
87,
6113,
5014,
4672,
3536,
9041,
13704,
7412,
225,
12700,
628,
12279,
2290,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6438,
5912,
12,
2890,
16,
1222,
87,
6113,
5014,
4672,
3536,
9041,
13704,
7412,
225,
12700,
628,
12279,
2290,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
impl.addstmt(cxx.StmtReturn(cxx.ExprVar('NS_ERROR_NOT_IMPLEMENTED'))) | impl.addstmt(cxx.StmtReturn(cxx.ExprVar('false'))) | def visitMethodDecl(self, md): if not md.pure: return decl = deepcopy(md) decl.pure = 0 impl = cxx.MethodDefn(cxx.MethodDecl(self.implname(md.name), params=md.params, ret=md.ret)) if md.ret.ptr: impl.addstmt(cxx.StmtReturn(cxx.ExprLiteral.ZERO)) else: impl.addstmt(cxx.StmtReturn(cxx.ExprVar('NS_ERROR_NOT_IMPLEMENTED'))... | 9e9700b080ccbe0531ae5357ca73e001d13ade77 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/9e9700b080ccbe0531ae5357ca73e001d13ade77/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25138,
3456,
12,
2890,
16,
3481,
4672,
309,
486,
3481,
18,
84,
594,
30,
327,
3496,
273,
7217,
12,
1264,
13,
3496,
18,
84,
594,
273,
374,
9380,
273,
276,
5279,
18,
1305,
3262,
82,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25138,
3456,
12,
2890,
16,
3481,
4672,
309,
486,
3481,
18,
84,
594,
30,
327,
3496,
273,
7217,
12,
1264,
13,
3496,
18,
84,
594,
273,
374,
9380,
273,
276,
5279,
18,
1305,
3262,
82,
12,... |
print "Am I doing anything?" | def __addMove(self, game, ply): print "Am I doing anything?" row, view, other = self._ply_to_row_col_other(ply) if conf.get("figuresInNotation", False): notat = toFAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1)) else: notat = toSAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1), localRepr=True) # Test if... | 13c8cf41e2a59e8629f0b913e9e7fceaffdcdff2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/13c8cf41e2a59e8629f0b913e9e7fceaffdcdff2/historyPanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
225,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
225,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,... | |
fil = path + '/' + archivo parser.feed(open(fil).read()) | f = open(path + '/' + contentpage) parser.feed(f.read()) | def content(path, archivo, output): f = formatter.AbstractFormatter(AlmostNullWriter()) parser = TocHlpHtmlParser(f) parser.path = path parser.ft = output fil = path + '/' + archivo parser.feed(open(fil).read()) parser.close() | f2a2dabef84d4e9ae26694d0244d9fa0cc7b9efd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f2a2dabef84d4e9ae26694d0244d9fa0cc7b9efd/prechm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
12,
803,
16,
6637,
20593,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
399,
504,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
12,
803,
16,
6637,
20593,
16,
876,
4672,
284,
273,
4453,
18,
7469,
5074,
12,
1067,
10329,
2041,
2289,
10756,
2082,
273,
399,
504,
44,
9953,
4353,
2678,
12,
74,
13,
2082,
18,
803,
... |
if infohash != self.infohash: | if infohash != self.infohash or dns is None: | def got_extend_handshake(self, connection, version=None): infohash, dns = c2infohash_dns(connection) ut_pex_support = connection.supports_extend_msg('ut_pex') if infohash != self.infohash: return if DEBUG: print >>sys.stderr, "RePEXer: got_extend_handshake: %s:%s version = %s ut_pex_support = %s" % (dns + (`version`,ut... | 82ef062a465d25b7a7c42d32fe70984fb85c8e2f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/82ef062a465d25b7a7c42d32fe70984fb85c8e2f/repex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
14313,
67,
2349,
7478,
12,
2890,
16,
1459,
16,
1177,
33,
7036,
4672,
1123,
2816,
16,
6605,
273,
276,
22,
1376,
2816,
67,
14926,
12,
4071,
13,
5218,
67,
84,
338,
67,
13261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2363,
67,
14313,
67,
2349,
7478,
12,
2890,
16,
1459,
16,
1177,
33,
7036,
4672,
1123,
2816,
16,
6605,
273,
276,
22,
1376,
2816,
67,
14926,
12,
4071,
13,
5218,
67,
84,
338,
67,
13261,
... |
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From,Sender\n') | result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From\n') | def generate_rmgroup(groups, config, group=None, message=None, passphrase=None): """Remove a group.""" while not group: group = raw_input('Name of the newsgroup to remove: ' ).lower() if not groups.has_key(group): print print 'The newsgroup ' + group + ' does not exist.' print 'Yet, you can send a rmgroup message for ... | b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
8864,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
3288,
279,
1041,
12123,
1323,
486,
1041,
30,
1041,
273,
1831,
67,
2630,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
8864,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
3288,
279,
1041,
12123,
1323,
486,
1041,
30,
1041,
273,
1831,
67,
2630,... |
oscmd(PREFIX + "/built/bin/egg2bam" + dotexe + " -pr " + preconv + " -o " + bam + " " + egg) | oscmd(PREFIX + "/bin/egg2bam" + dotexe + " -pr " + preconv + " -o " + bam + " " + egg) | def CompileBAM(preconv, bam, egg): dotexe = ".exe" if (sys.platform != "win32"): dotexe = "" if (egg[-4:]==".flt"): oscmd(PREFIX + "/built/bin/flt2egg" + dotexe + " -pr " + preconv + " -o " + PREFIX + "/tmp/tmp.egg" + " " + egg) oscmd(PREFIX + "/built/bin/egg2bam" + dotexe + " -o " + bam + " " + PREFIX + "/tmp/tmp.egg"... | bf89cc4a7c1bdb70cad363a0188bea7eaf0c4e97 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/bf89cc4a7c1bdb70cad363a0188bea7eaf0c4e97/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
38,
2192,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
3928,
14880,
273,
3552,
14880,
6,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
3928,
14880,
273,
1408,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
38,
2192,
12,
1484,
4896,
16,
11400,
16,
25144,
4672,
3928,
14880,
273,
3552,
14880,
6,
309,
261,
9499,
18,
9898,
480,
315,
8082,
1578,
6,
4672,
3928,
14880,
273,
1408,
309,
261,
... |
tr_flag = True | def _child_get(node, self=None, tagname=None): tr_flag = True for n in node: if self and self.localcontext and n.get('rml_loop', False): oldctx = self.localcontext for ctx in eval(n.get('rml_loop'),{}, self.localcontext): tr_flag = False self.localcontext.update(ctx) if (tagname is None) or (n.tag==tagname): if n.get('... | 1f5a45028dbb9e9b367c553790273077b5015a22 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/1f5a45028dbb9e9b367c553790273077b5015a22/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2159,
16,
365,
33,
7036,
16,
25586,
33,
7036,
4672,
364,
290,
316,
756,
30,
309,
365,
471,
365,
18,
3729,
2472,
471,
290,
18,
588,
2668,
86,
781,
67,
6498,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3624,
67,
588,
12,
2159,
16,
365,
33,
7036,
16,
25586,
33,
7036,
4672,
364,
290,
316,
756,
30,
309,
365,
471,
365,
18,
3729,
2472,
471,
290,
18,
588,
2668,
86,
781,
67,
6498,
... | |
for x in range(game.quadrant.x-1, game.quadrant.x+2): | for x in range(game.quadrant.i-1, game.quadrant.i+2): | def lrscan(silent): "Long-range sensor scan." if damaged(DLRSENS): # Now allow base's sensors if docked if game.condition != "docked": if not silent: prout(_("LONG-RANGE SENSORS DAMAGED.")) return if not silent: prout(_("Starbase's long-range scan")) elif not silent: prout(_("Long-range scan")) for x in range(game.quad... | e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12226,
9871,
12,
21862,
4672,
315,
3708,
17,
3676,
10583,
4135,
1199,
309,
302,
301,
11349,
12,
8914,
54,
26753,
4672,
468,
4494,
1699,
1026,
1807,
31349,
309,
5822,
329,
309,
7920,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12226,
9871,
12,
21862,
4672,
315,
3708,
17,
3676,
10583,
4135,
1199,
309,
302,
301,
11349,
12,
8914,
54,
26753,
4672,
468,
4494,
1699,
1026,
1807,
31349,
309,
5822,
329,
309,
7920,
18,
... |
print 'pre-exception output', x/0 | print 'pre-exception output', x//0 | >>> def f(x): | a234b5762eb4de6cb8ecae9c9cb84c877a302afe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a234b5762eb4de6cb8ecae9c9cb84c877a302afe/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def get_resource(self,subject,uri=None,store=DEFAULT,graph=None,block_outo_load=False,*classes): | def get_resource(self,subject,uri=None,store=None,graph=None,block_outo_load=False,*classes): | def get_resource(self,subject,uri=None,store=DEFAULT,graph=None,block_outo_load=False,*classes): subject = subject if type(subject) is URIRef else URIRef(str(subject)) uri = uri if uri else Resource.concept(subject) resource = self.map_instance(uri,subject,store,block_outo_load=block_outo_load,*classes) if graph: resou... | cd695eab4f6f85634fb277f92f1b71315a0a4f06 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13812/cd695eab4f6f85634fb277f92f1b71315a0a4f06/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3146,
12,
2890,
16,
7857,
16,
1650,
33,
7036,
16,
2233,
33,
7036,
16,
4660,
33,
7036,
16,
2629,
67,
659,
83,
67,
945,
33,
8381,
16,
14,
4701,
4672,
3221,
273,
3221,
309,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3146,
12,
2890,
16,
7857,
16,
1650,
33,
7036,
16,
2233,
33,
7036,
16,
4660,
33,
7036,
16,
2629,
67,
659,
83,
67,
945,
33,
8381,
16,
14,
4701,
4672,
3221,
273,
3221,
309,
6... |
modname = __name__[__name__.rfind('.')-1:] + '.expressions' | modname = __name__[:__name__.rfind('.')] + '.expressions' | def makeExpressions(context): """Make private copy of the expressions module with a custom get_context(). An attempt was made to make this threadsafe, but I can't guarantee it's bulletproof. """ import sys, imp modname = __name__[__name__.rfind('.')-1:] + '.expressions' # get our own, private copy of expressions imp.a... | 85ac30941cdafe4a54c3533d3851ad4feca6ce0c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/85ac30941cdafe4a54c3533d3851ad4feca6ce0c/compiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
8927,
12,
2472,
4672,
3536,
6464,
3238,
1610,
434,
326,
8041,
1605,
598,
279,
1679,
336,
67,
2472,
7675,
225,
1922,
4395,
1703,
7165,
358,
1221,
333,
2650,
4626,
16,
1496,
467,
848... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
8927,
12,
2472,
4672,
3536,
6464,
3238,
1610,
434,
326,
8041,
1605,
598,
279,
1679,
336,
67,
2472,
7675,
225,
1922,
4395,
1703,
7165,
358,
1221,
333,
2650,
4626,
16,
1496,
467,
848... |
'recurid' : None, | 'recurid' : None, | def ical_write(self, data): ical = vobject.readOne(data) for child in ical.getChildren(): child_name = child.name.lower() child_value = child.value if child_name == 'vevent': vevents = [] for event in child.getChildren(): vevent = Event() vevent.ical_write(event.serialize()) vevents.append(vevent) self.ical_set(child_n... | e0d5d2e12028a401c4a4c38ecc07acaef47b8dd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/e0d5d2e12028a401c4a4c38ecc07acaef47b8dd4/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
771,
67,
2626,
12,
2890,
16,
501,
4672,
277,
771,
273,
331,
1612,
18,
896,
3335,
12,
892,
13,
364,
1151,
316,
277,
771,
18,
588,
4212,
13332,
1151,
67,
529,
273,
1151,
18,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
277,
771,
67,
2626,
12,
2890,
16,
501,
4672,
277,
771,
273,
331,
1612,
18,
896,
3335,
12,
892,
13,
364,
1151,
316,
277,
771,
18,
588,
4212,
13332,
1151,
67,
529,
273,
1151,
18,
529,
... |
internal_types[typename] = typeinfos | if typeinfos[2] not in ["visible_string", "domain"]: internal_types[typename] = typeinfos | def GetValidTypeInfos(typename, items=[]): if typename in internal_types: return internal_types[typename] else: result = type_model.match(typename) if result: values = result.groups() if values[0] == "UNSIGNED" and int(values[1]) in [i * 8 for i in xrange(1, 9)]: typeinfos = ("UNS%s"%values[1], None, "uint%s"%values[1]... | 61135fecbba7aab7253c4c1e95ba3ac49e9d2b58 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11017/61135fecbba7aab7253c4c1e95ba3ac49e9d2b58/gen_cfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1556,
559,
7655,
12,
12846,
1069,
16,
1516,
33,
8526,
4672,
309,
26735,
316,
2713,
67,
2352,
30,
327,
2713,
67,
2352,
63,
12846,
1069,
65,
469,
30,
563,
273,
618,
67,
2284,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1556,
559,
7655,
12,
12846,
1069,
16,
1516,
33,
8526,
4672,
309,
26735,
316,
2713,
67,
2352,
30,
327,
2713,
67,
2352,
63,
12846,
1069,
65,
469,
30,
563,
273,
618,
67,
2284,
18,
... |
clearSelectionMethod = getattr(type(self), "ClearSelection", None) if clearSelectionMethod is not None: clearSelectionMethod(self) | self.postEventByName("SelectItemsBroadcast", {'items': [], 'collection': selectedCollection }) | def removeItem(item): item.removeFromCollection(selectedCollection) | 6be87f32a5c3c7683924354451b336bc8528ac9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6be87f32a5c3c7683924354451b336bc8528ac9f/PimBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29178,
12,
1726,
4672,
761,
18,
4479,
1265,
2532,
12,
8109,
2532,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29178,
12,
1726,
4672,
761,
18,
4479,
1265,
2532,
12,
8109,
2532,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
/.../chandler... --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/cats/Functional/FunctionalTestSuite.py -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../chandler --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFil... | /.../release/RunPython... Chandler.py --create --catch=tests --profileDir=test_profile --parcelPath=tools/cats/DataFiles --scriptFile=tools/cats/Functional/FunctionalTestSuite.py -D2 -M0 - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + /.../release/RunPython... Chandler.py --create --catch=tests --profileDir... | def main(options): """ >>> options = parseOptions() >>> options.dryrun = True >>> options.verbose = True >>> main(options) False Try and run a test that does not exist >>> options.single = 'TestFoo.py' >>> main(options) Test(s) not found False Try different single tests single unit test: >>> options.single = 'Tes... | af34e6a7a2160f1862685baa804a3205994c1ff0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/af34e6a7a2160f1862685baa804a3205994c1ff0/rt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
4672,
3536,
4080,
702,
273,
1109,
1320,
1435,
4080,
702,
18,
25011,
2681,
225,
273,
1053,
4080,
702,
18,
11369,
273,
1053,
4080,
2774,
12,
2116,
13,
1083,
225,
6161,
471,... |
self.write(cr, uid, id, { 'url': url }) | self.write(cr, uid, id, { 'url': url }) | def update_list(self, cr, uid, context={}): robj = self.pool.get('ir.module.repository') res = [0, 0] # [update, add] | b1ea2dafc3fca01afc5438af083ef47873ab4456 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/b1ea2dafc3fca01afc5438af083ef47873ab4456/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1098,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
721,
441,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2978,
18,
9071,
6134,
400,
273,
306,
20,
16,
374,
65,
468,
... |
raise OSError(0, "couldn't delete directory", path) | raise OSError(0, "couldn't delete directory", path) | def rmdir(path): if not File(path).delete(): raise OSError(0, "couldn't delete directory", path) | 5983a691b16eecde718073ce68a1624ff2a162aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6753/5983a691b16eecde718073ce68a1624ff2a162aa/javaos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21306,
12,
803,
4672,
309,
486,
1387,
12,
803,
2934,
3733,
13332,
1002,
10002,
12,
20,
16,
315,
15195,
82,
1404,
1430,
1867,
3113,
589,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21306,
12,
803,
4672,
309,
486,
1387,
12,
803,
2934,
3733,
13332,
1002,
10002,
12,
20,
16,
315,
15195,
82,
1404,
1430,
1867,
3113,
589,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
FIXME: This idaapi function is not exported yet """ return idaapi.set_array_params(ea, flags, litems, align) | """ return Eval("SetArrayFormat(0x%X, 0x%X, %d, %d)"%(ea, flags, litems, align)) | def SetArrayFormat(ea, flags, litems, align): """ Set array representation format @param ea: linear address @param flags: combination of AP_... constants or 0 @param litems: number of items per line. 0 means auto @param align: element alignment: -1: do not align 0: automatic alignment other values: element width @re... | b97846eeae8f84836b5eb69af7f8306e2e48aaf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4773/b97846eeae8f84836b5eb69af7f8306e2e48aaf4/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1076,
1630,
12,
24852,
16,
2943,
16,
328,
3319,
16,
5689,
4672,
3536,
1000,
526,
4335,
740,
225,
632,
891,
24164,
30,
9103,
1758,
632,
891,
2943,
30,
10702,
434,
14410,
67,
2777,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1076,
1630,
12,
24852,
16,
2943,
16,
328,
3319,
16,
5689,
4672,
3536,
1000,
526,
4335,
740,
225,
632,
891,
24164,
30,
9103,
1758,
632,
891,
2943,
30,
10702,
434,
14410,
67,
2777,
... |
print 'Bad mirror info in %s' % infofilename | print 'Bad mirror info in %s' % `infofilename` | def mirrorsubdir(f, localdir): pwd = f.pwd() if localdir and not os.path.isdir(localdir): if verbose: print 'Creating local directory', localdir try: makedir(localdir) except os.error, msg: print "Failed to establish local directory", localdir return infofilename = os.path.join(localdir, '.mirrorinfo') try: text = open... | ace1e022e9566ad27920d0be67da64be4caffff3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ace1e022e9566ad27920d0be67da64be4caffff3/ftpmirror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
27026,
373,
1214,
12,
74,
16,
1191,
1214,
4672,
14720,
273,
284,
18,
27487,
1435,
309,
1191,
1214,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
3729,
1214,
4672,
309,
3988,
30,
117... |
'lt': u'Vikišaltiniai' 'no': u'Wikikilden' | 'lt': u'Vikišaltiniai', 'no': u'Wikikilden', | def __init__(self): family.Family.__init__(self) self.name = 'wikisource' for lang in self.knownlanguages: self.langs[lang] = lang+'.wikisource.org' | 3882dcbad93eff29823ddbd8ceb8f76a1e2e3029 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/3882dcbad93eff29823ddbd8ceb8f76a1e2e3029/wikisource_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
291,
552,
11,
225,
364,
3303,
316,
365,
18,
2994,
14045,
30,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
291,
552,
11,
225,
364,
3303,
316,
365,
18,
2994,
14045,
30,
365,
18,
... |
res.append((r.id, self.pool.get('res.partner.contact').name_get(cr, uid, [r.contact_id.id])[0][1] +", %s"% r.function_id.name)) | funct = r.function_id and (", " + r.function_id.name) or "" res.append((r.id, self.pool.get('res.partner.contact').name_get(cr, uid, [r.contact_id.id])[0][1] + funct )) | def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] res = [] for r in self.browse(cr, uid, ids): res.append((r.id, self.pool.get('res.partner.contact').name_get(cr, uid, [r.contact_id.id])[0][1] +", %s"% r.function_id.name)) return res | 46429c3fb7440e47adf6c5004aaa0594c86813f4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/46429c3fb7440e47adf6c5004aaa0594c86813f4/base_contact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
309,
486,
562,
12,
2232,
4672,
327,
5378,
400,
273,
5378,
364,
436,
316,
365,
18,
25731,
12,
3353,
16,
455... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
508,
67,
588,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
309,
486,
562,
12,
2232,
4672,
327,
5378,
400,
273,
5378,
364,
436,
316,
365,
18,
25731,
12,
3353,
16,
455... |
text = text.replace('\\\n ', ''); | text = text.replace('\n ', ''); | def parse_sequence(text): entry = re.compile(r'%(?P<letter>[A-Za-z]) A(?P<num>\d{6}) (?P<body>.*)$') unsigned, signed, list = [], [], [] description = '' seqnum = -1 # Fix broken lines: they end with '\' and the next line is indented. text = text.replace('\\\n ', ''); for line in re.split(r'[\s,]*\n', text): m = ent... | 32ad7e80435e9060aeb016255f2e22833d593171 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/32ad7e80435e9060aeb016255f2e22833d593171/sloane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
6178,
12,
955,
4672,
1241,
273,
283,
18,
11100,
12,
86,
11,
9,
3680,
52,
32,
13449,
23224,
37,
17,
15948,
17,
94,
5717,
432,
3680,
52,
32,
2107,
5333,
72,
95,
26,
6792,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
6178,
12,
955,
4672,
1241,
273,
283,
18,
11100,
12,
86,
11,
9,
3680,
52,
32,
13449,
23224,
37,
17,
15948,
17,
94,
5717,
432,
3680,
52,
32,
2107,
5333,
72,
95,
26,
6792,
1... |
elif sys.argv[-1] == "Debug": | elif sys.argv[1] == "Debug": | def main(): build_all = "-a" in sys.argv if sys.argv[-1] == "Release": arch = "x86" debug = False configure = "VC-WIN32" makefile = "32.mak" elif sys.argv[-1] == "Debug": arch = "x86" debug = True configure = "VC-WIN32" makefile="d32.mak" elif sys.argv[-1] == "ReleaseItanium": arch = "ia64" debug = False configure = "V... | c7990b5b985d5619478b184acd62c49b2a4f24e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c7990b5b985d5619478b184acd62c49b2a4f24e6/build_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1361,
67,
454,
273,
3701,
69,
6,
316,
2589,
18,
19485,
309,
2589,
18,
19485,
18919,
21,
65,
422,
315,
7391,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1083,
5068,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1361,
67,
454,
273,
3701,
69,
6,
316,
2589,
18,
19485,
309,
2589,
18,
19485,
18919,
21,
65,
422,
315,
7391,
6877,
6637,
273,
315,
92,
5292,
6,
1198,
273,
1083,
5068,
273,
... |
def boolean2string(boolean): return boolean and 'Found' or 'Not found' | def boolean2string(boolean): return boolean and 'Found' or 'Not found' | e1ebbbce59ee07b045c4b367e8cf656520cd6b43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10607/e1ebbbce59ee07b045c4b367e8cf656520cd6b43/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1250,
22,
1080,
12,
6494,
4672,
327,
1250,
471,
296,
2043,
11,
578,
296,
1248,
1392,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1250,
22,
1080,
12,
6494,
4672,
327,
1250,
471,
296,
2043,
11,
578,
296,
1248,
1392,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/format_templates_manage?ln=%s">%s</a>''' % (config.weburl, ln , _("Manage Output Formats"))) | navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/format_templates_manage?ln=%s">%s</a>''' % (config.weburl, ln , _("Manage Output Formats"))) | def output_format_show_attributes(req, bfo, ln=config.cdslang): """ Page for output format names and descrition attributes edition. @param ln language @param bfo the filename of the template to show """ ln = wash_language(ln) _ = gettext_set_language(ln) navtrail_previous_links = bibformatadminlib.getnavtrail(''' >... | e3c65e7c4a0899b02ece5dff48dab4e0925dd99f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2763/e3c65e7c4a0899b02ece5dff48dab4e0925dd99f/bibformatadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
2139,
67,
4500,
67,
4350,
12,
3658,
16,
324,
617,
16,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
3460,
364,
876,
740,
1257,
471,
3044,
583,
285,
1677,
28432,
18,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
2139,
67,
4500,
67,
4350,
12,
3658,
16,
324,
617,
16,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
3460,
364,
876,
740,
1257,
471,
3044,
583,
285,
1677,
28432,
18,
225,
... |
if name == 'BufferData': | if name == 'BufferData' or name == 'BufferSubData': | def WriteGetDataSizeCode(self, func, file): """Overrriden from TypeHandler.""" # TODO(gman): Move this data to _FUNCTION_INFO? name = func.name if name.endswith("Immediate"): name = name[0:-9] if name == 'BufferData': file.Write(" uint32 data_size = size;\n") elif name == 'BufferSubData': file.Write(" uint32 data_siz... | a6eb5232d2608cd0773bbe559757bd52c7f53670 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/a6eb5232d2608cd0773bbe559757bd52c7f53670/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
967,
29414,
1085,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
468,
2660,
12,
75,
4728,
4672,
9933,
333,
501,
358,
389,
7788,
67,
5923,
35,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
967,
29414,
1085,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
468,
2660,
12,
75,
4728,
4672,
9933,
333,
501,
358,
389,
7788,
67,
5923,
35,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.