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 |
|---|---|---|---|---|---|---|
self.trackList.DeleteItem(self.index) self.addTrackAtPos(self.track, self.index) self.selectTrack(self.index) | index = self.index self.trackList.DeleteItem(index) self.addTrackAtPos(self.track, index) self.selectTrack(index) | def refreshSelectedTrack(self): self.trackList.DeleteItem(self.index) self.addTrackAtPos(self.track, self.index) self.selectTrack(self.index) | ec11d1d131d519f3265d41a5748dce8e32f8256e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8545/ec11d1d131d519f3265d41a5748dce8e32f8256e/GUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4460,
7416,
4402,
12,
2890,
4672,
365,
18,
4101,
682,
18,
2613,
1180,
12,
2890,
18,
1615,
13,
365,
18,
1289,
4402,
861,
1616,
12,
2890,
18,
4101,
16,
365,
18,
1615,
13,
365,
18,
4025... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4460,
7416,
4402,
12,
2890,
4672,
365,
18,
4101,
682,
18,
2613,
1180,
12,
2890,
18,
1615,
13,
365,
18,
1289,
4402,
861,
1616,
12,
2890,
18,
4101,
16,
365,
18,
1615,
13,
365,
18,
4025... |
self.do_some_calc() | self.do_some_calculating() | def generate_context(self, lines): self.title = lines[0].strip() lines.pop(0) | 016d0650ec26df5df6781c2e39f30071cdb993ed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/016d0650ec26df5df6781c2e39f30071cdb993ed/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2472,
12,
2890,
16,
2362,
4672,
365,
18,
2649,
273,
2362,
63,
20,
8009,
6406,
1435,
2362,
18,
5120,
12,
20,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2103,
67,
2472,
12,
2890,
16,
2362,
4672,
365,
18,
2649,
273,
2362,
63,
20,
8009,
6406,
1435,
2362,
18,
5120,
12,
20,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
vfs.mount(dirname, dirname, vfs.MFReadOnly) | dirname = Filename.fromOsSpecific(dirname) if dirname.isDirectory(): vfs.mount(dirname, dirname, vfs.MFReadOnly) | def initPackedAppEnvironment(self): """ This function sets up the Python environment suitably for running a packed app. It should only run once in any given session (and it includes logic to ensure this). """ | d1828d745ef992504f562e9f6ab43d7ebf3ca823 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/d1828d745ef992504f562e9f6ab43d7ebf3ca823/runp3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
4420,
329,
3371,
5494,
12,
2890,
4672,
3536,
1220,
445,
1678,
731,
326,
6600,
3330,
1597,
305,
6906,
364,
3549,
279,
12456,
595,
18,
225,
2597,
1410,
1338,
1086,
3647,
316,
1281,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
4420,
329,
3371,
5494,
12,
2890,
4672,
3536,
1220,
445,
1678,
731,
326,
6600,
3330,
1597,
305,
6906,
364,
3549,
279,
12456,
595,
18,
225,
2597,
1410,
1338,
1086,
3647,
316,
1281,
8... |
Sequence(delay, Func(self.__setattr__, "frozen", False)).start() | Sequence(Func(self.__setattr__,"_isFrozen",True), delay, Func(self.__setattr__, "_isFrozen", False)).start() | def freeze(self): if self.frozen == False: if not self.isJumping(): self.frozen = True self.physics.speed = 0 delay = Wait(2) Sequence(delay, Func(self.__setattr__, "frozen", False)).start() else: self.speed = 0 | 11f60652f0790988080e250f65a66cd453f3acb3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/11f60652f0790988080e250f65a66cd453f3acb3/entity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16684,
12,
2890,
4672,
309,
365,
18,
28138,
422,
1083,
30,
309,
486,
365,
18,
291,
46,
379,
1382,
13332,
365,
18,
28138,
273,
1053,
365,
18,
844,
1900,
2102,
18,
13871,
273,
374,
4624,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16684,
12,
2890,
4672,
309,
365,
18,
28138,
422,
1083,
30,
309,
486,
365,
18,
291,
46,
379,
1382,
13332,
365,
18,
28138,
273,
1053,
365,
18,
844,
1900,
2102,
18,
13871,
273,
374,
4624,... |
print 'setting attr', params | def applyConstraints(self): nullConstr = ['wxUnconstrained'] print 'apply constraints', self.parentCompanion.control if self.inited and len(self.textConstrLst) >= 4: constraints = wxLayoutConstraints() validConstr = 0 for constrt in self.textConstrLst: if constrt.params['rel'] not in nullConstr: validConstr = validCons... | e6d3b1101435c39fbaff23b10ac5d7e8db0c67f3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/e6d3b1101435c39fbaff23b10ac5d7e8db0c67f3/UtilCompanions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
4878,
12,
2890,
4672,
446,
442,
701,
273,
10228,
27226,
984,
591,
31142,
3546,
1172,
296,
9010,
6237,
2187,
365,
18,
2938,
2945,
304,
285,
18,
7098,
309,
365,
18,
2738,
329,
471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
4878,
12,
2890,
4672,
446,
442,
701,
273,
10228,
27226,
984,
591,
31142,
3546,
1172,
296,
9010,
6237,
2187,
365,
18,
2938,
2945,
304,
285,
18,
7098,
309,
365,
18,
2738,
329,
471,
... | |
streamname = model.get_value(model.get_iter(selected[0]), 1) | streamname = misc.unescape_html(model.get_value(model.get_iter(selected[0]), 1)) | def on_streams_edit(self, action): model, selected = self.streams_selection.get_selected_rows() try: streamname = model.get_value(model.get_iter(selected[0]), 1) for i in range(len(self.config.stream_names)): if self.config.stream_names[i] == streamname: self.on_streams_new(action, i) return except: pass | 172ca2b46d092cbda2d26a926d15df7c463d298f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/172ca2b46d092cbda2d26a926d15df7c463d298f/streams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
16320,
67,
4619,
12,
2890,
16,
1301,
4672,
938,
16,
3170,
273,
365,
18,
16320,
67,
10705,
18,
588,
67,
8109,
67,
3870,
1435,
775,
30,
1407,
529,
273,
20448,
18,
318,
6939,
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,
603,
67,
16320,
67,
4619,
12,
2890,
16,
1301,
4672,
938,
16,
3170,
273,
365,
18,
16320,
67,
10705,
18,
588,
67,
8109,
67,
3870,
1435,
775,
30,
1407,
529,
273,
20448,
18,
318,
6939,
6... |
output_dir = os.join.path(dash_root, platform, revision) | output_dir = os.path.join(dash_root, platform, revision) | def GenerateHtml(lcov_path, dash_root): """Runs genhtml to convert lcov data to human readable HTML. This script expects the LCOV file name to be in the format: chrome_<platform>_<revision#>.lcov. This method parses the file name and then sets up the correct folder hierarchy for the coverage data and then runs genhtml... | 718ab478be8ce44969ea2d02963d16d09648a5d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/718ab478be8ce44969ea2d02963d16d09648a5d9/process_coverage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
4353,
12,
80,
14014,
67,
803,
16,
12558,
67,
3085,
4672,
3536,
9361,
3157,
2620,
358,
1765,
9109,
1527,
501,
358,
8672,
7471,
3982,
18,
225,
1220,
2728,
10999,
326,
511,
3865,
58,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
4353,
12,
80,
14014,
67,
803,
16,
12558,
67,
3085,
4672,
3536,
9361,
3157,
2620,
358,
1765,
9109,
1527,
501,
358,
8672,
7471,
3982,
18,
225,
1220,
2728,
10999,
326,
511,
3865,
58,
... |
T_p, with p prime, up to bound. | `T_p`, with `p` prime, up to bound. | def decomposition(self, bound=None, anemic=True, height_guess=1, proof=None): """ Returns the maximal decomposition of this Hecke module under the action of Hecke operators of index coprime to the level. This is the finest decomposition of self that we can obtain using factors obtained by taking kernels of Hecke operat... | c63951ef49199a64ce27d82f7092617fbb1f0c35 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/c63951ef49199a64ce27d82f7092617fbb1f0c35/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26288,
12,
2890,
16,
2489,
33,
7036,
16,
392,
351,
335,
33,
5510,
16,
2072,
67,
20885,
33,
21,
16,
14601,
33,
7036,
4672,
3536,
2860,
326,
943,
2840,
26288,
434,
333,
670,
762,
73,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26288,
12,
2890,
16,
2489,
33,
7036,
16,
392,
351,
335,
33,
5510,
16,
2072,
67,
20885,
33,
21,
16,
14601,
33,
7036,
4672,
3536,
2860,
326,
943,
2840,
26288,
434,
333,
670,
762,
73,
1... |
print " | def set_streaming(sock): if ENABLE_ERTM: print "######################### streaming socket" options = get_options(sock) options[i_fcs] = 1 options[i_mode] = bz.L2CAP_MODE_STREAMING set_options(sock, options) | e169fdef71f965a0a4235f0331eaa7c4dbd0dec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8028/e169fdef71f965a0a4235f0331eaa7c4dbd0dec4/mcap_sock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3256,
310,
12,
15031,
4672,
309,
6693,
2782,
67,
11539,
49,
30,
1172,
315,
5516,
3228,
7,
12833,
2987,
6,
702,
273,
336,
67,
2116,
12,
15031,
13,
702,
63,
77,
67,
74,
2143,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3256,
310,
12,
15031,
4672,
309,
6693,
2782,
67,
11539,
49,
30,
1172,
315,
5516,
3228,
7,
12833,
2987,
6,
702,
273,
336,
67,
2116,
12,
15031,
13,
702,
63,
77,
67,
74,
2143,
... | |
self.mount_points = wsgi_app | self.mount_points = [(mp.rstrip("/"), app) for mp, app in wsgi_app] | def __init__(self, bind_addr, wsgi_app, numthreads=10, server_name=None, max=-1, request_queue_size=5, timeout=10, shutdown_timeout=5): self.requests = Queue.Queue(max) if callable(wsgi_app): # We've been handed a single wsgi_app, in CP-2.1 style. # Assume it's mounted at "". self.mount_points = [("", wsgi_app)] else:... | 84213b080a5ffd96a5560714fca1504193301b75 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/82/84213b080a5ffd96a5560714fca1504193301b75/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1993,
67,
4793,
16,
341,
17537,
67,
2910,
16,
818,
12495,
33,
2163,
16,
1438,
67,
529,
33,
7036,
16,
943,
29711,
21,
16,
590,
67,
4000,
67,
1467,
33,
... |
while ds.strftime('%Y-%m-%d')<p.date_stop: | while ds.strftime('%Y-%m-%d') < p.date_stop: | def create_period_monthly(self,cr, uid, ids, context={},interval=1): for p in self.browse(cr, uid, ids, context): dt = p.date_start ds = mx.DateTime.strptime(p.date_start, '%Y-%m-%d') while ds.strftime('%Y-%m-%d')<p.date_stop: de = ds + RelativeDateTime(months=interval, minutes=-1) self.pool.get('stock.period').create(... | 6a21b5d661b74602c870fac41f3c8c42e8bc6c33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/6a21b5d661b74602c870fac41f3c8c42e8bc6c33/stock_planning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6908,
67,
7496,
715,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
819,
28793,
6624,
33,
21,
4672,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
6908,
67,
7496,
715,
12,
2890,
16,
3353,
16,
4555,
16,
3258,
16,
819,
28793,
6624,
33,
21,
4672,
364,
293,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
16,
819,
4672,
... |
s = glob.glob(self.baseFilename + ".20*") if len(s) > self.backupCount: s.sort() os.remove(s[0]) | for s in self.getFilesToDelete(): os.remove(s) | def doRollover(self): """ do a rollover; in this case, a date/time stamp is appended to the filename when the rollover happens. However, you want the file to be named for the start of the interval, not the current time. If there is a backup count, then we have to get a list of matching filenames, sort them and remove... | e5aefa0b303b3146df931bab692d0758c1aa725f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/e5aefa0b303b3146df931bab692d0758c1aa725f/handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
4984,
21896,
12,
2890,
4672,
3536,
741,
279,
10643,
21896,
31,
316,
333,
648,
16,
279,
1509,
19,
957,
14429,
353,
12317,
358,
326,
1544,
1347,
326,
10643,
21896,
10555,
18,
225,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4984,
21896,
12,
2890,
4672,
3536,
741,
279,
10643,
21896,
31,
316,
333,
648,
16,
279,
1509,
19,
957,
14429,
353,
12317,
358,
326,
1544,
1347,
326,
10643,
21896,
10555,
18,
225,
107... |
successful[lfn] = {} | successful[lfn] = {} | def getDirectoryMetadata(self, lfn): res = self.__checkArgumentFormat(lfn) if not res['OK']: return res lfns = res['Value'] # If we have less than three lfns to query a session doesn't make sense created = self.__openSession() failed = {} successful = {} for lfn in lfns.keys(): res = self.__getPathStat(lfn) if not res[... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
2277,
12,
2890,
16,
328,
4293,
4672,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
18594,
2387,
273,
400,
3292,
620,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
2277,
12,
2890,
16,
328,
4293,
4672,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
80,
4293,
13,
309,
486,
400,
3292,
3141,
3546,
30,
327,
400,
18594,
2387,
273,
400,
3292,
620,
3... |
if not dotG.get_node(each_edge.get_source()): | if not G.has_node(each_edge.get_source()): | def read(string): """ Read a graph from a string in Dot language and return it. Nodes and edges specified in the input will be added to the current graph. @type string: string @param string: Input string in Dot format specifying a graph. @rtype: graph @return: Graph """ dotG = pydot.graph_from_dot_data(string) if ... | 8291004b970248038af24e4dfc5dfd1d52821d79 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4687/8291004b970248038af24e4dfc5dfd1d52821d79/dot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
1080,
4672,
3536,
2720,
279,
2667,
628,
279,
533,
316,
17502,
2653,
471,
327,
518,
18,
14037,
471,
5231,
1269,
316,
326,
810,
903,
506,
3096,
358,
326,
783,
2667,
18,
225,
632... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
1080,
4672,
3536,
2720,
279,
2667,
628,
279,
533,
316,
17502,
2653,
471,
327,
518,
18,
14037,
471,
5231,
1269,
316,
326,
810,
903,
506,
3096,
358,
326,
783,
2667,
18,
225,
632... |
play_items.sort(lambda l, o: cmp(l.sort().upper(), o.sort().upper())) | play_items.sort(lambda l, o: cmp(l.sort().upper(), o.sort().upper())) | def cwd(self, arg=None, menuw=None): """ make a menu item for each file in the directory """ # are we on a ROM_DRIVE and have to mount it first? for media in config.REMOVABLE_MEDIA: if string.find(self.dir, media.mountdir) == 0: util.mount(self.dir) self.media = media | c597eabb07d1d19996e3517901c2c154305ed589 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/c597eabb07d1d19996e3517901c2c154305ed589/mediamenu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7239,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1221,
279,
3824,
761,
364,
1517,
585,
316,
326,
1867,
3536,
225,
468,
854,
732,
603,
279,
534,
1872,
67,
40,
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,
7239,
12,
2890,
16,
1501,
33,
7036,
16,
3824,
91,
33,
7036,
4672,
3536,
1221,
279,
3824,
761,
364,
1517,
585,
316,
326,
1867,
3536,
225,
468,
854,
732,
603,
279,
534,
1872,
67,
40,
2... |
def _product_reserve(self, cr, uid, ids, product_id, product_qty, context=None): """ @param product_id: Id of product @param product_qty: Quantity of product @return: List of Values or False | def _product_reserve(self, cr, uid, ids, product_id, product_qty, context=None, lock=False): """ Attempt to find a quantity ``product_qty`` (in the product's default uom or the uom passed in ``context``) of product ``product_id`` in locations with id ``ids`` and their child locations. If ``lock`` is True, the stock.mov... | def _product_reserve(self, cr, uid, ids, product_id, product_qty, context=None): """ @param product_id: Id of product @param product_qty: Quantity of product @return: List of Values or False """ result = [] amount = 0.0 if context is None: context = {} for id in self.search(cr, uid, [('location_id', 'child_of', ids)]):... | fed8a6838f1bfe251e8f3b59483688b993f333a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/fed8a6838f1bfe251e8f3b59483688b993f333a8/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5896,
67,
455,
6527,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
3017,
67,
85,
4098,
16,
819,
33,
7036,
16,
2176,
33,
8381,
4672,
3536,
12864,
358,
1104,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5896,
67,
455,
6527,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
3017,
67,
350,
16,
3017,
67,
85,
4098,
16,
819,
33,
7036,
16,
2176,
33,
8381,
4672,
3536,
12864,
358,
1104,
279,... |
if options.source_uri: source = options.source_uri | if options.source_url: source = options.source_url | def generate_footer(self): # @@@ Text is hard-coded for now. # Should be made dynamic (language-dependent). options = self.document.options if options.generator or options.datestamp or options.source_link \ or options.source_url: text = [] if options.source_link and options.source or options.source_url: if options.sour... | 9fb3dc6b4aefca356bfd6d9d4b85d6361466dd55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/9fb3dc6b4aefca356bfd6d9d4b85d6361466dd55/universal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
14723,
12,
2890,
4672,
468,
22175,
36,
3867,
353,
7877,
17,
24808,
364,
2037,
18,
468,
9363,
506,
7165,
5976,
261,
4923,
17,
10891,
2934,
702,
273,
365,
18,
5457,
18,
2116,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
14723,
12,
2890,
4672,
468,
22175,
36,
3867,
353,
7877,
17,
24808,
364,
2037,
18,
468,
9363,
506,
7165,
5976,
261,
4923,
17,
10891,
2934,
702,
273,
365,
18,
5457,
18,
2116,
3... |
PACKAGES=["ZLIB","PNG","JPEG","TIFF","VRPN","FMOD","NVIDIACG","HELIX","NSPR", | PACKAGES=["PYTHON","ZLIB","PNG","JPEG","TIFF","VRPN","FMOD","NVIDIACG","HELIX","NSPR", | def MakeDirectory(path): if os.path.isdir(path): return 0 os.mkdir(path) | a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/a7a6d72930ad9abe29a3a3863f5e83ab3573bc1a/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
2853,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
374,
1140,
18,
26686,
12,
803,
13,
225,
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,
4344,
2853,
12,
803,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
327,
374,
1140,
18,
26686,
12,
803,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def testboth(formatstr, *args): testformat(formatstr, *args) | def testboth(formatstr, *args, **kwargs): testformat(formatstr, *args, **kwargs) | def testboth(formatstr, *args): testformat(formatstr, *args) if have_unicode: testformat(unicode(formatstr), *args) | 8ee9187a163b5c2735072096baf61affaa935063 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8ee9187a163b5c2735072096baf61affaa935063/test_format.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
18237,
12,
2139,
701,
16,
380,
1968,
16,
2826,
4333,
4672,
1842,
2139,
12,
2139,
701,
16,
380,
1968,
16,
2826,
4333,
13,
309,
1240,
67,
9124,
30,
1842,
2139,
12,
9124,
12,
2139,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
18237,
12,
2139,
701,
16,
380,
1968,
16,
2826,
4333,
4672,
1842,
2139,
12,
2139,
701,
16,
380,
1968,
16,
2826,
4333,
13,
309,
1240,
67,
9124,
30,
1842,
2139,
12,
9124,
12,
2139,
... |
errmsg += ' python compile_pypar_manually.py\n' | errmsg += ' python compile_pypar_locally.py\n' | def receive_control_info(source, return_source=False): """Receive control info from source The optional argument (due to Jim Bosch) also returns the actual source node which can be used to require that the data message come from the same node. """ # FIXME (Ole): Perhaps we should include actual source in the control ... | bc641f355437170a099050f0f552ede333eb02d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9158/bc641f355437170a099050f0f552ede333eb02d6/pypar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6798,
67,
7098,
67,
1376,
12,
3168,
16,
327,
67,
3168,
33,
8381,
4672,
3536,
11323,
3325,
1123,
628,
1084,
225,
1021,
3129,
1237,
261,
24334,
358,
804,
381,
605,
538,
343,
13,
2546,
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,
6798,
67,
7098,
67,
1376,
12,
3168,
16,
327,
67,
3168,
33,
8381,
4672,
3536,
11323,
3325,
1123,
628,
1084,
225,
1021,
3129,
1237,
261,
24334,
358,
804,
381,
605,
538,
343,
13,
2546,
11... |
if flags & select.POLLIN: | if flags & (select.POLLIN | select.POLLPRI): | def readwrite(obj, flags): try: if flags & select.POLLIN: obj.handle_read_event() if flags & select.POLLOUT: obj.handle_write_event() except ExitNow: raise except: obj.handle_error() | 1c405afa7b05e2913249e0dd1d1d65d77bd5bb5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1c405afa7b05e2913249e0dd1d1d65d77bd5bb5e/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
2626,
12,
2603,
16,
2943,
4672,
775,
30,
309,
2943,
473,
261,
4025,
18,
14232,
20663,
571,
2027,
18,
14232,
48,
7698,
4672,
1081,
18,
4110,
67,
896,
67,
2575,
1435,
309,
2943,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2626,
12,
2603,
16,
2943,
4672,
775,
30,
309,
2943,
473,
261,
4025,
18,
14232,
20663,
571,
2027,
18,
14232,
48,
7698,
4672,
1081,
18,
4110,
67,
896,
67,
2575,
1435,
309,
2943,
473... |
def __nonzero__( self ): return len( self.__toklist ) > 0 | def __bool__(self): return len( self.__toklist ) > 0 def __nonzero__( self ): return self.__bool__() | def __nonzero__( self ): return len( self.__toklist ) > 0 | bb0e6c1d8894ec4cade5f95640e793eeb8be8f10 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3693/bb0e6c1d8894ec4cade5f95640e793eeb8be8f10/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
365,
262,
30,
327,
562,
12,
365,
16186,
17692,
1098,
262,
405,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26449,
972,
12,
365,
262,
30,
327,
562,
12,
365,
16186,
17692,
1098,
262,
405,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
match = re.search(r'^(?P<Type>.*?):', probeName) if match: ProbeType = string.lower(match.group("Type")) | DebugPrint(4, "readCertInfo: globbing for certinfo file") certinfo_files = glob.glob(Config.get_DataFolder() + 'gratia_certinfo_*_' + localJobId + '*') if certinfo_files == None or len(certinfo_files) == 0: DebugPrint(4, "readCertInfo: could not find certinfo files matching localJobId " + str(localJobId)) return if le... | def readCertInfo(localJobId, probeName): " Look for and read contents of cert info file if present" global Config DebugPrint(4, "readCertInfo: received (" + str(localJobId) + ", " + str(probeName) + ")") idMatch = __certinfoLocalJobIdMunger.search(localJobId) if idMatch: DebugPrint(4, "readCertInfo: trimming " + local... | 619000acdc07cf8ab2fdbf264676c5523649f262 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/637/619000acdc07cf8ab2fdbf264676c5523649f262/Gratia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
4672,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
4015,
5108,
12,
24,
16,
315,
896,
5461,
966... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5461,
966,
12,
3729,
23378,
16,
10695,
461,
4672,
315,
10176,
364,
471,
855,
2939,
434,
3320,
1123,
585,
309,
3430,
6,
2552,
1903,
225,
4015,
5108,
12,
24,
16,
315,
896,
5461,
966... |
pat = re.compile(" *([\+\-]?\d*\.?\d*)([\+\-]?\d*\.?\d*)[jJ] *") m = pat.match(string) | string_ = string_.strip().lower() pat = re.compile("([\+\-]?\d*\.?\d*)?([\+\-]?\d*\.?\d*j)?") m = pat.match(string_) | def _makeComplexFromString(self, string): import re pat = re.compile(" *([\+\-]?\d*\.?\d*)([\+\-]?\d*\.?\d*)[jJ] *") m = pat.match(string) x, y = m.groups() if len(y) == 1 and y in '+-': y = y + '1.0' x, y = map(float, [x, y]) return x, y | ecb2a68dd75732bd5ebb698b986385913ef2a4eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ecb2a68dd75732bd5ebb698b986385913ef2a4eb/app_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6540,
12795,
9193,
12,
2890,
16,
533,
4672,
1930,
283,
533,
67,
273,
533,
27799,
6406,
7675,
8167,
1435,
9670,
273,
283,
18,
11100,
2932,
14026,
15,
12907,
65,
10936,
72,
14,
5834,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6540,
12795,
9193,
12,
2890,
16,
533,
4672,
1930,
283,
533,
67,
273,
533,
27799,
6406,
7675,
8167,
1435,
9670,
273,
283,
18,
11100,
2932,
14026,
15,
12907,
65,
10936,
72,
14,
5834,
... |
return render_template('show_entries.html', entries=entries) | form = EntryForm() return render_template('show_entries.html', entries=entries, form=form) | def show_entries(): entries = Entry.query.order_by(Entry.id.desc()) return render_template('show_entries.html', entries=entries) | c5e50c58600cdba544439fd21026cf4b75d3f012 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11490/c5e50c58600cdba544439fd21026cf4b75d3f012/flaskr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
8219,
13332,
3222,
273,
3841,
18,
2271,
18,
1019,
67,
1637,
12,
1622,
18,
350,
18,
5569,
10756,
646,
273,
3841,
1204,
1435,
327,
1743,
67,
3202,
2668,
4500,
67,
8219,
18,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
67,
8219,
13332,
3222,
273,
3841,
18,
2271,
18,
1019,
67,
1637,
12,
1622,
18,
350,
18,
5569,
10756,
646,
273,
3841,
1204,
1435,
327,
1743,
67,
3202,
2668,
4500,
67,
8219,
18,
262... |
elif art_loc == self.ART_LOCATION_ALBUM: | elif art_loc == consts.ART_LOCATION_ALBUM: | def target_image_filename(self, force_location=None, songpath=None, artist=None, album=None): # Only pass songpath, artist, and album if we are trying to get the # filename for an album that isn't currently playing if self.conn: # If no info passed, you info from currently playing song: if not album: album = mpdh.get(s... | 7db37f4b4deed9563bae6ce768b1202d3a5e68f1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2312/7db37f4b4deed9563bae6ce768b1202d3a5e68f1/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1018,
67,
2730,
67,
3459,
12,
2890,
16,
2944,
67,
3562,
33,
7036,
16,
17180,
803,
33,
7036,
16,
15469,
33,
7036,
16,
14844,
33,
7036,
4672,
468,
5098,
1342,
17180,
803,
16,
15469,
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,
1018,
67,
2730,
67,
3459,
12,
2890,
16,
2944,
67,
3562,
33,
7036,
16,
17180,
803,
33,
7036,
16,
15469,
33,
7036,
16,
14844,
33,
7036,
4672,
468,
5098,
1342,
17180,
803,
16,
15469,
16,
... |
if settings['color']: self.updateSelectedObjColor(settings['color']) | color = settings['color'] if color: self.setCurrentColor(color) self.setResetColor(color) baseline.setColor(color) | def setSignBaselineStyle(self, val): baseline=self.currentBaselineDNA if baseline: settings={} if val == '<custom>': return elif val == 'Zero': self.levelEditor.replaceSelectedEnabled=0 # Don't set string: self.baselineString.set('') self.addCurveFloater.set(0) self.addKernFloater.set(0) self.addWiggleFloater.set(0) s... | c2c59d71bc85491dbe79631deb02cf50859b960b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/c2c59d71bc85491dbe79631deb02cf50859b960b/LevelEditor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2766,
16635,
2885,
12,
2890,
16,
1244,
4672,
14243,
33,
2890,
18,
2972,
16635,
8609,
37,
309,
14243,
30,
1947,
12938,
309,
1244,
422,
2368,
3662,
1870,
30,
327,
1327,
1244,
422,
296... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2766,
16635,
2885,
12,
2890,
16,
1244,
4672,
14243,
33,
2890,
18,
2972,
16635,
8609,
37,
309,
14243,
30,
1947,
12938,
309,
1244,
422,
2368,
3662,
1870,
30,
327,
1327,
1244,
422,
296... |
def command_join(self, args): | def command_join(self, arg): | def command_join(self, args): """ /join [room][/nick] [password] """ password = None if len(args) == 0: r = self.current_room() if r.name == 'Info': return room = r.name nick = r.own_nick else: info = args[0].split('/') if len(info) == 1: default = os.environ.get('USER') if os.environ.get('USER') else 'poezio' nick = c... | 1c7377804051166c26f33457378524d192077c66 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9814/1c7377804051166c26f33457378524d192077c66/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
5701,
12,
2890,
16,
1501,
4672,
3536,
342,
5701,
306,
13924,
6362,
19,
17091,
65,
306,
3664,
65,
3536,
2201,
273,
599,
309,
562,
12,
1968,
13,
422,
374,
30,
436,
273,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
5701,
12,
2890,
16,
1501,
4672,
3536,
342,
5701,
306,
13924,
6362,
19,
17091,
65,
306,
3664,
65,
3536,
2201,
273,
599,
309,
562,
12,
1968,
13,
422,
374,
30,
436,
273,
365,
... |
class CellArgumentsRenderer(gtk.GenericCellRenderer): | class CellDBUSArgumentsRenderer(gtk.GenericCellRenderer): | def do_start_editing(*args): pass | 52a18dc9abc5f0d68a536f1ffff67bac53cc3297 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2456/52a18dc9abc5f0d68a536f1ffff67bac53cc3297/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
67,
4619,
310,
30857,
1968,
4672,
1342,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1937,
67,
4619,
310,
30857,
1968,
4672,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
page=page, sort=sort) | page=page, sort=sort, safe_search=safe_search, \ content_type=content_type) | def photos_search(user_id='', auth=False, tags='', tag_mode='', text='',\ min_upload_date='', max_upload_date='',\ min_taken_date='', max_taken_date='', \ license='', per_page='', page='', sort=''): """Returns a list of Photo objects. If auth=True then will auth the user. Can see private etc """ method = 'flickr.pho... | 744f1a93928b0dac85d249074910e4876b58085c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5610/744f1a93928b0dac85d249074910e4876b58085c/flickr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18185,
67,
3072,
12,
1355,
67,
350,
2218,
2187,
1357,
33,
8381,
16,
225,
2342,
2218,
2187,
1047,
67,
3188,
2218,
2187,
977,
2218,
2187,
64,
1131,
67,
6327,
67,
712,
2218,
2187,
943,
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,
18185,
67,
3072,
12,
1355,
67,
350,
2218,
2187,
1357,
33,
8381,
16,
225,
2342,
2218,
2187,
1047,
67,
3188,
2218,
2187,
977,
2218,
2187,
64,
1131,
67,
6327,
67,
712,
2218,
2187,
943,
67... |
defkeys = aallowedkeywords.split(',') | defkeys = [key for key in aallowedkeywords.split(',') if key] | def acc_find_possible_roles(name_action, arguments): """Find all the possible roles that are enabled to action_name with given arguments. roles is a list of role_id""" query1 = """select a.id, a.allowedkeywords, a.optional from accACTION a where a.name = '%s'""" % (name_action) try: id_action, aallowedkeywords, optio... | 4b7c96ec494d17b784d6b2ab449eb3738a022742 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/4b7c96ec494d17b784d6b2ab449eb3738a022742/access_control_admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4078,
67,
4720,
67,
12708,
67,
7774,
12,
529,
67,
1128,
16,
1775,
4672,
3536,
3125,
777,
326,
3323,
4900,
716,
854,
3696,
358,
1301,
67,
529,
598,
864,
1775,
18,
4900,
353,
279,
666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4078,
67,
4720,
67,
12708,
67,
7774,
12,
529,
67,
1128,
16,
1775,
4672,
3536,
3125,
777,
326,
3323,
4900,
716,
854,
3696,
358,
1301,
67,
529,
598,
864,
1775,
18,
4900,
353,
279,
666,
... |
self.queue.put(slskmessages.AddUser(user)) | if user not in self.eventprocessor.watchedusers: self.queue.put(slskmessages.AddUser(user)) | def transferFile(self, direction, user, filename, path="", transfer = None, size=None, bitrate=None, length=None): """ Get a single file. path is a local path. if transfer object is not None, update it, otherwise create a new one.""" if transfer is None: transfer = Transfer(user = user, filename= filename, path=path, s... | 5540efdbc952edb58f1dd3122c4b57f4f061309e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8738/5540efdbc952edb58f1dd3122c4b57f4f061309e/transfers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
812,
12,
2890,
16,
4068,
16,
729,
16,
1544,
16,
589,
1546,
3113,
7412,
273,
599,
16,
963,
33,
7036,
16,
2831,
5141,
33,
7036,
16,
769,
33,
7036,
4672,
3536,
968,
279,
2202,
585... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7412,
812,
12,
2890,
16,
4068,
16,
729,
16,
1544,
16,
589,
1546,
3113,
7412,
273,
599,
16,
963,
33,
7036,
16,
2831,
5141,
33,
7036,
16,
769,
33,
7036,
4672,
3536,
968,
279,
2202,
585... |
if human: if self._truncate: pos = text.find(self._truncate) if 0 <= pos: text = text[:pos] if self._strip: if isinstance(self._strip, (str, unicode)): text = text.strip(self._strip) else: text = text.strip() | else: text = unicode(text, "ISO-8859-1") if self._truncate: pos = text.find(self._truncate) if 0 <= pos: text = text[:pos] if self._strip: if isinstance(self._strip, (str, unicode)): text = text.strip(self._strip) else: text = text.strip() | def createValue(self, human=True): # Compress data address (in bits) and size (in bytes) if human: addr = self.absolute_address + self._content_offset * 8 size = self._content_size else: addr = self.absolute_address size = self._size/8 if size == 0: # Empty string return u"" | d6012ef62ab0e12fce51623b0fd0960ca81ef56b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/d6012ef62ab0e12fce51623b0fd0960ca81ef56b/string_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
620,
12,
2890,
16,
8672,
33,
5510,
4672,
468,
25698,
501,
1758,
261,
267,
4125,
13,
471,
963,
261,
267,
1731,
13,
309,
8672,
30,
3091,
273,
365,
18,
12547,
67,
2867,
397,
365,
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,
752,
620,
12,
2890,
16,
8672,
33,
5510,
4672,
468,
25698,
501,
1758,
261,
267,
4125,
13,
471,
963,
261,
267,
1731,
13,
309,
8672,
30,
3091,
273,
365,
18,
12547,
67,
2867,
397,
365,
6... |
if list == None: | if list is None: | def get_match_block_indices(self, filter, list=None): """ Get the indexes of a list that match a given filter. | ff0d33b8714eb0df2381dfee466042fd58d46fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/ff0d33b8714eb0df2381dfee466042fd58d46fdb/kvm_config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1916,
67,
2629,
67,
6836,
12,
2890,
16,
1034,
16,
666,
33,
7036,
4672,
3536,
968,
326,
5596,
434,
279,
666,
716,
845,
279,
864,
1034,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1916,
67,
2629,
67,
6836,
12,
2890,
16,
1034,
16,
666,
33,
7036,
4672,
3536,
968,
326,
5596,
434,
279,
666,
716,
845,
279,
864,
1034,
18,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
return a2b_base64(s) | return a2b_base64(string) | def decode(string): """Decode a raw base64 string, returning a bytes object. This function does not parse a full MIME header value encoded with base64 (like =?iso-8895-1?b?bmloISBuaWgh?=) -- please use the high level email.Header class for that functionality. """ if not string: return bytes() elif isinstance(string, s... | 45feae158a4a8acc2b68f43f64b8fe7445658e29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/45feae158a4a8acc2b68f43f64b8fe7445658e29/base64mime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
1080,
4672,
3536,
6615,
279,
1831,
1026,
1105,
533,
16,
5785,
279,
1731,
733,
18,
225,
1220,
445,
1552,
486,
1109,
279,
1983,
13195,
1446,
460,
3749,
598,
1026,
1105,
261,
5625... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
1080,
4672,
3536,
6615,
279,
1831,
1026,
1105,
533,
16,
5785,
279,
1731,
733,
18,
225,
1220,
445,
1552,
486,
1109,
279,
1983,
13195,
1446,
460,
3749,
598,
1026,
1105,
261,
5625... |
for n in positional[:arglen]: | for n in positional[:argcount]: | def _callthrough(*pos, **kw): argcount = len(pos) kwcount = len(kw) if len(positional) > 0 and positional[0] == 'self': # FIXME, hack. # 'self' shouldn't be in the interface declarations, but is. argcount=argcount+1 if len(positional) > 0 or kwargs is not None or varargs is not None: if varargs is None and argcount > ... | 749403e84eca087d99022ef3cb45d36a859a9aa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/749403e84eca087d99022ef3cb45d36a859a9aa3/iproxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
10064,
30857,
917,
16,
2826,
9987,
4672,
1501,
1883,
273,
562,
12,
917,
13,
5323,
1883,
273,
562,
12,
9987,
13,
309,
562,
12,
3276,
287,
13,
405,
374,
471,
16780,
63,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
10064,
30857,
917,
16,
2826,
9987,
4672,
1501,
1883,
273,
562,
12,
917,
13,
5323,
1883,
273,
562,
12,
9987,
13,
309,
562,
12,
3276,
287,
13,
405,
374,
471,
16780,
63,
20,
... |
opts, args = getopt.getopt(sys.argv[1:], 'p:v') | opts, args = getopt.getopt(sys.argv[1:], 'p:s:v') | def main(): opts, args = getopt.getopt(sys.argv[1:], 'p:v') if len(args) != 1: usage() verbose = 0 start_pass = 1 for opt, value in opts: if opt == '-p': start_pass = int(value) if start_pass < 1 or start_pass > len(_passes): print 'ERROR: illegal value (%d) for starting pass. ' \ 'must be 1 through %d.' % (start_pas... | 0aed4ac78974210f5bfd397e351e64001ba6bb47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6036/0aed4ac78974210f5bfd397e351e64001ba6bb47/cvs2svn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
84,
30,
87,
30,
90,
6134,
309,
562,
12,
1968,
13,
480,
404,
30,
4084,
1435,
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,
2774,
13332,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
84,
30,
87,
30,
90,
6134,
309,
562,
12,
1968,
13,
480,
404,
30,
4084,
1435,
2... |
if pw: | if pw is not None: | def retry_http_basic_auth(self, host, req, realm): user,pw = self.passwd.find_user_password(realm, host) if pw: raw = "%s:%s" % (user, pw) auth = 'Basic %s' % base64.encodestring(raw).strip() if req.headers.get(self.auth_header, None) == auth: return None req.add_header(self.auth_header, auth) return self.parent.open(r... | de35f245c248a6bd2f7b54bb5e80e0e7b0c41f02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/de35f245c248a6bd2f7b54bb5e80e0e7b0c41f02/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
1479,
16,
1111,
16,
11319,
4672,
729,
16,
14921,
273,
365,
18,
24002,
18,
4720,
67,
1355,
67,
3664,
12,
24056,
16,
1479,
13,
309,
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,
3300,
67,
2505,
67,
13240,
67,
1944,
12,
2890,
16,
1479,
16,
1111,
16,
11319,
4672,
729,
16,
14921,
273,
365,
18,
24002,
18,
4720,
67,
1355,
67,
3664,
12,
24056,
16,
1479,
13,
309,
8... |
if re.search(key.replace("-", ".*-"), k): | if re.search("^" + key.replace("-", ".*-"), k): | def mojodb(c, source, target, argv): """mirror of Mojojojo's database. one parameter needed. valid subcommands: h[elp]|s[earch]. they require a parameter, too""" if len(argv) < 1: c.privmsg(target, "%s: 'mojodb' requires a parameter (record name)" % source) return sock = open("mojodb") records = pickle.load(sock) sock.... | f793f5feebf3ab46b8fc89be1a1a8794f6678e86 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10627/f793f5feebf3ab46b8fc89be1a1a8794f6678e86/events.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
6311,
10605,
12,
71,
16,
1084,
16,
1018,
16,
5261,
4672,
3536,
27197,
434,
490,
6311,
6311,
10007,
1807,
2063,
18,
1245,
1569,
3577,
18,
923,
23648,
30,
366,
63,
1992,
12369,
87,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
6311,
10605,
12,
71,
16,
1084,
16,
1018,
16,
5261,
4672,
3536,
27197,
434,
490,
6311,
6311,
10007,
1807,
2063,
18,
1245,
1569,
3577,
18,
923,
23648,
30,
366,
63,
1992,
12369,
87,
... |
os.system("cat /etc/ec2_version") | print file("/etc/ec2_version").read() | def ec2Version(): os.system("cat /etc/ec2_version") | a43e249584007e43e08b95af696aec36fe3b022c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4319/a43e249584007e43e08b95af696aec36fe3b022c/ec2-get-info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6557,
22,
1444,
13332,
1172,
585,
2932,
19,
14175,
19,
557,
22,
67,
1589,
20387,
896,
1435,
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,
... | [
1,
1,
1,
1,
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,
6557,
22,
1444,
13332,
1172,
585,
2932,
19,
14175,
19,
557,
22,
67,
1589,
20387,
896,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.SoundsService = tichy.Service.get("Sounds") | def run(self, parent, number, name=None, layout=None): """show the Caller window | 094287435ef9dd20d2c71a46c5e10bc97a10d1d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/094287435ef9dd20d2c71a46c5e10bc97a10d1d9/tele2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
982,
16,
1300,
16,
508,
33,
7036,
16,
3511,
33,
7036,
4672,
3536,
4500,
326,
20646,
2742,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
982,
16,
1300,
16,
508,
33,
7036,
16,
3511,
33,
7036,
4672,
3536,
4500,
326,
20646,
2742,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
page_dict = {} | page_dict = {'TitleIndex': 1} | def populate_page_dict(): """Extract wiki page names. This is used to detect broken wiki-links""" global page_dict page_dict = {} cnx = get_connection() cursor = cnx.cursor() cursor.execute('SELECT DISTINCT name FROM wiki') while 1: row = cursor.fetchone() if not row: break page_dict[row[0]] = 1 | 9177c36b0b76190678560da7b7c026626f973d58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/9177c36b0b76190678560da7b7c026626f973d58/Wiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
2433,
67,
1576,
13332,
3536,
4976,
9050,
1363,
1257,
18,
1220,
353,
1399,
358,
5966,
12933,
9050,
17,
7135,
8395,
2552,
1363,
67,
1576,
1363,
67,
1576,
273,
13666,
4247,
1016,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6490,
67,
2433,
67,
1576,
13332,
3536,
4976,
9050,
1363,
1257,
18,
1220,
353,
1399,
358,
5966,
12933,
9050,
17,
7135,
8395,
2552,
1363,
67,
1576,
1363,
67,
1576,
273,
13666,
4247,
1016,
... |
rm(filename + '.dir') rm(filename + '.dat') rm(filename + '.bak') | def test_dumbdbm_read(self): f = dumbdbm.open(self._fname, 'r') self.read_helper(f) f.close() def test_dumbdbm_keys(self): f = dumbdbm.open(self._fname) keys = self.keys_helper(f) f.close() def read_helper(self, f): keys = self.keys_helper(f) for key in self._dict: self.assertEqual(self._dict[key], f[key]) def keys_... | def rm(fn): try: os.unlink(fn) except os.error: pass | 96222f9d9d953cf0b86bc98188ecba5f03f21c64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/96222f9d9d953cf0b86bc98188ecba5f03f21c64/test_dumbdbm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6692,
12,
4293,
4672,
775,
30,
1140,
18,
318,
1232,
12,
4293,
13,
1335,
1140,
18,
1636,
30,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6692,
12,
4293,
4672,
775,
30,
1140,
18,
318,
1232,
12,
4293,
13,
1335,
1140,
18,
1636,
30,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
version=utils.get_full_version('testdoc.py'), | version=version.get_full_version('testdoc.py'), | def serialize_test_doc(suite, outpath, title): outfile = open(outpath, 'w') serializer = TestdocSerializer(outfile, suite) ttuple = time.localtime() str_time = utils.format_time(ttuple, daytimesep=' ', gmtsep=' ') int_time = long(time.mktime(ttuple)) if title: title = title.replace('_', ' ') else: title = 'Do... | 2859dae0ba96c16fddc54d084560c3ea44d77dad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/2859dae0ba96c16fddc54d084560c3ea44d77dad/testdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4472,
67,
3813,
67,
2434,
12,
30676,
16,
596,
803,
16,
2077,
4672,
8756,
273,
1696,
12,
659,
803,
16,
296,
91,
6134,
6340,
273,
7766,
2434,
6306,
12,
26050,
16,
11371,
13,
3574,
2268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4472,
67,
3813,
67,
2434,
12,
30676,
16,
596,
803,
16,
2077,
4672,
8756,
273,
1696,
12,
659,
803,
16,
296,
91,
6134,
6340,
273,
7766,
2434,
6306,
12,
26050,
16,
11371,
13,
3574,
2268,
... |
if not self.suppress_para: self.w('<para>') | if not self.suppress_para: self.w('<para style="BodyText">') | def visit_paragraph(self, node): if not self.suppress_para: self.w('<para>') | b006adbbd1fe60771872c6725f715ccd5dbd79d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/b006adbbd1fe60771872c6725f715ccd5dbd79d0/pythonpoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
22445,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
10840,
67,
25072,
30,
365,
18,
91,
2668,
32,
25072,
1870,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
67,
22445,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
10840,
67,
25072,
30,
365,
18,
91,
2668,
32,
25072,
1870,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
TESTS:: | TESTS: | def _init_allgens(self, ftpdata, largest_conductor=0): """ Initialize the allgens table by reading the corresponding ftpdata files and importing them into the database. """ if self.read_only: raise RuntimeError, "The database must not be read_only." files = os.listdir(ftpdata) files.sort() name = "allgens" c = _map[nam... | fb3431bba902a2778bc04ef2120a158db023876d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/fb3431bba902a2778bc04ef2120a158db023876d/cremona.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
454,
23730,
12,
2890,
16,
13487,
892,
16,
12756,
67,
591,
1828,
280,
33,
20,
4672,
3536,
9190,
326,
777,
23730,
1014,
635,
6453,
326,
4656,
13487,
892,
1390,
471,
25077,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2738,
67,
454,
23730,
12,
2890,
16,
13487,
892,
16,
12756,
67,
591,
1828,
280,
33,
20,
4672,
3536,
9190,
326,
777,
23730,
1014,
635,
6453,
326,
4656,
13487,
892,
1390,
471,
25077,
... |
data_id = self.search(cr, uid, [])[0] | data_id = self.search(cr, uid, [])[0] | def import_cal(self, cr, uid, content, data_id=None, context=None): """ Import Calendar @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param data_id: Get Data’s ID or False @param context: A standard dictionary for contextual... | 1263dd94aec18dc93f2c1301bed8d5db4810ef61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/1263dd94aec18dc93f2c1301bed8d5db4810ef61/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
913,
16,
501,
67,
350,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
6164,
5542,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
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,
1930,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
913,
16,
501,
67,
350,
33,
7036,
16,
819,
33,
7036,
4672,
3536,
6164,
5542,
632,
891,
365,
30,
1021,
733,
4407,
632,
891,
4422,
30,
... |
""" | """ | def flimage_write_annotation(pImage): """ flimage_write_annotation(pImage) -> num. """ retval = _flimage_write_annotation(pImage) return retval | 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,
2730,
67,
2626,
67,
11495,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
2626,
67,
11495,
12,
84,
2040,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
2626,
67,
11495,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
2730,
67,
2626,
67,
11495,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
2626,
67,
11495,
12,
84,
2040,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
2626,
67,
11495,
... |
"""Add what's missing in ``query`` to implement all appropriate ir.rules | """Add what's missing in ``query`` to implement all appropriate ir.rules | def _apply_ir_rules(self, cr, uid, query, mode='read', context=None): """Add what's missing in ``query`` to implement all appropriate ir.rules (using the ``model_name``'s rules or the current model's rules if ``model_name`` is None) | 2e1dde1dfcd12341edad205aca161274199c0789 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/2e1dde1dfcd12341edad205aca161274199c0789/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
67,
481,
67,
7482,
12,
2890,
16,
4422,
16,
4555,
16,
843,
16,
1965,
2218,
896,
2187,
819,
33,
7036,
4672,
3536,
986,
4121,
1807,
3315,
316,
12176,
2271,
10335,
358,
2348,
77... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9010,
67,
481,
67,
7482,
12,
2890,
16,
4422,
16,
4555,
16,
843,
16,
1965,
2218,
896,
2187,
819,
33,
7036,
4672,
3536,
986,
4121,
1807,
3315,
316,
12176,
2271,
10335,
358,
2348,
77... |
sys.exit(60311) | exitCode = 60311 f = open("exit.status", 'w') f.write(str(exitCode)) f.close() sys.exit(exitCode) | def stageOut(): """ _stageOut_ Main function for this module. Loads data from the task and manages the stage out process for a single attempt """ state = TaskState(os.getcwd()) state.loadRunResDB() try: config = state._RunResDB.toDictionary()[state.taskAttrs['Name']] except StandardError, ex: msg = "Unable to load de... | 488337f01f86931e07f0464f98d7197a92193809 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/488337f01f86931e07f0464f98d7197a92193809/RuntimeStageOut.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6009,
1182,
13332,
3536,
389,
12869,
1182,
67,
225,
12740,
445,
364,
333,
1605,
18,
4444,
87,
501,
628,
326,
1562,
471,
20754,
281,
326,
6009,
596,
1207,
364,
279,
2202,
4395,
225,
3536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6009,
1182,
13332,
3536,
389,
12869,
1182,
67,
225,
12740,
445,
364,
333,
1605,
18,
4444,
87,
501,
628,
326,
1562,
471,
20754,
281,
326,
6009,
596,
1207,
364,
279,
2202,
4395,
225,
3536,... |
['include.txt', 'raw.txt']) | [os.path.join('data', 'include.txt'), os.path.join('data', 'raw.txt')]) | def test_dependencies(self): self.assertEqual(self.get_record(), ['include.txt', 'raw.txt']) self.assertEqual(self.get_record(writer_name='latex'), ['include.txt', 'raw.txt', 'some_image.png']) | 24796514c06c6206215a972cc6acac30b51471de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/24796514c06c6206215a972cc6acac30b51471de/test_dependencies.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11037,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
588,
67,
3366,
9334,
306,
538,
18,
803,
18,
5701,
2668,
892,
2187,
296,
6702,
18,
5830,
19899,
1140,
18,
803,
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,
1842,
67,
11037,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
588,
67,
3366,
9334,
306,
538,
18,
803,
18,
5701,
2668,
892,
2187,
296,
6702,
18,
5830,
19899,
1140,
18,
803,
18,
... |
self.splash = AdvancedSplash(None, bitmap=splashbitmap, extrastyle=AS_SHADOW_BITMAP|AS_CENTER_ON_SCREEN|AS_TIMEOUT, timeout=5000, shadowcolour=wx.Color(0,255,0)) | self.splash = wx.SplashScreen(splashbitmap, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT, 2000, None, -1) | def OnInit(self): wx.InitAllImageHandlers() # splash splashimage = wx.ImageFromStream(cStringIO.StringIO(CellProfilerSplash)) # If the splash image has alpha, it shows up transparently on # windows, so we blend it into a white background. splashbitmap = wx.EmptyBitmap(splashimage.GetWidth(), splashimage.GetHeight()) d... | b4d37a9e2894bc5fabd9d064b755af4b5e1b5866 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/b4d37a9e2894bc5fabd9d064b755af4b5e1b5866/cellprofilerapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2570,
12,
2890,
4672,
7075,
18,
2570,
1595,
2040,
6919,
1435,
225,
468,
6121,
961,
6121,
961,
2730,
273,
7075,
18,
2040,
1265,
1228,
12,
71,
780,
4294,
18,
780,
4294,
12,
4020,
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,
2755,
2570,
12,
2890,
4672,
7075,
18,
2570,
1595,
2040,
6919,
1435,
225,
468,
6121,
961,
6121,
961,
2730,
273,
7075,
18,
2040,
1265,
1228,
12,
71,
780,
4294,
18,
780,
4294,
12,
4020,
2... |
('ASPECT_MAX', '16777573' ), | ('ASPECT_MAX', '357' ), | def lcp_2(): ds = gdal.Open('data/test_USGS_LFNM_Alb83.lcp') if ds.RasterCount != 8: gdal.post_reason('wrong number of bands') return 'fail' metadata = [ ('LATITUDE', '48'), ('LINEAR_UNIT', 'Meters'), ('DESCRIPTION', '') ] md = ds.GetMetadata() for item in metadata: if md[item[0]] != item[1]: gdaltest.post_reason('wr... | a36696c833b65ab5e544361e8bf6514eb8585fe7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10289/a36696c833b65ab5e544361e8bf6514eb8585fe7/lcp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
4057,
67,
22,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
3813,
67,
3378,
16113,
67,
9105,
50,
49,
67,
1067,
70,
10261,
18,
80,
4057,
6134,
309,
3780,
18,
18637,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
328,
4057,
67,
22,
13332,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
892,
19,
3813,
67,
3378,
16113,
67,
9105,
50,
49,
67,
1067,
70,
10261,
18,
80,
4057,
6134,
309,
3780,
18,
18637,
... |
[{'width': 180.0-140.0, 'line_width': 1.0, 'height': 60.0-20.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0x33FF00A0L, 'y': 20.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 240.0-180.0, 'line_width': 1.0, 'height': 120.0-60.0, 'stroke_color_rgba': 255L, 'fill_color_rgba': 0xFF0000A0L, 'y': 60.0, 'tool': 'FILL_RECT... | [{'width': 180.0-140.0, 'line_width': 1.0, 'height': 60.0-20.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_GREEN|C_FILL, 'y': 20.0, 'tool': 'FILL_RECT', 'x': 140.0}, {'width': 240.0-180.0, 'line_width': 1.0, 'height': 120.0-60.0, 'stroke_color_rgba': C_STROKE, 'fill_color_rgba': C_RED|C_FILL, 'y': 60.0, 'tool'... | def init_item_list(self): | afe6d4cfa4a483507d506d63168d467aba7acf11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11306/afe6d4cfa4a483507d506d63168d467aba7acf11/redraw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1726,
67,
1098,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
1726,
67,
1098,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.substringSet = set() | self._substringSet = set() | def _hasSyllableSubstring(self, string): """ Checks if the given string is a syllable supported by this romanisation or a substring of one. | 01cc0f3b3089a2c824402c7d0c59f75b7c5af166 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/01cc0f3b3089a2c824402c7d0c59f75b7c5af166/operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5332,
10876,
2906,
429,
1676,
1080,
12,
2890,
16,
533,
4672,
3536,
13074,
309,
326,
864,
533,
353,
279,
29136,
3260,
635,
333,
24137,
304,
10742,
578,
279,
3019,
434,
1245,
18,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5332,
10876,
2906,
429,
1676,
1080,
12,
2890,
16,
533,
4672,
3536,
13074,
309,
326,
864,
533,
353,
279,
29136,
3260,
635,
333,
24137,
304,
10742,
578,
279,
3019,
434,
1245,
18,
2,
... |
else: ext = ".pyc" pyfile = os.path.join(path, baseName + ".py") | pyfile = os.path.join(path, baseName + ext) | def _find_localserver_module(): import win32com.server path = win32com.server.__path__[0] baseName = "localserver" pyfile = os.path.join(path, baseName + ".py") try: os.stat(pyfile) except os.error: # See if we have a compiled extension if __debug__: ext = ".pyo" else: ext = ".pyc" pyfile = os.path.join(path, baseName ... | 5f00f880a2fd6cfd09ebacdb33dcebccb289d3a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/5f00f880a2fd6cfd09ebacdb33dcebccb289d3a4/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
3729,
3567,
67,
2978,
13332,
1930,
5657,
1578,
832,
18,
3567,
589,
273,
5657,
1578,
832,
18,
3567,
16186,
803,
972,
63,
20,
65,
16162,
273,
315,
3729,
3567,
6,
2395,
768... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
67,
3729,
3567,
67,
2978,
13332,
1930,
5657,
1578,
832,
18,
3567,
589,
273,
5657,
1578,
832,
18,
3567,
16186,
803,
972,
63,
20,
65,
16162,
273,
315,
3729,
3567,
6,
2395,
768... |
return gauss.GetOutput() | app = vtk.vtkImageAppend() app.PreserveExtentsOn() app.SetAppendAxis(2) app.SetInput(0, imagedata) app.SetInput(1, gauss.GetOutput()) app.Update() return app.GetOutput() | def BuildEditedImage(imagedata, points): """ Editing the original image in accordance with the edit points in the editor, it is necessary to generate the vtkPolyData via vtkContourFilter """ for point in points: x, y, z = point colour = points[point] imagedata.SetScalarComponentFromDouble(x, y, z, 0, colour) imagedata.... | 9e6e2b60849cc23faa6fec135ab36b97af686474 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/9e6e2b60849cc23faa6fec135ab36b97af686474/imagedata_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3998,
4666,
329,
2040,
12,
381,
11349,
396,
16,
3143,
4672,
3536,
15328,
310,
326,
2282,
1316,
316,
1721,
29342,
598,
326,
3874,
3143,
316,
326,
4858,
16,
518,
353,
4573,
358,
2103,
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,
3998,
4666,
329,
2040,
12,
381,
11349,
396,
16,
3143,
4672,
3536,
15328,
310,
326,
2282,
1316,
316,
1721,
29342,
598,
326,
3874,
3143,
316,
326,
4858,
16,
518,
353,
4573,
358,
2103,
326,... |
if not language[0].upper()+language[1:] in self.namespaces(): self._validlanguages += [language] | if not language[0].upper() + language[1:] in self.namespaces(): self._validlanguages.append(language) | def __init__(self, code, fam=None, user=None): """Constructor takes three arguments: | 05fda925e110e2032474f77dae530bb1aa818fe0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/05fda925e110e2032474f77dae530bb1aa818fe0/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
981,
16,
26688,
33,
7036,
16,
729,
33,
7036,
4672,
3536,
6293,
5530,
8925,
1775,
30,
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,
1001,
2738,
972,
12,
2890,
16,
981,
16,
26688,
33,
7036,
16,
729,
33,
7036,
4672,
3536,
6293,
5530,
8925,
1775,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print 'Listing', dir, '...' | if not quiet: print 'Listing', dir, '...' | def compile_dir(dir, maxlevels=10, ddir=None, force=0, rx=None): """Byte-compile all modules in the given directory tree. Arguments (only dir is required): dir: the directory to byte-compile maxlevels: maximum recursion level (default 10) ddir: if given, purported directory name (this is the directory name... | 6fb3494c60cbdbefb2193ec4f676a8916063457f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6fb3494c60cbdbefb2193ec4f676a8916063457f/compileall.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4074,
67,
1214,
12,
1214,
16,
943,
12095,
33,
2163,
16,
302,
1214,
33,
7036,
16,
2944,
33,
20,
16,
8581,
33,
7036,
4672,
3536,
3216,
17,
11100,
777,
4381,
316,
326,
864,
1867,
2151,
... |
def submit(self, req, newDocstring): self.root.newDocstring(userIP(req), self.ob, self.origob, newDocstring) | def render_url(self, context, data): return 'edit?ob=' + self.ob.fullName() | 1f39f52409cf28bc35aad913b177c289917f748a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/1f39f52409cf28bc35aad913b177c289917f748a/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
718,
12,
2890,
16,
819,
16,
501,
4672,
327,
296,
4619,
35,
947,
2218,
397,
365,
18,
947,
18,
2854,
461,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
718,
12,
2890,
16,
819,
16,
501,
4672,
327,
296,
4619,
35,
947,
2218,
397,
365,
18,
947,
18,
2854,
461,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
xhash = x+(width/4)*i-(2.5*len(str(xtext))) svg.text(xhash, y+height+hashsize*2+3, str(xtext),12) | xtext = '%s' % local_int(xtext) if not xtext%1 else xtext xhash = x+(width/4)*i-(2.6*local_len(xtext)) svg.text(xhash, y+height+hashsize*2+3, xtext,12) | def drawGraph(request, xStart=-180.0, yStart=-180.0, xEnd=180.0, yEnd=180.0, attribute='Observations', xProperty='phi', yProperty='psi', reference=None, residue=None, xBin=10, yBin=10): svg = SVG() x = 65; y = 45; height = 360; width = 360; hashsize = 10 #background svg.rect(x, y, width, height, 1, '#00fffff', '#2222... | fcacdc39699fe40638f5434bd5705b2022bfa9e9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6163/fcacdc39699fe40638f5434bd5705b2022bfa9e9/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
4137,
12,
2293,
16,
619,
1685,
29711,
18278,
18,
20,
16,
677,
1685,
29711,
18278,
18,
20,
16,
619,
1638,
33,
18278,
18,
20,
16,
677,
1638,
33,
18278,
18,
20,
16,
1566,
2218,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3724,
4137,
12,
2293,
16,
619,
1685,
29711,
18278,
18,
20,
16,
677,
1685,
29711,
18278,
18,
20,
16,
619,
1638,
33,
18278,
18,
20,
16,
677,
1638,
33,
18278,
18,
20,
16,
1566,
2218,
26... |
if self.protocol == 'irc': raise Exception('[Internal Error] "'+self.nickname+'" comes from IRC') | def sayOnIRC(self, message): if self.protocol == 'irc': raise Exception('[Internal Error] "'+self.nickname+'" comes from IRC') try: if self.irc_connection == None: self.bridge.irc_connection.privmsg(self.bridge.irc_room, '<'+self.nickname+'> '+message) else: self.irc_connection.privmsg(self.bridge.irc_room, message) e... | d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/d96bf24efa4ff6b4c74a1fdc2610fadf512c84fe/participant.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12532,
1398,
30240,
12,
2890,
16,
883,
4672,
775,
30,
309,
365,
18,
481,
71,
67,
4071,
422,
599,
30,
365,
18,
18337,
18,
481,
71,
67,
4071,
18,
11365,
3576,
12,
2890,
18,
18337,
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,
12532,
1398,
30240,
12,
2890,
16,
883,
4672,
775,
30,
309,
365,
18,
481,
71,
67,
4071,
422,
599,
30,
365,
18,
18337,
18,
481,
71,
67,
4071,
18,
11365,
3576,
12,
2890,
18,
18337,
18,
... | |
find_all_elements_from_set(child, gi_set, nodes) | __find_all_elements_from_set(child, gi_set, nodes) | def find_all_elements_from_set(doc, gi_set, nodes=None): if nodes is None: nodes = [] if doc.nodeType == ELEMENT and doc.tagName in gi_set: nodes.append(doc) for child in doc.childNodes: if child.nodeType == ELEMENT: find_all_elements_from_set(child, gi_set, nodes) return nodes | 2c0293aef2d090f8e00966cfa740a69c2f980b60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c0293aef2d090f8e00966cfa740a69c2f980b60/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
454,
67,
6274,
67,
2080,
67,
542,
12,
2434,
16,
16221,
67,
542,
16,
2199,
33,
7036,
4672,
309,
2199,
353,
599,
30,
2199,
273,
5378,
309,
997,
18,
2159,
559,
422,
13424,
471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
454,
67,
6274,
67,
2080,
67,
542,
12,
2434,
16,
16221,
67,
542,
16,
2199,
33,
7036,
4672,
309,
2199,
353,
599,
30,
2199,
273,
5378,
309,
997,
18,
2159,
559,
422,
13424,
471... |
if rinfo != None: | if ainfo != None: ainfo = string.replace(ainfo, "'", " ") ainfo = string.strip(ainfo) | def analyzeAPIFunction(top): file = top.prop("file") if file == None: return 0 symbol = top.prop("name") if symbol == None: return 0 info = None cur = top.children while cur != None: if cur.type == 'text': cur = cur.next continue if cur.name == "info": info = cur.content elif cur.name == "return": rinfo = cur.prop("in... | f007012cd9c85dcc9d1a5aa234f02a02989c2081 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/f007012cd9c85dcc9d1a5aa234f02a02989c2081/index.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
2557,
2083,
12,
3669,
4672,
585,
273,
1760,
18,
5986,
2932,
768,
7923,
309,
585,
422,
599,
30,
327,
374,
3273,
273,
1760,
18,
5986,
2932,
529,
7923,
309,
3273,
422,
599,
30,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12375,
2557,
2083,
12,
3669,
4672,
585,
273,
1760,
18,
5986,
2932,
768,
7923,
309,
585,
422,
599,
30,
327,
374,
3273,
273,
1760,
18,
5986,
2932,
529,
7923,
309,
3273,
422,
599,
30,
327... |
self.watch_file(self.base + ".lof") | self.watch_file(self.src_base + ".lof") | def h_listoffigures (self, dict): self.watch_file(self.base + ".lof") | 2e6edd41b641e8206b52357c231c9abd18bf1d85 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/2e6edd41b641e8206b52357c231c9abd18bf1d85/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
67,
1098,
792,
470,
1823,
261,
2890,
16,
2065,
4672,
365,
18,
7585,
67,
768,
12,
2890,
18,
1969,
397,
3552,
383,
74,
7923,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
366,
67,
1098,
792,
470,
1823,
261,
2890,
16,
2065,
4672,
365,
18,
7585,
67,
768,
12,
2890,
18,
1969,
397,
3552,
383,
74,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Draw a frame in 3D. Primarily used as a helper function for creating frames for 3D graphics viewing. | Draw a frame in 3-D. Primarily used as a helper function for creating frames for 3-D graphics viewing. | def frame3d(lower_left, upper_right, **kwds): """ Draw a frame in 3D. Primarily used as a helper function for creating frames for 3D graphics viewing. INPUT: - ``lower_left`` - the lower left corner of the frame, as a list, tuple, or vector - ``upper_right`` - the upper right corner of the frame, as a list, tuple, ... | ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ac565fa7b2ba6c3b1ae16697410547f7b11f5dcf/shapes2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2623,
23,
72,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
316,
890,
17,
40,
18,
225,
2301,
381,
10243,
1399,
487,
279,
4222,
445,
364,
4979,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2623,
23,
72,
12,
8167,
67,
4482,
16,
3854,
67,
4083,
16,
2826,
25577,
4672,
3536,
10184,
279,
2623,
316,
890,
17,
40,
18,
225,
2301,
381,
10243,
1399,
487,
279,
4222,
445,
364,
4979,
... |
if (optlevel==2): cmd = cmd + ' -DNDEBUG ' if (optlevel==3): cmd = cmd + ' -DNDEBUG -DFORCE_INLINING' | if (optlevel==2): cmd = cmd + ' ' if (optlevel==3): cmd = cmd + ' -DFORCE_INLINING' | def CompileIgate(ipath,opts,outd,obj,src,module,library,files): outc = obj[:-4]+".cxx" wobj = FindLocation(obj, ipath) woutd = FindLocation(outd, ipath) woutc = "built/tmp/"+outc xipath = ipath + ["built/include"] if (OMIT.count("PYTHON")): WriteFile(woutc,"") WriteFile(woutd,"") CompileCxx(obj,outc,ipath,opts) return ... | a20a220e47917af619d7b2113fc7b38ba9301800 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/a20a220e47917af619d7b2113fc7b38ba9301800/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
45,
10115,
12,
625,
421,
16,
4952,
16,
659,
72,
16,
2603,
16,
4816,
16,
2978,
16,
12083,
16,
2354,
4672,
596,
71,
273,
1081,
10531,
17,
24,
3737,
9654,
71,
5279,
6,
341,
2603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16143,
45,
10115,
12,
625,
421,
16,
4952,
16,
659,
72,
16,
2603,
16,
4816,
16,
2978,
16,
12083,
16,
2354,
4672,
596,
71,
273,
1081,
10531,
17,
24,
3737,
9654,
71,
5279,
6,
341,
2603,... |
if self.tilePressed.board and self.tilePressed.board.tileDragEnabled: | board = self.tilePressed.board if board and board.tileDragEnabled: | def mouseMoveEvent(self, event): """selects the correct tile""" assert event # quieten pylint if self.tilePressed and self.tilePressed.opacity: if self.tilePressed.board and self.tilePressed.board.tileDragEnabled: drag = self.drag(self.tilePressed) drag.exec_(Qt.MoveAction) self.tilePressed = None | a641b2dc7be52fea34d11135378634ba97cc924a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/a641b2dc7be52fea34d11135378634ba97cc924a/board.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7644,
7607,
1133,
12,
2890,
16,
871,
4672,
3536,
4025,
87,
326,
3434,
4769,
8395,
1815,
871,
468,
10902,
275,
7601,
309,
365,
18,
15368,
24624,
471,
365,
18,
15368,
24624,
18,
19515,
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,
7644,
7607,
1133,
12,
2890,
16,
871,
4672,
3536,
4025,
87,
326,
3434,
4769,
8395,
1815,
871,
468,
10902,
275,
7601,
309,
365,
18,
15368,
24624,
471,
365,
18,
15368,
24624,
18,
19515,
30,... |
self.lastViewed = datetime.now() - timedelta(hours=6) | self.lastViewed = datetime.now() | def markAsViewed(self): # FIXME this is a hack to make new behave correctly. See #655 self.lastViewed = datetime.now() - timedelta(hours=6) self.updateUandA() | 10e27db44382d6cbef18704b328e2c36557f13fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/10e27db44382d6cbef18704b328e2c36557f13fa/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
1463,
1767,
329,
12,
2890,
4672,
468,
9852,
333,
353,
279,
11769,
358,
1221,
394,
31085,
8783,
18,
2164,
468,
26,
2539,
365,
18,
2722,
1767,
329,
273,
3314,
18,
3338,
1435,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2267,
1463,
1767,
329,
12,
2890,
4672,
468,
9852,
333,
353,
279,
11769,
358,
1221,
394,
31085,
8783,
18,
2164,
468,
26,
2539,
365,
18,
2722,
1767,
329,
273,
3314,
18,
3338,
1435,
365,
... |
addTool(self.editor, toolbar, self.debugBmp, 'Debug module', self.OnDebug) | addTool(self.editor, toolbar, self.debugBmp, 'Debug application', self.OnDebugApp) | def addTools(self, toolbar, model): SourceController.addTools(self, toolbar, model) toolbar.AddSeparator() addTool(self.editor, toolbar, self.profileBmp, 'Profile', self.OnProfile) addTool(self.editor, toolbar, self.compileBmp, 'Check source', self.OnCheckSource) if hasattr(model, 'app') and model.app: addTool(self.edi... | afa522661a447442b3c289ff5d5c5109872d86de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/afa522661a447442b3c289ff5d5c5109872d86de/PythonControllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9604,
3528,
12,
2890,
16,
12748,
16,
938,
4672,
4998,
2933,
18,
1289,
10348,
12,
2890,
16,
12748,
16,
938,
13,
12748,
18,
986,
6581,
1435,
527,
6364,
12,
2890,
18,
9177,
16,
12748,
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,
9604,
3528,
12,
2890,
16,
12748,
16,
938,
4672,
4998,
2933,
18,
1289,
10348,
12,
2890,
16,
12748,
16,
938,
13,
12748,
18,
986,
6581,
1435,
527,
6364,
12,
2890,
18,
9177,
16,
12748,
16,... |
for x in l: | t = copy(l) for x in t: | def all_meta_types(self, interfaces=None): """ What can you put inside me? """ if len(self.folder_meta_types) > 0: #filter meta types l = list(filter(lambda x: x['name'] in self.folder_meta_types, Products.meta_types)) #handle uninstalled pluggable meta_types pluggable_meta_types = self.get_pluggable_metatypes() plugga... | 9ad457adcb931f3b234c96fbe5bb7eb91567e32f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3287/9ad457adcb931f3b234c96fbe5bb7eb91567e32f/NyFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
3901,
67,
2352,
12,
2890,
16,
7349,
33,
7036,
4672,
3536,
18734,
848,
1846,
1378,
4832,
1791,
35,
3536,
309,
562,
12,
2890,
18,
5609,
67,
3901,
67,
2352,
13,
405,
374,
30,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
777,
67,
3901,
67,
2352,
12,
2890,
16,
7349,
33,
7036,
4672,
3536,
18734,
848,
1846,
1378,
4832,
1791,
35,
3536,
309,
562,
12,
2890,
18,
5609,
67,
3901,
67,
2352,
13,
405,
374,
30,
4... |
if _debug: sys.stderr.write('self.baseuri=%s\n' % baseuri) | def unknown_endtag(self, tag): if _debug: sys.stderr.write('end %s\n' % tag) # match namespaces if tag.find(':') <> -1: prefix, suffix = tag.split(':', 1) else: prefix, suffix = '', tag prefix = self.namespacemap.get(prefix, prefix) if prefix: prefix = prefix + '_' | 99200d105c483d0627b0c87195d2d3372fe4ba91 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/99200d105c483d0627b0c87195d2d3372fe4ba91/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5917,
67,
409,
2692,
12,
2890,
16,
1047,
4672,
309,
389,
4148,
30,
2589,
18,
11241,
18,
2626,
2668,
409,
738,
87,
64,
82,
11,
738,
1047,
13,
468,
845,
7728,
309,
1047,
18,
4720,
2668... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5917,
67,
409,
2692,
12,
2890,
16,
1047,
4672,
309,
389,
4148,
30,
2589,
18,
11241,
18,
2626,
2668,
409,
738,
87,
64,
82,
11,
738,
1047,
13,
468,
845,
7728,
309,
1047,
18,
4720,
2668... | |
return ( config[ 'routes.map' ].match( ref ), params ) | pDict = dict( cgi.parse_qsl( params ) ) return ( config[ 'routes.map' ].match( ref ), pDict ) | def __mapReferer(self): ref = request.environ[ 'HTTP_REFERER' ] ref = ref[ ref.find( "/", 8 ) : ] scriptName = request.environ[ 'SCRIPT_NAME' ] if scriptName: if scriptName[0] != "/": scriptName = "/%s" % scriptName if ref.find( scriptName ) == 0: ref = ref[ len( scriptName ): ] pI = ref.find( '?' ); if pI > -1: params... | 7fdd2b25545b2191e8117126c58b078dab82274d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12767/7fdd2b25545b2191e8117126c58b078dab82274d/userdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
310... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
310... |
_string = p.sub(r"\\textcolor{\1}{\2}", _string) | string = p.sub(r"\\textcolor{\1}{\2}", string) return string def transform_footnotes(string): """ footnotes """ | def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) ... | 1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623... |
def start(self): | def start(self, resume=False): | def start(self): """Continues a paused or stopped download thread. """ if self.state in ('paused', 'stopped', 'offline'): self.state = "downloading" self.start_download() | acd0211a4895596a67625963d10ec1c9bf3319c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/acd0211a4895596a67625963d10ec1c9bf3319c8/download.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
16,
10774,
33,
8381,
4672,
3536,
660,
267,
3610,
279,
17781,
578,
9627,
4224,
2650,
18,
3536,
309,
365,
18,
2019,
316,
7707,
8774,
3668,
2187,
296,
24228,
2187,
296,
23787... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
787,
12,
2890,
16,
10774,
33,
8381,
4672,
3536,
660,
267,
3610,
279,
17781,
578,
9627,
4224,
2650,
18,
3536,
309,
365,
18,
2019,
316,
7707,
8774,
3668,
2187,
296,
24228,
2187,
296,
23787... |
try: mutation.simulate(app_label, database_sig, database) except CannotSimulate: simulated = False | try: mutation.simulate(app_label, database_sig, database) except CannotSimulate: simulated = False | def evolve(self, *app_labels, **options): verbosity = int(options['verbosity']) interactive = options['interactive'] execute = options['execute'] compile_sql = options['compile_sql'] hint = options['hint'] purge = options['purge'] database = options['database'] | bcb99dac84fcd27e7a95be68c28425f2b39d3166 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8377/bcb99dac84fcd27e7a95be68c28425f2b39d3166/evolve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2113,
5390,
12,
2890,
16,
380,
2910,
67,
5336,
16,
2826,
2116,
4672,
11561,
273,
509,
12,
2116,
3292,
16629,
8807,
19486,
12625,
273,
702,
3292,
24761,
3546,
1836,
273,
702,
3292,
8837,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2113,
5390,
12,
2890,
16,
380,
2910,
67,
5336,
16,
2826,
2116,
4672,
11561,
273,
509,
12,
2116,
3292,
16629,
8807,
19486,
12625,
273,
702,
3292,
24761,
3546,
1836,
273,
702,
3292,
8837,
... |
list.append('%s: %s\n' % (str(stype), str(value))) return list | list.append('%s: %s\n' % (str(stype), _some_str(value))) return list def _some_str(value): try: return str(value) except: return '<unprintable %s object>' % type(value).__name__ | def format_exception_only(etype, value): """Format the exception part of a traceback. The arguments are the exception type and value such as given by sys.last_type and sys.last_value. The return value is a list of strings, each ending in a newline. Normally, the list contains a single string; however, for SyntaxError... | 395120312fa2fe6ac8b2d5bbe9001ad3ed958f59 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/395120312fa2fe6ac8b2d5bbe9001ad3ed958f59/traceback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4064,
67,
3700,
12,
5872,
16,
460,
4672,
3536,
1630,
326,
1520,
1087,
434,
279,
10820,
18,
225,
1021,
1775,
854,
326,
1520,
618,
471,
460,
4123,
487,
864,
635,
2589,
18,
2722,... |
'\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\\begin{document}\n\\begin{center}{\\Large\\bf Why was six afraid of seven?}\\end{center}\n\\vspace{40mm}\\[7\\]\n\n\\vfill\\hrule\\vfill\n... | '\\documentclass{article}\\usepackage{fullpage}\\usepackage{amsmath}\n\\usepackage{amssymb}\n\\usepackage{amsfonts}\\usepackage{graphicx}\\usepackage{pstricks}\\pagestyle{empty}\n\n\n\\newcommand{\\ZZ}{\\mathbf{Z}}\n\\newcommand{\\RR}{\\mathbf{R}}\n\\newcommand{\\CC}{\\mathbf{C}}\n\\newcommand{\\QQ}{\\mathbf{Q}}\n\\new... | def _latex_file_(objects, title='SAGE', debug=False, \ sep='', tiny=False, math_left='\\[', math_right='\\]', extra_preamble=''): r"""nodetex Produce a string to be used as a LaTeX file, containing a representation of each object in objects. INPUT: - ``objects`` - list (or object) - ``title`` - string (default: '... | 54711bec849b86b6023a6b46300fbc0cd3217520 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/54711bec849b86b6023a6b46300fbc0cd3217520/latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26264,
67,
768,
67,
12,
6911,
16,
2077,
2218,
55,
2833,
2187,
1198,
33,
8381,
16,
521,
5478,
2218,
2187,
24405,
33,
8381,
16,
4233,
67,
4482,
2218,
1695,
63,
2187,
4233,
67,
4083,... |
class _TestCaseDefaults: def __init__(self): self.force_tags = [] self.default_tags = [] self.test_setup = [] self.test_teardown = [] self.test_timeout = [] def add_defaults(self, suite): if suite.force_tags: self.force_tags.extend(suite.force_tags) if suite.default_tags: self.default_tags = suite.default_tags if su... | def _get_tags(self, tc_data): print tc_data.parent.parent force_tags = self._get_parent_force_tags(tc_data.parent.parent) tc_tags = tc_data.tags.is_set() and tc_data.tags.value or \ tc_data.parent.parent.setting_table.default_tags.value return list(set(tc_tags + force_tags)) def _get_parent_force_tags(self, data): par... | def _end_run(self, context): self.endtime = utils.get_timestamp() self.elapsedtime = utils.get_elapsed_time(self.starttime, self.endtime) context.end_test(self) | f3998d1fed7f1949e9f043a868a5038ebda72cbf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/f3998d1fed7f1949e9f043a868a5038ebda72cbf/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
2681,
12,
2890,
16,
819,
4672,
365,
18,
409,
957,
273,
2990,
18,
588,
67,
5508,
1435,
365,
18,
26201,
957,
273,
2990,
18,
588,
67,
26201,
67,
957,
12,
2890,
18,
1937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
409,
67,
2681,
12,
2890,
16,
819,
4672,
365,
18,
409,
957,
273,
2990,
18,
588,
67,
5508,
1435,
365,
18,
26201,
957,
273,
2990,
18,
588,
67,
26201,
67,
957,
12,
2890,
18,
1937,
... |
return 'def _facade%s:\n """%s"""\n return _curried%s' % ( args, docstring, callargs) | return 'def %s%s:\n """%s"""\n return _curried%s' % ( name, args, docstring, callargs) | return 'def _facade%s:\n """%s"""\n return _curried%s' % ( args, docstring, callargs) | cd5a3f35aa0e6c7ef5af3f0eeb036f2d540789e0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9658/cd5a3f35aa0e6c7ef5af3f0eeb036f2d540789e0/requestmethod.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
327,
296,
536,
389,
507,
5065,
9,
87,
5581,
82,
565,
3536,
9,
87,
8395,
64,
82,
565,
327,
389,
1397,
24012,
9,
87,
11,
738,
261,
833,
16,
14525,
16,
745,
1968,
13,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
327,
296,
536,
389,
507,
5065,
9,
87,
5581,
82,
565,
3536,
9,
87,
8395,
64,
82,
565,
327,
389,
1397,
24012,
9,
87,
11,
738,
261,
833,
16,
14525,
16,
745,
1968,
13,
2,
-100,
-100,
-100,
... |
cs.merge(how) | cs.merge(what) | def applyUpdate(self, theCs, replaceFiles = False, tagScript = None, keepExisting = None): assert(isinstance(theCs, changeset.MergeableChangeSet)) cs = changeset.MergeableChangeSet() for (how, what) in theCs.contents: if how == self.repos.createChangeSet: newCs = self.repos.createChangeSet(what) cs.merge(newCs) else: a... | a7f2e8a19d7e0287081579a6dc11d229ac95d476 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/a7f2e8a19d7e0287081579a6dc11d229ac95d476/conaryclient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
1891,
12,
2890,
16,
326,
14272,
16,
1453,
2697,
273,
1083,
16,
1047,
3651,
273,
599,
16,
3455,
9895,
273,
599,
4672,
1815,
12,
291,
1336,
12,
5787,
14272,
16,
22463,
18,
6786,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
1891,
12,
2890,
16,
326,
14272,
16,
1453,
2697,
273,
1083,
16,
1047,
3651,
273,
599,
16,
3455,
9895,
273,
599,
4672,
1815,
12,
291,
1336,
12,
5787,
14272,
16,
22463,
18,
6786,
42... |
newids.append(id.replace(':', '-')) | newids.append(self.fix_fragment('', id)) | def fix_ids(self, tree): """Replace colons with hyphens in href and id attributes. Some readers crash because they interpret the part as a transport protocol specification. """ for node in tree.traverse(nodes.reference): if 'refuri' in node: m = _refuri_re.match(node['refuri']) if m: node['refuri'] = self.fix_fragment(... | 3853640a3c291037fa777dc3f53d373afde8dfd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/3853640a3c291037fa777dc3f53d373afde8dfd6/epub.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
2232,
12,
2890,
16,
2151,
4672,
3536,
5729,
645,
7008,
598,
4855,
28776,
316,
3897,
471,
612,
1677,
18,
10548,
16527,
17053,
2724,
2898,
10634,
326,
1087,
487,
279,
4736,
1771,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2917,
67,
2232,
12,
2890,
16,
2151,
4672,
3536,
5729,
645,
7008,
598,
4855,
28776,
316,
3897,
471,
612,
1677,
18,
10548,
16527,
17053,
2724,
2898,
10634,
326,
1087,
487,
279,
4736,
1771,
... |
if field and map_val: | if field: | def map_data(cr, uid, obj): vals = {} for map_dict in obj.__attribute__: map_val = obj.ical_get(map_dict, 'value') field = obj.ical_get(map_dict, 'field') field_type = obj.ical_get(map_dict, 'type') if field and map_val: if field_type == 'selection': mapping =obj.__attribute__[map_dict].get('mapping', False) if mapping... | 232bf160b2ee04b4af2e8fb85377013e045d7d3a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/232bf160b2ee04b4af2e8fb85377013e045d7d3a/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
892,
12,
3353,
16,
4555,
16,
1081,
4672,
5773,
273,
2618,
364,
852,
67,
1576,
316,
1081,
16186,
4589,
972,
30,
852,
67,
1125,
273,
1081,
18,
1706,
67,
588,
12,
1458,
67,
157... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
852,
67,
892,
12,
3353,
16,
4555,
16,
1081,
4672,
5773,
273,
2618,
364,
852,
67,
1576,
316,
1081,
16186,
4589,
972,
30,
852,
67,
1125,
273,
1081,
18,
1706,
67,
588,
12,
1458,
67,
157... |
(term, remaining) = _UnpackOneTermTop(binary) | try: (term, remaining) = _UnpackOneTermTop(binary) except: raise "BinaryToTerm: Panic -- invalid binary received?" | def BinaryToTerm(binary): """Unpack a binary to a term. BINARY = string Returns: term Throws: "BinaryToTerm: Extraneous data in binary" """ (term, remaining) = _UnpackOneTermTop(binary) if len(remaining) != 0: raise "BinaryToTerm: Extraneous data in binary" return term | cadc8319939cd691f548c4b841a357df13bff542 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7565/cadc8319939cd691f548c4b841a357df13bff542/erl_term.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7896,
774,
4065,
12,
8578,
4672,
3536,
23649,
279,
3112,
358,
279,
2481,
18,
225,
22468,
273,
533,
225,
2860,
30,
2481,
22435,
30,
225,
315,
5905,
774,
4065,
30,
1312,
313,
15522,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7896,
774,
4065,
12,
8578,
4672,
3536,
23649,
279,
3112,
358,
279,
2481,
18,
225,
22468,
273,
533,
225,
2860,
30,
2481,
22435,
30,
225,
315,
5905,
774,
4065,
30,
1312,
313,
15522,
501,
... |
config.pluginmanager.register(Capturer(config), 'capturelog') | config.pluginmanager.register(Capturer(config), '_capturelog') | def pytest_configure(config): """Activate log capturing if appropriate.""" if config.getvalue('capturelog'): config.pluginmanager.register(Capturer(config), 'capturelog') | 15d4eeb9707878329bcea71cb9da47a6c02b1e75 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5644/15d4eeb9707878329bcea71cb9da47a6c02b1e75/pytest_capturelog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
3813,
67,
14895,
12,
1425,
4672,
3536,
21370,
613,
28789,
309,
5505,
12123,
225,
309,
642,
18,
588,
1132,
2668,
19250,
1330,
11,
4672,
642,
18,
4094,
4181,
18,
4861,
12,
26294,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2395,
3813,
67,
14895,
12,
1425,
4672,
3536,
21370,
613,
28789,
309,
5505,
12123,
225,
309,
642,
18,
588,
1132,
2668,
19250,
1330,
11,
4672,
642,
18,
4094,
4181,
18,
4861,
12,
26294,
112... |
print 'Unable to read the public key file.' return | key = pubkey_file | def get_pubkey_string(pubkey_file): try: f = open(pubkey_file) type_, key = f.readlines()[0].split()[:2] f.close() if not type_ == 'ssh-rsa': raise TypeError, 'Invalid key type.' except IOError, msg: print 'Unable to read the public key file.' return return key | adaa0c3883984a3c6fce73d3faab448b9d132414 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/adaa0c3883984a3c6fce73d3faab448b9d132414/pubkeyauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
23428,
67,
1080,
12,
23428,
67,
768,
4672,
775,
30,
284,
273,
1696,
12,
23428,
67,
768,
13,
618,
67,
16,
498,
273,
284,
18,
896,
3548,
1435,
63,
20,
8009,
4939,
1435,
10531,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23428,
67,
1080,
12,
23428,
67,
768,
4672,
775,
30,
284,
273,
1696,
12,
23428,
67,
768,
13,
618,
67,
16,
498,
273,
284,
18,
896,
3548,
1435,
63,
20,
8009,
4939,
1435,
10531,... |
def set_nat(nat): self._playback_info_db.set_nat(self._playback_key, nat) self._playback_key = str(random.random()) self._playback_info_db.create_entry(self._playback_key, piece_size=videostatus.piecelen, num_pieces=videostatus.movie_numpieces, bitrate=videostatus.bitrate, nat=session.get_nat_type(callback=set_nat))... | if session.get_overlay(): self._playback_info_db = VideoPlaybackInfoDBHandler.get_instance() self._playback_event_db = VideoPlaybackEventDBHandler.get_instance() def set_nat(nat): self._playback_info_db.set_nat(self._playback_key, nat) self._playback_key = str(random.random()) self._playback_info_db.create_entry(... | def __init__(self,bt1download,videostatus,videoinfo,videoanalyserpath,vodeventfunc): | 577a73d1e0b6744507a02b28b8e09496810af7a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/577a73d1e0b6744507a02b28b8e09496810af7a8/VideoOnDemand.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23602,
21,
7813,
16,
6768,
669,
996,
16,
6768,
885,
617,
16,
9115,
304,
3450,
550,
803,
16,
90,
390,
616,
644,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
23602,
21,
7813,
16,
6768,
669,
996,
16,
6768,
885,
617,
16,
9115,
304,
3450,
550,
803,
16,
90,
390,
616,
644,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-... |
'//oai:error', {'oai': NS_OAIPMH}): | '//oai:error', namespaces={'oai': NS_OAIPMH}): | def findErrors(self, xml): # parse tree = etree.parse(StringIO(xml)) # validate xml self.assert_(oaischema.validate(tree)) result = [] for e in tree.xpath( '//oai:error', {'oai': NS_OAIPMH}): result.append((e.get('code'), e.text)) result.sort() return result | 8dc31dc5d8dd8a67f43f89209ff05a1717e5a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14690/8dc31dc5d8dd8a67f43f89209ff05a1717e5a5a7/test_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4229,
12,
2890,
16,
2025,
4672,
468,
1109,
2151,
273,
12031,
18,
2670,
12,
780,
4294,
12,
2902,
3719,
468,
1954,
2025,
365,
18,
11231,
67,
12,
11867,
291,
1243,
18,
5662,
12,
341... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
4229,
12,
2890,
16,
2025,
4672,
468,
1109,
2151,
273,
12031,
18,
2670,
12,
780,
4294,
12,
2902,
3719,
468,
1954,
2025,
365,
18,
11231,
67,
12,
11867,
291,
1243,
18,
5662,
12,
341... |
pure = self.root_passwd_entry.get_text() | def formToKsdata(self, doInstall): self.ksdata.lang = self.languageLookup(self.lang_combo.entry.get_text()) | 01a55a88e520a306bf00909cbb98d3cb8189be89 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5376/01a55a88e520a306bf00909cbb98d3cb8189be89/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
646,
774,
47,
87,
892,
12,
2890,
16,
741,
6410,
4672,
365,
18,
7904,
892,
18,
4936,
273,
365,
18,
4923,
6609,
12,
2890,
18,
4936,
67,
25053,
18,
4099,
18,
588,
67,
955,
10756,
2,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
646,
774,
47,
87,
892,
12,
2890,
16,
741,
6410,
4672,
365,
18,
7904,
892,
18,
4936,
273,
365,
18,
4923,
6609,
12,
2890,
18,
4936,
67,
25053,
18,
4099,
18,
588,
67,
955,
10756,
2,
-... | |
sr.showMsg("Found star at %.1f, %.1f" % tuple(starData.xyPos)) | sr.showMsg("Found star at %0.1f, %0.1f" % tuple(starData.xyPos)) | def run(self, sr): """Run the focus script. """ self.initAll() | 5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6354/5ce90ef6a58e18ae844d9c09d0aab251fd7a91ab/BaseFocusScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
9133,
4672,
3536,
1997,
326,
7155,
2728,
18,
3536,
365,
18,
2738,
1595,
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,
... | [
1,
1,
1,
1,
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,
1086,
12,
2890,
16,
9133,
4672,
3536,
1997,
326,
7155,
2728,
18,
3536,
365,
18,
2738,
1595,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
r""" The sequence of Bell numbers. The Bell number $B_n$ counts the number of ways to put $n$ distinguishable things into indistinguishable boxes such that no box is empty. Let $S(n, k)$ denote the Stirling number of the second kind. Then $$B_n = \sum{k=0}^{n} S(n, k) .$$ INPUT: n -- integer >= 0 OUTPUT: integer -... | def __init__(self): r""" The sequence of Bell numbers. The Bell number $B_n$ counts the number of ways to put $n$ distinguishable things into indistinguishable boxes such that no box is empty. Let $S(n, k)$ denote the Stirling number of the second kind. Then $$B_n = \sum{k=0}^{n} S(n, k) .$$ INPUT: n -- integer >= ... | def _eval(self, n): if hasattr(self, '__n'): if n < self.__n: return self.__data[n] from sage.combinat.expnums import expnums self.__data = expnums(n+1, self.a) self.__n = n+1 return self.__data[n] | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
3859,
12,
2890,
16,
4940,
82,
11,
4672,
309,
290,
411,
365,
16186,
82,
30,
327,
365,
16186,
892,
63,
82,
65,
628,
272,
410,
18,
832,
4757,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8622,
12,
2890,
16,
290,
4672,
309,
3859,
12,
2890,
16,
4940,
82,
11,
4672,
309,
290,
411,
365,
16186,
82,
30,
327,
365,
16186,
892,
63,
82,
65,
628,
272,
410,
18,
832,
4757,
... |
if xmldoc == None: | if xmldoc is None: | def load_filename(filename, verbose = False, gz = False, xmldoc = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed while reading if gz is... | c421c76f7860e361ce3ce3ed81a53512f4159391 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/c421c76f7860e361ce3ce3ed81a53512f4159391/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
16,
471,
327,
326,
2939,
487... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
16,
471,
327,
326,
2939,
487... |
return tok whereCondNamed = whereCondition andExpr = whereCondNamed + and_ + whereExpression orExpr = whereCondNamed + or_ + whereExpression andExpr.addParseAction(scAnd) orExpr.addParseAction(scOr) whereExpression << Or([andExpr, orExpr, whereCondNamed]) | if ["TRUE"] == tok.asList()[0][1]: tok = [] return tok andExpr = and_ + whereExpression orExpr = or_ + whereExpression whereExpression << whereCondition + ZeroOrMore( andExpr | orExpr) | def collapseWhere(tok): | bc475b601326e57a29a13ae9f5c6a1ef715a1673 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/bc475b601326e57a29a13ae9f5c6a1ef715a1673/sqlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
5262,
12,
17692,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13627,
5262,
12,
17692,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
user = model.get_value(iter, 1) if event.button != 3: if event.type == gtk.gdk._2BUTTON_PRESS: self.frame.privatechats.SendMessage(user, None, 1) self.frame.notebook1.set_current_page(1) return self.popup_menu.set_user(user) items = self.popup_menu.get_children() items[6].set_active(user in self.frame.np.config.se... | if d: path, column, x, y = d user = self.frame.UserList.get_model().get_value(self.frame.UserList.get_model().get_iter(path), 1) if event.button != 3: if event.type == gtk.gdk._2BUTTON_PRESS: self.frame.privatechats.SendMessage(user, None, 1) self.frame.notebook1.set_current_page(1) return self.popup_menu.set_user(us... | def OnPopupMenu(self, widget, event): model, iter = self.frame.UserList.get_selection().get_selected() if not iter: return | 5268012cc44d06fb1739949194e5c7046a94a136 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8738/5268012cc44d06fb1739949194e5c7046a94a136/userlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
13770,
4599,
12,
2890,
16,
3604,
16,
871,
4672,
938,
16,
1400,
273,
365,
18,
3789,
18,
1299,
682,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435,
309,
486,
1400,
30,
327,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
13770,
4599,
12,
2890,
16,
3604,
16,
871,
4672,
938,
16,
1400,
273,
365,
18,
3789,
18,
1299,
682,
18,
588,
67,
10705,
7675,
588,
67,
8109,
1435,
309,
486,
1400,
30,
327,
2,
-10... |
os.chdir(MailmanHome + "/lists") | os.chdir(MailmanVar + "/lists") | def main(): os.nice(5) # Handle mailing lists at non-interactive priority. os.chdir(MailmanHome + "/lists") try: local = os.environ["LOCAL"] except: # This might happen if we're not using qmail. sys.stderr.write("LOCAL not set in environment?\n") sys.exit(100) local = string.lower(local) local = re.sub("^mailman-",... | f1164080ddd5e9916918698c3f2431eac18e3877 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/f1164080ddd5e9916918698c3f2431eac18e3877/qmail-to-mailman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1140,
18,
82,
1812,
12,
25,
13,
225,
468,
5004,
4791,
310,
6035,
622,
1661,
17,
24761,
4394,
18,
225,
1140,
18,
343,
1214,
12,
6759,
4728,
1537,
397,
2206,
9772,
7923,
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,
2774,
13332,
1140,
18,
82,
1812,
12,
25,
13,
225,
468,
5004,
4791,
310,
6035,
622,
1661,
17,
24761,
4394,
18,
225,
1140,
18,
343,
1214,
12,
6759,
4728,
1537,
397,
2206,
9772,
7923,
225... |
for attr in dir(self.metadata): meth_name = "get_" + attr setattr(self, meth_name, getattr(self.metadata, meth_name)) | method_basenames = dir(self.metadata) + \ ['fullname', 'contact', 'contact_email'] for basename in method_basenames: method_name = "get_" + basename setattr(self, method_name, getattr(self.metadata, method_name)) | def __init__ (self, attrs=None): """Construct a new Distribution instance: initialize all the attributes of a Distribution, and then uses 'attrs' (a dictionary mapping attribute names to values) to assign some of those attributes their "real" values. (Any attributes not mentioned in 'attrs' will be assigned to some nu... | 6b98ca20e2cc1a6aa53aef00afac48c2745eea77 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6b98ca20e2cc1a6aa53aef00afac48c2745eea77/dist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3422,
33,
7036,
4672,
3536,
7249,
279,
394,
17547,
791,
30,
4046,
777,
326,
1677,
434,
279,
17547,
16,
471,
1508,
4692,
296,
7039,
11,
261,
69,
3880,
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,
1001,
2738,
972,
261,
2890,
16,
3422,
33,
7036,
4672,
3536,
7249,
279,
394,
17547,
791,
30,
4046,
777,
326,
1677,
434,
279,
17547,
16,
471,
1508,
4692,
296,
7039,
11,
261,
69,
3880,
28... |
self.post_auth() | self._post_auth() | def _plain_auth_in_stage2(self,username,resource,stanza): password=stanza.xpath_eval("a:query/a:password",{"a":"jabber:iq:auth"}) if password: password=from_utf8(password[0].getContent()) if not password: self.debug("No password found in plain auth request") iq=stanza.make_error_response("bad-request") self.send(iq) re... | ca072dbe7f1d5c3072984b1243a1e137d1acb3af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/ca072dbe7f1d5c3072984b1243a1e137d1acb3af/clientstream.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7446,
67,
1944,
67,
267,
67,
12869,
22,
12,
2890,
16,
5053,
16,
3146,
16,
541,
11939,
4672,
2201,
33,
541,
11939,
18,
18644,
67,
8622,
2932,
69,
30,
2271,
19,
69,
30,
3664,
3113... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7446,
67,
1944,
67,
267,
67,
12869,
22,
12,
2890,
16,
5053,
16,
3146,
16,
541,
11939,
4672,
2201,
33,
541,
11939,
18,
18644,
67,
8622,
2932,
69,
30,
2271,
19,
69,
30,
3664,
3113... |
return javascript_pattern.match(s) and True or False | s = ''.join(s.split()).lower() for t in ('script:', 'expression:', 'expression('): if t in s: return True return False | def hasScript(s): """Dig out evil Java/VB script inside an HTML attribute. >>> hasScript('script:evil(1);') True >>> hasScript('expression:evil(1);') True >>> hasScript('http://foo.com/ExpressionOfInterest.doc') False """ # look for "script" and "expression" javascript_pattern = re.compile("([\s\n]*?s[\s\n]*?c[\s\n]*... | 1e9ce9d061e5d8350d6cbc12126854d1735ecf7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12162/1e9ce9d061e5d8350d6cbc12126854d1735ecf7c/safe_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
3651,
12,
87,
4672,
3536,
4907,
596,
2113,
330,
5110,
19,
58,
38,
2728,
4832,
392,
3982,
1566,
18,
225,
4080,
711,
3651,
2668,
4263,
30,
14965,
330,
12,
21,
1769,
6134,
1053,
4080... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3651,
12,
87,
4672,
3536,
4907,
596,
2113,
330,
5110,
19,
58,
38,
2728,
4832,
392,
3982,
1566,
18,
225,
4080,
711,
3651,
2668,
4263,
30,
14965,
330,
12,
21,
1769,
6134,
1053,
4080... |
raise IndexError, "Laurent series are immutable" | """ EXAMPLES: sage: R.<t> = LaurentSeriesRing(QQ) sage: f = t^2 + t^3 + O(t^10) sage: f[2] = 5 Traceback (most recent call last): ... IndexError: Laurent series are immutable """ raise IndexError, "Laurent series are immutable" | def __setitem__(self, n, value): raise IndexError, "Laurent series are immutable" | 5bf1dbe6855b9b0ddc372f3677dca47afc93ccda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5bf1dbe6855b9b0ddc372f3677dca47afc93ccda/laurent_series_ring_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
290,
16,
460,
4672,
1002,
10195,
16,
315,
48,
8377,
547,
4166,
854,
11732,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
290,
16,
460,
4672,
1002,
10195,
16,
315,
48,
8377,
547,
4166,
854,
11732,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cr.execute("select m.id, m.rrule, m.date, m.date_deadline, \ | cr.execute("select m.id, m.rrule, m.date, m.date_deadline, m.duration, \ | def get_recurrent_ids(self, cr, uid, select, base_start_date, base_until_date, limit=100): """Gives virtual event ids for recurring events based on value of Recurrence Rule This method gives ids of dates that comes between start date and end date of calendar views @param self: The object pointer @param cr: the current ... | d44cd8ca622666b945c2e56d0c8b27c10a0970a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/d44cd8ca622666b945c2e56d0c8b27c10a0970a0/base_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
266,
2972,
67,
2232,
12,
2890,
16,
4422,
16,
4555,
16,
2027,
16,
1026,
67,
1937,
67,
712,
16,
1026,
67,
12198,
67,
712,
16,
1800,
33,
6625,
4672,
3536,
43,
3606,
5024,
871,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
266,
2972,
67,
2232,
12,
2890,
16,
4422,
16,
4555,
16,
2027,
16,
1026,
67,
1937,
67,
712,
16,
1026,
67,
12198,
67,
712,
16,
1800,
33,
6625,
4672,
3536,
43,
3606,
5024,
871,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.