rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
def copytree(src, dst, symlinks=0): | def copytree(src, dst, symlinks=False): | def copytree(src, dst, symlinks=0): """Recursively copy a directory tree using copy2(). The destination directory must not already exist. Error are reported to standard output. If the optional symlinks flag is true, symbolic links in the source tree result in symbolic links in the destination tree; if it is false, th... | 7e10798c71726bc88b0e76270bbfd67f6331b983 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7e10798c71726bc88b0e76270bbfd67f6331b983/shutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
3413,
12,
4816,
16,
3046,
16,
23146,
33,
8381,
4672,
3536,
12474,
1610,
279,
1867,
2151,
1450,
1610,
22,
7675,
225,
1021,
2929,
1867,
1297,
486,
1818,
1005,
18,
1068,
854,
14010,
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,
1610,
3413,
12,
4816,
16,
3046,
16,
23146,
33,
8381,
4672,
3536,
12474,
1610,
279,
1867,
2151,
1450,
1610,
22,
7675,
225,
1021,
2929,
1867,
1297,
486,
1818,
1005,
18,
1068,
854,
14010,
3... |
self.in_buffer += self.recv(0x1000) | self.in_buffer += self.recv(1) | def handle_read(self): self.in_buffer += self.recv(0x1000) self.process_data() | 6edce7a20e18022893d7e35472f74b5535f1f708 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4811/6edce7a20e18022893d7e35472f74b5535f1f708/ftserv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
896,
12,
2890,
4672,
365,
18,
267,
67,
4106,
1011,
365,
18,
18334,
12,
21,
13,
365,
18,
2567,
67,
892,
1435,
2,
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,
1640,
67,
896,
12,
2890,
4672,
365,
18,
267,
67,
4106,
1011,
365,
18,
18334,
12,
21,
13,
365,
18,
2567,
67,
892,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
OWGUI.label(box6, self, "Granularity: ") | OWGUI.label(box6, self, "Granularity:"+" ") | def __init__(self,parent=None, signalManager = None, name = "Linear Projection", graphClass = None): OWVisWidget.__init__(self, parent, signalManager, name, TRUE) | c163529c0c7a1be3b6335f5e679f58f64efc14b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/c163529c0c7a1be3b6335f5e679f58f64efc14b8/OWLinProj.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
15982,
21288,
3113,
2667,
797,
273,
599,
4672,
18233,
3282,
4609,
16186,
2738,
972,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
33,
7036,
16,
4277,
1318,
273,
599,
16,
508,
273,
315,
15982,
21288,
3113,
2667,
797,
273,
599,
4672,
18233,
3282,
4609,
16186,
2738,
972,
12,
2890,
... |
if customMethodCall is None: | if customMethodCall is not None: if isMethod or isGetter: checkSuccess = "NS_SUCCEEDED(debug_rv)" if canFail: checkSuccess += " == NS_SUCCEEDED(rv)" f.write(" NS_ASSERTION(%s && " "xpc_qsSameResult(debug_result, result),\n" " \"Got the wrong answer from the custom " "method call!\");\n" % checkSucces... | f.write("#ifdef DEBUG\n") | 547c9137fe7f5061409005e05ec145bbf18f5ab6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/547c9137fe7f5061409005e05ec145bbf18f5ab6/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
18,
2626,
2932,
7,
430,
536,
6369,
64,
82,
7923,
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,
... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
18,
2626,
2932,
7,
430,
536,
6369,
64,
82,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for path in self.path2docid.keys(f.name): | for path in list(self.path2docid.keys(f.name)): | def updatefolder(self, f, msgs): self.watchfolders[f.name] = self.getmtime(f.name) for n in msgs: path = "%s/%s" % (f.name, n) docid = self.path2docid.get(path, 0) if docid and self.getmtime(path) == self.doctimes.get(docid, 0): print "unchanged", docid, path continue docid = self.newdocid(path) try: m = f.openmessage(... | 0fe8faf6e361d654829e74e2f1badf074767a09c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/0fe8faf6e361d654829e74e2f1badf074767a09c/mhindex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
5609,
12,
2890,
16,
284,
16,
8733,
4672,
365,
18,
7585,
16064,
63,
74,
18,
529,
65,
273,
365,
18,
588,
10838,
12,
74,
18,
529,
13,
364,
290,
316,
8733,
30,
589,
273,
2213,
87... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
5609,
12,
2890,
16,
284,
16,
8733,
4672,
365,
18,
7585,
16064,
63,
74,
18,
529,
65,
273,
365,
18,
588,
10838,
12,
74,
18,
529,
13,
364,
290,
316,
8733,
30,
589,
273,
2213,
87... |
3 | 4 | def fibonacci_range(start, stop, algorithm='pari'): r""" Returns an iterator over all of the Fibonacci numbers in the given range from \code{f_n = start} to \code{f_n = stop} EXAMPLES: sage: fibs_in_some_range = [i for i in fibonacci_range(10^7, 10^8)] sage: len(fibs_in_some_range) 3 sage: fibs_in_some_range sage: [2... | 52003a02ffe89f107e5076d5270f4e9656e76a90 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/52003a02ffe89f107e5076d5270f4e9656e76a90/combinat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
495,
265,
8981,
77,
67,
3676,
12,
1937,
16,
2132,
16,
4886,
2218,
1065,
77,
11,
4672,
436,
8395,
2860,
392,
2775,
1879,
777,
434,
326,
478,
495,
265,
8981,
77,
5600,
316,
326,
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,
284,
495,
265,
8981,
77,
67,
3676,
12,
1937,
16,
2132,
16,
4886,
2218,
1065,
77,
11,
4672,
436,
8395,
2860,
392,
2775,
1879,
777,
434,
326,
478,
495,
265,
8981,
77,
5600,
316,
326,
8... |
print "-- id: %d, state: %d", id, self.GetToolToggled(id) evt.Skip() def UntoggleAllItems(self, pubsub_evt): for id in OBJ_TOOLS: state = self.GetToolToggled(id) | state = self.GetToolState(id) | def OnClick(self, evt): print "OnClick", evt.GetId() id = evt.GetId() state = self.GetToolToggled(id) label = self.GetToolLabel(id) #if id != ID_ZOOM: # print "Toggled zoom off" # self.ToggleTool(ID_ZOOM, 0) | 9ea636e5642af91c5164934cac1dbceeb58b46d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9ea636e5642af91c5164934cac1dbceeb58b46d5/frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
6563,
12,
2890,
16,
6324,
4672,
1172,
315,
1398,
6563,
3113,
6324,
18,
967,
548,
1435,
612,
273,
6324,
18,
967,
548,
1435,
919,
273,
365,
18,
967,
6364,
56,
23972,
1259,
12,
350,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6563,
12,
2890,
16,
6324,
4672,
1172,
315,
1398,
6563,
3113,
6324,
18,
967,
548,
1435,
612,
273,
6324,
18,
967,
548,
1435,
919,
273,
365,
18,
967,
6364,
56,
23972,
1259,
12,
350,... |
print "if no directory arguments, -l sys.path is assumed" | print " if no directory arguments, -l sys.path is assumed" print "-x regexp: skip files matching the regular expression regexp" print " the regexp is search for in the full path of the file" | def main(): """Script main program.""" import getopt try: opts, args = getopt.getopt(sys.argv[1:], 'lfd:') except getopt.error, msg: print msg print "usage: compileall [-l] [-f] [-d destdir] [directory ...]" print "-l: don't recurse down" print "-f: force rebuild even if timestamps are up-to-date" print "-d destdir: pu... | 59776b466a8795b66b9c91444afb05cff217b099 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/59776b466a8795b66b9c91444afb05cff217b099/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
3651,
2774,
5402,
12123,
1930,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
80,
8313,
2497,
13,
1335... |
"lib=", "python=", "semi-standalone", "bundle-id=", "destroot=") | "lib=", "python=", "semi-standalone", "bundle-id=", "destroot=" "no-zipimport" ) | def main(builder=None): if builder is None: builder = AppBuilder(verbosity=1) shortopts = "b:n:r:f:e:m:c:p:lx:i:hvqa" longopts = ("builddir=", "name=", "resource=", "file=", "executable=", "mainprogram=", "creator=", "nib=", "plist=", "link", "link-exec", "help", "verbose", "quiet", "argv", "standalone", "exclude=", "... | e70e521fdbde28d61def7b676b664ba7bea66ab2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/e70e521fdbde28d61def7b676b664ba7bea66ab2/bundlebuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
9574,
33,
7036,
4672,
309,
2089,
353,
599,
30,
2089,
273,
4677,
1263,
12,
16629,
8807,
33,
21,
13,
225,
3025,
4952,
273,
315,
70,
30,
82,
30,
86,
30,
74,
30,
73,
30,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9574,
33,
7036,
4672,
309,
2089,
353,
599,
30,
2089,
273,
4677,
1263,
12,
16629,
8807,
33,
21,
13,
225,
3025,
4952,
273,
315,
70,
30,
82,
30,
86,
30,
74,
30,
73,
30,
81,
... |
big = [] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue | big = [f for f in tkt.fields if f['type'] == 'textarea' and f['name'] != 'description'] i = 0 for f in [f['name'] for f in fields]: if not tkt.values.has_key(f): continue | def format_props(self): tkt = self.ticket fields = [f for f in tkt.fields if f['type'] != 'textarea' and f['name'] not in ('summary', 'cc')] t = self.modtime or tkt.time_changed width = [0, 0, 0, 0] for i, f in enum([f['name'] for f in fields]): if not tkt.values.has_key(f): continue fval = tkt[f] if fval.find('\n') > ... | 3d1032bee3c9bf4495912205a22ef56bc2445920 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/3d1032bee3c9bf4495912205a22ef56bc2445920/Notify.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
9693,
12,
2890,
4672,
268,
8629,
273,
365,
18,
16282,
1466,
273,
306,
74,
364,
284,
316,
268,
8629,
18,
2821,
309,
284,
3292,
723,
3546,
480,
296,
16701,
11,
471,
284,
3292,
... |
out = GenerateOutput("Gratia: ",*arg) | out = time.strftime(r'%Y-%m-%d %H:%M:%S %Z', time.localtime()) + " " + \ GenerateOutput("Gratia: ",*arg) | def DebugPrint(level, *arg): if (not Config or level<Config.get_DebugLevel()): out = GenerateOutput("Gratia: ",*arg) print out if Config and level<Config.get_LogLevel(): out = GenerateOutput("Gratia: ",*arg) if (Config.get_UseSyslog()): LogToSyslog(level,GenerateOutput("",*arg)) else: LogToFile(out) | 00c9dfb20e90a66ac68c84f17baafcb687e56269 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/637/00c9dfb20e90a66ac68c84f17baafcb687e56269/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4015,
5108,
12,
2815,
16,
380,
3175,
4672,
309,
261,
902,
1903,
578,
1801,
32,
809,
18,
588,
67,
2829,
2355,
1435,
4672,
596,
273,
813,
18,
701,
9982,
12,
86,
11,
9,
61,
6456,
81,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4015,
5108,
12,
2815,
16,
380,
3175,
4672,
309,
261,
902,
1903,
578,
1801,
32,
809,
18,
588,
67,
2829,
2355,
1435,
4672,
596,
273,
813,
18,
701,
9982,
12,
86,
11,
9,
61,
6456,
81,
... |
""" | """ | def onSetTimeRange(self, obj, event, r1, r2): """ Created: 15.08.2005, KP Description: Set the range that the time slider shows """ self.timeslider.SetRange(r1, r2) self.timeslider.Refresh() | 228d177ed04eda3e5752ade67b1e400d3b569646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/228d177ed04eda3e5752ade67b1e400d3b569646/Visualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
694,
950,
2655,
12,
2890,
16,
1081,
16,
871,
16,
436,
21,
16,
436,
22,
4672,
3536,
12953,
30,
4711,
18,
6840,
18,
6976,
25,
16,
1475,
52,
6507,
30,
1000,
326,
1048,
716,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
603,
694,
950,
2655,
12,
2890,
16,
1081,
16,
871,
16,
436,
21,
16,
436,
22,
4672,
3536,
12953,
30,
4711,
18,
6840,
18,
6976,
25,
16,
1475,
52,
6507,
30,
1000,
326,
1048,
716,
326,
... |
self.assertEqual('<ns1:emptyWithAttr language="french" xmlns:ns1="URN:testCTD"/>', ToDOM(instance2).toxml()) | self.assertEqual('<tca:emptyWithAttr language="french" xmlns:tca="URN:testCTD"/>', ToDOM(instance2).toxml()) | def testEmptyWithAttr (self): self.assertEqual(5, len(emptyWithAttr.typeDefinition()._AttributeMap)) self.assertRaises(MissingAttributeError, CreateFromDocument, '<emptyWithAttr xmlns="URN:testCTD"/>') instance = CreateFromDocument('<emptyWithAttr capitalized="false" xmlns="URN:testCTD"/>') self.assertEqual('irish', in... | e7c1cda92ec7adaea348c0a25bca3372c3fd1065 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/e7c1cda92ec7adaea348c0a25bca3372c3fd1065/test-ctd-attr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1921,
1190,
3843,
261,
2890,
4672,
365,
18,
11231,
5812,
12,
25,
16,
562,
12,
5531,
1190,
3843,
18,
723,
1852,
1435,
6315,
1499,
863,
3719,
365,
18,
11231,
12649,
6141,
12,
4841,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
1921,
1190,
3843,
261,
2890,
4672,
365,
18,
11231,
5812,
12,
25,
16,
562,
12,
5531,
1190,
3843,
18,
723,
1852,
1435,
6315,
1499,
863,
3719,
365,
18,
11231,
12649,
6141,
12,
4841,
... |
if self._isnan(): context = getcontext() return context._raise_error(InvalidContext) elif self._isinfinity(): raise OverflowError, "Cannot convert infinity to long" | if self._is_special: if self._isnan(): context = getcontext() return context._raise_error(InvalidContext) elif self._isinfinity(): raise OverflowError, "Cannot convert infinity to long" | def __int__(self): """Converts self to a int, truncating if necessary.""" if self._isnan(): context = getcontext() return context._raise_error(InvalidContext) elif self._isinfinity(): raise OverflowError, "Cannot convert infinity to long" if not self: return 0 sign = '-'*self._sign if self._exp >= 0: s = sign + ''.join... | 1a63da64df2af26e1f050749c19281f1de9084fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1a63da64df2af26e1f050749c19281f1de9084fa/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
474,
972,
12,
2890,
4672,
3536,
5692,
365,
358,
279,
509,
16,
6956,
1776,
309,
4573,
12123,
309,
365,
6315,
291,
67,
9371,
30,
309,
365,
6315,
291,
13569,
13332,
819,
273,
336,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
474,
972,
12,
2890,
4672,
3536,
5692,
365,
358,
279,
509,
16,
6956,
1776,
309,
4573,
12123,
309,
365,
6315,
291,
67,
9371,
30,
309,
365,
6315,
291,
13569,
13332,
819,
273,
336,
2... |
self.pages[self.full_toc_page.id] = tocframe_visitor.astext() | self.pages[self.full_toc_page.id] = self._toc_as_text( tocframe_visitor ) | def depart_topic(self, node): if self._is_toc_node( node ) and not self.in_home_page: self.toc_nav_builder = None if self.settings.no_frames: self.active_visitor().body.append(self._footer_start()) self.active_visitor().body.append(self.active_visitor().nav_bar) self.active_visitor().body.append(self._footer_end()) | f5fc17700c5e1226e4a43994e66816266935ba04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/f5fc17700c5e1226e4a43994e66816266935ba04/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
10476,
12,
2890,
16,
756,
4672,
309,
365,
6315,
291,
67,
1391,
67,
2159,
12,
756,
262,
471,
486,
365,
18,
267,
67,
8712,
67,
2433,
30,
365,
18,
1391,
67,
11589,
67,
9574,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26000,
67,
10476,
12,
2890,
16,
756,
4672,
309,
365,
6315,
291,
67,
1391,
67,
2159,
12,
756,
262,
471,
486,
365,
18,
267,
67,
8712,
67,
2433,
30,
365,
18,
1391,
67,
11589,
67,
9574,
... |
except: | except TypeError: | def enum_affine_rational_field(X,B): """ Enumerates affine rational points on scheme X (defined over `\QQ`) up to bound B. INPUT: - ``X`` - a scheme or set of abstract rational points of a scheme - ``B`` - a positive integer bound OUTPUT: - a list containing the affine points of X of height up to B, sorted. EXAM... | 0c1f24a85f1dccaf5341fcaca9e87554c8bacafa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0c1f24a85f1dccaf5341fcaca9e87554c8bacafa/rational_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2792,
67,
7329,
558,
67,
7034,
287,
67,
1518,
12,
60,
16,
38,
4672,
3536,
6057,
264,
815,
28381,
436,
8371,
3143,
603,
4355,
1139,
261,
2178,
1879,
1375,
64,
53,
53,
24065,
731,
358,
... |
if str(v[i][0]) == '1': | if v[i][0].is_unit(): unit = unit * v[i][0] | def factor(self): r""" Compute the irreducible factorization of this polynomial. | f669d9e9b998976419987a67bec3a3609f1af8ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f669d9e9b998976419987a67bec3a3609f1af8ce/multi_polynomial_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5578,
12,
2890,
4672,
436,
8395,
8155,
326,
9482,
1118,
5286,
1523,
5578,
1588,
434,
333,
16991,
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,
5578,
12,
2890,
4672,
436,
8395,
8155,
326,
9482,
1118,
5286,
1523,
5578,
1588,
434,
333,
16991,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
- ``ok`` (bool) is True if and only if the saturation was | - ``ok`` (bool) -- ``True`` if and only if the saturation was | def saturate(self, max_prime=-1, odd_primes_only=False): r""" Saturate this subgroup of the Mordell-Weil group. INPUT: - ``max_prime`` (int, default -1) -- saturation is performed for all primes up to `max_prime`. If `-1` (default) then an upper bound is computed for the primes at which the subgroup may not be satura... | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5942,
295,
340,
12,
2890,
16,
943,
67,
16382,
29711,
21,
16,
14800,
67,
683,
4485,
67,
3700,
33,
8381,
4672,
436,
8395,
25793,
295,
340,
333,
720,
1655,
434,
326,
490,
517,
1165,
17,
... |
<img width=16 height=16 src="webplugin/icon_tools.png" alt="Select Tree features"> | <img width=16 height=16 src="/webplugin/icon_tools.png" alt="Select Tree features"> | def update_features_avail(feature_key, name, col, fsize, fcolor, prefix, suffix): text_features_avail.setdefault(feature_key, [name, 0, col, fsize, fcolor, prefix, suffix]) text_features_avail[feature_key][1] += 1 | 7247d86e6c22753799dc0dd61d252e56bac872a4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/7247d86e6c22753799dc0dd61d252e56bac872a4/webplugin_example.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
7139,
67,
842,
671,
12,
7238,
67,
856,
16,
508,
16,
645,
16,
284,
1467,
16,
284,
3266,
16,
1633,
16,
3758,
4672,
977,
67,
7139,
67,
842,
671,
18,
542,
1886,
12,
7238,
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,
1089,
67,
7139,
67,
842,
671,
12,
7238,
67,
856,
16,
508,
16,
645,
16,
284,
1467,
16,
284,
3266,
16,
1633,
16,
3758,
4672,
977,
67,
7139,
67,
842,
671,
18,
542,
1886,
12,
7238,
67,... |
strand_atoms = [None, None] | current_strand = 0 strand_atoms = [None] * num_strands for i in range(0, num_strands): strand_atoms[i] = chunk.ladder.strand_rails[i].baseatoms if chunk.ladder.strand_rails[i].baseatoms[0].molecule==chunk: current_strand = i """ n_atoms = len(chunk.ladder.strand_rails[i].baseatoms) strand_atoms[i] = [None] * n_atoms f... | def compute_memo(self, chunk): """ If drawing chunks in this display mode can be optimized by precomputing some info from chunk's appearance, compute that info and return it. | cbc143d808cf827d03bc69ee526e2fca8459d46d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/cbc143d808cf827d03bc69ee526e2fca8459d46d/DnaCylinderChunks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
971,
16327,
6055,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
19521,
12,
2890,
16,
2441,
4672,
3536,
971,
16327,
6055,
316,
333,
2562,
1965,
848,
506,
15411,
635,
675,
13406,
310,
2690,
1123,
628,
2441,
1807,
9788,
1359,
16,
3671,
716,
11... |
Morecmds is a sequence of LaTex commands (without backslashes) that | Morecmds is a sequence of LaTeX commands (without backslashes) that | def checkit(source, opts, morecmds=[]): """Check the LaTex formatting in a sequence of lines. Opts is a mapping of options to option values if any: -m munge parenthesis and brackets -f forward slash warnings to be skipped -d delimiters only checking -v verbose listing on delimiters ... | 0fd525fd1c8e2b3374c7acda0facbdce9dfbb63e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/0fd525fd1c8e2b3374c7acda0facbdce9dfbb63e/texcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
305,
12,
3168,
16,
1500,
16,
1898,
24680,
33,
8526,
4672,
3536,
1564,
326,
21072,
16733,
10407,
316,
279,
3102,
434,
2362,
18,
225,
25769,
353,
279,
2874,
434,
702,
358,
1456,
924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
305,
12,
3168,
16,
1500,
16,
1898,
24680,
33,
8526,
4672,
3536,
1564,
326,
21072,
16733,
10407,
316,
279,
3102,
434,
2362,
18,
225,
25769,
353,
279,
2874,
434,
702,
358,
1456,
924,
... |
OPTS.append("NSPR") | if (val == 'UNDEF'): conf = conf + "#undef " + key + "\n" | e594b1b5a2c778da65602d37638829ada0570895 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/e594b1b5a2c778da65602d37638829ada0570895/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
1125,
422,
296,
2124,
12904,
11,
4672,
2195,
273,
2195,
397,
6619,
318,
536,
315,
397,
498,
397,
1548,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
def evalaluate(*args): | def evaluate(*args): | def evalaluate(*args): return '' # who cares | 680b28f16a68d6d407837e6661e20b0c4aa72e42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9834/680b28f16a68d6d407837e6661e20b0c4aa72e42/talgettext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
30857,
1968,
4672,
327,
875,
468,
10354,
3474,
455,
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,
... | [
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
30857,
1968,
4672,
327,
875,
468,
10354,
3474,
455,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
N,k = map(long,(N,k)) top = N val = 1L while (top > (N-k)): val *= top top -= 1 n = 1L while (n < k+1L): val /= n n += 1 | val = 1L for j in xrange(min(k, N-k)): val = (val*(N-j))//(j+1) | def comb(N,k,exact=0): """Combinations of N things taken k at a time. If exact==0, then floating point precision is used, otherwise exact long integer is computed. Notes: - Array arguments accepted only for exact=0 case. - If k > N, N < 0, or k < 0, then a 0 is returned. """ if exact: if (k > N) or (N < 0) or (k < 0)... | de676eb401ca89987364437942553bac1eb8573a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/de676eb401ca89987364437942553bac1eb8573a/common.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3894,
12,
50,
16,
79,
16,
17165,
33,
20,
4672,
3536,
24107,
1012,
434,
423,
9198,
9830,
417,
622,
279,
813,
18,
225,
971,
5565,
631,
20,
16,
1508,
13861,
1634,
6039,
353,
1399,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3894,
12,
50,
16,
79,
16,
17165,
33,
20,
4672,
3536,
24107,
1012,
434,
423,
9198,
9830,
417,
622,
279,
813,
18,
225,
971,
5565,
631,
20,
16,
1508,
13861,
1634,
6039,
353,
1399,
16,
3... |
try: self._value = int(value) except: self._value = float(value) | if isinstance(value, (int, float)): self._value = value else: try: self._value = int(value) except: self._value = float(value) | def set_value_explicit(self, value = None, data_type = TYPE_STRING): | 3fcd0fcb65ead22a154a6de7d3e08bac1410b490 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13008/3fcd0fcb65ead22a154a6de7d3e08bac1410b490/cell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
1132,
67,
16511,
12,
2890,
16,
460,
273,
599,
16,
501,
67,
723,
273,
3463,
67,
5804,
4672,
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,
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,
444,
67,
1132,
67,
16511,
12,
2890,
16,
460,
273,
599,
16,
501,
67,
723,
273,
3463,
67,
5804,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
elif ' | elif ' | def substitute_file(name): subst = '' f = open(name) for l in f: if '#define LIBTORRENT_VERSION_MAJOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0] elif '#define LIBTORRENT_VERSION_MINOR' in l and filename.endiswith('.hpp'): l = '#define LIBTORRENT_VERSION_MINOR %d\n' % ... | 56c4aa32c766a880c6e71b72e79b8c8e604780eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8308/56c4aa32c766a880c6e71b72e79b8c8e604780eb/set_version.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14811,
67,
768,
12,
529,
4672,
27750,
273,
875,
284,
273,
1696,
12,
529,
13,
364,
328,
316,
284,
30,
309,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
11,
316,
328,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14811,
67,
768,
12,
529,
4672,
27750,
273,
875,
284,
273,
1696,
12,
529,
13,
364,
328,
316,
284,
30,
309,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
11,
316,
328,
4... |
self.complete_ctx(self, ctx) | self.complete_ctx(ctx) | def __lastMachineInventoryPartQuery(self, session, ctx, part, params): self.complete_ctx(self, ctx) partKlass = self.klass[part] partTable = self.table[part] haspartTable = self.table["has" + part] haspartKlass = self.klass["has" + part] grp_by = [partTable.c.id, haspartTable.c.machine] | ecfe3a96ebf12b300233da878296b7fae9bd1223 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/ecfe3a96ebf12b300233da878296b7fae9bd1223/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2722,
6981,
15059,
1988,
1138,
12,
2890,
16,
1339,
16,
1103,
16,
1087,
16,
859,
4672,
365,
18,
6226,
67,
5900,
12,
5900,
13,
1087,
47,
459,
273,
365,
18,
22626,
63,
2680,
65,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2722,
6981,
15059,
1988,
1138,
12,
2890,
16,
1339,
16,
1103,
16,
1087,
16,
859,
4672,
365,
18,
6226,
67,
5900,
12,
5900,
13,
1087,
47,
459,
273,
365,
18,
22626,
63,
2680,
65,
1... |
(uri ,localname) tuple, the qname parameter the raw XML 1.0 | (uri, localname) tuple, the qname parameter the raw XML 1.0 | def startElement(self, name, attrs): """Signals the start of an element. | b4d6bb098776de48275c2e422c608ddfd85f4198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b4d6bb098776de48275c2e422c608ddfd85f4198/handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
3536,
23346,
326,
787,
434,
392,
930,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
3536,
23346,
326,
787,
434,
392,
930,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def read_multi(self): | def read_multi(self, environ, keep_blank_values, strict_parsing): | def read_multi(self): """Internal: read a part that is itself multipart.""" self.list = [] part = self.__class__(self.fp, {}, self.innerboundary) # Throw first part away while not part.done: headers = rfc822.Message(self.fp) part = self.__class__(self.fp, headers, self.innerboundary) self.list.append(part) self.skip_li... | 8c2f5c340a8c2b8b298a0a2b60af4ec7a5210dcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/8c2f5c340a8c2b8b298a0a2b60af4ec7a5210dcd/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
7027,
12,
2890,
16,
5473,
16,
3455,
67,
12111,
67,
2372,
16,
5490,
67,
24979,
4672,
3536,
3061,
30,
855,
279,
1087,
716,
353,
6174,
10263,
12123,
365,
18,
1098,
273,
5378,
108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
67,
7027,
12,
2890,
16,
5473,
16,
3455,
67,
12111,
67,
2372,
16,
5490,
67,
24979,
4672,
3536,
3061,
30,
855,
279,
1087,
716,
353,
6174,
10263,
12123,
365,
18,
1098,
273,
5378,
108... |
for i, d in enumerate(t.dims): if i != 0: self.write(': ') self.dispatch(d) | interleave(lambda: self.write(', '), self.dispatch, t.dims) | def _ExtSlice(self, t): for i, d in enumerate(t.dims): if i != 0: self.write(': ') self.dispatch(d) | cb0813c7fd0cbadb8e73d810beafa8afbceafda7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/cb0813c7fd0cbadb8e73d810beafa8afbceafda7/unparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2482,
5959,
12,
2890,
16,
268,
4672,
364,
277,
16,
302,
316,
4241,
12,
88,
18,
8550,
4672,
309,
277,
480,
374,
30,
365,
18,
2626,
2668,
30,
8624,
365,
18,
10739,
12,
72,
13,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2482,
5959,
12,
2890,
16,
268,
4672,
364,
277,
16,
302,
316,
4241,
12,
88,
18,
8550,
4672,
309,
277,
480,
374,
30,
365,
18,
2626,
2668,
30,
8624,
365,
18,
10739,
12,
72,
13,
2... |
The name of a set-up function. This is called before running the | A set-up function. This is called before running the | def DocFileSuite(*paths, **kw): """A unittest suite for one or more doctest files. The path to each doctest file is given as a string; the interpretation of that string depends on the keyword argument "module_relative". A number of options may be provided as keyword arguments: module_relative If "module_relative" is... | 512554883ce339c292aad011060756fcfd9cc849 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/512554883ce339c292aad011060756fcfd9cc849/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3521,
812,
13587,
30857,
4481,
16,
2826,
9987,
4672,
3536,
37,
2836,
3813,
11371,
364,
1245,
578,
1898,
31263,
395,
1390,
18,
225,
1021,
589,
358,
1517,
31263,
395,
585,
353,
864,
487,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3521,
812,
13587,
30857,
4481,
16,
2826,
9987,
4672,
3536,
37,
2836,
3813,
11371,
364,
1245,
578,
1898,
31263,
395,
1390,
18,
225,
1021,
589,
358,
1517,
31263,
395,
585,
353,
864,
487,
2... |
origsize = int(buf[483:495], 8) | origsize = to_int(buf[483:495], 8) | def proc_sparse(self, tarinfo): """Analyze a GNU sparse header plus extra headers. """ buf = tarinfo.tobuf() sp = _ringbuffer() pos = 386 lastpos = 0L realpos = 0L # There are 4 possible sparse structs in the # first header. for i in xrange(4): try: offset = int(buf[pos:pos + 12], 8) numbytes = int(buf[pos + 12:pos + 2... | 1c928e92960b02f05ea5c6bb4b48f4a9e8912280 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1c928e92960b02f05ea5c6bb4b48f4a9e8912280/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
17472,
12,
2890,
16,
8232,
1376,
4672,
3536,
31984,
279,
611,
50,
57,
9387,
1446,
8737,
2870,
1607,
18,
3536,
1681,
273,
8232,
1376,
18,
869,
4385,
1435,
1694,
273,
389,
8022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5418,
67,
17472,
12,
2890,
16,
8232,
1376,
4672,
3536,
31984,
279,
611,
50,
57,
9387,
1446,
8737,
2870,
1607,
18,
3536,
1681,
273,
8232,
1376,
18,
869,
4385,
1435,
1694,
273,
389,
8022,
... |
speech.speakTextInfo(info,reason=speech.REASON_CARET) | speech.speakTextInfo(info,unit=textInfos.UNIT_LINE,reason=speech.REASON_CARET) | def script_review_bottom(self,keyPress): info=api.getReviewPosition().obj.makeTextInfo(textInfos.POSITION_LAST) api.setReviewPosition(info.copy()) info.expand(textInfos.UNIT_LINE) speech.speakMessage(_("bottom")) speech.speakTextInfo(info,reason=speech.REASON_CARET) | 1c8791e7a613b1b4ce57adbc360fae48f52760c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/1c8791e7a613b1b4ce57adbc360fae48f52760c6/_default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
16041,
67,
9176,
12,
2890,
16,
856,
11840,
4672,
1123,
33,
2425,
18,
588,
9159,
2555,
7675,
2603,
18,
6540,
1528,
966,
12,
955,
7655,
18,
15258,
67,
14378,
13,
1536,
18,
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,
2728,
67,
16041,
67,
9176,
12,
2890,
16,
856,
11840,
4672,
1123,
33,
2425,
18,
588,
9159,
2555,
7675,
2603,
18,
6540,
1528,
966,
12,
955,
7655,
18,
15258,
67,
14378,
13,
1536,
18,
542,... |
file.seek(offset) | if info.contents.WriteToEndOfFile: file.seek(0,os.SEEK_END) else: file.seek(offset) | def WriteFile(self, path, buffer, nBytesToWrite, nBytesWritten, offset, info): path = normpath(path) (file,_,lock) = self._get_file(info.contents.Context) lock.acquire() try: file.seek(offset) data = ctypes.create_string_buffer(nBytesToWrite) ctypes.memmove(data,buffer,nBytesToWrite) file.write(data.raw) nBytesWritten[... | bb7fa9cbd543fb602754d8c35654521d5d277676 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/bb7fa9cbd543fb602754d8c35654521d5d277676/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24155,
12,
2890,
16,
589,
16,
1613,
16,
290,
2160,
24538,
16,
290,
2160,
12643,
16,
1384,
16,
1123,
4672,
589,
273,
20446,
12,
803,
13,
261,
768,
16,
67,
16,
739,
13,
273,
365,
6315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24155,
12,
2890,
16,
589,
16,
1613,
16,
290,
2160,
24538,
16,
290,
2160,
12643,
16,
1384,
16,
1123,
4672,
589,
273,
20446,
12,
803,
13,
261,
768,
16,
67,
16,
739,
13,
273,
365,
6315,... |
print aSpecies[1] + " : InitialAmount must be defined, but this model is undefined." sys.exit(1) | raise ValueError, "InitialAmount must be defined, but this model is undefined." | def getSpeciesValue( self, aSpecies ): | 5558e00913030ea93e1b91139dd82f86730b4cf9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/5558e00913030ea93e1b91139dd82f86730b4cf9/convertSBML2EML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20189,
606,
620,
12,
365,
16,
279,
1990,
606,
262,
30,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20189,
606,
620,
12,
365,
16,
279,
1990,
606,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.join() | super(XReqSocketChannel, self).stop() | def stop(self): self.ioloop.stop() self.join() | 4a3d99c7db4ab8752b322c6557cdff290f3b4b0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4219/4a3d99c7db4ab8752b322c6557cdff290f3b4b0e/kernelmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
6242,
83,
556,
18,
5681,
1435,
365,
18,
5701,
1435,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
365,
18,
6242,
83,
556,
18,
5681,
1435,
365,
18,
5701,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
elif isinstance(x, sage.modules.free_module_element.FreeModuleElement): | elif isinstance(x, free_module_element.FreeModuleElement): | def __call__(self, x, coerce_entries=True, copy=True, check_element=True): if isinstance(x, (int, long, sage.rings.integer.Integer)) and x==0: return self.zero_vector() elif isinstance(x, sage.modules.free_module_element.FreeModuleElement): if x.parent() is self: if copy: return x.copy() else: return x x = x.list() w =... | 0ca77f634b683ffe0f0028568d0d1cf22120503e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0ca77f634b683ffe0f0028568d0d1cf22120503e/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
16,
12270,
67,
8219,
33,
5510,
16,
1610,
33,
5510,
16,
866,
67,
2956,
33,
5510,
4672,
309,
1549,
12,
92,
16,
261,
474,
16,
1525,
16,
272,
410,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1991,
972,
12,
2890,
16,
619,
16,
12270,
67,
8219,
33,
5510,
16,
1610,
33,
5510,
16,
866,
67,
2956,
33,
5510,
4672,
309,
1549,
12,
92,
16,
261,
474,
16,
1525,
16,
272,
410,
1... |
import tokenize, keyword | def scanvars(reader, frame, locals): """Scan one logical line of Python and look up values of variables used.""" import tokenize, keyword vars, lasttoken, parent, prefix, value = [], None, None, '', __UNDEF__ for ttype, token, start, end, line in tokenize.generate_tokens(reader): if ttype == tokenize.NEWLINE: break if ... | ad078a0d7a4a4a840c259ec4a744043375de452b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/ad078a0d7a4a4a840c259ec4a744043375de452b/cgitb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
4699,
12,
10530,
16,
2623,
16,
8985,
4672,
3536,
7972,
1245,
6374,
980,
434,
6600,
471,
2324,
731,
924,
434,
3152,
1399,
12123,
4153,
16,
1142,
2316,
16,
982,
16,
1633,
16,
460,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4135,
4699,
12,
10530,
16,
2623,
16,
8985,
4672,
3536,
7972,
1245,
6374,
980,
434,
6600,
471,
2324,
731,
924,
434,
3152,
1399,
12123,
4153,
16,
1142,
2316,
16,
982,
16,
1633,
16,
460,
... | |
if self.mobinv != []: | if self.mobinv: | def do_look(self, session, line): c = C(session) if not line: # Looking at the room itself cu.execute("select s_desc,l_desc from rooms where id = ?", (session.is_in,)) self.descr = cu.fetchone() session.push("%s \r\n" % (c.CYAN(self.descr[0]),)) # short desc session.push("%s \r\n" % self.descr[1].replace('\\n', '\r\... | 51b9abadb354cadc18189130d03b2b346d6e8955 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5020/51b9abadb354cadc18189130d03b2b346d6e8955/actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7330,
12,
2890,
16,
1339,
16,
980,
4672,
276,
273,
385,
12,
3184,
13,
309,
486,
980,
30,
468,
10176,
310,
622,
326,
7725,
6174,
15985,
18,
8837,
2932,
4025,
272,
67,
5569,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
67,
7330,
12,
2890,
16,
1339,
16,
980,
4672,
276,
273,
385,
12,
3184,
13,
309,
486,
980,
30,
468,
10176,
310,
622,
326,
7725,
6174,
15985,
18,
8837,
2932,
4025,
272,
67,
5569,
1... |
bGwgUmlnaHRzIFJlc2VydmVkLiAkCgBVUFghDAkCCmbxMY8TFMU40bYAAPM0AAAAsAAAJgEABP+/ | bGwgUmlnaHRzIFJlc2VydmVkLiAkCgBVUFghDAkCCl/uS+s25ddS0bYAAO40AAAAsAAAJgEAkP+/ | def get_exe_bytes (self): import base64 return base64.decodestring(EXEDATA) | beac8e54f6a27c63ca7981adb8482c4465b6e6b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/beac8e54f6a27c63ca7981adb8482c4465b6e6b4/bdist_wininst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
2,
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,
1652,
336,
67,
14880,
67,
3890,
261,
2890,
4672,
1930,
1026,
1105,
327,
1026,
1105,
18,
4924,
1145,
371,
12,
2294,
2056,
3706,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
line_pat = re.compile("^([^ \t]+)[ \t]+(.*)$") | line_pat = re.compile(b'^([^ \t]+)[ \t]+(.*)$') | def xgtitle(self, group, file=None): """Process an XGTITLE command (optional server extension) Arguments: - group: group name wildcard (i.e. news.*) Returns: - resp: server response if successful - list: list of (name,title) strings""" | 933238ad85875df26c18a674f77afc1abaafb88e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/933238ad85875df26c18a674f77afc1abaafb88e/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
75,
2649,
12,
2890,
16,
1041,
16,
585,
33,
7036,
4672,
3536,
2227,
392,
1139,
43,
14123,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
1041,
30,
1041,
508,
8531,
261,
77,
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,
619,
75,
2649,
12,
2890,
16,
1041,
16,
585,
33,
7036,
4672,
3536,
2227,
392,
1139,
43,
14123,
1296,
261,
10444,
1438,
2710,
13,
13599,
30,
300,
1041,
30,
1041,
508,
8531,
261,
77,
18,
... |
def minpoly(self): | def minpoly(self, var): """ Return the minimal polynomial of this number field element. EXAMPLES: sage: K.<a> = NumberField(x^2+3) sage: a.minpoly('x') x^2 + 3 sage: R.<X> = K['X'] sage: L.<b> = K.extension(X^2-(22 + a)) sage: b.minpoly('t') t^4 - 44*t^2 + 487 sage: b^2 - (22+a) 0 """ | def minpoly(self): # The minimal polynomial is square-free and # divisible by same irreducible factors as # the characteristic polynomial. # TODO: factoring to find the square-free part is idiotic. # Instead use a GCD algorithm! f = polynomial_ring.PolynomialRing(QQ)(1) for g, _ in self.charpoly('x').factor(): f *= g r... | bfc474f6a414609b65c2d4c4d0b25c73b553b73a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bfc474f6a414609b65c2d4c4d0b25c73b553b73a/number_field_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1131,
16353,
12,
2890,
16,
569,
4672,
3536,
2000,
326,
16745,
16991,
434,
333,
1300,
652,
930,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
1475,
22782,
69,
34,
273,
3588,
974,
12,
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,
1131,
16353,
12,
2890,
16,
569,
4672,
3536,
2000,
326,
16745,
16991,
434,
333,
1300,
652,
930,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
1475,
22782,
69,
34,
273,
3588,
974,
12,
92... |
self.hashcode = random.randrange(1000000000) def __hash__(self): return self.hashcode | def __hash__(self): return 42 | def __init__(self, i): # Comparison outcomes are determined by the value of i. self.i = i | cc9cfaf85d1f6d4ba594d95b0831015767c2565a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cc9cfaf85d1f6d4ba594d95b0831015767c2565a/test_mutants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
277,
4672,
468,
19479,
29867,
854,
11383,
635,
326,
460,
434,
277,
18,
365,
18,
77,
273,
277,
2,
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,
1001,
2738,
972,
12,
2890,
16,
277,
4672,
468,
19479,
29867,
854,
11383,
635,
326,
460,
434,
277,
18,
365,
18,
77,
273,
277,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return _urlopener.open(url, data) | return opener.open(url, data) | def urlopen(url, data=None): """urlopen(url [, data]) -> open file-like object""" global _urlopener if not _urlopener: _urlopener = FancyURLopener() if data is None: return _urlopener.open(url) else: return _urlopener.open(url, data) | 74188abde27b92595b60f3a1cb3fb12329f6c16e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/74188abde27b92595b60f3a1cb3fb12329f6c16e/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19613,
12,
718,
16,
501,
33,
7036,
4672,
3536,
295,
18589,
12,
718,
306,
16,
501,
5717,
317,
1696,
585,
17,
5625,
733,
8395,
2552,
389,
295,
16884,
708,
309,
486,
389,
295,
16884,
708,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19613,
12,
718,
16,
501,
33,
7036,
4672,
3536,
295,
18589,
12,
718,
306,
16,
501,
5717,
317,
1696,
585,
17,
5625,
733,
8395,
2552,
389,
295,
16884,
708,
309,
486,
389,
295,
16884,
708,... |
cols = self.results[-1][0] | cols = self.results[5][0] | def findAssayResults (self, alleleSystemMap): | 94ecf42708e34db0eaf6c3248d70170854aaf67b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/536/94ecf42708e34db0eaf6c3248d70170854aaf67b/recombinase_gatherer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2610,
528,
3447,
261,
2890,
16,
14551,
3163,
863,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
2610,
528,
3447,
261,
2890,
16,
14551,
3163,
863,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cr.close() | def report(self, db, uid, passwd, object, ids, datas=None, context=None): | f61b882532cec482ea5ddd9f451d7fab5d48a611 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/f61b882532cec482ea5ddd9f451d7fab5d48a611/printjob.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2890,
16,
1319,
16,
4555,
16,
19093,
16,
733,
16,
3258,
16,
5386,
33,
7036,
16,
819,
33,
7036,
4672,
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,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
2890,
16,
1319,
16,
4555,
16,
19093,
16,
733,
16,
3258,
16,
5386,
33,
7036,
16,
819,
33,
7036,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
print "}," pass print " }," | print '},' pass print ' },' | def main(argv): objects = map(ns.nmx, argv) objs = objects objs.reverse() gimp_composite_function = dict() for o in objs: for mode in composite_modes: for A in filter(lambda pf: pf != "GIMP_PIXELFORMAT_ANY", pixel_format): for B in filter(lambda pf: pf != "GIMP_PIXELFORMAT_ANY", pixel_format): for D in filter(lambda... | 9d2b63962e152dcb9fc4a73e6b91c9ae2c358d95 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/9d2b63962e152dcb9fc4a73e6b91c9ae2c358d95/make-gimp-composite-dispatch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
225,
2184,
273,
852,
12,
2387,
18,
82,
11023,
16,
5261,
13,
225,
12721,
273,
2184,
12721,
18,
9845,
1435,
225,
314,
14532,
67,
27676,
67,
915,
273,
2065,
1435,
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,
2774,
12,
19485,
4672,
225,
2184,
273,
852,
12,
2387,
18,
82,
11023,
16,
5261,
13,
225,
12721,
273,
2184,
12721,
18,
9845,
1435,
225,
314,
14532,
67,
27676,
67,
915,
273,
2065,
1435,
3... |
cu = self.db.cursor() | cu = db.cursor() | def optSchemaUpdate(db): #do we have the index we need? if "TroveInfoTypeInstanceIdx" in db.tables["TroveInfo"]: return # we need to have write access try: cu = self.db.cursor() cu.execute("BEGIN IMMEDIATE") except sqlerrors.ReadOnlyDatabase: return else: self.db.rollback() # we have write access and we need the index ... | df2f3bb10ac4cf1adedca77d30089f10c08cbb37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/df2f3bb10ac4cf1adedca77d30089f10c08cbb37/schema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2153,
3078,
1891,
12,
1966,
4672,
468,
2896,
732,
1240,
326,
770,
732,
1608,
35,
309,
315,
56,
303,
537,
966,
559,
1442,
4223,
6,
316,
1319,
18,
9373,
9614,
56,
303,
537,
966,
11929,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2153,
3078,
1891,
12,
1966,
4672,
468,
2896,
732,
1240,
326,
770,
732,
1608,
35,
309,
315,
56,
303,
537,
966,
559,
1442,
4223,
6,
316,
1319,
18,
9373,
9614,
56,
303,
537,
966,
11929,
... |
rpc = "SEGMENT\0type\0%s\0" % (mytype,) | rpc = "SEGMENT\0type\0%s\0observatory\0%s\0" % (mytype,site) | def timeQuery(self, mytype, start, end, strict): """ Query LDRdataFindServer for time ranges for a particular frameType. Optionally supprts gpsStart and gpsEnd, these will be processed server-side. @param mytype: frame type @param start: gps start time @param stop: gps end time @param strict: strict query flag @retur... | 5005e76cd4e1d250402ecf06926b1ea21fda784e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3589/5005e76cd4e1d250402ecf06926b1ea21fda784e/LDRdataFindClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
813,
1138,
12,
2890,
16,
3399,
723,
16,
787,
16,
679,
16,
5490,
4672,
3536,
2770,
511,
6331,
892,
3125,
2081,
364,
813,
7322,
364,
279,
6826,
2623,
559,
18,
20720,
1169,
683,
3428,
209... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
813,
1138,
12,
2890,
16,
3399,
723,
16,
787,
16,
679,
16,
5490,
4672,
3536,
2770,
511,
6331,
892,
3125,
2081,
364,
813,
7322,
364,
279,
6826,
2623,
559,
18,
20720,
1169,
683,
3428,
209... |
def convert(v): if isinstance(v, str) or isinstance(v, unicode): return v else: return str(v) values = [convert(getattr(o, slot)) for slot in slots] | values = [self.convert(getattr(o, slot)) for slot in slots] | def convert(v): if isinstance(v, str) or isinstance(v, unicode): return v else: return str(v) | 92bf1255c432510f0c3b767d6c928e4e7e68de95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12778/92bf1255c432510f0c3b767d6c928e4e7e68de95/minidb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
12,
90,
4672,
309,
1549,
12,
90,
16,
609,
13,
578,
1549,
12,
90,
16,
5252,
4672,
327,
331,
469,
30,
327,
609,
12,
90,
13,
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,
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,
1765,
12,
90,
4672,
309,
1549,
12,
90,
16,
609,
13,
578,
1549,
12,
90,
16,
5252,
4672,
327,
331,
469,
30,
327,
609,
12,
90,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.assertEqual(getattr(hashlib, algorithm_name)(u'spam').hexdigest(), expected) self.assertEqual(hashlib.new(algorithm_name, u'spam').hexdigest(), expected) | self.check(algorithm_name, u'spam', expected) | def check_unicode(self, algorithm_name): # Unicode objects are not allowed as input. expected = hashlib.new(algorithm_name, str(u'spam')).hexdigest() self.assertEqual(getattr(hashlib, algorithm_name)(u'spam').hexdigest(), expected) self.assertEqual(hashlib.new(algorithm_name, u'spam').hexdigest(), expected) | c6af09930f68230f8a09b2e7bb2d4280b3ff2d06 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/c6af09930f68230f8a09b2e7bb2d4280b3ff2d06/test_hashlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
9124,
12,
2890,
16,
4886,
67,
529,
4672,
468,
9633,
2184,
854,
486,
2935,
487,
810,
18,
2665,
273,
15956,
18,
2704,
12,
12743,
67,
529,
16,
609,
12,
89,
1807,
84,
301,
6134,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
866,
67,
9124,
12,
2890,
16,
4886,
67,
529,
4672,
468,
9633,
2184,
854,
486,
2935,
487,
810,
18,
2665,
273,
15956,
18,
2704,
12,
12743,
67,
529,
16,
609,
12,
89,
1807,
84,
301,
6134,... |
self.infowindow_show_lyrics(_("Fetching lyrics...")) | self.infowindow_show_lyrics(_("Fetching lyrics..."), self.songinfo.artist, self.songinfo.title) | def infowindow_update(self, show_after_update=False, update_all=False): # update_all = True means that every tag should update. This is # only the case on song and status changes. Otherwise we only # want to update the minimum number of widgets so the user can # do things like select label text. if self.conn: if self.i... | ef335bb5758783289bea4a5b77282ae0c87d687a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/ef335bb5758783289bea4a5b77282ae0c87d687a/sonata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
543,
1700,
67,
2725,
12,
2890,
16,
2405,
67,
5205,
67,
2725,
33,
8381,
16,
1089,
67,
454,
33,
8381,
4672,
468,
1089,
67,
454,
273,
1053,
4696,
716,
3614,
1047,
1410,
1089,
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,
8286,
543,
1700,
67,
2725,
12,
2890,
16,
2405,
67,
5205,
67,
2725,
33,
8381,
16,
1089,
67,
454,
33,
8381,
4672,
468,
1089,
67,
454,
273,
1053,
4696,
716,
3614,
1047,
1410,
1089,
18,
... |
EXPECT_EQ(GetServiceId(kNewClientId), kNewServiceId); | EXPECT_TRUE(Get%(resource_type)sInfo(kNewClientId) != NULL); | def WriteServiceUnitTest(self, func, file): """Overrriden from TypeHandler.""" valid_test = """ | 9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/9fa7a2b02d77ec300c60a11cdfaf23fc9c50a619/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
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,
2598,
1179,
2802,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
923,
67,
3813,
273,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
dminfo['NAME'] = 'modeldata' cdesc['comment'] = 'The model data column' t.addcols (maketabdesc(makecoldesc('MODEL_DATA', cdesc)), dminfo) if ack: print 'added column MODEL_DATA' dminfo['NAME'] = 'correcteddata' cdesc['comment'] = 'The corrected data column' t.addcols (maketabdesc(makecoldesc('CORRECTED_DATA', cdesc)),... | if 'MODEL_DATA' in cnames: print 'Column MODEL_DATA not added; it already exists' else: dminfo['NAME'] = 'modeldata' cdesc['comment'] = 'The model data column' t.addcols (maketabdesc(makecoldesc('MODEL_DATA', cdesc)), dminfo) if ack: print 'added column MODEL_DATA' if 'CORRECTED_DATA' in cnames: print 'Column CORRECTE... | def addImagingColumns(msname, ack=True): """ Add the columns to an MS needed for the casa imager. It adds the columns MODEL_WEIGHT, CORRECTED_WEIGHT, and IMAGING_WEIGHT. It also sets the CHANNEL_SELECTION keyword needed for the older casa imagers. It fails if one of the columns already exists. """ # numpy is needed... | cdd87430da981b0b5338b43dfdfa5f4e0b5c00a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/cdd87430da981b0b5338b43dfdfa5f4e0b5c00a0/tableutil.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1170,
5755,
3380,
12,
959,
529,
16,
8479,
33,
5510,
4672,
3536,
1436,
326,
2168,
358,
392,
9238,
3577,
364,
326,
8697,
69,
709,
6817,
18,
225,
2597,
4831,
326,
2168,
21700,
67,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1170,
5755,
3380,
12,
959,
529,
16,
8479,
33,
5510,
4672,
3536,
1436,
326,
2168,
358,
392,
9238,
3577,
364,
326,
8697,
69,
709,
6817,
18,
225,
2597,
4831,
326,
2168,
21700,
67,
29... |
self.warning(10) | def setSubsetData(self, data): # if we haven't yet received the main data we just remember this data and return if not self.data: self.unprocessedSubsetData = data self.warning(10) return | 1637fded461ab523362c616c4de9fd0ecbfd8e90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/1637fded461ab523362c616c4de9fd0ecbfd8e90/OWScatterPlot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19942,
542,
751,
12,
2890,
16,
501,
4672,
468,
309,
732,
15032,
1404,
4671,
5079,
326,
2774,
501,
732,
2537,
11586,
333,
501,
471,
327,
309,
486,
365,
18,
892,
30,
365,
18,
318,
11005,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19942,
542,
751,
12,
2890,
16,
501,
4672,
468,
309,
732,
15032,
1404,
4671,
5079,
326,
2774,
501,
732,
2537,
11586,
333,
501,
471,
327,
309,
486,
365,
18,
892,
30,
365,
18,
318,
11005,... | |
print 'Defuzzing this file on %s (channel: %s, track: %s): %s' % (self.short_name, self.channel_id, self.id, file_name) | print 'Defuzzing this file on %s : id = %s, name = %s' % (self.short_name, self.id, file_name) | def run(self): #print "Using libshout version %s" % shout.version() #__chunk = 0 self.channel.open() print 'Opening ' + self.channel.name + '...' time.sleep(0.1) | ab8799f1c339289c045d33156b803d545ac43f7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12047/ab8799f1c339289c045d33156b803d545ac43f7b/defuzz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1188,
315,
7736,
2561,
674,
659,
1177,
738,
87,
6,
738,
699,
659,
18,
1589,
1435,
468,
972,
6551,
273,
374,
365,
18,
4327,
18,
3190,
1435,
1172,
296,
21378,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1188,
315,
7736,
2561,
674,
659,
1177,
738,
87,
6,
738,
699,
659,
18,
1589,
1435,
468,
972,
6551,
273,
374,
365,
18,
4327,
18,
3190,
1435,
1172,
296,
21378,
... |
pickle.dumps(C()) | pickle.dumps(C(), 0) | def pickleslots(): if verbose: print("Testing pickling of classes with __slots__ ...") import pickle, pickle as cPickle # Pickling of classes with __slots__ but without __getstate__ should fail global B, C, D, E class B(object): pass for base in [object, B]: class C(base): __slots__ = ['a'] class D(C): pass try: pickle... | 2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/2a23ce2dfe8fd81cb39612d526b5e7e2e38b2f2d/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
1040,
80,
6968,
13332,
309,
3988,
30,
1172,
2932,
22218,
6002,
2456,
434,
3318,
598,
1001,
18875,
972,
1372,
7923,
1930,
13379,
16,
13379,
487,
276,
17968,
298,
468,
23038,
2456,
434... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6002,
1040,
80,
6968,
13332,
309,
3988,
30,
1172,
2932,
22218,
6002,
2456,
434,
3318,
598,
1001,
18875,
972,
1372,
7923,
1930,
13379,
16,
13379,
487,
276,
17968,
298,
468,
23038,
2456,
434... |
return | return False | def getcd(isprobe, akey): # get course and distance irowq=game.quadrant.x; icolq=game.quadrant.y; key=0 navmode = "unspecified" itemp = "curt" incr = coord() iprompt = False # Get course direction and distance. If user types bad values, return # with DIREC = -1.0. game.direc = -1.0 if game.landed and not isprobe: pro... | b1c9c5334f08ac7846e441ce750b7e9ad119b37d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b1c9c5334f08ac7846e441ce750b7e9ad119b37d/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4315,
12,
291,
27230,
16,
279,
856,
4672,
468,
336,
4362,
471,
3888,
277,
492,
85,
33,
13957,
18,
21733,
6890,
18,
92,
31,
277,
1293,
85,
33,
13957,
18,
21733,
6890,
18,
93,
31,... |
if 'author' in field.tags: continue | if 'author' in field.tags: break | def _check_basic(self, doc): """ Check the description, author, version, and see-also fields of C{doc}. This is used as a helper function by L{_check_module}, L{_check_class}, and L{_check_func}. | e1ae2142f878ca35119b1f92f0864b11f6d33d22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/e1ae2142f878ca35119b1f92f0864b11f6d33d22/checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
13240,
12,
2890,
16,
997,
4672,
3536,
2073,
326,
2477,
16,
2869,
16,
1177,
16,
471,
2621,
17,
31144,
1466,
434,
385,
95,
2434,
5496,
225,
1220,
353,
1399,
487,
279,
4222... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
67,
13240,
12,
2890,
16,
997,
4672,
3536,
2073,
326,
2477,
16,
2869,
16,
1177,
16,
471,
2621,
17,
31144,
1466,
434,
385,
95,
2434,
5496,
225,
1220,
353,
1399,
487,
279,
4222... |
tests = doctest.DocTestFinder().find(m) runner = doctest.DocTestRunner(verbose=False) for test in tests: runner.run(test) | if sys.version[:3]<'2.4': doctest.testmod(m, verbose=False) else: tests = doctest.DocTestFinder().find(m) runner = doctest.DocTestRunner(verbose=False) for test in tests: runner.run(test) | def rundocs(self, filename=None): """ Run doc string tests found in filename. """ import doctest if filename is None: f = get_frame(1) filename = f.f_globals['__file__'] name = os.path.splitext(os.path.basename(filename))[0] path = [os.path.dirname(filename)] file, pathname, description = imp.find_module(name, path) tr... | aa00fd2c05034316bb78251fbb54fa936030d6d2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/aa00fd2c05034316bb78251fbb54fa936030d6d2/numpytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
1074,
22280,
12,
2890,
16,
1544,
33,
7036,
4672,
3536,
1939,
997,
533,
7434,
1392,
316,
1544,
18,
3536,
1930,
31263,
395,
309,
1544,
353,
599,
30,
284,
273,
336,
67,
3789,
12,
21,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
436,
1074,
22280,
12,
2890,
16,
1544,
33,
7036,
4672,
3536,
1939,
997,
533,
7434,
1392,
316,
1544,
18,
3536,
1930,
31263,
395,
309,
1544,
353,
599,
30,
284,
273,
336,
67,
3789,
12,
21,... |
self.removePage(page) for page in toRemove | self.removePage(rpage) for rpage in toRemove | def addPage(self, page): # First, remove pages beyond the current index. index = wait(self.get('selectedIndex')) yield index index = index.getResult() toRemove = self.children[index + 1:] yield wait(DeferredList([ self.removePage(page) for page in toRemove ])) # Next, add the new page. index = wait(std.Deck.addPage(sel... | 0a881f050cdc8bcb4b19c9227ae3150b9342bdd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2333/0a881f050cdc8bcb4b19c9227ae3150b9342bdd2/deck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1964,
12,
2890,
16,
1363,
4672,
468,
5783,
16,
1206,
4689,
17940,
326,
783,
770,
18,
770,
273,
2529,
12,
2890,
18,
588,
2668,
8109,
1016,
26112,
2824,
770,
770,
273,
770,
18,
588,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
1964,
12,
2890,
16,
1363,
4672,
468,
5783,
16,
1206,
4689,
17940,
326,
783,
770,
18,
770,
273,
2529,
12,
2890,
18,
588,
2668,
8109,
1016,
26112,
2824,
770,
770,
273,
770,
18,
588,... |
def calculateLinesPerPage(self, dc, usable_page_height_mm): | def _calculateLinesPerPage(self, dc, usable_page_height_mm): | def calculateLinesPerPage(self, dc, usable_page_height_mm): """Calculate the number of lines that will fit on the page. @param dc: the Device Context @param usable_page_height_mm: height in mm of the printable part of the page (i.e. with the border height removed) @returns: the number of lines on the page """ if se... | 6ae8303bbb1a0f5f38a844558be6a34a650019a1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/6ae8303bbb1a0f5f38a844558be6a34a650019a1/stcprint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
5763,
13005,
12,
2890,
16,
6744,
16,
15603,
67,
2433,
67,
4210,
67,
7020,
4672,
3536,
8695,
326,
1300,
434,
2362,
716,
903,
4845,
603,
326,
1363,
18,
225,
632,
891,
6744,
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,
389,
11162,
5763,
13005,
12,
2890,
16,
6744,
16,
15603,
67,
2433,
67,
4210,
67,
7020,
4672,
3536,
8695,
326,
1300,
434,
2362,
716,
903,
4845,
603,
326,
1363,
18,
225,
632,
891,
6744,
3... |
if not shortmem.get('file_url'): scrape_file_url(url, shortmem=shortmem) | get_dict = {'server': 'vimeo.com', 'show_title': 1, 'show_byline': 1, 'show_portrait': 0, 'color': '', 'fullscreen': 1} get_dict['clip_id'] = VIMEO_REGEX.match(url).groupdict()['video_id'] flash_url = 'http://vimeo.com/moogaloop.swf?' + urllib.urlencode(get_dict) | def get_embed(url, shortmem=None, width=EMBED_WIDTH, height=EMBED_HEIGHT): if not shortmem.get('file_url'): scrape_file_url(url, shortmem=shortmem) object_children = ( E.PARAM(name="allowfullscreen", value="true"), E.PARAM(name="allowscriptaccess", value="always"), E.PARAM(name="movie", value=shortmem['file_url']), EM... | 6c1a338c0066ca5909c28e44e94ccb4faa43cf3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12246/6c1a338c0066ca5909c28e44e94ccb4faa43cf3b/vimeo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8483,
12,
718,
16,
3025,
3917,
33,
7036,
16,
1835,
33,
3375,
22235,
67,
10023,
16,
2072,
33,
3375,
22235,
67,
14595,
4672,
336,
67,
1576,
273,
13666,
3567,
4278,
296,
90,
3143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8483,
12,
718,
16,
3025,
3917,
33,
7036,
16,
1835,
33,
3375,
22235,
67,
10023,
16,
2072,
33,
3375,
22235,
67,
14595,
4672,
336,
67,
1576,
273,
13666,
3567,
4278,
296,
90,
3143... |
s += '\nOBJ: %s\n' % safeRepr(obj) | print '\nOBJ: %s\n' % safeRepr(obj) | def referrersStr(self, numEach=3): """referrers of the first few of each type of object""" s = '' counts = list(set(self._count2types.keys())) counts.sort() counts.reverse() for count in counts: types = makeList(self._count2types[count]) for typ in types: s += '\n\nTYPE: %s' % typ for i in xrange(min(numEach,len(self._... | 3ca67a4446150254249b7af7a05e2ea39a6c2405 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/3ca67a4446150254249b7af7a05e2ea39a6c2405/ObjectPool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1278,
370,
414,
1585,
12,
2890,
16,
818,
3442,
33,
23,
4672,
3536,
1734,
370,
414,
434,
326,
1122,
11315,
434,
1517,
618,
434,
733,
8395,
272,
273,
875,
6880,
273,
666,
12,
542,
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,
1278,
370,
414,
1585,
12,
2890,
16,
818,
3442,
33,
23,
4672,
3536,
1734,
370,
414,
434,
326,
1122,
11315,
434,
1517,
618,
434,
733,
8395,
272,
273,
875,
6880,
273,
666,
12,
542,
12,
... |
service = netsvc.LocalService("object_proxy") | pool = pooler.get_pool(cr.dbname) ir_translation_obj = pool.get('ir.translation') | def create_rml(self, cr, xml, uid, context=None): if not context: context={} service = netsvc.LocalService("object_proxy") | d69ca9424e26ef0b783f5357de564f252ace2b84 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d69ca9424e26ef0b783f5357de564f252ace2b84/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
86,
781,
12,
2890,
16,
4422,
16,
2025,
16,
4555,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
1156,
273,
21954,
4227,
18,
25635,
2932,
1612,
67,
5656,
7923,
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,
752,
67,
86,
781,
12,
2890,
16,
4422,
16,
2025,
16,
4555,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
12938,
1156,
273,
21954,
4227,
18,
25635,
2932,
1612,
67,
5656,
7923,
2,
-1... |
print "Duplicate METAR %s OLD: %s NEW: %s" % (iemid, \ iem.data['raw'], cmetar) | pass | def process_site(metar): """ Actually process the metar :) """ # Check the length I have if (len(metar) < 10): return # Remove any multiple whitespace, bad chars metar = metar.encode('latin-1').replace('\xa0', " ") clean_metar = re.sub("\s+", " ", metar.strip()) # Only process US obs for now .... if (len(clean_metar) ... | e3c65e3a944e30abdedc44616a0f2c27ea367761 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11186/e3c65e3a944e30abdedc44616a0f2c27ea367761/metarObFe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
4256,
12,
10578,
297,
4672,
3536,
4603,
3452,
1207,
326,
5100,
297,
294,
13,
3536,
468,
2073,
326,
769,
467,
1240,
309,
261,
1897,
12,
10578,
297,
13,
411,
1728,
4672,
327,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1207,
67,
4256,
12,
10578,
297,
4672,
3536,
4603,
3452,
1207,
326,
5100,
297,
294,
13,
3536,
468,
2073,
326,
769,
467,
1240,
309,
261,
1897,
12,
10578,
297,
13,
411,
1728,
4672,
327,
2... |
self.any_issue = False | self.any_issue = False | def write_doc(self, docname, doctree): self.any_issue = False # set when any issue is encountered in this document self.docname = docname visitor = SuspiciousVisitor(doctree, self) doctree.walk(visitor) | 26db6f52a4d611d456e2e3c7c8b3f04177438954 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/26db6f52a4d611d456e2e3c7c8b3f04177438954/suspicious.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2434,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
225,
365,
18,
2273,
67,
13882,
273,
1083,
468,
444,
1347,
1281,
5672,
353,
9919,
316,
333,
1668,
365,
18,
2434,
529,
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,
1045,
67,
2434,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
225,
365,
18,
2273,
67,
13882,
273,
1083,
468,
444,
1347,
1281,
5672,
353,
9919,
316,
333,
1668,
365,
18,
2434,
529,
273,
... |
return PyObject_SetAttrString((PyObject*)type, "_attributes", l) >=0; | result = PyObject_SetAttrString((PyObject*)type, "_attributes", l) >= 0; Py_DECREF(l); return result; | def visitModule(self, mod): self.emit(""" | a19ef2e13115cad89ba02db47f9221204f803eb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a19ef2e13115cad89ba02db47f9221204f803eb6/asdl_c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
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,
3757,
3120,
12,
2890,
16,
681,
4672,
365,
18,
18356,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if "panic" in self.other_failures and not "panic" in older.other_failures: | if ("panic" in self.other_failures and not "panic" in older.other_failures): | def regressed_since(self, older): """Check if this build has regressed since another build.""" if "disk full" in self.other_failures: return False if "timeout" in self.other_failures and "timeout" in older.other_failures: # When the timeout happens exactly can differ slightly, so it's okay # if the numbers are a bit di... | 131284c335702f58849150ad83d8b87c23fbe359 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/131284c335702f58849150ad83d8b87c23fbe359/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
960,
4638,
67,
9256,
12,
2890,
16,
12156,
4672,
3536,
1564,
309,
333,
1361,
711,
960,
4638,
3241,
4042,
1361,
12123,
309,
315,
10863,
1983,
6,
316,
365,
18,
3011,
67,
26268,
30,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
960,
4638,
67,
9256,
12,
2890,
16,
12156,
4672,
3536,
1564,
309,
333,
1361,
711,
960,
4638,
3241,
4042,
1361,
12123,
309,
315,
10863,
1983,
6,
316,
365,
18,
3011,
67,
26268,
30,
327,
1... |
ifp.close() | ifp.close() | def binhex(inp, out): """(infilename, outfilename) - Create binhex-encoded copy of a file""" finfo = getfileinfo(inp) ofp = BinHex(finfo, out) ifp = open(inp, 'rb') # XXXX Do textfile translation on non-mac systems d = ifp.read() ofp.write(d) ofp.close_data() ifp.close() ifp = openrsrc(inp, 'rb') d = ifp.read() ofp.w... | d9300e7ae7f704ad263013ec13346104b4bba7ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d9300e7ae7f704ad263013ec13346104b4bba7ba/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4158,
7118,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
1788,
4158,
7118,
17,
10787,
1610,
434,
279,
585,
8395,
15190,
273,
336,
768,
1376,
12,
31647,
13,
43... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4158,
7118,
12,
31647,
16,
596,
4672,
3536,
12,
267,
3459,
16,
596,
3459,
13,
300,
1788,
4158,
7118,
17,
10787,
1610,
434,
279,
585,
8395,
15190,
273,
336,
768,
1376,
12,
31647,
13,
43... |
chain_index = 0 | next_chain = 0 | def expect(self, patterns=[], timeout=None, limit=None): """Read from the Connector and return the index of the first pattern which matches the input chain; otherwise, raise an exception. | b6a8cf48ec93af35cd798dd7447c4de8ba46bad1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/b6a8cf48ec93af35cd798dd7447c4de8ba46bad1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
6884,
22850,
6487,
2021,
33,
7036,
16,
1800,
33,
7036,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
6884,
22850,
6487,
2021,
33,
7036,
16,
1800,
33,
7036,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
... |
self.updateInterval = updateInterval | def __init__(self, server, selectionCallback, updateInterval=60*10): gtk.Menu.__init__(self) self.server = server self.columns = ColumnSet() self.widgets = [] self.selectionCallback = selectionCallback self.updateInterval = updateInterval | 61d41a96c46a43b0881dbfce82fd3c88edf6732d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/61d41a96c46a43b0881dbfce82fd3c88edf6732d/thermapplet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
16,
4421,
2428,
16,
1089,
4006,
33,
4848,
14,
2163,
4672,
22718,
18,
4599,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3567,
273,
1438,
365,
18,
5112,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
972,
12,
2890,
16,
1438,
16,
4421,
2428,
16,
1089,
4006,
33,
4848,
14,
2163,
4672,
22718,
18,
4599,
16186,
2738,
972,
12,
2890,
13,
365,
18,
3567,
273,
1438,
365,
18,
5112,... | |
self._remove = self._queue.remove | def remove_by_value(value): for i, v in enumerate(self._queue): if v == value: self._queue.__delitem__(i) break self._remove = remove_by_value | def __init__(self, capacity): self.capacity = capacity self._mapping = {} | 3d4c5bb38a13215e98445e162901ba4e3f230d9b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14446/3d4c5bb38a13215e98445e162901ba4e3f230d9b/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7519,
4672,
365,
18,
16017,
273,
7519,
365,
6315,
6770,
273,
2618,
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,
1001,
2738,
972,
12,
2890,
16,
7519,
4672,
365,
18,
16017,
273,
7519,
365,
6315,
6770,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if doc and doc.ispackage() and doc.modules(): modules = [l.target() for l in doc.modules()] _write_if_nonempty(public, private, modules, ' '*depth + ' <ul>\n') for module in modules: self._write_module_tree_item(public, private, module, depth+4) _write_if_nonempty(public, private, modules, ' '*depth + ' </ul>\n') st... | if doc is None or not doc.ispackage(): return submodules = [l.target() for l in doc.modules()] if not submodules: return _write_if_nonempty(public, private, submodules, ' '*depth+' <ul>\n') for module in submodules: self._write_module_tree_item(public, private, module, depth+4) _write_if_nonempty(public, priv... | def _write_module_tree_item(self, public, private, uid, depth=0): """ Helper function for L{_module_tree} and L{_module_list}. @rtype: C{string} """ if uid is None: return | dad6dd09c82d3878a78d977cc13da79d4420db2b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/dad6dd09c82d3878a78d977cc13da79d4420db2b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2978,
67,
3413,
67,
1726,
12,
2890,
16,
1071,
16,
3238,
16,
4555,
16,
3598,
33,
20,
4672,
3536,
9705,
445,
364,
511,
95,
67,
2978,
67,
3413,
97,
471,
511,
95,
67,
29... |
def set_cell_image(self, coordinates, image_frame): | def set_cell_image(self, coordinates, image_frame, type=None): | def set_cell_image(self, coordinates, image_frame): """Do all the magic to display an image in the cell at the given coordinates. | d4837f0d521813ba71c2eda66aabaa88a8ceca00 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/d4837f0d521813ba71c2eda66aabaa88a8ceca00/table.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3855,
67,
2730,
12,
2890,
16,
5513,
16,
1316,
67,
3789,
16,
618,
33,
7036,
4672,
3536,
3244,
777,
326,
8146,
358,
2562,
392,
1316,
316,
326,
2484,
622,
326,
864,
5513,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
444,
67,
3855,
67,
2730,
12,
2890,
16,
5513,
16,
1316,
67,
3789,
16,
618,
33,
7036,
4672,
3536,
3244,
777,
326,
8146,
358,
2562,
392,
1316,
316,
326,
2484,
622,
326,
864,
5513,
18,
2... |
assert(self.debugPrint("useDevControls()")) | assert self.notify.debugCall(id(self)) | def useDevControls(self): assert(self.debugPrint("useDevControls()")) if self.currentControls is not self.devControls: self.currentControls.disableAvatarControls() self.currentControls.setCollisionsActive(0) self.devControls.setCollisionsActive(1) self.currentControls = self.devControls if self.isEnabled: self.currentC... | b89bbac8300857fe485c1c4217180cabb1332c50 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/b89bbac8300857fe485c1c4217180cabb1332c50/ControlManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
999,
8870,
16795,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
309,
365,
18,
2972,
16795,
353,
486,
365,
18,
5206,
16795,
30,
365,
18,
2972,
16795,
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,
999,
8870,
16795,
12,
2890,
4672,
1815,
365,
18,
12336,
18,
4148,
1477,
12,
350,
12,
2890,
3719,
309,
365,
18,
2972,
16795,
353,
486,
365,
18,
5206,
16795,
30,
365,
18,
2972,
16795,
18... |
index = int(node.attributes["streamindex"].value) | index = int(node.attributes["ffmpegindex"].value) | def selectStreams(folder): """Choose the streams we want from the source file""" video = (-1, 'N/A', -1) # index, codec, ID audio1 = (-1, 'N/A', -1, 'N/A') # index, codec, ID, lang audio2 = (-1, 'N/A', -1, 'N/A') #open the XML containing information about this file infoDOM = xml.dom.minidom.parse(os.p... | a510479602c638a947005930d0187f913bc7678d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13713/a510479602c638a947005930d0187f913bc7678d/mythburn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
10301,
12,
5609,
4672,
3536,
24529,
326,
8205,
732,
2545,
628,
326,
1084,
585,
8395,
225,
6191,
565,
273,
24927,
21,
16,
296,
50,
19,
37,
2187,
300,
21,
13,
540,
468,
770,
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,
2027,
10301,
12,
5609,
4672,
3536,
24529,
326,
8205,
732,
2545,
628,
326,
1084,
585,
8395,
225,
6191,
565,
273,
24927,
21,
16,
296,
50,
19,
37,
2187,
300,
21,
13,
540,
468,
770,
16,
... |
segfit *= segment.stressmag | segfit *= segment.w_stressmag | def stresscomp(self, stresscalc, time_sec=0.0, failuremode = "tensilefracture", w_length = True, w_anisotropy = False, w_stressmag = False): # {{{2 """ Return a metric of how likely it is this lineament resulted from a given failure mode and stress field. Calculates the stresses at the midpoint of each line segment ma... | 18b622f7b03f1a0fb0d2378deaf5b1ab7b2f5964 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3464/18b622f7b03f1a0fb0d2378deaf5b1ab7b2f5964/lineament.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
384,
663,
2919,
12,
2890,
16,
384,
663,
12448,
16,
813,
67,
3321,
33,
20,
18,
20,
16,
5166,
3188,
273,
315,
88,
773,
398,
74,
14266,
594,
3113,
341,
67,
2469,
273,
1053,
16,
341,
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,
384,
663,
2919,
12,
2890,
16,
384,
663,
12448,
16,
813,
67,
3321,
33,
20,
18,
20,
16,
5166,
3188,
273,
315,
88,
773,
398,
74,
14266,
594,
3113,
341,
67,
2469,
273,
1053,
16,
341,
6... |
def _validate(self): if self.remote and self.in_pssm: raise ValueError("The remote option cannot be used with in_pssm") if self.query and self.in_pssm: raise ValueError("The query option cannot be used with in_pssm") _Ncbiblast2SeqCommandline._validate(self) | def _validate(self): if self.remote and self.in_pssm: raise ValueError("The remote option cannot be used with in_pssm") if self.query and self.in_pssm: raise ValueError("The query option cannot be used with in_pssm") _Ncbiblast2SeqCommandline._validate(self) | 284216406ecdc77062f3b9cd93bd648e08541b22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/284216406ecdc77062f3b9cd93bd648e08541b22/Applications.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
12,
2890,
4672,
309,
365,
18,
7222,
471,
365,
18,
267,
67,
84,
1049,
81,
30,
1002,
2068,
2932,
1986,
2632,
1456,
2780,
506,
1399,
598,
316,
67,
84,
1049,
81,
7923,
309,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5662,
12,
2890,
4672,
309,
365,
18,
7222,
471,
365,
18,
267,
67,
84,
1049,
81,
30,
1002,
2068,
2932,
1986,
2632,
1456,
2780,
506,
1399,
598,
316,
67,
84,
1049,
81,
7923,
309,
36... | |
self.infobar.subtitles_enabled = True def disableSubtitles(self): self.infobar.subtitles_enabled = False | if subtitles: self.infobar.subtitles_enabled = True | def enableSubtitle(self, subtitles): if self.infobar.selected_subtitle != subtitles: self.infobar.subtitles_enabled = False self.infobar.selected_subtitle = subtitles self.infobar.subtitles_enabled = True | 30562d78ee2be5fe628a88cce45f7671ff0644bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/30562d78ee2be5fe628a88cce45f7671ff0644bb/Subtitles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
1676,
2649,
12,
2890,
16,
720,
17643,
4672,
309,
365,
18,
1376,
3215,
18,
8109,
67,
1717,
2649,
480,
720,
17643,
30,
365,
18,
1376,
3215,
18,
1717,
17643,
67,
5745,
273,
1083,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4237,
1676,
2649,
12,
2890,
16,
720,
17643,
4672,
309,
365,
18,
1376,
3215,
18,
8109,
67,
1717,
2649,
480,
720,
17643,
30,
365,
18,
1376,
3215,
18,
1717,
17643,
67,
5745,
273,
1083,
36... |
break | if not checkcollision: break | def updateApp(filename): appdict = { # windows applications 'WindowsFileSystem':'^CabinetWClass', 'Chrome':'^Chrome_', 'IE':'^IEFrame.*Windows Internet Explorer\r$', 'Notepad':'^Notepad', 'WindowsPhotoViewer':'^Photo_Lightweight_Viewer', 'TTPlayer':'^TTPlayer_', 'WindowsConsole':'^ConsoleWindowClass', 'TortoiseSVN':'.*... | cb3cc6be614af2edd89a16a6fd54ab36f623d036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8373/cb3cc6be614af2edd89a16a6fd54ab36f623d036/day.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
3371,
12,
3459,
4672,
595,
1576,
273,
288,
468,
9965,
12165,
296,
10399,
11785,
11,
2497,
66,
39,
378,
23864,
59,
797,
2187,
296,
28548,
11,
2497,
66,
28548,
67,
2187,
296,
8732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
3371,
12,
3459,
4672,
595,
1576,
273,
288,
468,
9965,
12165,
296,
10399,
11785,
11,
2497,
66,
39,
378,
23864,
59,
797,
2187,
296,
28548,
11,
2497,
66,
28548,
67,
2187,
296,
8732,
... |
cur = self.cursor() | cur = self.cursor(lock=True) | def save_channel(self, c, bulk=False): if c.id is None: c.id = self.find_channel_id(c.url) | 8b4bdc092a652d553b2313fed64d96bca4185538 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12778/8b4bdc092a652d553b2313fed64d96bca4185538/dbsqlite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
4327,
12,
2890,
16,
276,
16,
8280,
33,
8381,
4672,
309,
276,
18,
350,
353,
599,
30,
276,
18,
350,
273,
365,
18,
4720,
67,
4327,
67,
350,
12,
71,
18,
718,
13,
2,
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,
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,
1923,
67,
4327,
12,
2890,
16,
276,
16,
8280,
33,
8381,
4672,
309,
276,
18,
350,
353,
599,
30,
276,
18,
350,
273,
365,
18,
4720,
67,
4327,
67,
350,
12,
71,
18,
718,
13,
2,
-100,
-... |
r=self.ul(r,p,self._str(s[1],level)) | if s[0][-2:]=='::' and s[1]: ps=self.pre(s[1]) else: ps=self._str(s[1],level) r=self.ul(r,p,ps) continue ts_results = ol(s[0], (3,)) if ts_results: p = ts_results[1] if s[0][-2:]=='::' and s[1]: ps=self.pre(s[1]) else: ps=self._str(s[1],level) r=self.ol(r,p,ps) continue ts_results = olp(s[0], (1,)) if ts_results: p = t... | def _str(self,structure,level, # Static bullet=ts_regex.compile('[ \t\n]*[o*-][ \t\n]+\([^\0]*\)' ).match_group, example=ts_regex.compile('[\0- ]examples?:[\0- ]*$' ).search, dl=ts_regex.compile('\([^\n]+\)[ \t]+--[ \t\n]+\([^\0]*\)' ).match_group, nl=ts_regex.compile('\n').search, ol=ts_regex.compile( '[ \t]*\(\([0-9]... | 2e04a40b8274dd6418b2fd9e9a73f746b49f1e40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2e04a40b8274dd6418b2fd9e9a73f746b49f1e40/StructuredText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
701,
12,
2890,
16,
7627,
16,
2815,
16,
468,
10901,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
12,
2890,
16,
7627,
16,
2815,
16,
468,
10901,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
... |
self.handle_decl(rawdata[i+2:j]) | data = rawdata[i+2:j] if decltype == "doctype": self.handle_decl(data) else: self.unknown_decl(data) | def parse_declaration(self, i): # This is some sort of declaration; in "HTML as # deployed," this should only be the document type # declaration ("<!DOCTYPE html...>"). rawdata = self.rawdata j = i + 2 assert rawdata[i:j] == "<!", "unexpected call to parse_declaration" if rawdata[j:j+1] in ("-", ""): # Start of comment... | 68eac2b574ed837099998d68ea592d02bd8ca129 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/68eac2b574ed837099998d68ea592d02bd8ca129/HTMLParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
22448,
12,
2890,
16,
277,
4672,
468,
1220,
353,
2690,
1524,
434,
8266,
31,
316,
315,
4870,
487,
468,
19357,
10837,
333,
1410,
1338,
506,
326,
1668,
618,
468,
8266,
7566,
5586,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22448,
12,
2890,
16,
277,
4672,
468,
1220,
353,
2690,
1524,
434,
8266,
31,
316,
315,
4870,
487,
468,
19357,
10837,
333,
1410,
1338,
506,
326,
1668,
618,
468,
8266,
7566,
5586,
... |
dd, mm, yy, tm, tz = mm, dd, tm, yy, tz | dd, mm = mm, string.lower(dd) | def parsedate_tz(data): """Convert a date string to a time tuple. Accounts for military timezones. """ data = string.split(data) if data[0][-1] == ',' or data[0] in _daynames: # There's a dayname here. Skip it del data[0] if len(data) == 3: # RFC 850 date, deprecated stuff = string.split(data[0], '-') if len(stuff) ==... | 7652f21688fbd39080af323c6ff8428682c31296 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/7652f21688fbd39080af323c6ff8428682c31296/rfc822.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
533,
18,
4939,
12,
892,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
712,
67,
12994,
12,
892,
4672,
3536,
2723,
279,
1509,
533,
358,
279,
813,
3193,
18,
225,
30849,
364,
312,
330,
305,
814,
25954,
18,
3536,
501,
273,
533,
18,
4939,
12,
892,
13,
... |
if flags.host: host = flags.host elif flags.sandbox: host = SANDBOX_PATH else: host = FLUIDDB_PATH db = FluidDB (host=host) | db = FluidDB (host=choose_host (), debug=choose_debug_mode ()) | def testUntagByIDVerboseShow (self): self.untagTest ('id') self.showUntagSuccessTest ('id') | 04d94ed665139d37af34b9ddfd3992b1ecc54879 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12637/04d94ed665139d37af34b9ddfd3992b1ecc54879/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
57,
496,
346,
13331,
14489,
5706,
261,
2890,
4672,
365,
18,
318,
2692,
4709,
7707,
350,
6134,
365,
18,
4500,
57,
496,
346,
4510,
4709,
7707,
350,
6134,
2,
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,
1842,
57,
496,
346,
13331,
14489,
5706,
261,
2890,
4672,
365,
18,
318,
2692,
4709,
7707,
350,
6134,
365,
18,
4500,
57,
496,
346,
4510,
4709,
7707,
350,
6134,
2,
-100,
-100,
-100,
-100,
... |
htmlfile = publish_url+'/GRB%s/pylal_exttrig_llsummary_%s.html' % (grb.name, grb.name) htmlfile_inj = publish_url+'/GRB%s/pylal_exttrig_llsummary_%s_inj.html' % (grb.name, grb.name) | htmlfile = publish_url+'/GRB%s/OPENBOX/pylal_exttrig_llsummary_%s-OPENBOX.html' % \ (grb.name, grb.name) htmlfile_inj = publish_url+'/GRB%s/OPENBOX/%s-pylal_exttrig_llsummary_GRB%s_inj-%s.html' %\ (grb.name, ifos, grb.name, grb.get_time_string()) | coldef = '150, 150, 150' | f67b360b87008c18913a89b815227b5ee40432fa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3592/f67b360b87008c18913a89b815227b5ee40432fa/pylal_exttrig_llutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
645,
536,
273,
296,
23014,
16,
18478,
16,
18478,
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,
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,
645,
536,
273,
296,
23014,
16,
18478,
16,
18478,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
include_dirs=['/usr/include/cairo'], | include_dirs=pax_include_dirs, | def file_scan(cat): proc = os.popen("find "+cat+" -type f|grep -v \.svn|grep -v \.xvpics|grep -v \.py$|grep -v \.c$|sed 's/^/include /g'>>MANIFEST.in") proc.close() | fc528334d9c02d33add522bf3cd91b13fc8d4661 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3123/fc528334d9c02d33add522bf3cd91b13fc8d4661/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
585,
67,
9871,
12,
2574,
4672,
5418,
273,
1140,
18,
84,
3190,
2932,
4720,
13773,
2574,
9078,
300,
723,
284,
96,
11556,
84,
300,
90,
15558,
31505,
96,
11556,
84,
300,
90,
15558,
92,
201... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
585,
67,
9871,
12,
2574,
4672,
5418,
273,
1140,
18,
84,
3190,
2932,
4720,
13773,
2574,
9078,
300,
723,
284,
96,
11556,
84,
300,
90,
15558,
31505,
96,
11556,
84,
300,
90,
15558,
92,
201... |
weave_timer = timeit.Timer('blitz("result=%s")' % expr, setup) weave_time = weave_timer.timeit(number=iterations) print "Weave:", weave_time/iterations print "Speed-up of weave over numpy:", numpy_time/weave_time | try: weave_timer = timeit.Timer('blitz("result=%s")' % expr, setup) weave_time = weave_timer.timeit(number=iterations) print "Weave:", weave_time/iterations print "Speed-up of weave over numpy:", numpy_time/weave_time except: print "Skipping weave timing" | def compare_times(setup, expr): print "Expression:", expr numpy_timer = timeit.Timer(expr, setup) numpy_time = numpy_timer.timeit(number=iterations) print 'numpy:', numpy_time / iterations weave_timer = timeit.Timer('blitz("result=%s")' % expr, setup) weave_time = weave_timer.timeit(number=iterations) print "Weave:",... | cef8bae794a542d130ab84a2c6b7ef5ba68e8ada /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cef8bae794a542d130ab84a2c6b7ef5ba68e8ada/timing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
8293,
12,
8401,
16,
3065,
4672,
1172,
315,
2300,
2773,
16,
3065,
225,
3972,
67,
12542,
273,
813,
305,
18,
6777,
12,
8638,
16,
3875,
13,
3972,
67,
957,
273,
3972,
67,
12542,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3400,
67,
8293,
12,
8401,
16,
3065,
4672,
1172,
315,
2300,
2773,
16,
3065,
225,
3972,
67,
12542,
273,
813,
305,
18,
6777,
12,
8638,
16,
3875,
13,
3972,
67,
957,
273,
3972,
67,
12542,
... |
result = self._expandString(data, maps['str'], maps['bin']) | if data.find(r'${')>-1: result = self._expandString(data, maps['str'], maps['bin']) if result == data: self._console.warn("! Empty expansion for macro in config value: \"%s\"" % data) | def _expandMacrosInValues(self, data, maps): """ apply macro expansion on arbitrary values; takes care of recursive data like lists and dicts; only actually applies macros when a string is encountered on the way (look for calls to _expandString())""" result = data # intialize result # arrays if isinstance(data, types... | b6a0999cc00f15b26b4cae30a4cb960176215c2d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/b6a0999cc00f15b26b4cae30a4cb960176215c2d/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12320,
9990,
6973,
382,
1972,
12,
2890,
16,
501,
16,
7565,
4672,
3536,
2230,
11522,
17965,
603,
11078,
924,
31,
5530,
7671,
434,
5904,
501,
3007,
6035,
471,
15838,
31,
1338,
6013,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12320,
9990,
6973,
382,
1972,
12,
2890,
16,
501,
16,
7565,
4672,
3536,
2230,
11522,
17965,
603,
11078,
924,
31,
5530,
7671,
434,
5904,
501,
3007,
6035,
471,
15838,
31,
1338,
6013,
1... |
extras='geo' | extras='geo, tags' | def get(self): token = self.request.get("token") nsid = self.request.get("nsid") page = self.request.get("page") | 228425283fae59509f03a8940ec1965e88957938 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11110/228425283fae59509f03a8940ec1965e88957938/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
1147,
273,
365,
18,
2293,
18,
588,
2932,
2316,
7923,
3153,
350,
273,
365,
18,
2293,
18,
588,
2932,
2387,
350,
7923,
1363,
273,
365,
18,
2293,
18,
588,
2932,
2433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
1147,
273,
365,
18,
2293,
18,
588,
2932,
2316,
7923,
3153,
350,
273,
365,
18,
2293,
18,
588,
2932,
2387,
350,
7923,
1363,
273,
365,
18,
2293,
18,
588,
2932,
2433,
... |
control = self.br.find_control("custom_sb1",type="select") site_id = control.value | def getRequests(self): requests = [] if self.isLoggedIn: self.selectQueryForm() self.createValueDicts() self.br.select_form(name="bug_form") response = self.br.submit() | f494c553772420aaee1480d55c3c1d2bab6bcc05 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/f494c553772420aaee1480d55c3c1d2bab6bcc05/RequestQuery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4328,
87,
12,
2890,
4672,
3285,
273,
5378,
225,
309,
365,
18,
291,
29327,
30,
365,
18,
4025,
1138,
1204,
1435,
365,
18,
2640,
620,
5014,
87,
1435,
225,
365,
18,
2848,
18,
4025,
67,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4328,
87,
12,
2890,
4672,
3285,
273,
5378,
225,
309,
365,
18,
291,
29327,
30,
365,
18,
4025,
1138,
1204,
1435,
365,
18,
2640,
620,
5014,
87,
1435,
225,
365,
18,
2848,
18,
4025,
67,
6... | |
sage: K.hilbert_class_polynomial() | sage: K.hilbert_class_field_defining_polynomial() | def hilbert_class_polynomial(self): r""" Returns a polynomial over $\QQ$ whose roots generate the Hilbert class field of this quadratic field. | 0c1f25893c00603ce1c1f8a794a96948562bfb5a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/0c1f25893c00603ce1c1f8a794a96948562bfb5a/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
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,
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,
366,
330,
25925,
67,
1106,
67,
3915,
13602,
12,
2890,
4672,
436,
8395,
2860,
279,
16991,
1879,
271,
64,
53,
53,
8,
8272,
12876,
2103,
326,
670,
330,
25925,
667,
652,
434,
333,
26146,
6... |
self.dbh.execute("""insert into msn_users set inode=%r,packet_id=%r,transaction_id=%r,session_id=%r,nick=%r,user_data_type=%r,user_data=%r""",(self.fd.inode,self.get_packet_id(),words[1],self.session_id,words[4],'user_msn_passport',words[4])) self.dbh.execute("""insert into msn_users set inode=%r,packet_id=%r,transacti... | self.insert_user_data(words[4],'user_msn_passport',words[4],words[1]) self.insert_user_data(words[4],'url_enc_display_name',urllib.unquote(words[5]),words[1]) | def IRO(self): """ List of current participants. | cf7fac3ff0c735f3f514d4f41c9e494e2787883c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/cf7fac3ff0c735f3f514d4f41c9e494e2787883c/MSN.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
467,
1457,
12,
2890,
4672,
3536,
987,
434,
783,
22346,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
467,
1457,
12,
2890,
4672,
3536,
987,
434,
783,
22346,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for the curve `y^2 + y = x^3 - x^2 - 120x - 2183`.:: | for the curve `y^2 + y = x^3 - x^2 - 120x - 2183`:: | def certain(self): r""" True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain` using the default parameters. | c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/c2ebf8bfa15bcdb4318f58bfcf2982e3a69cce87/interface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8626,
12,
2890,
4672,
436,
8395,
1053,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
68,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305,
28288,
15415,
67,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8626,
12,
2890,
4672,
436,
8395,
1053,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
68,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305,
28288,
15415,
67,
5... |
super(TransactionEntry, self).save(*kargs, **kwargs) | super(TransactionEntry, self).save(*args, **kwargs) | def save(self, *args, **kwargs): if self.transaction.is_rejected(): raise InvalidTransactionEntry( 'Can not add entries to rejected transactions') if self.transaction.is_committed(): raise InvalidTransactionEntry( 'Can not add entries to committed transactions') | 9d8d59fc298fec024d9d9479bc3f7e7f4d8bb047 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/9d8d59fc298fec024d9d9479bc3f7e7f4d8bb047/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
365,
18,
7958,
18,
291,
67,
266,
6059,
13332,
1002,
1962,
3342,
1622,
12,
296,
2568,
486,
527,
3222,
358,
11876,
8938,
6134,
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,
1923,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
309,
365,
18,
7958,
18,
291,
67,
266,
6059,
13332,
1002,
1962,
3342,
1622,
12,
296,
2568,
486,
527,
3222,
358,
11876,
8938,
6134,
3... |
path = path.replace('/', os.sep) | path = self._absnorm(path) | def _list_dir(self, path, pattern=None, pattern_type='simple', absolute=False): path = path.replace('/', os.sep) if not os.path.isdir(path): raise DataError("Directory '%s' does not exist" % path) items = os.listdir(path) if pattern: items = BUILTIN._filter_lines(items, pattern, pattern_type) items.sort() if utils.to_b... | 8394d54a14ff248630063a73df253438178dff53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/8394d54a14ff248630063a73df253438178dff53/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
67,
1214,
12,
2890,
16,
589,
16,
1936,
33,
7036,
16,
1936,
67,
723,
2218,
9647,
2187,
4967,
33,
8381,
4672,
589,
273,
365,
6315,
5113,
7959,
12,
803,
13,
309,
486,
1140,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1098,
67,
1214,
12,
2890,
16,
589,
16,
1936,
33,
7036,
16,
1936,
67,
723,
2218,
9647,
2187,
4967,
33,
8381,
4672,
589,
273,
365,
6315,
5113,
7959,
12,
803,
13,
309,
486,
1140,
1... |
osconfig.charset = self.CODEPAGE_CHARSET.get(codepage) | self.osconfig.charset = self.CODEPAGE_CHARSET.get(codepage) | def createFields(self): yield UInt32(self, "size") yield UInt32(self, "property_count") for index in xrange(self["property_count"].value): yield PropertyIndex(self, "property_index[]") osconfig = self.parent.osconfig for index in xrange(self["property_count"].value): findex = self["property_index[%u]" % index] self.see... | 8db210332f4549d89c3eb0ed45351a84dbc75623 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9327/8db210332f4549d89c3eb0ed45351a84dbc75623/msoffice_summary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
1467,
7923,
2824,
29810,
1578,
12,
2890,
16,
315,
4468,
67,
1883,
7923,
364,
770,
316,
12314,
12,
2890,
9614,
4468,
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,
752,
2314,
12,
2890,
4672,
2824,
29810,
1578,
12,
2890,
16,
315,
1467,
7923,
2824,
29810,
1578,
12,
2890,
16,
315,
4468,
67,
1883,
7923,
364,
770,
316,
12314,
12,
2890,
9614,
4468,
67,
... |
errStr = "ReplicaManager.__cleanDirectory: Write access not permitted for this credential." gLogger.error(errStr,dir) return S_ERROR(errStr) res = self.__getCatalogDirectoryContents([dir]) | errStr = "ReplicaManager.__cleanDirectory: Write access not permitted for this credential." gLogger.error( errStr, dir ) return S_ERROR( errStr ) res = self.__getCatalogDirectoryContents( [dir] ) | def __cleanDirectory(self,dir): res = self.__verifyOperationPermission(dir) if not res['OK']: return res if not res['Value']: errStr = "ReplicaManager.__cleanDirectory: Write access not permitted for this credential." gLogger.error(errStr,dir) return S_ERROR(errStr) res = self.__getCatalogDirectoryContents([dir]) if no... | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6200,
2853,
12,
2890,
16,
1214,
4672,
400,
273,
365,
16186,
8705,
2988,
5041,
12,
1214,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
30,
393... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6200,
2853,
12,
2890,
16,
1214,
4672,
400,
273,
365,
16186,
8705,
2988,
5041,
12,
1214,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
309,
486,
400,
3292,
620,
3546,
30,
393... |
atoms.r_old = atoms.r.copy() atoms.f_old = atoms.f.copy() | self.r_old = self.r.copy() self.f_old = self.f.copy() | def step(self, f): atoms = self.atoms self.ni = atoms.nimages-2 # try: atoms.imax # except: atoms.imax=0 # if(not self.ni):atoms.imax=1 g = open('out','w') atoms.r = npy.zeros((self.ni, atoms.natoms, self.dim), 'd') for i in range(1, atoms.nimages-1): atoms.r[i-1] = atoms.images[i].get_positions() print >> g,'atoms.r',... | 1a55a570d87917cc147bfa837a3336109417cb92 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5572/1a55a570d87917cc147bfa837a3336109417cb92/glbfgs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2235,
12,
2890,
16,
284,
4672,
9006,
273,
365,
18,
14937,
365,
18,
15834,
273,
9006,
18,
82,
7369,
17,
22,
468,
775,
30,
9006,
18,
381,
651,
468,
1335,
30,
9006,
18,
381,
651,
33,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.