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 |
|---|---|---|---|---|---|---|
_name = 'Cylindrical coordinate system' all_vars = ['rho', 'phi', 'z'] def gen_transform(self, rho=None, phi=None, z=None): """ | def transform(self, radius=None, azimuth=None, height=None): """ A cylindrical coordinates transform. | def gen_transform(self, r=None, theta=None, phi=None): """ EXAMPLE:: | 85811d8c24ec26acc8a960fadc0b24274c01a5a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/85811d8c24ec26acc8a960fadc0b24274c01a5a8/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
67,
6547,
12,
2890,
16,
436,
33,
7036,
16,
7338,
33,
7036,
16,
7706,
33,
7036,
4672,
3536,
5675,
21373,
2866,
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,
1652,
3157,
67,
6547,
12,
2890,
16,
436,
33,
7036,
16,
7338,
33,
7036,
16,
7706,
33,
7036,
4672,
3536,
5675,
21373,
2866,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def docfunction(self, object, funcs={}, classes={}, methods={}, clname=''): """Produce HTML documentation for a function object.""" args, varargs, varkw, defaults = inspect.getargspec(object) argspec = inspect.formatargspec( args, varargs, varkw, defaults, formatvalue=self.formatvalue) if object.__name__ == '<lambda>'... | def docroutine(self, object, funcs={}, classes={}, methods={}, clname=''): """Produce HTML documentation for a function or method object.""" if inspect.ismethod(object): object = object.im_func if inspect.isbuiltin(object): decl = '<a name="%s"><strong>%s</strong>(...)</a>\n' % ( clname + '-' + object.__name__, object.... | def docfunction(self, object, funcs={}, classes={}, methods={}, clname=''): """Produce HTML documentation for a function object.""" args, varargs, varkw, defaults = inspect.getargspec(object) argspec = inspect.formatargspec( args, varargs, varkw, defaults, formatvalue=self.formatvalue) | c59006cf0425a2636c8284ef2601f7f489fad815 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c59006cf0425a2636c8284ef2601f7f489fad815/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
915,
12,
2890,
16,
733,
16,
15630,
28793,
3318,
28793,
2590,
28793,
927,
529,
2218,
11,
4672,
3536,
25884,
3982,
7323,
364,
279,
445,
733,
12123,
833,
16,
19732,
16,
569,
9987,
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,
997,
915,
12,
2890,
16,
733,
16,
15630,
28793,
3318,
28793,
2590,
28793,
927,
529,
2218,
11,
4672,
3536,
25884,
3982,
7323,
364,
279,
445,
733,
12123,
833,
16,
19732,
16,
569,
9987,
16,
... |
empty = item.get_data('empty') | empty = gcompris.utils.canvas_get_property(item, "empty") | def item_type(self, item): | 1d7241368577461cf0bda1e091d68c46bc01f402 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/1d7241368577461cf0bda1e091d68c46bc01f402/anim.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
67,
723,
12,
2890,
16,
761,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
761,
67,
723,
12,
2890,
16,
761,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "script is " + script | def run(self): """sends off its current batch of commands off to the server to run""" script = self.buildScript() print "script is " + script self.executeBuilt(script) | ca4c3eead6961bf4a2f9b759b6d76a1ac04d6f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5203/ca4c3eead6961bf4a2f9b759b6d76a1ac04d6f44/ssdwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
4661,
87,
3397,
2097,
783,
2581,
434,
4364,
3397,
358,
326,
1438,
358,
1086,
8395,
2728,
273,
365,
18,
3510,
3651,
1435,
282,
365,
18,
8837,
16409,
12,
4263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
12,
2890,
4672,
3536,
4661,
87,
3397,
2097,
783,
2581,
434,
4364,
3397,
358,
326,
1438,
358,
1086,
8395,
2728,
273,
365,
18,
3510,
3651,
1435,
282,
365,
18,
8837,
16409,
12,
4263,
... | |
cty.c_int, [cty.POINTER(FL_OBJECT)], | cty.c_int, [cty.POINTER(FL_OBJECT)], | def fl_set_counter_filter(ob, py_filter): """ fl_set_counter_filter(ob, filter) """ c_filter = FL_VAL_FILTER(py_filter) _cfunc_refs[get_rand_dictkey()] = c_filter _fl_set_counter_filter(ob, c_filter) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
7476,
67,
2188,
12,
947,
16,
2395,
67,
2188,
4672,
3536,
1183,
67,
542,
67,
7476,
67,
2188,
12,
947,
16,
1034,
13,
3536,
225,
276,
67,
2188,
273,
31358,
67,
2669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
67,
542,
67,
7476,
67,
2188,
12,
947,
16,
2395,
67,
2188,
4672,
3536,
1183,
67,
542,
67,
7476,
67,
2188,
12,
947,
16,
1034,
13,
3536,
225,
276,
67,
2188,
273,
31358,
67,
2669,
... |
self.actionCompizWM=QAction("Compiz",0,self) self.actionCompizWM.setToggleAction(True) if active_wm == compiz: self.actionCompizWM.toggle() def compiz_slot(): set_setting('window manager', 'active wm', compiz) start_wm() self.connect(self.actionCompizWM,SIGNAL("activated()"),compiz_slot) self.actionMetacityWM=QAction(... | def mousePressEvent(self, e): self.actionCompizWM=QAction("Compiz",0,self) self.actionCompizWM.setToggleAction(True) if active_wm == compiz: self.actionCompizWM.toggle() def compiz_slot(): set_setting('window manager', 'active wm', compiz) start_wm() self.connect(self.actionCompizWM,SIGNAL("activated()"),compiz_slot) ... | 06c0809ecced383d409950e61191dfef8a7a661c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/909/06c0809ecced383d409950e61191dfef8a7a661c/fusion-icon-qt3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
11840,
1133,
12,
2890,
16,
425,
4672,
225,
365,
18,
1128,
2945,
452,
25173,
33,
53,
1803,
2932,
2945,
452,
3113,
20,
16,
2890,
13,
365,
18,
1128,
2945,
452,
25173,
18,
542,
17986... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7644,
11840,
1133,
12,
2890,
16,
425,
4672,
225,
365,
18,
1128,
2945,
452,
25173,
33,
53,
1803,
2932,
2945,
452,
3113,
20,
16,
2890,
13,
365,
18,
1128,
2945,
452,
25173,
18,
542,
17986... | |
dbg ('VSGConf: Profile requested is: "%s"'%profile) if not profile: profile = self.client.get_string (self._gt_dir + '/global/default_profile') dbg ('VSGConf: Profile bet on is: "%s"'%profile) | dbg ('VSGConf: Profile bet on is: "%s"'%profileName) | def __init__ (self, profile = None): self.type = "GConf" self.inactive = False | 6d11f8456da86dcf20daec1b753c0953ba2335b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1032/6d11f8456da86dcf20daec1b753c0953ba2335b7/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3042,
273,
599,
4672,
365,
18,
723,
273,
315,
43,
3976,
6,
365,
18,
27366,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3042,
273,
599,
4672,
365,
18,
723,
273,
315,
43,
3976,
6,
365,
18,
27366,
273,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
cmdline = [ "./simulator" ] + map(substFOO, opts) | cmdline = [ "./" + simulatorCmd ] + map(substFOO, opts) | def substFOO(str): if str.startswith("FOO"): return self.testname + str[3:] return str | f0ebab5b084ad3ea48f69558a275ad901455bd75 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f0ebab5b084ad3ea48f69558a275ad901455bd75/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27750,
3313,
51,
12,
701,
4672,
309,
609,
18,
17514,
1918,
2932,
3313,
51,
6,
4672,
327,
365,
18,
3813,
529,
397,
609,
63,
23,
26894,
327,
609,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
27750,
3313,
51,
12,
701,
4672,
309,
609,
18,
17514,
1918,
2932,
3313,
51,
6,
4672,
327,
365,
18,
3813,
529,
397,
609,
63,
23,
26894,
327,
609,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
data = data + self.serial.read(n) | data = data + self.serial.read(n) | def reader(self): """loop forever and copy serial->socket""" while self.alive: try: data = self.serial.read(1) #read one, blocking n = self.serial.inWaiting() #look if there is more if n: data = data + self.serial.read(n) #and get as much as possible if data: self.socket.sendall(data) ... | 8c80bbcfa2dee7de96e5435fdcc0741993aac1ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10955/8c80bbcfa2dee7de96e5435fdcc0741993aac1ac/tcp_serial_redirect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2949,
12,
2890,
4672,
3536,
6498,
21238,
471,
1610,
2734,
2122,
7814,
8395,
1323,
365,
18,
11462,
30,
775,
30,
501,
273,
365,
18,
8818,
18,
896,
12,
21,
13,
2868,
468,
896,
1245,
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,
2949,
12,
2890,
4672,
3536,
6498,
21238,
471,
1610,
2734,
2122,
7814,
8395,
1323,
365,
18,
11462,
30,
775,
30,
501,
273,
365,
18,
8818,
18,
896,
12,
21,
13,
2868,
468,
896,
1245,
16,
... |
d = qt.Data(self._entry_map[fn].get_filename()) qt.plot3(d, name=name, coorddims=coorddims, valdim=valdim, clear=clear) | fullfn = self._entry_map[fn].get_filename() cmd = "qt.plot3(qt.Data(%r), name=%r, style=%r, coorddim=%r, valdim=%r, ofs=%r, traceofs=%r, clear=%r, ret=False)" % (fullfn, name, style, coorddims, valdim, ofs, traceofs, clear); qt.interpreter.cmd(cmd, callback=lambda x: self._plot3d_button.set_sensitive(True)) | def _plot3d_clicked_cb(self, sender): name = self._plot_name.get_text() clear = self._clear_check.get_active() files = self._get_selected_files() cols = self._columns.get_text().split(',') try: coorddims = (int(cols[0]), int(cols[1])) valdim = int(cols[2]) except: if cols != [""]: logging.warning('invalid column specif... | 8935522e8ec507931ce9d0737d4837329b8b1363 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6471/8935522e8ec507931ce9d0737d4837329b8b1363/data_window.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4032,
23,
72,
67,
7475,
329,
67,
7358,
12,
2890,
16,
5793,
4672,
508,
273,
365,
6315,
4032,
67,
529,
18,
588,
67,
955,
1435,
2424,
273,
365,
6315,
8507,
67,
1893,
18,
588,
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,
389,
4032,
23,
72,
67,
7475,
329,
67,
7358,
12,
2890,
16,
5793,
4672,
508,
273,
365,
6315,
4032,
67,
529,
18,
588,
67,
955,
1435,
2424,
273,
365,
6315,
8507,
67,
1893,
18,
588,
67,
... |
(self.coint.type,sngl.ifo,sngl.ifo,timeString) | (self.coinc.type,sngl.ifo,sngl.ifo,timeString) | def get_analyzeQscan_RDS(self): """ """ #analyseQscan.py_FG_RDS_full_data/H1-analyseQscan_H1_931176926_116_rds-unspecified-gpstime.cache cacheList=list() cacheFiles=list() for sngl in self.coinc.sngls: timeString=str(float(sngl.time)).replace(".","_") myCacheMask="*%s*/%s-analyseQscan_%s_%s_rds*.cache"%\ (self.coint.ty... | 04ee230753c51cc2fa6261a2cf36152529f9394e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/04ee230753c51cc2fa6261a2cf36152529f9394e/makeCheckListWiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
304,
9508,
53,
9871,
67,
54,
3948,
12,
2890,
4672,
3536,
3536,
468,
304,
3450,
307,
53,
9871,
18,
2074,
67,
42,
43,
67,
54,
3948,
67,
2854,
67,
892,
19,
44,
21,
17,
304,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
304,
9508,
53,
9871,
67,
54,
3948,
12,
2890,
4672,
3536,
3536,
468,
304,
3450,
307,
53,
9871,
18,
2074,
67,
42,
43,
67,
54,
3948,
67,
2854,
67,
892,
19,
44,
21,
17,
304,
... |
def setUpClass(self): self.store = ContactStore() for provider in providers: self.store.add_provider(provider) | def setUpOnce(self): global store, numtests if store is None: store = ContactStore() map(store.add_provider, providers) | def setUpClass(self): self.store = ContactStore() for provider in providers: self.store.add_provider(provider) | 46114e08afb5fb6ec017e740b9b371bc9da3c059 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12036/46114e08afb5fb6ec017e740b9b371bc9da3c059/test_contact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
797,
12,
2890,
4672,
365,
18,
2233,
273,
13329,
2257,
1435,
364,
2893,
316,
9165,
30,
365,
18,
2233,
18,
1289,
67,
6778,
12,
6778,
13,
2,
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,
24292,
797,
12,
2890,
4672,
365,
18,
2233,
273,
13329,
2257,
1435,
364,
2893,
316,
9165,
30,
365,
18,
2233,
18,
1289,
67,
6778,
12,
6778,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
suffix = IsDebug() | suffix = IsDebug() | def LocatePythonCore(searchPaths): """Locate and validate the core Python directories. Returns a list of paths that should be used as the core (ie, un-named) portion of the Python path. """ import win32api, win32con, string, os, regutil currentPath = regutil.GetRegisteredNamedPath(None) if currentPath: presearchPaths ... | 5984d683556527b7db628b1403c6908f85705f8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/5984d683556527b7db628b1403c6908f85705f8a/regsetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2851,
340,
15774,
4670,
12,
3072,
4466,
4672,
3536,
1333,
340,
471,
1954,
326,
2922,
6600,
6402,
18,
225,
2860,
279,
666,
434,
2953,
716,
1410,
506,
1399,
487,
326,
2922,
261,
1385,
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,
2851,
340,
15774,
4670,
12,
3072,
4466,
4672,
3536,
1333,
340,
471,
1954,
326,
2922,
6600,
6402,
18,
225,
2860,
279,
666,
434,
2953,
716,
1410,
506,
1399,
487,
326,
2922,
261,
1385,
16,
... |
except ConfigurationError, v: | except (ConfigurationError, ValueError), v: | def fromUnicode(self, u): name = str(u.strip()) | 2665ccde6762e8e9f3d2744fb795f9c4c2d125e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9537/2665ccde6762e8e9f3d2744fb795f9c4c2d125e1/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
16532,
12,
2890,
16,
582,
4672,
508,
273,
609,
12,
89,
18,
6406,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
16532,
12,
2890,
16,
582,
4672,
508,
273,
609,
12,
89,
18,
6406,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
''' % (self.name, email, phone, hours, address, homepage, image, notes) | ''' % notes | def _load(self): parts = ('FORMALTITLE', 'GIVEN', 'FAMILY') data_parts = [self.xml.find('.//%s' % p).attrib['value'] for p in parts] | 7668dc2dcbb21799cf97dc3780efb3b8221c8f80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/7668dc2dcbb21799cf97dc3780efb3b8221c8f80/bb9_course.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
4672,
2140,
273,
7707,
4983,
1013,
14123,
2187,
296,
43,
8188,
1157,
2187,
296,
25002,
25554,
6134,
501,
67,
6019,
273,
306,
2890,
18,
2902,
18,
4720,
2668,
18,
759,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
4672,
2140,
273,
7707,
4983,
1013,
14123,
2187,
296,
43,
8188,
1157,
2187,
296,
25002,
25554,
6134,
501,
67,
6019,
273,
306,
2890,
18,
2902,
18,
4720,
2668,
18,
759,
... |
return re.match('(.*)\\.mo', filename) | return re.match('(.*)\\.mo$', filename) | def isMoFile(filename): """ Does the given filename look like a gettext mo file? """ return re.match('(.*)\\.mo', filename) | e3230b35cf0a50384c3b230b4b4134bcba10c503 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10139/e3230b35cf0a50384c3b230b4b4134bcba10c503/i18n.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15707,
83,
812,
12,
3459,
4672,
3536,
9637,
326,
864,
1544,
2324,
3007,
279,
24972,
7344,
585,
35,
3536,
327,
283,
18,
1916,
2668,
14361,
19978,
8683,
8,
2187,
1544,
13,
225,
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,
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,
15707,
83,
812,
12,
3459,
4672,
3536,
9637,
326,
864,
1544,
2324,
3007,
279,
24972,
7344,
585,
35,
3536,
327,
283,
18,
1916,
2668,
14361,
19978,
8683,
8,
2187,
1544,
13,
225,
2,
-100,
... |
output = p.stdout.read() begin = output.find(_expected_output_preamble) end = output.rfind(_expected_output_postamble) if (begin < 0 or end < 0): raise Exception ("test_shell returned invalid output:\n\n" + output) begin += len(_expected_output_preamble) try: output_parsed = json.loads(output[begin:end]) except V... | result = p.stdout.read() content_start = result.find(_expected_output_preamble) content_end = result.find(_expected_output_postamble) if (content_start < 0): if (result.startswith(" raise Exception("test_shell returned TEST_TIMED_OUT.\n" + "Their was probably a problem with generating the " + "page\n" + "Try copying ... | def RenderPages(names, test_shell): """ Calls test_shell --layout-tests .../generator.html?<names> and writes the results to .../docs/<name>.html """ if not names: raise Exception("RenderPage called with empty names param") generator_url = "file:" + urllib.pathname2url(_generator_html) generator_url += "?" + ",".join(... | 890a7e0412d44722ded596dbde2d11923542d26f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/890a7e0412d44722ded596dbde2d11923542d26f/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6987,
5716,
12,
1973,
16,
1842,
67,
10304,
4672,
3536,
23665,
1842,
67,
10304,
1493,
6741,
17,
16341,
1372,
19,
8812,
18,
2620,
35,
32,
1973,
34,
471,
7262,
326,
1686,
358,
1372,
19,
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,
6987,
5716,
12,
1973,
16,
1842,
67,
10304,
4672,
3536,
23665,
1842,
67,
10304,
1493,
6741,
17,
16341,
1372,
19,
8812,
18,
2620,
35,
32,
1973,
34,
471,
7262,
326,
1686,
358,
1372,
19,
8... |
self.speed = 0 | self.speed = 0 | def update(self, rang): """ Updates the car speed and position, manages blocked pathways and queues. rang (int) : position on the road (0 : last in) """ | 9c3560fdc6a72ed356876ee059ee66056da32e76 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4798/9c3560fdc6a72ed356876ee059ee66056da32e76/init.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
436,
539,
4672,
3536,
15419,
326,
5926,
8632,
471,
1754,
16,
20754,
281,
14547,
589,
3052,
471,
11897,
18,
436,
539,
565,
261,
474,
13,
282,
294,
282,
1754,
603,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
12,
2890,
16,
436,
539,
4672,
3536,
15419,
326,
5926,
8632,
471,
1754,
16,
20754,
281,
14547,
589,
3052,
471,
11897,
18,
436,
539,
565,
261,
474,
13,
282,
294,
282,
1754,
603,
32... |
(r"[^\s]+:", Name.Attribute), | (r"[^\s]+:(?!//)", Name.Attribute), | def analyse_text(text): if text[:7] == 'Index: ': return True if text[:5] == 'diff ': return True if text[:4] == '--- ': return 0.9 | f0857dd4f2fc495ebb75107814eb2f160b9c84a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6148/f0857dd4f2fc495ebb75107814eb2f160b9c84a5/text.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31087,
67,
955,
12,
955,
4672,
309,
977,
10531,
27,
65,
422,
296,
1016,
30,
4290,
327,
1053,
309,
977,
10531,
25,
65,
422,
296,
5413,
4290,
327,
1053,
309,
977,
10531,
24,
65,
422,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31087,
67,
955,
12,
955,
4672,
309,
977,
10531,
27,
65,
422,
296,
1016,
30,
4290,
327,
1053,
309,
977,
10531,
25,
65,
422,
296,
5413,
4290,
327,
1053,
309,
977,
10531,
24,
65,
422,
3... |
data = string.translate(data, table, "\r") | data = data.translate(table, "\r") | def test(args=[]): if not args: args = [ '/etc/passwd', 'file:/etc/passwd', 'file://localhost/etc/passwd', 'ftp://ftp.python.org/etc/passwd', | b2493f855a7319ce0748bfb965253cad9c9f5a2c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b2493f855a7319ce0748bfb965253cad9c9f5a2c/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1968,
33,
8526,
4672,
309,
486,
833,
30,
833,
273,
306,
1173,
14175,
19,
24002,
2187,
296,
768,
27824,
14175,
19,
24002,
2187,
296,
768,
2207,
13014,
19,
14175,
19,
24002,
2187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
1968,
33,
8526,
4672,
309,
486,
833,
30,
833,
273,
306,
1173,
14175,
19,
24002,
2187,
296,
768,
27824,
14175,
19,
24002,
2187,
296,
768,
2207,
13014,
19,
14175,
19,
24002,
2187... |
muleh t0, flags=(CF,OF) | muleh t0 | def macroop IMUL_R_P | b64d0bdeda1662091746c3695b4429fcc6f69342 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/b64d0bdeda1662091746c3695b4429fcc6f69342/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
52,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
52,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
sage: gap.eval('LoadPackage("hap")') 'true' | def cohomology(self, n, p = 0): r""" Computes the group cohomology H_n(G, F), where F = Z if p=0 and F = Z/pZ if p >0 is a prime. Wraps HAP's GroupHomology function, written by Graham Ellis. | f94ee0fd2259e59f9680be18b9e7c8204f75ddc9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/f94ee0fd2259e59f9680be18b9e7c8204f75ddc9/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
670,
67,
82,
12,
43,
16,
478,
3631,
1625,
478,
273,
2285,
309,
293,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1825,
17125,
4676,
12,
2890,
16,
290,
16,
293,
273,
374,
4672,
436,
8395,
14169,
281,
326,
1041,
1825,
17125,
4676,
670,
67,
82,
12,
43,
16,
478,
3631,
1625,
478,
273,
2285,
309,
293,
... | |
patches = ui.popbuffer().splitlines() for patch in patches: patchname = patch if opts['summary']: patchname = patchname.split(': ', 1)[0] if ui.verbose: patchname = patchname.lstrip().split(' ', 2)[-1] | patchlines = ui.popbuffer().splitlines() patchnames = repo.mq.series for patch, patchname in itertools.izip(patchlines, patchnames): | def colorqseries(orig, ui, repo, *dummy, **opts): '''run the qseries command with colored output''' ui.pushbuffer() retval = orig(ui, repo, **opts) patches = ui.popbuffer().splitlines() for patch in patches: patchname = patch if opts['summary']: patchname = patchname.split(': ', 1)[0] if ui.verbose: patchname = patchna... | cb2d8f9e5232cf7d924bc9fb6aa79b6af2c9f9c4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/cb2d8f9e5232cf7d924bc9fb6aa79b6af2c9f9c4/color.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2036,
85,
10222,
12,
4949,
16,
5915,
16,
3538,
16,
380,
21050,
16,
2826,
4952,
4672,
9163,
2681,
326,
1043,
10222,
1296,
598,
19757,
876,
26418,
5915,
18,
6206,
4106,
1435,
5221,
273,
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,
2036,
85,
10222,
12,
4949,
16,
5915,
16,
3538,
16,
380,
21050,
16,
2826,
4952,
4672,
9163,
2681,
326,
1043,
10222,
1296,
598,
19757,
876,
26418,
5915,
18,
6206,
4106,
1435,
5221,
273,
16... |
self._call_if_match(Ignore, lambda junk: dbg("Ignoring: %s" % junk)) | self._call_if_match(Ignore, lambda junk: dbg("Skipping: %s" % repr(junk))) | def parse(self): file = open(self.filename) rc = file.readlines() file.close() | fe05b86d78700deab9fa96373988e2fa85d1301e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6502/fe05b86d78700deab9fa96373988e2fa85d1301e/configfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
585,
273,
1696,
12,
2890,
18,
3459,
13,
4519,
273,
585,
18,
896,
3548,
1435,
585,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
585,
273,
1696,
12,
2890,
18,
3459,
13,
4519,
273,
585,
18,
896,
3548,
1435,
585,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
new_table_set_col_attr(self.__connection__, table, self.__skeleton__[table]) | new_table_set_col_attr(self.__connection__, table_name, self.__skeleton__[table_name]) | def drop_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...) Note: deosnt's delte colmsn jsut make not primiarey """ if not ... | 12098d45ba68813e42a6a22032a2f2e6d360e158 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/12098d45ba68813e42a6a22032a2f2e6d360e158/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
188... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3640,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
188... |
obj = array(obj, dtype=intp, copy=0, ndmin=1) try: if len(values) != len(obj): raise TypeError except TypeError: values = [values]*len(obj) new = arr k = 0 for item, val in zip(obj, values): new = insertinto(new, item+k, val, axis=axis) | obj = asarray(obj, dtype=intp) numnew = len(obj) index1 = obj + arange(numnew) index2 = setdiff1d(arange(numnew+N),index1) newshape[axis] += numnew new = empty(newshape, arr.dtype, arr.flags.fnc) slobj2 = [slice(None)]*ndim slobj[axis] = index1 slobj2[axis] = index2 new[slobj] = values new[slobj2] = arr | def insertinto(arr, obj, values, axis=None): """Return a new array with values inserted along the given axis before the given indices If axis is None, then ravel the array first. """ arr = asarray(arr) ndim = arr.ndim if axis is None: if ndim != 1: arr = arr.ravel() axis = 0 if (ndim == 0): arr = arr.copy() arr[...] =... | 5dd549836b872e7c65f2d6b69e303f953de0f488 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/5dd549836b872e7c65f2d6b69e303f953de0f488/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
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,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
... |
self.generateNCXByAuthor("Authors", single_article_per_section=False) | self.generateNCXByAuthor("Authors") | def buildSources(self): if getattr(self.reporter, 'cancel_requested', False): return 1 if not self.booksByTitle: self.fetchBooksByTitle() | 073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
8628,
12,
2890,
4672,
309,
3869,
12,
2890,
18,
266,
7988,
16,
296,
10996,
67,
19065,
2187,
1083,
4672,
327,
404,
309,
486,
365,
18,
12567,
858,
4247,
30,
365,
18,
5754,
9084,
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,
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,
1361,
8628,
12,
2890,
4672,
309,
3869,
12,
2890,
18,
266,
7988,
16,
296,
10996,
67,
19065,
2187,
1083,
4672,
327,
404,
309,
486,
365,
18,
12567,
858,
4247,
30,
365,
18,
5754,
9084,
87,... |
subdir = virtual + '/' if [r for r in repos if r.startswith(subdir)]: req.respond(HTTP_OK, ctype) return self.makeindex(req, tmpl, subdir) up = virtual.rfind('/') | up = virtualrepo.rfind('/') | def run_wsgi(self, req): try: try: self.refresh() | df8b9e19afa5763de7314a06aee651c42e99707e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/df8b9e19afa5763de7314a06aee651c42e99707e/hgwebdir_mod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
28539,
12,
2890,
16,
1111,
4672,
775,
30,
775,
30,
365,
18,
9144,
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,
1086,
67,
28539,
12,
2890,
16,
1111,
4672,
775,
30,
775,
30,
365,
18,
9144,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return getattr(self, self.err) | return getattr(self.err, attr) | def __getattr__(self, attr): return getattr(self, self.err) | 71920a3b979706339e0af84c32485a5ea0e394b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/71920a3b979706339e0af84c32485a5ea0e394b7/test_cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
327,
3869,
12,
2890,
16,
365,
18,
370,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
588,
1747,
972,
12,
2890,
16,
1604,
4672,
327,
3869,
12,
2890,
16,
365,
18,
370,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return minidom.parseString(response) | return minidom.parseString(response.encode("utf-8")) | def execute(self, cacheable = False): """Returns the XML DOM response of the POST Request from the server""" if is_caching_enabled() and cacheable: response = self._get_cached_response() else: response = self._download_response() return minidom.parseString(response) | 8d8063afe8067477accae5bef5e470a4a3cbfa5d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9926/8d8063afe8067477accae5bef5e470a4a3cbfa5d/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
27730,
273,
1083,
4672,
3536,
1356,
326,
3167,
4703,
766,
434,
326,
5485,
1567,
628,
326,
1438,
8395,
225,
309,
353,
67,
17703,
310,
67,
5745,
1435,
471,
27730,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
27730,
273,
1083,
4672,
3536,
1356,
326,
3167,
4703,
766,
434,
326,
5485,
1567,
628,
326,
1438,
8395,
225,
309,
353,
67,
17703,
310,
67,
5745,
1435,
471,
27730,
30,
... |
d = self.port.setData d(0) d(0 | (1 << clockPin)) d(0) d(0 | (1 << clockPin)) for bit in range(10): val = (r & (1<<bit)) and (1 << dataPin) d(val) d(val | (1 << clockPin)) d(1 << latchPin) d(0) | self.dataBit(0, 0) self.dataBit(0, 1) for col in [r, g, b]: col = max(0, min(1023, int(col))) for bit in range(10): self.dataBit(col & (1<<(9-bit)), '?') self.latch() | def sendPacket(self, r, g, b): d = self.port.setData d(0) d(0 | (1 << clockPin)) d(0) d(0 | (1 << clockPin)) for bit in range(10): val = (r & (1<<bit)) and (1 << dataPin) d(val) d(val | (1 << clockPin)) # 15 micro sleep d(1 << latchPin) d(0) | b27a7887253df7a93d8c014e0b69cd9fa3a021ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12881/b27a7887253df7a93d8c014e0b69cd9fa3a021ce/shiftpar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
6667,
12,
2890,
16,
436,
16,
314,
16,
324,
4672,
302,
273,
365,
18,
655,
18,
542,
751,
302,
12,
20,
13,
302,
12,
20,
571,
261,
21,
2296,
7268,
12178,
3719,
302,
12,
20,
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,
1366,
6667,
12,
2890,
16,
436,
16,
314,
16,
324,
4672,
302,
273,
365,
18,
655,
18,
542,
751,
302,
12,
20,
13,
302,
12,
20,
571,
261,
21,
2296,
7268,
12178,
3719,
302,
12,
20,
13,
... |
class CustomView(osv.osv): | class view_custom(osv.osv): | def _check_xml(self, cr, uid, ids, context={}): for view in self.browse(cr, uid, ids, context): eview = etree.fromstring(view.arch) frng = tools.file_open(os.path.join('base','rng',view.type+'.rng')) relaxng = etree.RelaxNG(file=frng) if not relaxng.validate(eview): logger = netsvc.Logger() logger.notifyChannel('init',... | cceeb1734633a40d073f1ab37c9f29d2c3677b9e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12853/cceeb1734633a40d073f1ab37c9f29d2c3677b9e/ir_ui_view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
1476,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
425,
1945,
273,
12031,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2902,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
1476,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
425,
1945,
273,
12031,
... |
if not request.POST.has_key('json'): | if not request.POST.has_key('action'): | def ajax_schedule_class(self, request, tl, one, two, module, extra, prog): if not request.POST.has_key('json'): raise ESPError(False), "This URL is intended to be used for client<->server communication; it's not for human-readable content." | d1a8a3d5b94a7519add925ffa09bd49b9f4ea7d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/d1a8a3d5b94a7519add925ffa09bd49b9f4ea7d3/ajaxschedulingmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
10676,
67,
1106,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
282,
309,
486,
590,
18,
3798,
18,
5332,
67,
856,
2668,
1128,
11,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10733,
67,
10676,
67,
1106,
12,
2890,
16,
590,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
282,
309,
486,
590,
18,
3798,
18,
5332,
67,
856,
2668,
1128,
11,
467... |
for (extension_name, build_info) in extensions: | for (extension_name, build_info) in self.extensions: | def get_source_files (self): | 48697d931bb86ddd114a42ccb89adb6374aef4ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/48697d931bb86ddd114a42ccb89adb6374aef4ff/build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3168,
67,
2354,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3168,
67,
2354,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.WriteLn('%s: LDFLAGS := $(LDFLAGS_$(BUILDTYPE)) ' '$(LIBS)' % self.output) | self.WriteLn('%s: LDFLAGS := $(LDFLAGS_$(BUILDTYPE))' % self.output) self.WriteLn('%s: LIBS := $(LIBS)' % self.output) | def WriteTarget(self, spec, configs, deps, link_deps, extra_outputs): """Write Makefile code to produce the final target of the gyp spec. | 4e125b0e514a0d78a6c709fce2024bb182c1b4eb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/4e125b0e514a0d78a6c709fce2024bb182c1b4eb/make.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
2326,
12,
2890,
16,
857,
16,
6784,
16,
8740,
16,
1692,
67,
14877,
16,
2870,
67,
12295,
4672,
3536,
3067,
4344,
768,
981,
358,
11402,
326,
727,
1018,
434,
326,
314,
879,
857,
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,
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,
2326,
12,
2890,
16,
857,
16,
6784,
16,
8740,
16,
1692,
67,
14877,
16,
2870,
67,
12295,
4672,
3536,
3067,
4344,
768,
981,
358,
11402,
326,
727,
1018,
434,
326,
314,
879,
857,
18,
... |
for n in sys.modules.keys(): | for n in list(sys.modules.keys()): | def testImpWrapper(self): i = ImpWrapper() sys.meta_path.append(i) sys.path_hooks.append(ImpWrapper) mnames = ("colorsys", "urlparse", "distutils.core", "compiler.misc") for mname in mnames: parent = mname.split(".")[0] for n in sys.modules.keys(): if n.startswith(parent): del sys.modules[n] for mname in mnames: m = __... | 5f89ddce7734b0f3692916419261603726b64a4b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/5f89ddce7734b0f3692916419261603726b64a4b/test_importhooks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
22683,
3611,
12,
2890,
4672,
277,
273,
9457,
3611,
1435,
2589,
18,
3901,
67,
803,
18,
6923,
12,
77,
13,
2589,
18,
803,
67,
10468,
18,
6923,
12,
22683,
3611,
13,
312,
1973,
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,
1842,
22683,
3611,
12,
2890,
4672,
277,
273,
9457,
3611,
1435,
2589,
18,
3901,
67,
803,
18,
6923,
12,
77,
13,
2589,
18,
803,
67,
10468,
18,
6923,
12,
22683,
3611,
13,
312,
1973,
273,
... |
name='NewName', lastname='NewLastname', | name=new_name, lastname=new_lastname, | def test_my_account_update(self): self.log_user() new_email = 'new@mail.pl' response = self.app.post(url('admin_settings_my_account_update'), params=dict( _method='put', username='test_admin', new_password='test12', password='', name='NewName', lastname='NewLastname', email=new_email,)) response.follow() print response | fa8f0845743b852ba8efb7fa9809a21b82bba509 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4230/fa8f0845743b852ba8efb7fa9809a21b82bba509/test_admin_settings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4811,
67,
4631,
67,
2725,
12,
2890,
4672,
365,
18,
1330,
67,
1355,
1435,
394,
67,
3652,
273,
296,
2704,
36,
4408,
18,
412,
11,
766,
273,
365,
18,
2910,
18,
2767,
12,
718,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4811,
67,
4631,
67,
2725,
12,
2890,
4672,
365,
18,
1330,
67,
1355,
1435,
394,
67,
3652,
273,
296,
2704,
36,
4408,
18,
412,
11,
766,
273,
365,
18,
2910,
18,
2767,
12,
718,
... |
decl : namespace_anonymous skiplist namespace_end | decl : namespace_anonymous skiplist_all namespace_end | def p_namespace(t): """ decl : namespace_begin decls namespace_end decl : namespace_anonymous skiplist namespace_end decl : NAMESPACE ID EQUALS ID SEMI """ pass | d892df33853c6638e2334a73d8c57d84bce47fd8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/d892df33853c6638e2334a73d8c57d84bce47fd8/ddf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
4937,
12,
88,
4672,
3536,
3496,
294,
1981,
67,
10086,
3496,
87,
1981,
67,
409,
3496,
294,
1981,
67,
19070,
4343,
77,
17842,
67,
454,
1981,
67,
409,
3496,
294,
18494,
1599,
275... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
67,
4937,
12,
88,
4672,
3536,
3496,
294,
1981,
67,
10086,
3496,
87,
1981,
67,
409,
3496,
294,
1981,
67,
19070,
4343,
77,
17842,
67,
454,
1981,
67,
409,
3496,
294,
18494,
1599,
275... |
fmt = '<hhqq' | fmt = '<HHQQ' | def FileHeader(self): """Return the per-file header as a string.""" dt = self.date_time dosdate = (dt[0] - 1980) << 9 | dt[1] << 5 | dt[2] dostime = dt[3] << 11 | dt[4] << 5 | (dt[5] // 2) if self.flag_bits & 0x08: # Set these to zero because we write them after the file data CRC = compress_size = file_size = 0 else: C... | 8758505b352b3425ba646bdbff7a34c21eb6618a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/8758505b352b3425ba646bdbff7a34c21eb6618a/zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
1864,
12,
2890,
4672,
3536,
990,
326,
1534,
17,
768,
1446,
487,
279,
533,
12123,
3681,
273,
365,
18,
712,
67,
957,
16153,
712,
273,
261,
7510,
63,
20,
65,
300,
5342,
3672,
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,
1387,
1864,
12,
2890,
4672,
3536,
990,
326,
1534,
17,
768,
1446,
487,
279,
533,
12123,
3681,
273,
365,
18,
712,
67,
957,
16153,
712,
273,
261,
7510,
63,
20,
65,
300,
5342,
3672,
13,
... |
self.selectObject(c) | self.selectObject(cmpn) def OnRevertItem(self, event): if self.selCmp and self.props.prevSel and self.props.prevSel.propEditor: propEdit = self.props.prevSel.propEditor propEdit.companion.propRevertToDefault(propEdit.name, propEdit.propWrapper.getSetterName()) self.props.prevSel.showPropNameModified() | def refreshZopeProps(self): c = self.selCmp self.selCmp.updateZopeProps() self.selCmp = None self.selectObject(c) | 746f53548fb8bb54a235b1bfa31a4bdb769818e8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/746f53548fb8bb54a235b1bfa31a4bdb769818e8/Inspector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
62,
1306,
5047,
12,
2890,
4672,
276,
273,
365,
18,
1786,
31832,
365,
18,
1786,
31832,
18,
2725,
62,
1306,
5047,
1435,
365,
18,
1786,
31832,
273,
599,
365,
18,
4025,
921,
12,
9625... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
62,
1306,
5047,
12,
2890,
4672,
276,
273,
365,
18,
1786,
31832,
365,
18,
1786,
31832,
18,
2725,
62,
1306,
5047,
1435,
365,
18,
1786,
31832,
273,
599,
365,
18,
4025,
921,
12,
9625... |
opttree = self._getSourceTree(unoptCacheId, tradeSpaceForSpeed) | opttree = self._getSourceTree(unoptCacheId) | def tree(self, variantSet={}): context = self.context tradeSpaceForSpeed = False # Caution: setting this to True seems to return trees which have been optimized, as unoptimized | 1abc907797564cd97d808fe122ba7fb63a6ebc45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/1abc907797564cd97d808fe122ba7fb63a6ebc45/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
12,
2890,
16,
5437,
694,
12938,
4672,
819,
273,
365,
18,
2472,
18542,
3819,
1290,
16562,
273,
1083,
225,
468,
23318,
1421,
30,
3637,
333,
358,
1053,
12001,
358,
327,
11491,
1492,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
12,
2890,
16,
5437,
694,
12938,
4672,
819,
273,
365,
18,
2472,
18542,
3819,
1290,
16562,
273,
1083,
225,
468,
23318,
1421,
30,
3637,
333,
358,
1053,
12001,
358,
327,
11491,
1492,
1... |
if l.simple_bind_s(company.ldap_binddn, company.ldap_password): | if l.simple_bind(company.ldap_binddn, company.ldap_password): | def _ldap_check(db, uid, passwd): if security._uid_cache.has_key(uid) and (security._uid_cache[uid]==passwd): return True cr = pooler.get_db(db).cursor() module_obj = pooler.get_pool(cr.dbname).get('ir.module.module') module_ids = module_obj.search(cr, 1, [('name', '=', 'users_ldap')]) if module_ids: state = module_obj... | eddc2b718963c817c774bd2d301eaf1680636289 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/eddc2b718963c817c774bd2d301eaf1680636289/users_ldap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14394,
67,
1893,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
4373,
6315,
1911,
67,
2493,
18,
5332,
67,
856,
12,
1911,
13,
471,
261,
7462,
6315,
1911,
67,
2493,
63,
1911,
65,
631,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14394,
67,
1893,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
4373,
6315,
1911,
67,
2493,
18,
5332,
67,
856,
12,
1911,
13,
471,
261,
7462,
6315,
1911,
67,
2493,
63,
1911,
65,
631,
... |
if hasattr(self, 'hasNewPosts'): return self.hasNewPosts self.hasNewPosts = self._hasNewPosts(get_current_session(), get_current_user()) return self.hasNewPosts | ret = self.hasNewPosts() return ret | def has_new_posts(self): if hasattr(self, 'hasNewPosts'): return self.hasNewPosts self.hasNewPosts = self._hasNewPosts(get_current_session(), get_current_user()) return self.hasNewPosts | 604a24d9cb0133574151ad0b0952e0f42cebf4e1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11563/604a24d9cb0133574151ad0b0952e0f42cebf4e1/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
2704,
67,
11660,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
296,
5332,
1908,
24983,
11,
4672,
327,
365,
18,
5332,
1908,
24983,
365,
18,
5332,
1908,
24983,
273,
365,
6315,
5332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
711,
67,
2704,
67,
11660,
12,
2890,
4672,
309,
3859,
12,
2890,
16,
296,
5332,
1908,
24983,
11,
4672,
327,
365,
18,
5332,
1908,
24983,
365,
18,
5332,
1908,
24983,
273,
365,
6315,
5332,
... |
self.buffer.write( c ) | import fcntl, select flag = fcntl.fcntl(self.out.fileno(), fcntl.F_GETFL) fcntl.fcntl(self.out.fileno(), fcntl.F_SETFL, flag | os.O_NONBLOCK) r = select.select([self.out.fileno()], [], [], 0)[0] if r: c = os.read( self.out.fileno(), 1 ) self.buffer.write( c ) | def run( self ): global terminate | 37cb969b82b441b63856a1e977f782a60dac046b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10890/37cb969b82b441b63856a1e977f782a60dac046b/slimv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
365,
262,
30,
2552,
10850,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
365,
262,
30,
2552,
10850,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if self.protocol not in [ '1910' ] : | if self.protocol not in [ '0014' ] : | def __init__( self , host = '127.0.0.1' , port = 5154 ) : | 45d4f996af16b74a08c47af45bd03809288e613d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4604/45d4f996af16b74a08c47af45bd03809288e613d/bzfquery.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
269,
1479,
273,
296,
14260,
18,
20,
18,
20,
18,
21,
11,
269,
1756,
273,
1381,
29003,
262,
294,
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,
1001,
2738,
972,
12,
365,
269,
1479,
273,
296,
14260,
18,
20,
18,
20,
18,
21,
11,
269,
1756,
273,
1381,
29003,
262,
294,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.body.append(self.defs['definition_list'][0]) | self.indent(DEFINITION_LIST_INDENT) | def visit_definition_list(self, node): self.body.append(self.defs['definition_list'][0]) | 2e86202953f5508878f482543956d988e25d6f8f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1278/2e86202953f5508878f482543956d988e25d6f8f/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
12537,
3292,
6907,
67,
1098,
3546,
63,
20,
5717,
2,
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,
3757,
67,
6907,
67,
1098,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
12537,
3292,
6907,
67,
1098,
3546,
63,
20,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.msgText("doSpeedRedFlash: " + i.toString() + "\n") | if (self.debugLevel >= LowDebug) : self.msgText("doSpeedRedFlash: " + i.toString() + "\n") | def doSpeedRedFlash(self): if (self.redDelayTimer != None) : self.redDelayTimer.stop() if (self.currentThrottle != None) : i = int(self.locoSpeedRedFlash.text) * 0.01 self.currentThrottle.setSpeedSetting(i) self.msgText("doSpeedRedFlash: " + i.toString() + "\n") self.locoSpeed.text = self.locoSpeedRedFlash.text return | 59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2146/59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
16562,
3715,
11353,
12,
2890,
4672,
309,
261,
2890,
18,
1118,
6763,
6777,
480,
599,
13,
294,
365,
18,
1118,
6763,
6777,
18,
5681,
1435,
309,
261,
2890,
18,
2972,
27636,
480,
599,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16562,
3715,
11353,
12,
2890,
4672,
309,
261,
2890,
18,
1118,
6763,
6777,
480,
599,
13,
294,
365,
18,
1118,
6763,
6777,
18,
5681,
1435,
309,
261,
2890,
18,
2972,
27636,
480,
599,
... |
copier = x.__deepcopy__ except AttributeError: | issc = issubclass(type(x), type) except TypeError: issc = 0 if issc: y = _deepcopy_dispatch[type](x, memo) else: | def deepcopy(x, memo = None): """Deep copy operation on arbitrary Python objects. See the module's __doc__ string for more info. """ if memo is None: memo = {} d = id(x) if d in memo: return memo[d] try: copierfunction = _deepcopy_dispatch[type(x)] except KeyError: try: copier = x.__deepcopy__ except AttributeError: ... | 5364c8a84bfea180e82d3a2c7964e76f85fc7436 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5364c8a84bfea180e82d3a2c7964e76f85fc7436/copy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7217,
12,
92,
16,
11063,
273,
599,
4672,
3536,
13980,
1610,
1674,
603,
11078,
6600,
2184,
18,
225,
2164,
326,
1605,
1807,
1001,
2434,
972,
533,
364,
1898,
1123,
18,
3536,
225,
309,
11063... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7217,
12,
92,
16,
11063,
273,
599,
4672,
3536,
13980,
1610,
1674,
603,
11078,
6600,
2184,
18,
225,
2164,
326,
1605,
1807,
1001,
2434,
972,
533,
364,
1898,
1123,
18,
3536,
225,
309,
11063... |
def __init__(self): | def __init__(self, debug=False): self.debug = debug | def __init__(self): self.id = InstanceData() self.ud = UserData(self.id) self.plugins = {} | dfd73b27da2e35520893919180b987ae93bd41d7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7645/dfd73b27da2e35520893919180b987ae93bd41d7/ami.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1198,
33,
8381,
4672,
365,
18,
4148,
273,
1198,
365,
18,
350,
273,
5180,
751,
1435,
365,
18,
1100,
273,
31109,
12,
2890,
18,
350,
13,
365,
18,
8057,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1198,
33,
8381,
4672,
365,
18,
4148,
273,
1198,
365,
18,
350,
273,
5180,
751,
1435,
365,
18,
1100,
273,
31109,
12,
2890,
18,
350,
13,
365,
18,
8057,
27... |
T *= M | def roysam_watershed(dna,thresh=None,blur_factor=3): ''' Run watershed on mixed gradient & intensity image as suggested by Lin et al. -Input dna: DNA image thresh: Gray value threshold (default: computed using Murphy's RC) blur_factor: Blur factor (default: 3) REFERENCE Gang Lin, Umesh Adiga, K... | 47a535d7936f00206fd04bdeae917c38c9630111 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12199/47a535d7936f00206fd04bdeae917c38c9630111/roysam.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
721,
1900,
301,
67,
91,
31302,
18550,
12,
5176,
69,
16,
19237,
33,
7036,
16,
27065,
67,
6812,
33,
23,
4672,
9163,
1939,
341,
31302,
18550,
603,
7826,
10292,
473,
16551,
1316,
487,
22168,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
721,
1900,
301,
67,
91,
31302,
18550,
12,
5176,
69,
16,
19237,
33,
7036,
16,
27065,
67,
6812,
33,
23,
4672,
9163,
1939,
341,
31302,
18550,
603,
7826,
10292,
473,
16551,
1316,
487,
22168,... | |
self.pv_combo.set_active(False) | self.pv_combo.set_sensitive(False) | def __init__(self, migrate, pvs, lvs): gladepath = 'migrate_extents.glade' if not os.path.exists(gladepath): gladepath = "%s/%s" % (INSTALLDIR, gladepath) gtk.glade.bindtextdomain(PROGNAME) self.glade_xml = gtk.glade.XML (gladepath, domain=PROGNAME) # fill out lv selection combobox self.lv_combo = gtk.combo_box_new_te... | 682b80ebe2edd7be47ef4581587124a4c0b9d236 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3880/682b80ebe2edd7be47ef4581587124a4c0b9d236/InputController.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13187,
16,
293,
6904,
16,
5362,
87,
4672,
5118,
2486,
803,
273,
296,
22083,
67,
408,
4877,
18,
7043,
2486,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13187,
16,
293,
6904,
16,
5362,
87,
4672,
5118,
2486,
803,
273,
296,
22083,
67,
408,
4877,
18,
7043,
2486,
11,
309,
486,
1140,
18,
803,
18,
1808,
12,
7... |
self._dom_to_html_cache[tree, container] = html return self._dom_to_html_cache[tree,container] | self._epytext_cache[tree, container] = html return self._epytext_cache[tree,container] | def _dom_to_html(self, tree, container=None, indent=0): """ Given the DOM tree for an epytext string (as returned by L{epytext.parse}), return a string encoding it in HTML. This string does not include C{<html>} or C{<body>} tags. @param tree: The DOM tree for an epytext string. @type tree: C{xml.dom.minidom.Element}... | dd7fc26b7d69af6d4765be2a892edca4603899ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/dd7fc26b7d69af6d4765be2a892edca4603899ee/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
869,
67,
2620,
12,
2890,
16,
2151,
16,
1478,
33,
7036,
16,
3504,
33,
20,
4672,
3536,
16803,
326,
4703,
2151,
364,
392,
425,
2074,
955,
533,
261,
345,
2106,
635,
511,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9859,
67,
869,
67,
2620,
12,
2890,
16,
2151,
16,
1478,
33,
7036,
16,
3504,
33,
20,
4672,
3536,
16803,
326,
4703,
2151,
364,
392,
425,
2074,
955,
533,
261,
345,
2106,
635,
511,
9... |
self.unset(field.getName(), instance) | pass | def cleanupField(self, instance, field, **kwargs): self.unset(field.getName(), instance) | d463b22f18404294a818d28eb9c183634217b192 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/d463b22f18404294a818d28eb9c183634217b192/Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
974,
12,
2890,
16,
791,
16,
652,
16,
2826,
4333,
4672,
365,
18,
18579,
12,
1518,
18,
17994,
9334,
791,
13,
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,
1652,
6686,
974,
12,
2890,
16,
791,
16,
652,
16,
2826,
4333,
4672,
365,
18,
18579,
12,
1518,
18,
17994,
9334,
791,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
def inner_window_clicked(obj, it, *args, **kwargs): | def inner_window_clicked(obj, it): | def inner_window_clicked(obj, it, *args, **kwargs): win = elementary.Window("inner-window", elementary.ELM_WIN_BASIC) win.title_set("InnerWindow test") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() iw = e... | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
67,
5668,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
7872,
17,
5668,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
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,
3443,
67,
5668,
67,
7475,
329,
12,
2603,
16,
518,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
7872,
17,
5668,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
6... |
assert(verPath[-1] == wireCsVersion) | if verPath[-1] != wireCsVersion: raise ProxyRepositoryError(('InvalidClientVersion', "Unable to produce changeset version %s " "with upstream server %s" % (neededCsVersion, wireCsVersion))) | def _addToCache(fingerPrint, inF, csVersion, csInfo, sizeLimit): csPath = self.csCache.hashToPath(fingerPrint + '-%d' % csVersion) csDir = os.path.dirname(csPath) util.mkdirChain(csDir) (fd, csTmpPath) = tempfile.mkstemp(dir = csDir, suffix = '.ccs-new') outF = os.fdopen(fd, "w") util.copyfileobj(inF, outF, sizeLimit =... | 4cc5034886031e656e782623ffba629e4610a1e5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/4cc5034886031e656e782623ffba629e4610a1e5/proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
774,
1649,
12,
74,
6658,
5108,
16,
316,
42,
16,
2873,
1444,
16,
2873,
966,
16,
963,
3039,
4672,
2873,
743,
273,
365,
18,
2143,
1649,
18,
2816,
774,
743,
12,
74,
6658,
5108... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
774,
1649,
12,
74,
6658,
5108,
16,
316,
42,
16,
2873,
1444,
16,
2873,
966,
16,
963,
3039,
4672,
2873,
743,
273,
365,
18,
2143,
1649,
18,
2816,
774,
743,
12,
74,
6658,
5108... |
sim.getRNG().setSeed(12345) | sim.getRNG().set(seed=12345) | def func(*fields): return 0.4*sum(fields) | 205f55f8c6cd28aed704d70838912648f07ac340 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/205f55f8c6cd28aed704d70838912648f07ac340/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
30857,
2821,
4672,
327,
374,
18,
24,
14,
1364,
12,
2821,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1326,
30857,
2821,
4672,
327,
374,
18,
24,
14,
1364,
12,
2821,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
shape_str = ' x '.join([str(x) for x in shape]) | shape_str = '%d x %d x %d' % (shape[1], shape[0], shape[2]) | def write_general_file(f, filename, opts, shape): template = '''file = %(filename)s | 654211694f7491fa98f369acd3bc5e1b76ec000b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8488/654211694f7491fa98f369acd3bc5e1b76ec000b/dxgeneral.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
12259,
67,
768,
12,
74,
16,
1544,
16,
1500,
16,
2179,
4672,
225,
1542,
273,
9163,
768,
273,
8975,
3459,
13,
87,
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,
1045,
67,
12259,
67,
768,
12,
74,
16,
1544,
16,
1500,
16,
2179,
4672,
225,
1542,
273,
9163,
768,
273,
8975,
3459,
13,
87,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (not os.path.exists(f)) and '_' in iso_lang: | if (not f) and '_' in iso_lang: | def update_translations(self, cr, uid, ids, filter_lang=None): logger = logging.getLogger('i18n') if not filter_lang: pool = pooler.get_pool(cr.dbname) lang_obj = pool.get('res.lang') lang_ids = lang_obj.search(cr, uid, [('translatable', '=', True)]) filter_lang = [lang.code for lang in lang_obj.browse(cr, uid, lang_id... | 6a8b552d1244a87e8832a37fa2ebb1d52568a856 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6a8b552d1244a87e8832a37fa2ebb1d52568a856/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
13457,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1034,
67,
4936,
33,
7036,
4672,
1194,
273,
2907,
18,
588,
3328,
2668,
77,
2643,
82,
6134,
309,
486,
1034,
67,
4936,
30,
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,
1089,
67,
13457,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
1034,
67,
4936,
33,
7036,
4672,
1194,
273,
2907,
18,
588,
3328,
2668,
77,
2643,
82,
6134,
309,
486,
1034,
67,
4936,
30,
2... |
env.Clean('all', target) | env.Clean(env.Alias('all'), target) | def AllIncludesHH(env, exclude=[]): exclude = exclude[:] + ['all_includes.hh'] # Make a copy !! headers = [ f for f in glob.glob("*.hh") if f not in exclude and not f.endswith('.test.hh') ] headers.sort() target = env.File("all_includes.hh") file(target.abspath,"w").write("".join([ '#include "%s"\n' % f for f in header... | 71776c4eb0dea09ee7bd6447ad8cd7591e59b1c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2548/71776c4eb0dea09ee7bd6447ad8cd7591e59b1c1/SENFSCons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4826,
16815,
17500,
12,
3074,
16,
4433,
33,
8526,
4672,
4433,
273,
4433,
10531,
65,
397,
10228,
454,
67,
18499,
18,
21622,
3546,
468,
4344,
279,
1610,
401,
5,
1607,
273,
306,
284,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4826,
16815,
17500,
12,
3074,
16,
4433,
33,
8526,
4672,
4433,
273,
4433,
10531,
65,
397,
10228,
454,
67,
18499,
18,
21622,
3546,
468,
4344,
279,
1610,
401,
5,
1607,
273,
306,
284,
364,
... |
EXAMPLES: | EXAMPLES:: | def unpickle_QuaternionAlgebra_v0(*key): """ The 0th version of pickling for quaternion algebras. EXAMPLES: sage: Q = QuaternionAlgebra(-5,-19) sage: f, t = Q.__reduce__() sage: sage.algebras.quaternion_algebra.unpickle_QuaternionAlgebra_v0(*t) Quaternion Algebra (-5, -19) with base ring Rational Field sage: loads(dum... | 99e5a0a74eb3235104deaac3878f4f57df362049 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/99e5a0a74eb3235104deaac3878f4f57df362049/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
20847,
67,
928,
17848,
1067,
29087,
67,
90,
20,
30857,
856,
4672,
3536,
1021,
374,
451,
1177,
434,
6002,
2456,
364,
26774,
524,
908,
2848,
345,
18,
225,
5675,
8900,
11386,
2866,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
20847,
67,
928,
17848,
1067,
29087,
67,
90,
20,
30857,
856,
4672,
3536,
1021,
374,
451,
1177,
434,
6002,
2456,
364,
26774,
524,
908,
2848,
345,
18,
225,
5675,
8900,
11386,
2866,
225... |
tooltip.append(_('Average change: %s') % self.format_percent(self.avg_simple_quotes_change)) | tooltip.append(_('Average change: %s') % self.format_percent(self.avg_quotes_change)) | def update_tooltip(self): tooltip = [] if self.simple_quotes_count > 0: # Translators: This is share-market jargon. It is the average percentage change of all stock prices. The %s gets replaced with the string value of the change (localized), including the percent sign. tooltip.append(_('Average change: %s') % self.for... | d4bea685996cfb4fe38aab3a5763b2517e83bdbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11078/d4bea685996cfb4fe38aab3a5763b2517e83bdbf/quotes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
19798,
12,
2890,
4672,
11915,
273,
5378,
309,
365,
18,
9647,
67,
18653,
67,
1883,
405,
374,
30,
468,
8193,
3062,
30,
1220,
353,
7433,
17,
27151,
525,
3175,
265,
18,
2597,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
19798,
12,
2890,
4672,
11915,
273,
5378,
309,
365,
18,
9647,
67,
18653,
67,
1883,
405,
374,
30,
468,
8193,
3062,
30,
1220,
353,
7433,
17,
27151,
525,
3175,
265,
18,
2597,
353... |
return "%s/site_icon.gif" % self.urltool() | portal = self.urltool.getPortalObject() ploneview = getMultiAdapter((self.context, self.request), name=u'plone') icon = ploneview.getIcon(portal) return icon.url | def root_icon(self): return "%s/site_icon.gif" % self.urltool() | a5441542acc4fccb6e106e3e8d8a1451f42e0a0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12194/a5441542acc4fccb6e106e3e8d8a1451f42e0a0f/navigation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1365,
67,
3950,
12,
2890,
4672,
11899,
273,
365,
18,
718,
6738,
18,
588,
24395,
921,
1435,
886,
476,
1945,
273,
31863,
4216,
12443,
2890,
18,
2472,
16,
365,
18,
2293,
3631,
508,
33,
89... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1365,
67,
3950,
12,
2890,
4672,
11899,
273,
365,
18,
718,
6738,
18,
588,
24395,
921,
1435,
886,
476,
1945,
273,
31863,
4216,
12443,
2890,
18,
2472,
16,
365,
18,
2293,
3631,
508,
33,
89... |
if not mem.endswith("." + taste): | name, ext = os.path.splitext(mem) if ext not in ["." + taste, ""]: | def get_included_flavour(taste): """ PyBlosxom comes with flavours in taste.flav directories in the flavours subdirectory of the Pyblosxom package. This method pulls the template files for the associated taste (assuming it exists) or None if it doesn't. @param taste: The name of the taste. e.g. "html", "rss", ... @t... | 3bbc4bb8efd8e22f862a8a9395c809b138500286 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11836/3bbc4bb8efd8e22f862a8a9395c809b138500286/blosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
20405,
67,
2242,
842,
477,
12,
88,
14725,
4672,
3536,
4707,
38,
383,
30319,
362,
14535,
598,
31227,
4390,
316,
268,
14725,
18,
2242,
842,
6402,
316,
326,
31227,
4390,
29869,
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,
336,
67,
20405,
67,
2242,
842,
477,
12,
88,
14725,
4672,
3536,
4707,
38,
383,
30319,
362,
14535,
598,
31227,
4390,
316,
268,
14725,
18,
2242,
842,
6402,
316,
326,
31227,
4390,
29869,
434... |
parse_isa_desc(sys.argv[1], sys.argv[2], sys.argv[3]) | parse_isa_desc(sys.argv[1], sys.argv[2]) | def parse_isa_desc(isa_desc_file, output_dir, include_path): # set a global var for the input filename... used in error messages global input_filename input_filename = isa_desc_file global fileNameStack fileNameStack = [(input_filename, 1)] # Suck the ISA description file in. input = open(isa_desc_file) isa_desc = inp... | 3cb417df252404a1ced27aa6028f93e4e3a7cd9e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7385/3cb417df252404a1ced27aa6028f93e4e3a7cd9e/isa_parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
291,
69,
67,
5569,
12,
291,
69,
67,
5569,
67,
768,
16,
876,
67,
1214,
16,
2341,
67,
803,
4672,
468,
444,
279,
2552,
569,
364,
326,
810,
1544,
2777,
1399,
316,
555,
2743,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
291,
69,
67,
5569,
12,
291,
69,
67,
5569,
67,
768,
16,
876,
67,
1214,
16,
2341,
67,
803,
4672,
468,
444,
279,
2552,
569,
364,
326,
810,
1544,
2777,
1399,
316,
555,
2743,
... |
print 'execfile', `class_py` | def readprofile(self, baseName, className): """Internal function. It reads BASENAME.tcl and CLASSNAME.tcl into the Tcl Interpreter and calls execfile on BASENAME.py and CLASSNAME.py if such a file exists in the home directory.""" import os if os.environ.has_key('HOME'): home = os.environ['HOME'] else: home = os.curdir ... | d2a5ad25d5f6734c919bd40ee26c3e11b98d6bc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d2a5ad25d5f6734c919bd40ee26c3e11b98d6bc3/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
5040,
12,
2890,
16,
16162,
16,
2658,
4672,
3536,
3061,
445,
18,
2597,
6838,
10250,
1985,
18,
88,
830,
471,
7383,
1985,
18,
88,
830,
1368,
326,
399,
830,
5294,
11599,
471,
4097,
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,
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,
5040,
12,
2890,
16,
16162,
16,
2658,
4672,
3536,
3061,
445,
18,
2597,
6838,
10250,
1985,
18,
88,
830,
471,
7383,
1985,
18,
88,
830,
1368,
326,
399,
830,
5294,
11599,
471,
4097,
11... | |
def writeSources(self, sources): | def writeSources(self, sources, all): | def writeSources(self, sources): w = self.file.write for name,d in sources.directories.iteritems(): self.writeSources(d) for file in sources.files: if file.process and not isinstance(file, mak.sources.hsource): w("\t\t\t%s,\n" % file.buildid) | a60ebba76722784f18efcbe8160429b6fe069496 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7302/a60ebba76722784f18efcbe8160429b6fe069496/xcode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
8628,
12,
2890,
16,
5550,
16,
777,
4672,
341,
273,
365,
18,
768,
18,
2626,
364,
508,
16,
72,
316,
5550,
18,
15121,
18,
2165,
3319,
13332,
365,
18,
2626,
8628,
12,
72,
13,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
8628,
12,
2890,
16,
5550,
16,
777,
4672,
341,
273,
365,
18,
768,
18,
2626,
364,
508,
16,
72,
316,
5550,
18,
15121,
18,
2165,
3319,
13332,
365,
18,
2626,
8628,
12,
72,
13,
364,
... |
daemonInfo: [Optional] A string option. Default daemon.info. Only needed with -d. Set to a file on disk. Daemon info will be written there so that -k and such will work. | daemonInfo: [Optional] A string option. Default daemon.info. Program pid will be written to this file. | def delItem(self, x=0): u"""returns what should be the last added item to the rss feed. Or specify which item to return""" if self.itemsQuaDictBool: self.itemsQuaDict.pop(x) else: self.items.pop(x) | 5072ae5218fad48ede7d593eb5f92aa66ed6bde8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/5072ae5218fad48ede7d593eb5f92aa66ed6bde8/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
1180,
12,
2890,
16,
619,
33,
20,
4672,
582,
8395,
6154,
4121,
1410,
506,
326,
1142,
3096,
761,
358,
326,
18817,
4746,
18,
2965,
4800,
1492,
761,
358,
327,
8395,
309,
365,
18,
331... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1464,
1180,
12,
2890,
16,
619,
33,
20,
4672,
582,
8395,
6154,
4121,
1410,
506,
326,
1142,
3096,
761,
358,
326,
18817,
4746,
18,
2965,
4800,
1492,
761,
358,
327,
8395,
309,
365,
18,
331... |
newslice = reroll_loops(trace, slice) | for s in slice: print repr(s) newslice = reroll_loops(trace, slice, debug=True) | def set_input(trace, inbufs): inbufs = set(inbufs) for i,te in trace: uses_set = set(uses(te)) if uses_set & inbufs: defs = defines(te) assert len(defs) == 1 te.op = "IFLO_SET_INPUT" te.args = [defs[0], 0] | 27f1db2b7d77aafaf15f545ff4848a6b4f3babb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4260/27f1db2b7d77aafaf15f545ff4848a6b4f3babb8/dynslice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2630,
12,
5129,
16,
316,
4385,
87,
4672,
316,
4385,
87,
273,
444,
12,
267,
4385,
87,
13,
364,
277,
16,
736,
316,
2606,
30,
4692,
67,
542,
273,
444,
12,
6117,
12,
736,
3719... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2630,
12,
5129,
16,
316,
4385,
87,
4672,
316,
4385,
87,
273,
444,
12,
267,
4385,
87,
13,
364,
277,
16,
736,
316,
2606,
30,
4692,
67,
542,
273,
444,
12,
6117,
12,
736,
3719... |
type = action['WebActionNavigationTypeKey'] | ntype = action['WebActionNavigationTypeKey'] | def webView_decidePolicyForNavigationAction_request_frame_decisionListener_(self, webview, action, request, frame, listener): platformutils.warnIfNotOnMainThread('ManagedWebView.webView_decidePolicyForNavigationAction_request_frame_decisionListener_') method = request.HTTPMethod() url = unicode(request.URL()) body = re... | c098bf9b67454582a17d7d0f939c74131d579cc8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/c098bf9b67454582a17d7d0f939c74131d579cc8/HTMLDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3311,
1767,
67,
4924,
831,
2582,
1290,
14301,
1803,
67,
2293,
67,
3789,
67,
4924,
1951,
2223,
67,
12,
2890,
16,
3311,
1945,
16,
1301,
16,
590,
16,
2623,
16,
2991,
4672,
4072,
5471,
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,
3311,
1767,
67,
4924,
831,
2582,
1290,
14301,
1803,
67,
2293,
67,
3789,
67,
4924,
1951,
2223,
67,
12,
2890,
16,
3311,
1945,
16,
1301,
16,
590,
16,
2623,
16,
2991,
4672,
4072,
5471,
18,... |
generic = msg.get_main_type().replace('-', '_') meth = getattr(self, '_handle_' + generic, None) if meth is None: meth = self._writeBody meth(msg) | meth = self._writeBody meth(msg) | def _dispatch(self, msg): # Get the Content-Type: for the message, then try to dispatch to # self._handle_maintype_subtype(). If there's no handler for the full # MIME type, then dispatch to self._handle_maintype(). If that's # missing too, then dispatch to self._writeBody(). ctype = msg.get_type() if ctype is None: ... | 93c40f0c3a9e96f46e51d92c3bfa8ac50012902b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/93c40f0c3a9e96f46e51d92c3bfa8ac50012902b/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10739,
12,
2890,
16,
1234,
4672,
468,
968,
326,
3697,
17,
559,
30,
364,
326,
883,
16,
1508,
775,
358,
3435,
358,
468,
365,
6315,
4110,
67,
81,
1598,
388,
67,
21974,
7675,
225,
9... |
return dest_key == get_inode_key(dest_rorp) | try: return dest_key == get_inode_key(dest_rorp) except KeyError: return 0 | def rorp_eq(src_rorp, dest_rorp): """Compare hardlinked for equality Return false if dest_rorp is linked differently, which can happen if dest is linked more than source, or if it is represented by a different inode. """ if (not src_rorp.isreg() or not dest_rorp.isreg() or src_rorp.getnumlinks() == dest_rorp.getnumli... | 2d5320aedd06de07bdba76089227d73a968639c8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8033/2d5320aedd06de07bdba76089227d73a968639c8/Hardlink.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
280,
84,
67,
11253,
12,
4816,
67,
86,
280,
84,
16,
1570,
67,
86,
280,
84,
4672,
3536,
8583,
7877,
17738,
364,
14958,
225,
2000,
629,
309,
1570,
67,
86,
280,
84,
353,
8459,
23621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
280,
84,
67,
11253,
12,
4816,
67,
86,
280,
84,
16,
1570,
67,
86,
280,
84,
4672,
3536,
8583,
7877,
17738,
364,
14958,
225,
2000,
629,
309,
1570,
67,
86,
280,
84,
353,
8459,
23621... |
def opening(self, node): return write("(") | def opening(s, node): return cls.write("(") | def opening(self, node): return write("(") | 01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/01a99d0db0499777506f7fbf9ecf7a7e70c7a9e2/Packer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10890,
12,
2890,
16,
756,
4672,
327,
1045,
2932,
2932,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10890,
12,
2890,
16,
756,
4672,
327,
1045,
2932,
2932,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
v = qimageview.qimageview(qimg) qimg.fill(42) | def test_coordinate_access(): qimg = QtGui.QImage(320, 240, QtGui.QImage.Format_Indexed8) qimg.setNumColors(256) qimg.fill(0) qimg.setPixel(12, 10, 42) v = qimageview.qimageview(qimg) qimg.fill(42) assert_equal(v.shape, (240, 320)) assert_equal(v[10,12], 42) assert_equal(v.nbytes, qimg.numBytes()) | 3035826c7344062e2d96ae7098af9c6ce9e869b7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8956/3035826c7344062e2d96ae7098af9c6ce9e869b7/test_qimageview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
29191,
67,
3860,
13332,
1043,
6081,
273,
23425,
18,
53,
2040,
12,
31273,
16,
27610,
16,
23425,
18,
53,
2040,
18,
1630,
67,
15034,
28,
13,
1043,
6081,
18,
542,
2578,
12570,
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,
1842,
67,
29191,
67,
3860,
13332,
1043,
6081,
273,
23425,
18,
53,
2040,
12,
31273,
16,
27610,
16,
23425,
18,
53,
2040,
18,
1630,
67,
15034,
28,
13,
1043,
6081,
18,
542,
2578,
12570,
12... | |
if self.maxlag == 5: | if self.maxlag == 120: | def setSiteinfo(self): params = {'action':'query', 'meta':'siteinfo', 'siprop':'general|namespaces|namespacealiases' } if self.maxlag == 5: self.setMaxlag(120) req = api.APIRequest(self, params) info = req.query() if self.maxlag == 5: self.setMaxlag() sidata = info['query']['general'] self.siteinfo = {} for item in sid... | aa08d3e52d353fdc7d6c6b2d01f34fce95716072 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8398/aa08d3e52d353fdc7d6c6b2d01f34fce95716072/wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4956,
1376,
12,
2890,
4672,
859,
273,
13666,
1128,
11,
2497,
2271,
2187,
296,
3901,
11,
2497,
4256,
1376,
2187,
296,
28477,
1764,
11,
2497,
12259,
96,
16078,
96,
4937,
13831,
11,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
4956,
1376,
12,
2890,
4672,
859,
273,
13666,
1128,
11,
2497,
2271,
2187,
296,
3901,
11,
2497,
4256,
1376,
2187,
296,
28477,
1764,
11,
2497,
12259,
96,
16078,
96,
4937,
13831,
11,
28... |
self.match_span = (index - len(pattern), index) | self.match_span = (index, index + len(self.pattern)) | def previous(self): """ Get previous match of pattern. | 753add4627e8663ca10a703588625220bd235396 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/753add4627e8663ca10a703588625220bd235396/finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2416,
12,
2890,
4672,
3536,
968,
2416,
845,
434,
1936,
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,
2416,
12,
2890,
4672,
3536,
968,
2416,
845,
434,
1936,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
knifeData = None nadeData = None | knifeData = [] nadeData = [] | def __set_weapon_order_type(self, type): # ===================================================================== # RANDOM WEAPON ORDER # ===================================================================== if type == '#random': # Get weapons weapons = self.order.values() | 2f22a91521a8eefc4faac36b3a3525a48c2f568c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4555/2f22a91521a8eefc4faac36b3a3525a48c2f568c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
67,
1814,
28629,
67,
1019,
67,
723,
12,
2890,
16,
618,
4672,
468,
422,
9917,
12275,
468,
534,
28159,
13880,
2203,
673,
10205,
468,
422,
9917,
12275,
309,
618,
422,
2946,
9188,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
67,
1814,
28629,
67,
1019,
67,
723,
12,
2890,
16,
618,
4672,
468,
422,
9917,
12275,
468,
534,
28159,
13880,
2203,
673,
10205,
468,
422,
9917,
12275,
309,
618,
422,
2946,
9188,... |
sage: FreeModule(ZZ,2,inner_product_matrix=[[1,-1],[2,5]]).inner_product_matrix() | The inner product does not have to be symmetric or definite. sage: N = FreeModule(ZZ,2,inner_product_matrix=[[1,-1],[2,5]]) sage: N.inner_product_matrix() | def inner_product_matrix(self): """ Return the inner product matrix associated to this free module. EXAMPLES: sage: M = FreeModule(ZZ, 3) sage: M.inner_product_matrix() [1 0 0] [0 1 0] [0 0 1] sage: FreeModule(ZZ,2,inner_product_matrix=[[1,-1],[2,5]]).inner_product_matrix() [ 1 -1] [ 2 5] """ if self._inner_product_... | 89ba8998792aff6d6975d46de29ece3d76712b0f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/89ba8998792aff6d6975d46de29ece3d76712b0f/free_module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3443,
67,
5896,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
3443,
3017,
3148,
3627,
358,
333,
4843,
1605,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
490,
273,
15217,
3120,
12,
27096,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3443,
67,
5896,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
3443,
3017,
3148,
3627,
358,
333,
4843,
1605,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
490,
273,
15217,
3120,
12,
27096,
... |
taskName = "AvatarControls%s"%(id(self),) | taskName = "AvatarControls-%s"%(id(self),) | def enableAvatarControls(self): """ Activate the arrow keys, etc. """ assert(self.debugPrint("enableAvatarControls()")) assert self.collisionsActive | 279b0b95d73beb43864e40b8f39c02e406b03967 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/279b0b95d73beb43864e40b8f39c02e406b03967/GravityWalker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4237,
23999,
16795,
12,
2890,
4672,
3536,
30936,
326,
12274,
1311,
16,
5527,
18,
3536,
1815,
12,
2890,
18,
4148,
5108,
2932,
7589,
23999,
16795,
10031,
3719,
1815,
365,
18,
12910,
12682,
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,
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,
4237,
23999,
16795,
12,
2890,
4672,
3536,
30936,
326,
12274,
1311,
16,
5527,
18,
3536,
1815,
12,
2890,
18,
4148,
5108,
2932,
7589,
23999,
16795,
10031,
3719,
1815,
365,
18,
12910,
12682,
3... |
def set_crop(self, top, left, right, bottom): self.top, self.bottom = self.fix(top, bottom, self.h) self.left, self.right = self.fix(left, right, self.w) | def set_crop(self, top, left, right, bottom, round=False): self.top, self.bottom = self.fix(top, bottom, self.h, round) self.left, self.right = self.fix(left, right, self.w, round) | def set_crop(self, top, left, right, bottom): self.top, self.bottom = self.fix(top, bottom, self.h) self.left, self.right = self.fix(left, right, self.w) self.render() | b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7932/b3eaf5869a14ff310ecbd9fda1cb61b2ee52c9c3/cropgui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
13758,
12,
2890,
16,
1760,
16,
2002,
16,
2145,
16,
5469,
16,
3643,
33,
8381,
4672,
365,
18,
3669,
16,
365,
18,
9176,
273,
365,
18,
904,
12,
3669,
16,
5469,
16,
365,
18,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
13758,
12,
2890,
16,
1760,
16,
2002,
16,
2145,
16,
5469,
16,
3643,
33,
8381,
4672,
365,
18,
3669,
16,
365,
18,
9176,
273,
365,
18,
904,
12,
3669,
16,
5469,
16,
365,
18,
76... |
os.environ['PATH'] += ':/usr/sbin:/usr/local/sbin' | os.environ['PATH'] += ':/sbin:/usr/sbin:/usr/local/sbin' | def __init__(gp): gp.resolv_conf = '/etc/resolv.conf' gp.hostsnames = [] | ab53040da3418280f617c278d0f4c20701e5e0b6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6933/ab53040da3418280f617c278d0f4c20701e5e0b6/dnsproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6403,
4672,
4178,
18,
7818,
90,
67,
3923,
273,
1173,
14175,
19,
7818,
90,
18,
3923,
11,
4178,
18,
11588,
1973,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
6403,
4672,
4178,
18,
7818,
90,
67,
3923,
273,
1173,
14175,
19,
7818,
90,
18,
3923,
11,
4178,
18,
11588,
1973,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
c = stc.GetCharAt(check) | c = unichr(stc.GetCharAt(check)) | def getLastNonWhitespaceChar(self, stc, pos): """Working backward, find the closest non-whitespace character @param stc: stc of interest @param pos: boundary position from which to start looking backwards @return: tuple of the matching char and the position """ pos = pos - 1 found = stc.GetCharAt(pos) while pos > 0: c... | 7b68fdba1986d64604112824e5f68df509113eb4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/7b68fdba1986d64604112824e5f68df509113eb4/autoindent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7595,
3989,
9431,
2156,
12,
2890,
16,
384,
71,
16,
949,
4672,
3536,
14836,
12555,
16,
1104,
326,
9219,
1661,
17,
18777,
3351,
225,
632,
891,
384,
71,
30,
384,
71,
434,
16513,
632,
891,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7595,
3989,
9431,
2156,
12,
2890,
16,
384,
71,
16,
949,
4672,
3536,
14836,
12555,
16,
1104,
326,
9219,
1661,
17,
18777,
3351,
225,
632,
891,
384,
71,
30,
384,
71,
434,
16513,
632,
891,... |
self.processSolidusInTag() self.state = self.states["beforeAttributeName"] | if not self.processSolidusInTag(): self.state = self.states["beforeAttributeName"] | def tagNameState(self): data = self.stream.char() if data in spaceCharacters: self.state = self.states["beforeAttributeName"] elif data in asciiLetters: self.currentToken["name"] += data +\ self.stream.charsUntil(asciiLetters, True) elif data == u">": self.emitCurrentToken() elif data == EOF: self.tokenQueue.append({"t... | b067b74d90ec69fc1410609e5e9ee8e5558eb453 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9368/b067b74d90ec69fc1410609e5e9ee8e5558eb453/tokenizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7196,
1119,
12,
2890,
4672,
501,
273,
365,
18,
3256,
18,
3001,
1435,
309,
501,
316,
3476,
11600,
30,
365,
18,
2019,
273,
365,
18,
7992,
9614,
5771,
19240,
11929,
1327,
501,
316,
11384,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7196,
1119,
12,
2890,
4672,
501,
273,
365,
18,
3256,
18,
3001,
1435,
309,
501,
316,
3476,
11600,
30,
365,
18,
2019,
273,
365,
18,
7992,
9614,
5771,
19240,
11929,
1327,
501,
316,
11384,
... |
res = run_sql("""SELECT %s FROM %s WHERE id = %s""" \ % (value, table, ids[key])) | res = run_sql("""SELECT %%s FROM %s WHERE id = %%s""" % table, (value, ids[key])) | def headerstrong(query=1, **ids): """transform keyword=value pairs to string with value in strong text. **ids - a dictionary of pairs to create string from query - 1 -> try to find names to ids of role, user and action. 0 -> do not try to find names, use the value passed on """ output = '' value = '' table = '' for... | 880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/880b8bdf9919b6ee052a6dbe8c7a64f8b5b9c888/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1607,
313,
932,
12,
2271,
33,
21,
16,
2826,
2232,
4672,
3536,
6547,
4932,
33,
1132,
5574,
358,
533,
598,
460,
316,
11773,
977,
18,
225,
2826,
2232,
300,
279,
3880,
434,
5574,
358,
752,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1607,
313,
932,
12,
2271,
33,
21,
16,
2826,
2232,
4672,
3536,
6547,
4932,
33,
1132,
5574,
358,
533,
598,
460,
316,
11773,
977,
18,
225,
2826,
2232,
300,
279,
3880,
434,
5574,
358,
752,... |
apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = TixSubWidget(self, name, check_intermediate=0) return self.subwidget_list[name] | apply(self.tk.call, (self._w, 'add', name) + self._options(cnf, kw)) self.subwidget_list[name] = TixSubWidget(self, name, check_intermediate=0) return self.subwidget_list[name] | def add(self, name, cnf={}, **kw): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
508,
16,
23118,
28793,
2826,
9987,
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,
527,
12,
2890,
16,
508,
16,
23118,
28793,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or 'c') '[!chars]' - matches any character not inside square brackets The default error message can be ... | The path can be given as an exact path or as a pattern similarly as with `File Should Exist` keyword. The default error message can be overridden with the `msg` argument. """ path = path.replace('/', os.sep) if not glob.glob(path): | def should_exist(self, path, msg=None): """Fails unless the given path (file or directory) exists. The path can be given as an exact path or as a pattern where '*' - matches everything '?' - matches any single character '[chars]' - matches any character inside square brackets (e.g. '[abc]' matches either 'a', 'b' or '... | a2152145a7e713b7a988a154a7b296b361d56338 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/a2152145a7e713b7a988a154a7b296b361d56338/OperatingSystem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1410,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
261,
768,
578,
1867,
13,
1704,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1410,
67,
7398,
12,
2890,
16,
589,
16,
1234,
33,
7036,
4672,
3536,
30800,
3308,
326,
864,
589,
261,
768,
578,
1867,
13,
1704,
18,
225,
1021,
589,
848,
506,
864,
487,
392,
5565,
589,
... |
self._selectedPoints.append({'discrete' : discrete, 'world' : world, | self._selectedPoints.append({'discrete' : tuple(discrete), 'world' : tuple(world), | def pw_ei_cb(pw, evt_name): # make sure our output is good self._syncOutputSelectedPoints() | 84c1eb2dd880117cbde103e9d144e516ad511eb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4494/84c1eb2dd880117cbde103e9d144e516ad511eb7/slice3d_vwr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8772,
67,
73,
77,
67,
7358,
12,
14921,
16,
6324,
67,
529,
4672,
468,
1221,
3071,
3134,
876,
353,
7494,
365,
6315,
8389,
1447,
7416,
5636,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8772,
67,
73,
77,
67,
7358,
12,
14921,
16,
6324,
67,
529,
4672,
468,
1221,
3071,
3134,
876,
353,
7494,
365,
6315,
8389,
1447,
7416,
5636,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self._jmim.resetModel() | self._m.resetModel() | def reset(self): self._jmim.resetModel() | 733964346bd705d3e3fa78795693f8a99289c936 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/733964346bd705d3e3fa78795693f8a99289c936/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
6315,
78,
81,
381,
18,
6208,
1488,
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,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
12,
2890,
4672,
365,
6315,
78,
81,
381,
18,
6208,
1488,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 772) else quickfix.StringField.__init__(self, 772, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
9060,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2371,
9060,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
if v.GetCaptured() > 2: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) cd.UnlockCaptureData() buffer.append(data, t) else: time.millisleep(10) v.StopCapture() while v.GetCaptured() > 0: t = time.millitimer() - t0 cd, st = v.GetCaptureData() data = cd.interleave(x, y) | try: cd, id = v.GetCaptureData() except RuntimeError: time.millisleep(10) continue id = id + 2*rate lastid = id data = cd.InterleaveFields(1) | def record(v, filename, audiofilename): import thread x, y = gl.getsize() vout = VFile.VoutFile().init(filename) vout.format = 'rgb8' vout.width = x vout.height = y vout.writeheader() buffer = [] thread.start_new_thread(saveframes, (vout, buffer)) if audiofilename: initaudio(audiofilename, buffer) gl.wintitle('(rec) ' ... | 62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/62f6bc8e55ef2d0e226b1c3ad7b9aca58407ab7a/Vrec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
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,
1409,
12,
90,
16,
1544,
16,
20232,
77,
792,
2550,
4672,
1930,
2650,
619,
16,
677,
273,
5118,
18,
588,
1467,
1435,
331,
659,
273,
776,
812,
18,
58,
659,
812,
7675,
2738,
12,
3459,
13,... |
'Flags':column_property(select([cpu_flag_table.c.flag],cpu_flag_table.c.cpu_id == cpu_table.c.id).correlate(cpu_table).label('Flags'),deferred = True), | 'Flags':column_property(select([cpu_flag_table.c.flag]).correlate(cpu_flag_table).label('Flags'),deferred = True), | def by_key_value(cls, system, key, value): return cls.query().filter(and_(Key_Value_Int.key==key, Key_Value_Int.key_value==value, Key_Value_Int.system==system)).one() | 2bd9b401a9d222e03c36fb56c7f4755c92809e72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/2bd9b401a9d222e03c36fb56c7f4755c92809e72/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
635,
67,
856,
67,
1132,
12,
6429,
16,
2619,
16,
498,
16,
460,
4672,
327,
2028,
18,
2271,
7675,
2188,
12,
464,
67,
12,
653,
67,
620,
67,
1702,
18,
856,
631,
856,
16,
1929,
67,
620,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
635,
67,
856,
67,
1132,
12,
6429,
16,
2619,
16,
498,
16,
460,
4672,
327,
2028,
18,
2271,
7675,
2188,
12,
464,
67,
12,
653,
67,
620,
67,
1702,
18,
856,
631,
856,
16,
1929,
67,
620,
... |
return self.get_cell(cell.x + 1, cell.y) | return self.get_cell(cell.i + 1, cell.j) | def get_neighbor(self, cell, direction): '''Get the neighbor HexCell in the given direction which is one of self.UP, self.DOWN, self.UP_LEFT, self.UP_RIGHT, self.DOWN_LEFT or self.DOWN_RIGHT. | ae46287e32a1e7a487f4f47ee34d687ee3d6604c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/ae46287e32a1e7a487f4f47ee34d687ee3d6604c/tiles.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18168,
12,
2890,
16,
2484,
16,
4068,
4672,
9163,
967,
326,
10553,
15734,
4020,
316,
326,
864,
4068,
1492,
353,
1245,
434,
365,
18,
3079,
16,
365,
18,
12711,
16,
365,
18,
3079,... |
handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} | handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} | def test_load_state_without_schema(self): resource = memory.File(TEST_DATA_1) handler = itools_csv.CSV() handler.schema = {'name': Unicode, 'url': URI, 'number': Integer, 'date': Date} handler.load_state(resource) self.assertEqual(handler.get_rows(), [ [u"python", u'http://python.org', u'52343', u'2003-10-23'], [u"ruby... | d1c92817f2412181e68be715a2a81901cf1a83ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/d1c92817f2412181e68be715a2a81901cf1a83ed/test_itools_csv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
945,
67,
2019,
67,
13299,
67,
4821,
12,
2890,
4672,
1058,
273,
3778,
18,
812,
12,
16961,
67,
4883,
67,
21,
13,
1838,
273,
518,
8192,
67,
6715,
18,
16570,
1435,
1838,
18,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
945,
67,
2019,
67,
13299,
67,
4821,
12,
2890,
4672,
1058,
273,
3778,
18,
812,
12,
16961,
67,
4883,
67,
21,
13,
1838,
273,
518,
8192,
67,
6715,
18,
16570,
1435,
1838,
18,
48... |
"""if True: | if '--rebuild-modules' in DV.argv: Damnlog('Careful, rebuilding all modules!') DV.argv=[x for x in DV.argv if x!='--rebuild-modules'] | def DamnLoadConfig(forcemodules=False): Damnlog('Loading config.') DV.preferences=None try: execfile(DV.curdir+'conf'+os.sep+'preferences.damnvid') # Load preferences except: pass # Someone's been messing around with the conf.py file? DV.path_prefs=[] DV.defaultprefs={ } for i in DV.preferences.iterkeys(): if DV.prefer... | 0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/0668135c8e3ea715c0f1b0930afe6c69ea6d8fd4/DamnVid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
2563,
809,
12,
5734,
6400,
33,
8381,
4672,
463,
301,
82,
1330,
2668,
10515,
642,
1093,
13,
463,
58,
18,
23219,
33,
7036,
775,
30,
1196,
768,
12,
30199,
18,
1397,
1214,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
463,
301,
82,
2563,
809,
12,
5734,
6400,
33,
8381,
4672,
463,
301,
82,
1330,
2668,
10515,
642,
1093,
13,
463,
58,
18,
23219,
33,
7036,
775,
30,
1196,
768,
12,
30199,
18,
1397,
1214,
... |
verify(str(c1).find('C instance at ') >= 0) | verify(str(c1).find('C object at ') >= 0) | def __getitem__(self, i): if 0 <= i < 10: return i raise IndexError | ff0e6d6ef542b5b4f3c31786aa152cec68598d4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/ff0e6d6ef542b5b4f3c31786aa152cec68598d4f/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
277,
4672,
309,
374,
1648,
277,
411,
1728,
30,
327,
277,
1002,
10195,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31571,
972,
12,
2890,
16,
277,
4672,
309,
374,
1648,
277,
411,
1728,
30,
327,
277,
1002,
10195,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
assert sum([isinstance(node.op,tensor.blas.Gemm) or node.op.__class__.__name__=="GpuGemm"for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) | if theano.config.mode!='FAST_COMPILE': assert sum([node.op.__class__.__name__ in ["Gemm","GpuGemm","StructuredDot"] for node in topo])==1 assert all(node.op == tensor.blas.gemm_inplace for node in topo if isinstance(node.op,tensor.blas.Gemm)) assert all(node.op.inplace for node in topo if node.op.__class__.__name__ == ... | def test_specify_shape_inplace(self): #test that specify_shape don't break inserting inplace op | 24f06dd1c66333fd29de8065dc6605c1001d2d5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/24f06dd1c66333fd29de8065dc6605c1001d2d5f/test_sharedvar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2793,
1164,
67,
4867,
67,
267,
964,
12,
2890,
4672,
468,
3813,
716,
4800,
67,
4867,
2727,
1404,
898,
21079,
11783,
1061,
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,
1842,
67,
2793,
1164,
67,
4867,
67,
267,
964,
12,
2890,
4672,
468,
3813,
716,
4800,
67,
4867,
2727,
1404,
898,
21079,
11783,
1061,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
inputs = ["dog", "cat", "ape"] | inputs = ["ape", "cat", "dog"] | def fun_reduce(iter, out, params): for k, v in iter: out.add("red_" + k, "red_" + v) | 037b883a4e84c033b75e5060fdb816fcd39d1110 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/373/037b883a4e84c033b75e5060fdb816fcd39d1110/test_external.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9831,
67,
12498,
12,
2165,
16,
596,
16,
859,
4672,
364,
417,
16,
331,
316,
1400,
30,
596,
18,
1289,
2932,
1118,
9548,
397,
417,
16,
315,
1118,
9548,
397,
331,
13,
225,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9831,
67,
12498,
12,
2165,
16,
596,
16,
859,
4672,
364,
417,
16,
331,
316,
1400,
30,
596,
18,
1289,
2932,
1118,
9548,
397,
417,
16,
315,
1118,
9548,
397,
331,
13,
225,
2,
-100,
-100,... |
W = notebook.import_worksheet(filename, self.username) except IOError, msg: print msg raise ValueError, "Unfortunately, there was an error uploading the worksheet. It could be an old unsupported format or worse. If you desparately need its contents contact the Google group sage-support and post a link to your workshe... | try: W = notebook.import_worksheet(filename, self.username) except IOError, msg: print msg raise ValueError, "Unfortunately, there was an error uploading the worksheet. It could be an old unsupported format or worse. If you desparately need its contents contact the Google group sage-support and post a link to your wo... | def render(self, ctx): url = ctx.args['urlField'][0].strip() dir = '' # we will delete the directory below if it is used if url != '': # downloading a file from the internet filename = get_remote_file(url, verbose=True) else: # uploading a file from the user's computer dir = tmp_dir() filename = ctx.files['fileField']... | 23d6b820d3808cc5a2b23b0633e230b91c6df053 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/23d6b820d3808cc5a2b23b0633e230b91c6df053/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
880,
273,
1103,
18,
1968,
3292,
718,
974,
3546,
63,
20,
8009,
6406,
1435,
1577,
273,
875,
225,
468,
732,
903,
1430,
326,
1867,
5712,
309,
518,
353,
1399... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
1103,
4672,
880,
273,
1103,
18,
1968,
3292,
718,
974,
3546,
63,
20,
8009,
6406,
1435,
1577,
273,
875,
225,
468,
732,
903,
1430,
326,
1867,
5712,
309,
518,
353,
1399... |
@type root: String | @type root: CharSequence | def glob(filter, root = os.path.curdir, levels = Infinity): """ Flexible recursive version of the standard U{glob<http://docs.python.org/library/glob.html#glob.glob>} function. @type filter: Function, String @param filter: a function that checks whether a path should be included or a string describing the Unix-style g... | e9c7052663249c90b14829b88b73bce6c9aa084d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12447/e9c7052663249c90b14829b88b73bce6c9aa084d/PyCore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
12,
2188,
16,
1365,
273,
1140,
18,
803,
18,
1397,
1214,
16,
7575,
273,
19454,
4672,
3536,
478,
21873,
5904,
1177,
434,
326,
4529,
587,
95,
10581,
32,
2505,
2207,
8532,
18,
8103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4715,
12,
2188,
16,
1365,
273,
1140,
18,
803,
18,
1397,
1214,
16,
7575,
273,
19454,
4672,
3536,
478,
21873,
5904,
1177,
434,
326,
4529,
587,
95,
10581,
32,
2505,
2207,
8532,
18,
8103,
... |
matchList = matchSrcAndCatalogue(cat=cat, img=srcSet, wcs=wcs, | matchList = matchSrcAndCatalogue(cat=cat, img=srcSet, wcs=wcs, | def calculateSipTerms(inputWcs, cat, srcSet, distInArcsec, cleanParam, sipOrder, log=None): """Iteratively calculate sip distortions and regenerate matchList based on improved wcs""" if log is None: log = StdoutLog() wcs = inputWcs #Create a first pass at a set of matching objects matchList = matchSrcAndCatalogue(ca... | 684b3a5387671c1befd6e88a491a5a10992a7c05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6522/684b3a5387671c1befd6e88a491a5a10992a7c05/determineWcs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
17550,
11673,
12,
2630,
59,
2143,
16,
6573,
16,
1705,
694,
16,
2411,
382,
14598,
3321,
16,
2721,
786,
16,
10341,
2448,
16,
613,
33,
7036,
4672,
3536,
2360,
17526,
4604,
10341,
2411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
17550,
11673,
12,
2630,
59,
2143,
16,
6573,
16,
1705,
694,
16,
2411,
382,
14598,
3321,
16,
2721,
786,
16,
10341,
2448,
16,
613,
33,
7036,
4672,
3536,
2360,
17526,
4604,
10341,
2411... |
if not self.BUFFERING: | if (self.defaultBufSize == -1): | def _conn_buf_size(fromMac, num): # Return if we are not buffering if not self.BUFFERING: return # Lock the client self.clientDataBuffer[fromMac]["lock"].acquire() # Set it to the new amount self.clientDataBuffer[fromMac]["outgoingAvailable"] = num # Release the outgoing lock, this unblocks socket.send self.clientDa... | 0a45b1efbe673e71d80ab30f62127a732c1ae414 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/0a45b1efbe673e71d80ab30f62127a732c1ae414/NATLayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4646,
67,
4385,
67,
1467,
12,
2080,
9990,
16,
818,
4672,
468,
2000,
309,
732,
854,
486,
25056,
309,
261,
2890,
18,
1886,
5503,
1225,
422,
300,
21,
4672,
327,
225,
468,
3488,
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,
389,
4646,
67,
4385,
67,
1467,
12,
2080,
9990,
16,
818,
4672,
468,
2000,
309,
732,
854,
486,
25056,
309,
261,
2890,
18,
1886,
5503,
1225,
422,
300,
21,
4672,
327,
225,
468,
3488,
326,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.