rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.__create_gui() | def __init__(self): wx.Frame.__init__(self, None, size=(900, 400), style=wx.DEFAULT_FRAME_STYLE|wx.MAXIMIZE) self.__create_gui() self.timeline = None self.title_base = "The Timeline Project" self.SetTitle(self.title_base) self.extensions = [".timeline"] self.default_extension = self.extensions[0] self.wildcard = "Timel... | 1ed204d27c6774e13a825a928803206ea0e3cc60 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/1ed204d27c6774e13a825a928803206ea0e3cc60/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
963,
28657,
29,
713,
16,
7409,
3631,
2154,
33,
27226,
18,
5280,
67,
15072,
67,
15066,
96,
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,
1001,
2738,
972,
12,
2890,
4672,
7075,
18,
3219,
16186,
2738,
972,
12,
2890,
16,
599,
16,
963,
28657,
29,
713,
16,
7409,
3631,
2154,
33,
27226,
18,
5280,
67,
15072,
67,
15066,
96,
2722... | |
self.targets = [(0,0)] | self.resetTargets() | def runStart(self,runNumber): self.targets = [(0,0)] | fe746ab4d6953f29e8edb6cf2164e699c364c507 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5773/fe746ab4d6953f29e8edb6cf2164e699c364c507/simple_stack_logic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1685,
12,
2890,
16,
2681,
1854,
4672,
365,
18,
11358,
273,
306,
12,
20,
16,
20,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1685,
12,
2890,
16,
2681,
1854,
4672,
365,
18,
11358,
273,
306,
12,
20,
16,
20,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif k == u'icon': | elif k == u'ICON': | def getProps(f, base): r = [] if f.has_key(u'__title__'): r.append((base+'.title', f[u'__title__'])) if f.has_key(u'__desc__'): r.append((base+'.desc',f[u'__desc__'])) for i in range(len(f[u'children'])): c = f[u'children'][i] if c.has_key(u'children'): r += getProps(c, base + '.' + str(i)) else: for k,v in c.iteritems... | 927eaa22d380536c0632bcad257164f27a756867 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13067/927eaa22d380536c0632bcad257164f27a756867/Parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
1121,
12,
74,
16,
1026,
4672,
436,
273,
5378,
309,
284,
18,
5332,
67,
856,
12,
89,
11,
972,
2649,
7250,
4672,
436,
18,
6923,
12443,
1969,
6797,
18,
2649,
2187,
284,
63,
89,
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,
3570,
1121,
12,
74,
16,
1026,
4672,
436,
273,
5378,
309,
284,
18,
5332,
67,
856,
12,
89,
11,
972,
2649,
7250,
4672,
436,
18,
6923,
12443,
1969,
6797,
18,
2649,
2187,
284,
63,
89,
11,... |
from pypy.translator import backendoptimization, simplify | from pypy.translator import simplify from pypy.translator.backendopt import removenoops | def g(i): if i == 1: return "ab" else: try: return f() except: return "hello!" | b221221538306210460b78608358195ee4390cba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/b221221538306210460b78608358195ee4390cba/test_rspecialcase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
12,
77,
4672,
309,
277,
422,
404,
30,
327,
315,
378,
6,
469,
30,
775,
30,
327,
284,
1435,
1335,
30,
327,
315,
23711,
4442,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
12,
77,
4672,
309,
277,
422,
404,
30,
327,
315,
378,
6,
469,
30,
775,
30,
327,
284,
1435,
1335,
30,
327,
315,
23711,
4442,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for oldrecorded in MythDB(mythdb).searchOldRecorded(title=record[u'title'], subtitle=record[u'subtitle'] ): | for oldrecorded in mythdb.searchOldRecorded(title=record[u'title'], subtitle=record[u'subtitle'] ): | def updateMythVideo(items): '''Add and delete MythVideo records for played Miro Videos. Add and delete symbolic links to Miro Videos, to coverart/Miro icons, banners and Miro screenshots and fanart. NOTE: banner and fanart graphics were provided with the script and are used only if present. Abort if processing failed r... | 1343c41ccf0843d1fd2aca238fd7164a00e09ba4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/1343c41ccf0843d1fd2aca238fd7164a00e09ba4/mirobridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12062,
451,
10083,
12,
3319,
4672,
9163,
986,
471,
1430,
8005,
451,
10083,
3853,
364,
6599,
329,
490,
11373,
776,
19871,
18,
1436,
471,
1430,
16754,
4716,
358,
490,
11373,
776,
19871... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12062,
451,
10083,
12,
3319,
4672,
9163,
986,
471,
1430,
8005,
451,
10083,
3853,
364,
6599,
329,
490,
11373,
776,
19871,
18,
1436,
471,
1430,
16754,
4716,
358,
490,
11373,
776,
19871... |
nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.subs)) return tuple(nodes) | nodelist = [] nodelist.append(self.expr) nodelist.extend(flatten_nodes(self.subs)) return tuple(nodelist) | def getChildNodes(self): nodes = [] nodes.append(self.expr) nodes.extend(flatten_nodes(self.subs)) return tuple(nodes) | f9790adb2bf17d408a715f552f9ea1f6de672d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f9790adb2bf17d408a715f552f9ea1f6de672d26/ast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
6923,
12,
2890,
18,
8638,
13,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
22284,
3719,
327,
3193,
12,
4690,
13,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23895,
12,
2890,
4672,
2199,
273,
5378,
2199,
18,
6923,
12,
2890,
18,
8638,
13,
2199,
18,
14313,
12,
16940,
67,
4690,
12,
2890,
18,
22284,
3719,
327,
3193,
12,
4690,
13,
2,
-100,
-100,... |
smallest field containing a and b with generators i, j, k with i^2=a, j^2=b and i*j=-j*i.:: | `smallest` field containing the nonzero elements a and b with generators i, j, k with i^2=a, j^2=b and j*i=-i*j.:: | def QuaternionAlgebra(arg0, arg1=None, arg2=None, names='i,j,k'): """ There are three input formats:: - QuaternionAlgebra(a, b): quaternion algebra with i^2 = a, j^2 = b, i*j=k - QuaternionAlgebra(K, a, b): same as above but over a field K - QuaternionAlgebra(D): a rational quaternion algebra with discriminant D EX... | 48b328d83169177c002516f19cf8242db1504925 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/48b328d83169177c002516f19cf8242db1504925/quaternion_algebra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4783,
17848,
1067,
29087,
12,
3175,
20,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1257,
2218,
77,
16,
78,
16,
79,
11,
4672,
3536,
6149,
854,
8925,
810,
6449,
2866,
225,
300... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4783,
17848,
1067,
29087,
12,
3175,
20,
16,
1501,
21,
33,
7036,
16,
1501,
22,
33,
7036,
16,
1257,
2218,
77,
16,
78,
16,
79,
11,
4672,
3536,
6149,
854,
8925,
810,
6449,
2866,
225,
300... |
emergency_error(logfile, | emergency_error(self.logfile, | def start_scheduler(self): from celery.log import setup_logger logger = setup_logger(self.loglevel, self.logfile) beat = ClockService(logger, schedule_filename=self.schedule) | 27ed5955eff4d26e7fdd87c4e81d8ee83e07f79f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2024/27ed5955eff4d26e7fdd87c4e81d8ee83e07f79f/celerybeat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
19972,
12,
2890,
4672,
628,
25357,
627,
18,
1330,
1930,
3875,
67,
4901,
1194,
273,
3875,
67,
4901,
12,
2890,
18,
28189,
16,
365,
18,
28806,
13,
23795,
273,
18051,
1179,
12,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
19972,
12,
2890,
4672,
628,
25357,
627,
18,
1330,
1930,
3875,
67,
4901,
1194,
273,
3875,
67,
4901,
12,
2890,
18,
28189,
16,
365,
18,
28806,
13,
23795,
273,
18051,
1179,
12,
49... |
JS, test_args = args[0], args[1:] | JS, test_args = os.path.normpath(args[0]), args[1:] | def run_tests(tests, lib_dir): pb = None if not OPTIONS.hide_progress and not OPTIONS.show_cmd: try: from progressbar import ProgressBar pb = ProgressBar('', len(tests), 13) except ImportError: pass failures = [] complete = False try: for i, test in enumerate(tests): if not run_test(test, lib_dir): failures.append(tes... | 2cf9fb6635193d6bd8c9dcac3437def11f9551ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/2cf9fb6635193d6bd8c9dcac3437def11f9551ce/trace-test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
16341,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
31730,
1930,
27793,
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,
1086,
67,
16341,
12,
16341,
16,
2561,
67,
1214,
4672,
6386,
273,
599,
309,
486,
16726,
18,
11248,
67,
8298,
471,
486,
16726,
18,
4500,
67,
4172,
30,
775,
30,
628,
31730,
1930,
27793,
6... |
if options.sync: _Build(buildroot, emptytree) | _Build(buildroot, emptytree) | def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-a', '--acl', default='private', help='ACL to set on GSD archives') parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option... | 6b69ba71218c4d6eed73e564829b112200a56887 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/6b69ba71218c4d6eed73e564829b112200a56887/cbuildbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
2884,
702,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
65,
2875,
680,
4819,
67,
1425,
6,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
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,
2774,
13332,
468,
2884,
702,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
65,
2875,
680,
4819,
67,
1425,
6,
2082,
273,
2153,
2670,
18,
1895,
2678,
12,
9167,
33,
9167,
13,
2082,
18,... |
return self._append(EMR.ARCTO(left,top,right,bottom, | return self._append(_EMR._ARCTO(left,top,right,bottom, | def ArcTo(self,left,top,right,bottom,xstart,ystart,xend,yend): """ | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24881,
774,
12,
2890,
16,
4482,
16,
3669,
16,
4083,
16,
9176,
16,
92,
1937,
16,
1094,
485,
16,
92,
409,
16,
93,
409,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24881,
774,
12,
2890,
16,
4482,
16,
3669,
16,
4083,
16,
9176,
16,
92,
1937,
16,
1094,
485,
16,
92,
409,
16,
93,
409,
4672,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
NUMBER '159215902150 (1, 5) (1, 23) | NUMBER '159215902150 (1, 5) (1, 22) | ... " def y(m): # A whitespace after the colon\\n" | 1fbae9878cfa20d661d49e29e47c6085f32923a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/1fbae9878cfa20d661d49e29e47c6085f32923a3/test_tokenize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
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,
1372,
6647,
315,
225,
1652,
677,
12,
81,
4672,
468,
432,
7983,
1839,
326,
13336,
1695,
82,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
handler = self.lib.handlers['unCoercableKeyword'] assert_equals(handler._arg_coercer(['True', '42']), ['True', '42']) | self._test_coercion(self._handler_named('unCoercableKeyword'), ['True', '42'], ['True', '42']) | def test_coercion_is_not_done_with_conflicting_signatures(self): handler = self.lib.handlers['unCoercableKeyword'] assert_equals(handler._arg_coercer(['True', '42']), ['True', '42']) | ec36ac8710fe582cb511ca1578a279f4f7b5f196 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6988/ec36ac8710fe582cb511ca1578a279f4f7b5f196/test_handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2894,
12610,
285,
67,
291,
67,
902,
67,
8734,
67,
1918,
67,
20340,
310,
67,
30730,
12,
2890,
4672,
1838,
273,
365,
18,
2941,
18,
11046,
3292,
318,
4249,
12610,
429,
8736,
354... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2894,
12610,
285,
67,
291,
67,
902,
67,
8734,
67,
1918,
67,
20340,
310,
67,
30730,
12,
2890,
4672,
1838,
273,
365,
18,
2941,
18,
11046,
3292,
318,
4249,
12610,
429,
8736,
354... |
suggested_primitives = Set( [func for func in dir(module) if getattr(module.__dict__[func], 'suggested_primitive', False)] ) | suggested_primitives = Set( [func for func in dir(module) if func not in seen and getattr(module.__dict__[func], 'suggested_primitive', False)] ) seen |= suggested_primitives | def main(): for module in (ll_os, ll_os_path, ll_time, ll_math): #XXX keep this list up-to-date too suggested_primitives = Set( [func for func in dir(module) if getattr(module.__dict__[func], 'suggested_primitive', False)] ) implemented_primitives = Set( [f[1:] for f in extfunctions.keys()] ) missing_primitives ... | 254eca7c21b4633471bc7cf6318bd4113f94360b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/254eca7c21b4633471bc7cf6318bd4113f94360b/suggested_primitive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
364,
1605,
316,
261,
2906,
67,
538,
16,
6579,
67,
538,
67,
803,
16,
6579,
67,
957,
16,
6579,
67,
15949,
4672,
565,
468,
15639,
3455,
333,
666,
731,
17,
869,
17,
712,
488... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
364,
1605,
316,
261,
2906,
67,
538,
16,
6579,
67,
538,
67,
803,
16,
6579,
67,
957,
16,
6579,
67,
15949,
4672,
565,
468,
15639,
3455,
333,
666,
731,
17,
869,
17,
712,
488... |
return Formex() | return Formex(empty((0,2,3,),dtype=float)) | def intersectionLinesWithPlane(F,p,n,atol=1.e-4): """Return the intersection lines of a plex-3 Formex with plane (p,n). F is a Formex of plexitude 3. p is a point specified by 3 coordinates. n is the normal vector to a plane, specified by 3 components. atol is a tolerance factor defining whether an edge is intersected... | c47023ebe39fe0a8384dd29cae502db93d243614 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2499/c47023ebe39fe0a8384dd29cae502db93d243614/formex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7619,
5763,
1190,
19505,
12,
42,
16,
84,
16,
82,
16,
270,
355,
33,
21,
18,
73,
17,
24,
4672,
3536,
990,
326,
7619,
2362,
434,
279,
293,
4149,
17,
23,
2748,
338,
598,
11017,
261,
84... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7619,
5763,
1190,
19505,
12,
42,
16,
84,
16,
82,
16,
270,
355,
33,
21,
18,
73,
17,
24,
4672,
3536,
990,
326,
7619,
2362,
434,
279,
293,
4149,
17,
23,
2748,
338,
598,
11017,
261,
84... |
self.hostname = 'localhost' | self.hostname = '127.0.0.1' | def setUp(self): self.jobdb = JobDatabaseSQLite(test=True) self.monitordb = MonitorDatabase(test=True) self.clientdb = ClientDatabase(test=True) self.dsage_server = DSageServer(self.jobdb, self.monitordb, self.clientdb, log_level=5) self.realm = Realm(self.dsage_server) self.p = _SSHKeyPortalRoot(portal.Portal(Realm(se... | bb9f86e45dbd2f73b32fb229d9e907fa218fe1e9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/bb9f86e45dbd2f73b32fb229d9e907fa218fe1e9/test_pubkeyauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
4688,
1966,
273,
3956,
4254,
3997,
1137,
12,
3813,
33,
5510,
13,
365,
18,
2586,
305,
517,
70,
273,
14086,
4254,
12,
3813,
33,
5510,
13,
365,
18,
2625,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
365,
18,
4688,
1966,
273,
3956,
4254,
3997,
1137,
12,
3813,
33,
5510,
13,
365,
18,
2586,
305,
517,
70,
273,
14086,
4254,
12,
3813,
33,
5510,
13,
365,
18,
2625,
... |
os.makedirs(destination) | os.makedirs(destination) | def run(self): | 8ed7fd2c6ee89ddc4e119bb19d1e8f02ca9011ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8259/8ed7fd2c6ee89ddc4e119bb19d1e8f02ca9011ce/PyCoDocumentation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
0,
0,
0,
0,
0,
0,... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
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,
-100,
-100,
-100,
-... |
class SystemLoad(): | class SystemLoad: | def get_cpu_percentage(function, *args, **dargs): """Returns a tuple containing the CPU% and return value from function call. This function calculates the usage time by taking the difference of the user and system times both before and after the function call. """ child_pre = resource.getrusage(resource.RUSAGE_CHILDRE... | 45a49ecda9c5a01be3396d03f8446aa31ace07e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12268/45a49ecda9c5a01be3396d03f8446aa31ace07e0/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11447,
67,
18687,
12,
915,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
3536,
1356,
279,
3193,
4191,
326,
12154,
9,
471,
327,
460,
628,
445,
745,
18,
225,
1220,
445,
17264,
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,
336,
67,
11447,
67,
18687,
12,
915,
16,
380,
1968,
16,
2826,
72,
1968,
4672,
3536,
1356,
279,
3193,
4191,
326,
12154,
9,
471,
327,
460,
628,
445,
745,
18,
225,
1220,
445,
17264,
326,
... |
sage: sage.symbolic.units.is_unit(var('meter')) True | sage: sage.symbolic.units.is_unit(var('meter')) True | def is_unit(s): """ Returns a boolean when asked whether the input is in the list of units. INPUT: - `s` -- an object OUTPUT: - ``bool`` EXAMPLES:: sage: sage.symbolic.units.is_unit(1) False sage: sage.symbolic.units.is_unit(units.length.meter) True The square of a unit is not a unit:: sage: sage.symbolic.units... | 36d2f28c044694ad73a4a70a9d869366d0e39ec4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/36d2f28c044694ad73a4a70a9d869366d0e39ec4/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4873,
12,
87,
4672,
3536,
2860,
279,
1250,
1347,
19279,
2856,
326,
810,
353,
316,
326,
666,
434,
4971,
18,
225,
12943,
30,
225,
300,
1375,
87,
68,
1493,
392,
733,
225,
11550,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
4873,
12,
87,
4672,
3536,
2860,
279,
1250,
1347,
19279,
2856,
326,
810,
353,
316,
326,
666,
434,
4971,
18,
225,
12943,
30,
225,
300,
1375,
87,
68,
1493,
392,
733,
225,
11550,
... |
m.add_image_measurement(F_TOTAL_AREA%(self.object_name.value), | m.add_image_measurement(F_TOTAL_AREA%(object.object_name.value), | def run(self, workspace): objects = workspace.get_objects(self.object_name.value) if objects.has_parent_image: area_occupied = np.sum(objects.segmented[objects.parent_image.mask]>0) total_area = np.sum(objects.parent_image.mask) else: area_occupied = np.sum(objects.segmented > 0) total_area = np.product(objects.segment... | a0bb548da9fde1e6fd3c949608fd007fd37a3ee9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2870/a0bb548da9fde1e6fd3c949608fd007fd37a3ee9/measureimageareaoccupied.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
6003,
4672,
2184,
273,
6003,
18,
588,
67,
6911,
12,
2890,
18,
1612,
67,
529,
18,
1132,
13,
309,
2184,
18,
5332,
67,
2938,
67,
2730,
30,
5091,
67,
25049,
416,
2092... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
6003,
4672,
2184,
273,
6003,
18,
588,
67,
6911,
12,
2890,
18,
1612,
67,
529,
18,
1132,
13,
309,
2184,
18,
5332,
67,
2938,
67,
2730,
30,
5091,
67,
25049,
416,
2092... |
PrintErrorMsg(ERROR_NAMING_CONVENTION_CHECK_VARIABLE_NAME, 'Member variable %s NOT follow naming convention.' % ErrMsg, FileTable, Td[5]) | PrintErrorMsg(ERROR_NAMING_CONVENTION_CHECK_VARIABLE_NAME, 'Member variable %s NOT follow naming convention.' % (Name+'.'+ErrMsg), FileTable, Td[5]) | def CheckDeclTypedefFormat(FullFileName, ModelId): ErrorMsgList = [] FileID = GetTableID(FullFileName, ErrorMsgList) if FileID < 0: return ErrorMsgList Db = GetDB() FileTable = 'Identifier' + str(FileID) SqlStatement = """ select Name, StartLine, EndLine, ID, Value from %s where Model = %d """ % (FileTable, ModelId) ... | 55da07841c0281c8e74a15a63c3242d3f5b84ac8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/914/55da07841c0281c8e74a15a63c3242d3f5b84ac8/c.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3456,
559,
536,
1630,
12,
5080,
4771,
16,
3164,
548,
4672,
1068,
3332,
682,
273,
5378,
225,
1387,
734,
273,
968,
1388,
734,
12,
5080,
4771,
16,
1068,
3332,
682,
13,
309,
1387,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
3456,
559,
536,
1630,
12,
5080,
4771,
16,
3164,
548,
4672,
1068,
3332,
682,
273,
5378,
225,
1387,
734,
273,
968,
1388,
734,
12,
5080,
4771,
16,
1068,
3332,
682,
13,
309,
1387,
73... |
return style return (None, id, "", "", kind, None) | return style | def CalculateWXStyle(cls, block): if block.menuItemKind == "Separator": id = wx.ID_SEPARATOR kind = wx.ITEM_SEPARATOR else: """ Menu items must have an event, otherwise they can't cause any action, nor can we use wxWindows api's to distinguish them from each other. """ assert block.hasAttributeValue('event') id = Block... | 6ed3cdcbb2d2f6796287ccd28992bdf8d2a26a7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/6ed3cdcbb2d2f6796287ccd28992bdf8d2a26a7d/DynamicContainerBlocks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
59,
60,
2885,
12,
6429,
16,
1203,
4672,
309,
1203,
18,
5414,
1180,
5677,
422,
315,
6581,
6877,
612,
273,
7075,
18,
734,
67,
4550,
3846,
273,
7075,
18,
12674,
67,
4550,
469,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9029,
59,
60,
2885,
12,
6429,
16,
1203,
4672,
309,
1203,
18,
5414,
1180,
5677,
422,
315,
6581,
6877,
612,
273,
7075,
18,
734,
67,
4550,
3846,
273,
7075,
18,
12674,
67,
4550,
469,
30,
... |
""" Set up test fixtures """ | """ Set up test fixtures. """ | def setUp(self): """ Set up test fixtures """ self.mock_tracker = MockTracker() | f197f660de27f119c9000bdd2c634e6960ce4fd0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4939/f197f660de27f119c9000bdd2c634e6960ce4fd0/scaffold.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
1000,
731,
1842,
23302,
18,
3536,
365,
18,
22851,
67,
16543,
273,
7867,
8135,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
3536,
1000,
731,
1842,
23302,
18,
3536,
365,
18,
22851,
67,
16543,
273,
7867,
8135,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Name=calibre - Ebook library management | Name=calibre GenericName=E-book library management | def binary_install(): manifest = os.path.join(getattr(sys, 'frozen_path'), 'manifest') exes = [x.strip() for x in open(manifest).readlines()] print 'Creating symlinks...' for exe in exes: dest = os.path.join('/usr', 'bin', exe) if os.path.exists(dest): os.remove(dest) os.symlink(os.path.join(getattr(sys, 'frozen_path')... | 21cd4d0f08eb0202f873570c9065d80bea5b0452 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/21cd4d0f08eb0202f873570c9065d80bea5b0452/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3112,
67,
5425,
13332,
5643,
273,
1140,
18,
803,
18,
5701,
12,
588,
1747,
12,
9499,
16,
296,
28138,
67,
803,
19899,
296,
14357,
6134,
431,
281,
273,
306,
92,
18,
6406,
1435,
364,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3112,
67,
5425,
13332,
5643,
273,
1140,
18,
803,
18,
5701,
12,
588,
1747,
12,
9499,
16,
296,
28138,
67,
803,
19899,
296,
14357,
6134,
431,
281,
273,
306,
92,
18,
6406,
1435,
364,
619,
... |
self.settings["CFLAGS"]="-Os -march=armv5te -pipe" | self.settings["CFLAGS"]+=" -march=armv5te" | def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv5tel-softfloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv5te -pipe" | 423613d4d63f3a603ff416edd814c78b4f729c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/423613d4d63f3a603ff416edd814c78b4f729c55/arm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
25,
19261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
25,
19261... |
self.pointerToIen, | self.pointerToIens, | def run(self): import lithomop3d # First define all of the lists that maintain variable values. The # variables in these lists are altered during the running of the code # and should not be accessed directly except as a member of the list. # They should not have been defined previously. | a3b996c5dd1f99d042cb2939115fc63c0a831041 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8640/a3b996c5dd1f99d042cb2939115fc63c0a831041/Lithomop3d_run.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
328,
483,
362,
556,
23,
72,
225,
468,
5783,
4426,
777,
434,
326,
6035,
716,
17505,
2190,
924,
18,
225,
1021,
468,
3152,
316,
4259,
6035,
854,
22349,
4982,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1930,
328,
483,
362,
556,
23,
72,
225,
468,
5783,
4426,
777,
434,
326,
6035,
716,
17505,
2190,
924,
18,
225,
1021,
468,
3152,
316,
4259,
6035,
854,
22349,
4982,
3... |
if data[:2] == '\xfe\xff': | if data[:2] == b'\xfe\xff': | def pack(x, forcetype = None): """Pack a python object into an AE descriptor""" if forcetype: if isinstance(x, bytes): return AE.AECreateDesc(forcetype, x) else: return pack(x).AECoerceDesc(forcetype) if x == None: return AE.AECreateDesc(b'null', '') if isinstance(x, AEDescType): return x if isinstance(x, FSSType): ... | baa08362e81a56b112a244a6d2f02bf3cf2be06d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/baa08362e81a56b112a244a6d2f02bf3cf2be06d/aepack.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
92,
16,
364,
71,
5872,
273,
599,
4672,
3536,
4420,
279,
5790,
733,
1368,
392,
432,
41,
4950,
8395,
225,
309,
364,
71,
5872,
30,
309,
1549,
12,
92,
16,
1731,
4672,
327,
432,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2298,
12,
92,
16,
364,
71,
5872,
273,
599,
4672,
3536,
4420,
279,
5790,
733,
1368,
392,
432,
41,
4950,
8395,
225,
309,
364,
71,
5872,
30,
309,
1549,
12,
92,
16,
1731,
4672,
327,
432,... |
x, y = longopts[i][:optlen], longopts[i][optlen:] if opt != x: continue if y != '' and y != '=' and i+1 < len(longopts): if opt == longopts[i+1][:optlen]: raise GetoptError('option --%s not a unique prefix' % opt, opt) if longopts[i][-1:] in ('=', ): return 1, longopts[i][:-1] return 0, longopts[i] raise GetoptError('o... | if longopts[i].startswith(opt): break else: raise GetoptError('option --%s not recognized' % opt, opt) j = i+1 while j < len(longopts) and longopts[j].startswith(opt): j += 1 possibilities = longopts[i:j] if opt in possibilities: return 0, opt elif opt + '=' in possibilities: return 1, opt if len(possibilities) > 1... | def long_has_args(opt, longopts): optlen = len(opt) for i in range(len(longopts)): x, y = longopts[i][:optlen], longopts[i][optlen:] if opt != x: continue if y != '' and y != '=' and i+1 < len(longopts): if opt == longopts[i+1][:optlen]: raise GetoptError('option --%s not a unique prefix' % opt, opt) if longopts[i][-1:... | 5206de5ed82f828611152bbbbe0a412a3e5c9cc3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/5206de5ed82f828611152bbbbe0a412a3e5c9cc3/getopt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1525,
67,
5332,
67,
1968,
12,
3838,
16,
1525,
4952,
4672,
2153,
1897,
273,
562,
12,
3838,
13,
364,
277,
316,
1048,
12,
1897,
12,
5748,
4952,
3719,
30,
309,
1525,
4952,
63,
77,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1525,
67,
5332,
67,
1968,
12,
3838,
16,
1525,
4952,
4672,
2153,
1897,
273,
562,
12,
3838,
13,
364,
277,
316,
1048,
12,
1897,
12,
5748,
4952,
3719,
30,
309,
1525,
4952,
63,
77,
8009,
... |
index=getattr(self, index+'Index') | if hasattr(self.threadIndex, 'clear'): self.threadIndex.clear() return | def clearIndex(self, archive, index): | 3bf91d8e58657ce26c57db0c1099071e36bcd51e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/3bf91d8e58657ce26c57db0c1099071e36bcd51e/HyperDatabase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
1016,
12,
2890,
16,
5052,
16,
770,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
1016,
12,
2890,
16,
5052,
16,
770,
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,
... |
runner.setP3DFilename(*runner.parseSysArgs()) | argv = runner.parseSysArgs() runner.setP3DFilename(argv[0], argv = argv) | def parseSysArgs(self): """ Converts sys.argv into (p3dFilename, tokens). """ import getopt opts, args = getopt.getopt(sys.argv[1:], 'h') | 5b744c5ab84972e3f0ed92b66846301c654b7492 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/5b744c5ab84972e3f0ed92b66846301c654b7492/runp3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12712,
2615,
12,
2890,
4672,
3536,
20377,
2589,
18,
19485,
1368,
261,
84,
23,
72,
5359,
16,
2430,
2934,
3536,
1930,
336,
3838,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12712,
2615,
12,
2890,
4672,
3536,
20377,
2589,
18,
19485,
1368,
261,
84,
23,
72,
5359,
16,
2430,
2934,
3536,
1930,
336,
3838,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9... |
def getwhiteboard(self,id,which): '''Get the current value of the whiteboard specified by 'which' on bug with the the given id.''' raise NotImplementedError | def query_comments(self,product,version,component,string,matchtype='allwordssubstr'): '''Convenience method - query for bugs filed against the given product, version, and component whose comments match the given string. matchtype specifies the type of match to be done. matchtype may be any of the types listed in queryd... | def getwhiteboard(self,id,which): '''Get the current value of the whiteboard specified by 'which' on bug with the the given id.''' raise NotImplementedError | 9ee1856c171867976b7a7b987baa62b24d14fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5050/9ee1856c171867976b7a7b987baa62b24d14fd5c/bugzilla.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
14739,
3752,
12,
2890,
16,
350,
16,
12784,
4672,
9163,
967,
326,
783,
460,
434,
326,
9578,
3752,
1269,
635,
296,
12784,
11,
603,
7934,
598,
326,
326,
864,
612,
1093,
6309,
1002,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
14739,
3752,
12,
2890,
16,
350,
16,
12784,
4672,
9163,
967,
326,
783,
460,
434,
326,
9578,
3752,
1269,
635,
296,
12784,
11,
603,
7934,
598,
326,
326,
864,
612,
1093,
6309,
1002,
1... |
r, w, e = popen2.popen3([blastcmd] + params) | r, w, e = popen2.popen3(' '.join([blastcmd] + params)) | def blastall(blastcmd, program, database, infile, **keywds): """blastall(blastcmd, program, database, infile, **keywds) -> read, error Undohandles Execute and retrieve data from blastall. blastcmd is the command used to launch the 'blastall' executable. program is the blast program to use, e.g. 'blastp', 'blastn', e... | 8c8f53e128abd1be4084ae9e7bfdf1e823158b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/8c8f53e128abd1be4084ae9e7bfdf1e823158b7b/NCBIStandalone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19047,
454,
12,
30901,
4172,
16,
5402,
16,
2063,
16,
14568,
16,
2826,
856,
91,
2377,
4672,
3536,
30901,
454,
12,
30901,
4172,
16,
5402,
16,
2063,
16,
14568,
16,
2826,
856,
91,
2377,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19047,
454,
12,
30901,
4172,
16,
5402,
16,
2063,
16,
14568,
16,
2826,
856,
91,
2377,
4672,
3536,
30901,
454,
12,
30901,
4172,
16,
5402,
16,
2063,
16,
14568,
16,
2826,
856,
91,
2377,
13... |
time.sleep(1) | for i in xrange(100): time.sleep(.01) if not pidIsRunning(pid): return | def killProcess(self, pid=None): if pid is not None: try: os.kill(pid, signal.SIGTERM) time.sleep(1) os.kill(pid, signal.SIGKILL) except: pass | f0bf8dbddcd648a5fac7417081eff16a65f3ea2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/f0bf8dbddcd648a5fac7417081eff16a65f3ea2c/platformutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8673,
2227,
12,
2890,
16,
4231,
33,
7036,
4672,
309,
4231,
353,
486,
599,
30,
775,
30,
1140,
18,
16418,
12,
6610,
16,
4277,
18,
18513,
15176,
13,
364,
277,
316,
12314,
12,
6625,
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,
8673,
2227,
12,
2890,
16,
4231,
33,
7036,
4672,
309,
4231,
353,
486,
599,
30,
775,
30,
1140,
18,
16418,
12,
6610,
16,
4277,
18,
18513,
15176,
13,
364,
277,
316,
12314,
12,
6625,
4672,
... |
import sqlite3 | import sqlite3 | def set_temp_store_directory( connection, temp_store_directory, verbose = False ): """ Sets the temp_store_directory parameter in sqlite. """ try: import sqlite3 except ImportError: # pre 2.5.x from pysqlite2 import dbapi2 as sqlite3 if verbose: print >> sys.stderr, "setting the temp_store_directory to %s" % temp_stor... | 8cea1b2fc7596cef9cda3f1b4faff0434d729925 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3589/8cea1b2fc7596cef9cda3f1b4faff0434d729925/dbtables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5814,
67,
2233,
67,
5149,
12,
1459,
16,
1906,
67,
2233,
67,
5149,
16,
3988,
273,
1083,
262,
30,
3536,
11511,
326,
1906,
67,
2233,
67,
5149,
1569,
316,
16184,
18,
3536,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5814,
67,
2233,
67,
5149,
12,
1459,
16,
1906,
67,
2233,
67,
5149,
16,
3988,
273,
1083,
262,
30,
3536,
11511,
326,
1906,
67,
2233,
67,
5149,
1569,
316,
16184,
18,
3536,
775,
... |
robot_email = UnicodeCol(default=None, length=255) | robot_email = UnicodeCol(default=None) | def my_site(self): return self.host_category.my_site() | 1914e98105bad444213144f8ad795c2e01bf6f73 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13031/1914e98105bad444213144f8ad795c2e01bf6f73/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
4256,
12,
2890,
4672,
327,
365,
18,
2564,
67,
4743,
18,
4811,
67,
4256,
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,
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,
3399,
67,
4256,
12,
2890,
4672,
327,
365,
18,
2564,
67,
4743,
18,
4811,
67,
4256,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall}, | cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall, 'install_lib':PyBuildInstallLib}, | def main(): # turn off warnings when deprecated modules are imported import warnings warnings.filterwarnings("ignore",category=DeprecationWarning) setup(name = 'Python standard library', version = '%d.%d' % sys.version_info[:2], cmdclass = {'build_ext':PyBuildExt, 'install':PyBuildInstall}, # The struct module is defin... | 0b55fe4de63c89c5ebc47ffe99b5b2af3ae0a7f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0b55fe4de63c89c5ebc47ffe99b5b2af3ae0a7f0/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
7005,
3397,
5599,
1347,
6849,
4381,
854,
9101,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
4743,
33,
758,
13643,
6210,
13,
3875,
12,
529,
273,
296,
15774,
4529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
468,
7005,
3397,
5599,
1347,
6849,
4381,
854,
9101,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
4743,
33,
758,
13643,
6210,
13,
3875,
12,
529,
273,
296,
15774,
4529,
... |
scitools.misc.dump(g, hide_nonpublic=False) | import scitools.misc; scitools.misc.dump(g, hide_nonpublic=False) | def _test(g): print 'g=%s' % str(g) # dump all the contents of a grid object: scitools.misc.dump(g, hide_nonpublic=False) from numpy import zeros def fv(*args): # vectorized evaluation function return zeros(g.shape)+2 def fs(*args): # scalar version return 2 fv_arr = g.vectorized_eval(fv) fs_arr = zeros(g.shape) coor =... | ce07dc4ebf7cb4b01fad76aa28005cd1d0980e03 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4727/ce07dc4ebf7cb4b01fad76aa28005cd1d0980e03/BoxGrid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
12,
75,
4672,
1172,
296,
75,
5095,
87,
11,
738,
609,
12,
75,
13,
468,
4657,
777,
326,
2939,
434,
279,
3068,
733,
30,
1930,
888,
305,
8192,
18,
23667,
31,
225,
888,
305,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
12,
75,
4672,
1172,
296,
75,
5095,
87,
11,
738,
609,
12,
75,
13,
468,
4657,
777,
326,
2939,
434,
279,
3068,
733,
30,
1930,
888,
305,
8192,
18,
23667,
31,
225,
888,
305,
... |
oscmd("mkdir -p "+destdir+prefix+libdir+"/"+PYTHONV+"/lib-dynload") oscmd("mkdir -p "+destdir+prefix+libdir+"/"+PYTHONV+"/site-packages") | oscmd("mkdir -p "+destdir+prefix+libdir+"/"+os.path.abspath(PPATH+"/../lib-dynload")) oscmd("mkdir -p "+destdir+prefix+libdir+"/"+PPATH+"/site-packages") | def InstallPanda(destdir="", prefix="/usr", outputdir="built"): if (not prefix.startswith("/")): prefix = "/" + prefix #FIXME: this might not be the correct python version PYTHONV="python"+sys.version[:3] oscmd("mkdir -p "+destdir+prefix+"/bin") oscmd("mkdir -p "+destdir+prefix+"/include") oscmd("mkdir -p "+destdir+pre... | 8a6c92f4c76934d64a415732f8fd8f860e55e15d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/8a6c92f4c76934d64a415732f8fd8f860e55e15d/installpanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
52,
464,
69,
12,
10488,
1214,
1546,
3113,
1633,
1546,
19,
13640,
3113,
876,
1214,
1546,
12406,
6,
4672,
309,
261,
902,
1633,
18,
17514,
1918,
2932,
4898,
3719,
30,
1633,
273,
4016... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
52,
464,
69,
12,
10488,
1214,
1546,
3113,
1633,
1546,
19,
13640,
3113,
876,
1214,
1546,
12406,
6,
4672,
309,
261,
902,
1633,
18,
17514,
1918,
2932,
4898,
3719,
30,
1633,
273,
4016... |
lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0) if old_document: lsctables.SnglInspiralTable.validcolumns["event_id"] = "int_8s" | lsctables.SnglInspiralTable.validcolumns["event_id"] = "int_8s" | def ReadSnglInspiralFromFiles(fileList, mangle_event_id=False, verbose=False, non_lsc_tables_ok=False, old_document=False): """ Read the SnglInspiralTables from a list of files @param fileList: list of input files @param mangle_event_id: ID remapping is necessary in cases where multiple files might have event_id colli... | f5679f873a857178997a240078cf75f6a6e240f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f5679f873a857178997a240078cf75f6a6e240f8/SnglInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... |
editCtrl.Remove(*editCtrl.GetSelection()) | start, end = editCtrl.GetSelection() if end - start == 0: end += 1 editCtrl.Remove(start, end) | def DispatchCommand(self, command, event): if self.lastFocus == "Edit" and command == "Clear": editCtrl = self.treeCtrl.GetEditControl() editCtrl.Remove(*editCtrl.GetSelection()) return focus = self.FindFocus() method = getattr(focus, command, None) if method is not None: method() else: event.Skip() | 9ee56a35fdb10b99f4946424378c77c9e877b479 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/9ee56a35fdb10b99f4946424378c77c9e877b479/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
2189,
12,
2890,
16,
1296,
16,
871,
4672,
309,
365,
18,
2722,
9233,
422,
315,
4666,
6,
471,
1296,
422,
315,
9094,
6877,
3874,
12418,
273,
365,
18,
3413,
12418,
18,
967,
4666,
336... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11552,
2189,
12,
2890,
16,
1296,
16,
871,
4672,
309,
365,
18,
2722,
9233,
422,
315,
4666,
6,
471,
1296,
422,
315,
9094,
6877,
3874,
12418,
273,
365,
18,
3413,
12418,
18,
967,
4666,
336... |
def get_forces(self, atoms): | def get_forces(self, atoms=None): | def get_forces(self, atoms): """Calculate atomic forces""" if self.calculation_required(atoms): if self.debug > 0: print 'calculation required for forces' self.calculate() nc = netCDF(self.get_nc(),'r') forces = nc.variables['DynamicAtomForces'][-1] nc.close() return forces | bf90610c8b52d6cb8ae1d7dae09bdec342268c8a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1380/bf90610c8b52d6cb8ae1d7dae09bdec342268c8a/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1884,
764,
12,
2890,
16,
9006,
33,
7036,
4672,
3536,
8695,
7960,
26376,
8395,
309,
365,
18,
29916,
67,
4718,
12,
14937,
4672,
309,
365,
18,
4148,
405,
374,
30,
1172,
296,
2991... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1884,
764,
12,
2890,
16,
9006,
33,
7036,
4672,
3536,
8695,
7960,
26376,
8395,
309,
365,
18,
29916,
67,
4718,
12,
14937,
4672,
309,
365,
18,
4148,
405,
374,
30,
1172,
296,
2991... |
def do_broadcast_event(self): """Get the broadcaster associated with the process and exercise BroadcastEvent API.""" | def do_add_listener_to_broadcaster(self): """Get the broadcaster associated with the process and wait for broadcaster events.""" | def do_broadcast_event(self): """Get the broadcaster associated with the process and exercise BroadcastEvent API.""" exe = os.path.join(os.getcwd(), "a.out") | 8e8f302d95ad10440f8126596a2a7bdfe1604d7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13509/8e8f302d95ad10440f8126596a2a7bdfe1604d7d/TestEvents.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
67,
12757,
67,
869,
67,
15521,
23748,
12,
2890,
4672,
3536,
967,
326,
324,
26674,
3627,
598,
326,
1207,
471,
2529,
364,
324,
26674,
2641,
12123,
15073,
273,
1140,
18,
803,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
67,
12757,
67,
869,
67,
15521,
23748,
12,
2890,
4672,
3536,
967,
326,
324,
26674,
3627,
598,
326,
1207,
471,
2529,
364,
324,
26674,
2641,
12123,
15073,
273,
1140,
18,
803,... |
""" | """ | def flimage_open(p1): """ flimage_open(p1) -> image """ retval = _flimage_open(p1) 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,
3190,
12,
84,
21,
4672,
3536,
1183,
2730,
67,
3190,
12,
84,
21,
13,
317,
1316,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
3190,
12,
84,
21,
13,
327,
5221,
282,
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,
1183,
2730,
67,
3190,
12,
84,
21,
4672,
3536,
1183,
2730,
67,
3190,
12,
84,
21,
13,
317,
1316,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
3190,
12,
84,
21,
13,
327,
5221,
282,
2,
-... |
sage: from sage.plot.plot3d.plot3d import _CoordTrans sage: _CoordTrans('y', ['x']) Unknown coordinate system (y in terms of x) """ if hasattr(self, 'all_vars'): if set(self.all_vars) != set(dep_vars + [indep_var]): raise ValueError, 'not all variables were specified for ' + \ 'this coordinate system' self.indep_var =... | sage: from sage.plot.plot3d.plot3d import _ArbitraryCoordinates as arb sage: x,y,z=var('x,y,z') sage: c=arb((x+z,y*z,z), z, (x,y)) sage: c._name 'Arbitrary Coordinates' """ return self.__class__.__name__ def transform(self, **kwds): """ Return the transformation for this coordinate system in terms of the | def __init__(self, indep_var, dep_vars): """ INPUT: | ae9bf5e0d28a56cbf9d189e5545c9a8340d806de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/ae9bf5e0d28a56cbf9d189e5545c9a8340d806de/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
15037,
67,
1401,
16,
5993,
67,
4699,
4672,
3536,
12943,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
316,
15037,
67,
1401,
16,
5993,
67,
4699,
4672,
3536,
12943,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if not self.attributes[XMLSchemaComponent.xsd].has_key(a): | if not self.attributes.has_key(a): | def __checkAttributes(self): """Checks that required attributes have been defined, attributes w/default cannot be required. Checks all defined attributes are legal. """ for a in self.__class__.required: if not self.attributes[XMLSchemaComponent.xsd].has_key(a): raise SchemaError,\ 'class instance %s, missing required... | e50368f02a007b522df43404acf761191b9356f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/e50368f02a007b522df43404acf761191b9356f0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
2498,
12,
2890,
4672,
3536,
4081,
716,
1931,
1677,
1240,
2118,
2553,
16,
1677,
341,
19,
1886,
2780,
506,
1931,
18,
282,
13074,
777,
2553,
1677,
854,
19286,
18,
3536,
364,
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,
1001,
1893,
2498,
12,
2890,
4672,
3536,
4081,
716,
1931,
1677,
1240,
2118,
2553,
16,
1677,
341,
19,
1886,
2780,
506,
1931,
18,
282,
13074,
777,
2553,
1677,
854,
19286,
18,
3536,
364,
279... |
self.setValue( self.theQtyFPN, self.theQtyValue ) | self.theStub.setProperty( 'Value', self.theValue ) | def increaseValue( self, button_object ): | 30bce103d9f34982fce5f0fc5e1245ea73d045a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/30bce103d9f34982fce5f0fc5e1245ea73d045a1/VariableWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10929,
620,
12,
365,
16,
3568,
67,
1612,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10929,
620,
12,
365,
16,
3568,
67,
1612,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
INSTR_PATH = os.path.join(JOKOSHER_PATH, "..", "Instruments") | INSTR_PATHS = (os.path.join(JOKOSHER_PATH, "..", "Instruments"), os.path.expanduser("~/.jokosher/instruments")) | def idleCacheInstruments(): global instrumentPropertyList, _alreadyCached, _cacheGeneratorObject if _alreadyCached: #Stop idle_add from calling us again return False #create the generator if it hasnt been already if not _cacheGeneratorObject: _cacheGeneratorObject = _cacheInstrumentsGenerator() try: instrumentProperty... | ab5982e39937049ad0236f66503ac44e5aa93167 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10033/ab5982e39937049ad0236f66503ac44e5aa93167/Globals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
1649,
19228,
87,
13332,
2552,
10353,
1396,
682,
16,
389,
17583,
9839,
16,
389,
2493,
3908,
921,
309,
389,
17583,
9839,
30,
468,
4947,
12088,
67,
1289,
628,
4440,
584,
3382,
327,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12088,
1649,
19228,
87,
13332,
2552,
10353,
1396,
682,
16,
389,
17583,
9839,
16,
389,
2493,
3908,
921,
309,
389,
17583,
9839,
30,
468,
4947,
12088,
67,
1289,
628,
4440,
584,
3382,
327,
1... |
return time.strftime('%Y-%m-%d') | return datetime.datetime.today() | def __getattr__(self, item): if item == 'parent' and self.parent.parent: return EvalEnvironment(self.parent.parent) if item == "current_date": return time.strftime('%Y-%m-%d') if item == "time": return time return self.parent.get(includeid=True)[item] | 69e63052c4655c0c2abbb7a83dcd5da04c2393b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9151/69e63052c4655c0c2abbb7a83dcd5da04c2393b7/record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
761,
4672,
309,
761,
422,
296,
2938,
11,
471,
365,
18,
2938,
18,
2938,
30,
327,
13163,
5494,
12,
2890,
18,
2938,
18,
2938,
13,
309,
761,
422,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
1747,
972,
12,
2890,
16,
761,
4672,
309,
761,
422,
296,
2938,
11,
471,
365,
18,
2938,
18,
2938,
30,
327,
13163,
5494,
12,
2890,
18,
2938,
18,
2938,
13,
309,
761,
422,
315,... |
for e in table.values(): f = e[0] if f.__name__.startswith("debug"): continue | for c,e in table.items(): f = c aliases = None if "|" in f: l = f.split("|") f, aliases = l[0], l[1:] if f.startswith("debug"): continue | def help(ui, cmd=None): '''show help for a given command or all commands''' if cmd: try: i = find(cmd) ui.write("%s\n\n" % i[2]) if i[1]: for s, l, d, c in i[1]: opt=' ' if s: opt = opt + '-' + s + ' ' if l: opt = opt + '--' + l + ' ' if d: opt = opt + '(' + str(d) + ')' ui.write(opt, "\n") if c: ui.write(' %s\n' % ... | 0893811fc01f0dd4b4e8636ca072a2337f13402a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/0893811fc01f0dd4b4e8636ca072a2337f13402a/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
12,
4881,
16,
1797,
33,
7036,
4672,
9163,
4500,
2809,
364,
279,
864,
1296,
578,
777,
4364,
26418,
309,
1797,
30,
775,
30,
277,
273,
1104,
12,
4172,
13,
5915,
18,
2626,
27188,
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,
2809,
12,
4881,
16,
1797,
33,
7036,
4672,
9163,
4500,
2809,
364,
279,
864,
1296,
578,
777,
4364,
26418,
309,
1797,
30,
775,
30,
277,
273,
1104,
12,
4172,
13,
5915,
18,
2626,
27188,
87,... |
opt.append("-shared") if sys.platform.startswith('sunos'): opt.append('-mimpure-text') return opt def get_libgcc_dir(self): status, output = exec_command(self.compiler_f77 + ['-print-libgcc-file-name'], use_tee=0) if not status: return os.path.dirname(output) | return hook_name() _default_compilers = ( ('win32', ('gnu','intelv','absoft','compaqv','intelev','gnu95','g95')), ('cygwin.*', ('sage_fortran', 'gnu','intelv','absoft','compaqv','intelev','gnu95','g95')), ('linux.*', ('sage_fortran','gnu','intel','lahey','pg','absoft','nag','vast','compaq', 'intele','intelem','gnu9... | def get_flags_linker_so(self): opt = self.linker_so[1:] if sys.platform=='darwin': target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) # If MACOSX_DEPLOYMENT_TARGET is set, we simply trust the value # and leave it alone. But, distutils will complain if the # environment's value is different from the one in the P... | 88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7133,
67,
1232,
264,
67,
2048,
12,
2890,
4672,
2153,
273,
365,
18,
1232,
264,
67,
2048,
63,
21,
26894,
309,
2589,
18,
9898,
18920,
28076,
4278,
1018,
273,
1140,
18,
28684,
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,
336,
67,
7133,
67,
1232,
264,
67,
2048,
12,
2890,
4672,
2153,
273,
365,
18,
1232,
264,
67,
2048,
63,
21,
26894,
309,
2589,
18,
9898,
18920,
28076,
4278,
1018,
273,
1140,
18,
28684,
18,... |
"""Like nstransfercmd() but returns only the socket.""" | """Like ntransfercmd() but returns only the socket.""" | def transfercmd(self, cmd, rest=None): """Like nstransfercmd() but returns only the socket.""" return self.ntransfercmd(cmd, rest)[0] | 3fcf3f3134a5ac7d068b34036598275de17f3f4a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3fcf3f3134a5ac7d068b34036598275de17f3f4a/ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
4172,
12,
2890,
16,
1797,
16,
3127,
33,
7036,
4672,
3536,
8804,
290,
13866,
4172,
1435,
1496,
1135,
1338,
326,
2987,
12123,
327,
365,
18,
82,
13866,
4172,
12,
4172,
16,
3127,
25146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7412,
4172,
12,
2890,
16,
1797,
16,
3127,
33,
7036,
4672,
3536,
8804,
290,
13866,
4172,
1435,
1496,
1135,
1338,
326,
2987,
12123,
327,
365,
18,
82,
13866,
4172,
12,
4172,
16,
3127,
25146... |
if (32 + chunk_size * num_chunks) != len(piece): | if (32 + (num_chunks * chunk_size)) != len(piece): | def read_directory(self, piece): self.entries = {} if not piece.startswith('IFCM'): raise LitError('Header piece #1 is not main directory.') chunk_size, num_chunks = int32(piece[8:12]), int32(piece[24:28]) if (32 + chunk_size * num_chunks) != len(piece): raise LitError('IFCM HEADER has incorrect length') for chunk in r... | 006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5149,
12,
2890,
16,
11151,
4672,
365,
18,
8219,
273,
2618,
309,
486,
11151,
18,
17514,
1918,
2668,
45,
4488,
49,
11,
4672,
1002,
511,
305,
668,
2668,
1864,
11151,
468,
21,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
5149,
12,
2890,
16,
11151,
4672,
365,
18,
8219,
273,
2618,
309,
486,
11151,
18,
17514,
1918,
2668,
45,
4488,
49,
11,
4672,
1002,
511,
305,
668,
2668,
1864,
11151,
468,
21,
353... |
Usage: yum [options] <update | install | info | remove | list | | Usage: yum [options] < update | install | info | remove | list | | def usage(self): print _(""" | 18d518d1521511781d65bc686769f98de3ae36e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/18d518d1521511781d65bc686769f98de3ae36e1/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
2890,
4672,
1172,
389,
2932,
3660,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4084,
12,
2890,
4672,
1172,
389,
2932,
3660,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
except : date = 0; FileDateCache[path] = date; | except : date = 0 FileDateCache[path] = date | def updatefiledate(path) : global FileDateCache try : date = os.path.getmtime(path) except : date = 0; FileDateCache[path] = date; | aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
768,
712,
12,
803,
13,
294,
2552,
1387,
1626,
1649,
775,
294,
1509,
273,
1140,
18,
803,
18,
588,
10838,
12,
803,
13,
1335,
294,
1509,
273,
374,
1387,
1626,
1649,
63,
803,
65,
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,
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,
1089,
768,
712,
12,
803,
13,
294,
2552,
1387,
1626,
1649,
775,
294,
1509,
273,
1140,
18,
803,
18,
588,
10838,
12,
803,
13,
1335,
294,
1509,
273,
374,
1387,
1626,
1649,
63,
803,
65,
2... |
('comp_dta',5),('invoice_number',11),('comp_bank_number',24),('date_value',6), | ('comp_dta',5),('invoice_number',11),('comp_bank_iban',24),('date_value',6), | def init_local_context(self): print "gt826" self.fields=[ ('seg_num1',2), #header ('date_value_hdr',6),('partner_bank_clearing',12),('zero5',5),('creation_date',6), ('comp_bank_clearing',7), ('uid',5), ('sequence',5), ('genre_trans',3), ('type_paiement',1),('flag',1), #seg1 ('comp_dta',5),('invoice_number',11),('comp_b... | 328edec7605fd017d24ea82a08c02c5bd0b17447 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/328edec7605fd017d24ea82a08c02c5bd0b17447/dta_wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
3729,
67,
2472,
12,
2890,
4672,
1172,
315,
4521,
28,
5558,
6,
365,
18,
2821,
22850,
7707,
5680,
67,
2107,
21,
2187,
22,
3631,
468,
3374,
7707,
712,
67,
1132,
67,
16587,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
3729,
67,
2472,
12,
2890,
4672,
1172,
315,
4521,
28,
5558,
6,
365,
18,
2821,
22850,
7707,
5680,
67,
2107,
21,
2187,
22,
3631,
468,
3374,
7707,
712,
67,
1132,
67,
16587,
2187,... |
e.num = getint(b) | e.num = getint_event(b) | def _substitute(self, *args): """Internal function.""" if len(args) != len(self._subst_format): return args getboolean = self.tk.getboolean getint = int nsign, b, f, h, k, s, t, w, x, y, A, E, K, N, W, T, X, Y, D = args # Missing: (a, c, d, m, o, v, B, R) e = Event() e.serial = getint(nsign) e.num = getint(b) try: e.fo... | 06848bdb9a7fcb2a84de1f8144e95d56a48ab347 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/06848bdb9a7fcb2a84de1f8144e95d56a48ab347/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
12,
2890,
16,
380,
1968,
4672,
3536,
3061,
445,
12123,
309,
562,
12,
1968,
13,
480,
562,
12,
2890,
6315,
1717,
334,
67,
2139,
4672,
327,
833,
336,
6494,
273,
365,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1717,
17207,
12,
2890,
16,
380,
1968,
4672,
3536,
3061,
445,
12123,
309,
562,
12,
1968,
13,
480,
562,
12,
2890,
6315,
1717,
334,
67,
2139,
4672,
327,
833,
336,
6494,
273,
365,
18,... |
f = ManualGenerator("SetControlData_Callback", setcontroldata_callback_body, condition=" | f = ManualGenerator("SetControlData_Callback", setcontroldata_callback_body); | def outputCleanupStructMembers(self): Output("Py_XDECREF(self->ob_callbackdict);") Output("if (self->ob_itself)SetControlReference(self->ob_itself, (long)0); /* Make it forget about us */") | 19f1e58cf0a0ec5f666107518196b52449ffec41 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/19f1e58cf0a0ec5f666107518196b52449ffec41/ctlsupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
15007,
3823,
6918,
12,
2890,
4672,
3633,
2932,
9413,
67,
60,
1639,
5458,
42,
12,
2890,
2122,
947,
67,
3394,
1576,
1769,
7923,
3633,
2932,
430,
261,
2890,
2122,
947,
67,
1282,
19079,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
15007,
3823,
6918,
12,
2890,
4672,
3633,
2932,
9413,
67,
60,
1639,
5458,
42,
12,
2890,
2122,
947,
67,
3394,
1576,
1769,
7923,
3633,
2932,
430,
261,
2890,
2122,
947,
67,
1282,
19079,... |
userData['Descr'] = str("%s of %s" % (self.optionLabel, img.name)) | userData['Descr'] = str("%s of image %s" % (self.optionLabel, img.name)) | def debug(msg): print "[YWP@%s] %s" % ("%02d:%02d:%02d" % time.localtime(time.time())[3:6], msg) sys.stdout.flush() | 0c4364bbf400bb114ffff63a2dfbc0c901eff56c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/0c4364bbf400bb114ffff63a2dfbc0c901eff56c/stiff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
12,
3576,
4672,
1172,
5158,
61,
20265,
36,
9,
87,
65,
738,
87,
6,
738,
7566,
9,
3103,
72,
5319,
3103,
72,
5319,
3103,
72,
6,
738,
813,
18,
3729,
957,
12,
957,
18,
957,
10756,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1198,
12,
3576,
4672,
1172,
5158,
61,
20265,
36,
9,
87,
65,
738,
87,
6,
738,
7566,
9,
3103,
72,
5319,
3103,
72,
5319,
3103,
72,
6,
738,
813,
18,
3729,
957,
12,
957,
18,
957,
10756,... |
self._pages = None | self._index = None self._last_index_update = 0 | def __init__(self): self._pages = None | 6392f2a70e74c43e37782a00df9b97e7e92a6a57 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/6392f2a70e74c43e37782a00df9b97e7e92a6a57/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
7267,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
6315,
7267,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
'class': CPPClassObject, 'function': CPPFunctionObject, 'member': CPPMemberObject, 'type': CPPTypeObject | 'class': CPPClassObject, 'function': CPPFunctionObject, 'member': CPPMemberObject, 'type': CPPTypeObject, 'namespace': CPPCurrentNamespace | def describe_signature(self, signode, func): # return value is None for things with a reverse return value # such as casting operator definitions or constructors # and destructors. if func.rv is not None: self.attach_type(signode, func.rv) signode += nodes.Text(u' ') self.attach_function(signode, func) | 9da129aeb9a67d386c40bd67cb7b0854de864c81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5532/9da129aeb9a67d386c40bd67cb7b0854de864c81/cpp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
67,
8195,
12,
2890,
16,
1573,
390,
16,
1326,
4672,
468,
327,
460,
353,
599,
364,
9198,
598,
279,
4219,
327,
460,
468,
4123,
487,
27660,
3726,
6377,
578,
19874,
468,
471,
23819,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6401,
67,
8195,
12,
2890,
16,
1573,
390,
16,
1326,
4672,
468,
327,
460,
353,
599,
364,
9198,
598,
279,
4219,
327,
460,
468,
4123,
487,
27660,
3726,
6377,
578,
19874,
468,
471,
23819,
1... |
if self.proj_index != self.proj_om.get_history(): self.proj_index = self.proj_om.get_history() | index = combo.get_active() if self.proj_index != index: self.proj_index = index | def set_proj_cb(self,*args): """Set projection""" if self.proj_index != self.proj_om.get_history(): self.proj_index = self.proj_om.get_history() self.sr = osr.SpatialReference() self.sr.SetWellKnownGeogCS(self.datum_names[self.datum_name]) self.sr.SetProjection(self.projs[self.proj_index]) for i in self.proj_parms[self... | 0a9f3291528240d019f1755ce071bd15e36e112d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11090/0a9f3291528240d019f1755ce071bd15e36e112d/gvrasterpropdlg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
17995,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
3536,
694,
8106,
8395,
770,
273,
16778,
18,
588,
67,
3535,
1435,
309,
365,
18,
17995,
67,
1615,
480,
770,
30,
365,
18,
17995,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17995,
67,
7358,
12,
2890,
16,
14,
1968,
4672,
3536,
694,
8106,
8395,
770,
273,
16778,
18,
588,
67,
3535,
1435,
309,
365,
18,
17995,
67,
1615,
480,
770,
30,
365,
18,
17995,
... |
self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.sock.connect((host, port)) | self.sock = socket.create_connection((host, port)) | def open(self, host = '', port = IMAP4_PORT): """Setup connection to remote server on "host:port" (default: localhost:standard IMAP4 port). This connection will be used by the routines: read, readline, send, shutdown. """ self.host = host self.port = port self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) se... | 2fd4b1d68f7059eb03a01621fa749d82539bb1bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/2fd4b1d68f7059eb03a01621fa749d82539bb1bb/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
6246,
2203,
24,
67,
6354,
4672,
3536,
7365,
1459,
358,
2632,
1438,
603,
315,
2564,
30,
655,
6,
261,
1886,
30,
17365,
30,
10005,
6246,
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,
1696,
12,
2890,
16,
1479,
273,
10226,
1756,
273,
6246,
2203,
24,
67,
6354,
4672,
3536,
7365,
1459,
358,
2632,
1438,
603,
315,
2564,
30,
655,
6,
261,
1886,
30,
17365,
30,
10005,
6246,
2... |
from os.path import basename | def __init__(self, moniker, main_file, aux_files=[], timestamp=None): import os import os.path | afdbb54885d6870d43a00232af554f720746c1ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12871/afdbb54885d6870d43a00232af554f720746c1ad/batchjob.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6921,
1766,
264,
16,
2774,
67,
768,
16,
9397,
67,
2354,
22850,
6487,
2858,
33,
7036,
4672,
1930,
1140,
1930,
1140,
18,
803,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6921,
1766,
264,
16,
2774,
67,
768,
16,
9397,
67,
2354,
22850,
6487,
2858,
33,
7036,
4672,
1930,
1140,
1930,
1140,
18,
803,
2,
-100,
-100,
-100,
-100,
-1... | |
del binaries[arch][0][binary] | del binaries[parch][0][binary] | def doop_source(self, pkg): """Apply a change to the testing distribution as requested by `pkg` | b8d4deefd1e15dc48987f2d10c01b6f060204f30 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/b8d4deefd1e15dc48987f2d10c01b6f060204f30/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
556,
67,
3168,
12,
2890,
16,
3475,
4672,
3536,
7001,
279,
2549,
358,
326,
7769,
7006,
487,
3764,
635,
1375,
10657,
68,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
def rewind_cb(self): '''Sets all parameters back to their original states (including unpausing)''' | def rewind(self): '''Sets all parameters back to their original states (including unpausing)''' | def rewind_cb(self): '''Sets all parameters back to their original states (including unpausing)''' self.clear_highlighting() self.stdout_clear() self.current_line=0 self.finished=False self.paused=False self.source.see('1.0') | 299d942cd4da3083d36a0ef915134c6d929ed34b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5103/299d942cd4da3083d36a0ef915134c6d929ed34b/trace_display.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12881,
12,
2890,
4672,
9163,
2785,
777,
1472,
1473,
358,
3675,
2282,
5493,
261,
31348,
640,
8774,
9940,
2506,
6309,
225,
365,
18,
8507,
67,
15978,
310,
1435,
365,
18,
10283,
67,
8507,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12881,
12,
2890,
4672,
9163,
2785,
777,
1472,
1473,
358,
3675,
2282,
5493,
261,
31348,
640,
8774,
9940,
2506,
6309,
225,
365,
18,
8507,
67,
15978,
310,
1435,
365,
18,
10283,
67,
8507,
14... |
self.generate_figure(node, source, destination) else: if self.in_paragraph: el1 = self.current_element else: el1 = SubElement(self.current_element, 'text:p', attrib={'text:style-name': 'rststyle-textbody'}) self.generate_image(node, source, destination, el1) def generate_figure(self, node, source, destination): captio... | el3, el4, caption = self.generate_figure(node, source, destination, el2) attrib = { 'draw:blue': '0%', 'draw:color-inversion': 'false', 'draw:color-mode': 'standard', 'draw:contrast': '0%', 'draw:gamma': '100%', 'draw:green': '0%', 'draw:image-opacity': '100%', 'draw:luminance': '0%', 'draw:red': '0%', 'fo:border': 'no... | def visit_image(self, node): #ipshell('At visit_image') #self.trace_visit_node(node) # Capture the image file. if 'uri' in node.attributes: source = node.attributes['uri'] if not self.check_file_exists(source): print 'Error: Cannot find image file %s.' % (source, ) return else: return if source in self.image_dict: file... | 8f9c74628116346d2f6e669c6a41a3e179d554cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5620/8f9c74628116346d2f6e669c6a41a3e179d554cb/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
2730,
6134,
468,
2890,
18,
5129,
67,
11658,
67,
2159,
12,
2159,
13,
468,
18477,
326,
1316,
585,
18,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
2730,
12,
2890,
16,
756,
4672,
468,
625,
10304,
2668,
861,
3757,
67,
2730,
6134,
468,
2890,
18,
5129,
67,
11658,
67,
2159,
12,
2159,
13,
468,
18477,
326,
1316,
585,
18,
309,
... |
try: os.unlink(tmp_file) except Exception, e: logger = netsvc.Logger() logger.notifyChannel("warning", netsvc.LOG_WARNING, "Temporary file %s could not be deleted. (%s)" % (tmp_file.name, e)) | def _generate(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) module_model = pool.get('ir.module.module') module_ids = data['ids'] | 975faf4268a466e0cab3072ab088d75bcfba4f17 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/975faf4268a466e0cab3072ab088d75bcfba4f17/wizard_tech_guide_rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
1605,
67,
2284,
273,
2845,
18,
588,
2668,
481,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
1605,
67,
2284,
273,
2845,
18,
588,
2668,
481,
18,
... | |
if ((event != masterEvent) and (event.occurrenceFor is not None) and | if ((event.occurrenceFor is not None) and | def recurringEventsInRange(self, date, nextDate, dayItems, timedItems): masterEvents = CalendarCollections(self.contents).masterEvents for masterEvent in masterEvents: for event in masterEvent.getOccurrencesBetween(date, nextDate): # One or both of dayItems and timedItems must be # True. If both, then there's no need t... | 8717c0db430a05cdf27a9a380a6d4de89bd264ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/8717c0db430a05cdf27a9a380a6d4de89bd264ef/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26043,
3783,
25277,
12,
2890,
16,
1509,
16,
1024,
1626,
16,
2548,
3126,
16,
7491,
3126,
4672,
4171,
3783,
273,
5542,
15150,
12,
2890,
18,
3980,
2934,
7525,
3783,
364,
4171,
1133,
316,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26043,
3783,
25277,
12,
2890,
16,
1509,
16,
1024,
1626,
16,
2548,
3126,
16,
7491,
3126,
4672,
4171,
3783,
273,
5542,
15150,
12,
2890,
18,
3980,
2934,
7525,
3783,
364,
4171,
1133,
316,
41... |
except WhatchuTalkinBoutWillisError: | except ArgumentError: | def _handleFile(self, filename): m = None if osp.isfile(filename): try: mname = reflect.filenameToModuleName(filename) self._tryNamedAny(mname) except WhatchuTalkinBoutWillisError: # okay, not in PYTHONPATH... path, fullname = osp.split(filename) name, ext = osp.splitext(fullname) m = new.module(name) sourcestring = fi... | 44810fc1456fc104e486a733307c26c4f0104e37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/44810fc1456fc104e486a733307c26c4f0104e37/trial.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
812,
12,
2890,
16,
1544,
4672,
312,
273,
599,
309,
23660,
18,
291,
768,
12,
3459,
4672,
775,
30,
312,
529,
273,
3037,
18,
3459,
774,
22542,
12,
3459,
13,
365,
6315,
698,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
812,
12,
2890,
16,
1544,
4672,
312,
273,
599,
309,
23660,
18,
291,
768,
12,
3459,
4672,
775,
30,
312,
529,
273,
3037,
18,
3459,
774,
22542,
12,
3459,
13,
365,
6315,
698,
7... |
valid_events = Event.objects.filter(useravailability__user=self, anchor=program.anchor).order_by('start')) | valid_events = Event.objects.filter(useravailability__user=self, anchor=program.anchor).order_by('start') | def getAvailableTimes(self, program, ignore_classes=False): """ Return a list of the Event objects representing the times that a particular user can teach for a particular program. """ from esp.resources.models import Resource from esp.cal.models import Event | 6a69992168203ca41889f5886d9ba8bfe5a27c58 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/6a69992168203ca41889f5886d9ba8bfe5a27c58/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15796,
10694,
12,
2890,
16,
5402,
16,
2305,
67,
4701,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
326,
2587,
2184,
5123,
326,
4124,
716,
279,
6826,
729,
848,
6489,
497,
364,
279,
6826,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15796,
10694,
12,
2890,
16,
5402,
16,
2305,
67,
4701,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
326,
2587,
2184,
5123,
326,
4124,
716,
279,
6826,
729,
848,
6489,
497,
364,
279,
6826,
... |
if not verbose: i.detail = "" print i | if verbose: print i elif not verbose and not i.host_name == 'detail': print i | def component_describe(self,components=None,verbose=False): params = {} if components: self.euca.connection.build_list_params(params,components,'Name') try: list = self.euca.connection.get_list('DescribeComponents', params, [('euca:item', Component)]) for i in list: if not verbose: i.detail = "" print i except EC2Respo... | e255c7df6a4e909b70cf841db7ff9325d60f847d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12708/e255c7df6a4e909b70cf841db7ff9325d60f847d/components.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1794,
67,
22748,
12,
2890,
16,
8119,
33,
7036,
16,
11369,
33,
8381,
4672,
859,
273,
2618,
309,
4085,
30,
365,
18,
73,
5286,
69,
18,
4071,
18,
3510,
67,
1098,
67,
2010,
12,
2010,
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,
1794,
67,
22748,
12,
2890,
16,
8119,
33,
7036,
16,
11369,
33,
8381,
4672,
859,
273,
2618,
309,
4085,
30,
365,
18,
73,
5286,
69,
18,
4071,
18,
3510,
67,
1098,
67,
2010,
12,
2010,
16,
... |
raise ValueError, 'unknown cipher' | raise ValueError, ('unknown cipher', alg) | def __init__(self, alg, key, iv, op, key_as_bytes=0, d='md5', salt='', i=1): cipher = getattr(m2, alg) if not cipher: raise ValueError, 'unknown cipher' self.cipher=cipher() if key_as_bytes: kmd = getattr(m2, d) if not kmd: raise ValueError, 'unknown message digest' key = m2.bytes_to_key(self.cipher, kmd(), key, salt, ... | 416bbe794c00c7bcd147f4ca746425b2711305ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8055/416bbe794c00c7bcd147f4ca746425b2711305ab/EVP.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11989,
16,
498,
16,
4674,
16,
1061,
16,
498,
67,
345,
67,
3890,
33,
20,
16,
302,
2218,
1264,
25,
2187,
4286,
2218,
2187,
277,
33,
21,
4672,
5867,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
11989,
16,
498,
16,
4674,
16,
1061,
16,
498,
67,
345,
67,
3890,
33,
20,
16,
302,
2218,
1264,
25,
2187,
4286,
2218,
2187,
277,
33,
21,
4672,
5867,
273,
... |
sums = ["COALESCE(SUM(msgs), 0)::float", | sums = ["COALESCE(SUM(msgs)-SUM(%s_spam_msgs), 0)::float" % (self.__short_name,), | def get_graph(self, end_date, report_days, host=None, user=None, email=None): if host or user: return None | e7dc5127b2ee682f62b16bf00e207d821437feb7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/87/e7dc5127b2ee682f62b16bf00e207d821437feb7/untangle_base_spam.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
1479,
578,
729,
30,
327,
599,
2,
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,
1652,
336,
67,
4660,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
1479,
578,
729,
30,
327,
599,
2,
-100,
-100,
-1... |
tmp_tnrs.append( line[2:].strip().split(':') ) | if ' ' in line[2:].strip(): for lpart in line[2:].strip().split(' '): tmp_tnrs.append(lpart.strip().split(':',2)) else: tmp_tnrs.append( line[2:].strip().split(':',2) ) | def unquote(str): return str[1:-1].replace("\\n", "\n") \ .replace('\\"', '"') | c05dc4b8478f7b37a2748c0affbd03a1988494a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/c05dc4b8478f7b37a2748c0affbd03a1988494a4/translate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25611,
12,
701,
4672,
327,
609,
63,
21,
30,
17,
21,
8009,
2079,
2932,
1695,
82,
3113,
1548,
82,
7923,
282,
521,
263,
2079,
2668,
27576,
2187,
4754,
13,
2,
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,
25611,
12,
701,
4672,
327,
609,
63,
21,
30,
17,
21,
8009,
2079,
2932,
1695,
82,
3113,
1548,
82,
7923,
282,
521,
263,
2079,
2668,
27576,
2187,
4754,
13,
2,
-100,
-100,
-100,
-100,
-100,... |
import search s = search.SearchByName() | s = SearchByName() | def parse_results(self, raw_xml): """Parse the xml and return a list of dictionaries like: [ {'IDSubtitle': 'foo', 'LinkUseNext': 'foo', 'MovieName': 'foo_movie', ... }, {'IDSubtitle': 'foo', 'LinkUseNext': 'foo', 'MovieName': 'foo_movie', ... }, ...] """ dom = minidom.parseString(raw_xml) #Make the dom from raw xml ... | f4a0b5c76f2474a74fe101030a960e622bef3d59 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/f4a0b5c76f2474a74fe101030a960e622bef3d59/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4717,
12,
2890,
16,
1831,
67,
2902,
4672,
3536,
3201,
326,
2025,
471,
327,
279,
666,
434,
16176,
3007,
30,
306,
282,
13666,
734,
1676,
2649,
4278,
296,
11351,
2187,
296,
2098,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4717,
12,
2890,
16,
1831,
67,
2902,
4672,
3536,
3201,
326,
2025,
471,
327,
279,
666,
434,
16176,
3007,
30,
306,
282,
13666,
734,
1676,
2649,
4278,
296,
11351,
2187,
296,
2098,
... |
>>> translate_stacktrace(file('infolog.txt').read()) | >>> translate_stacktrace(file('infolog.txt').read()) | def translate_stacktrace(infolog): '''\ Translate a complete stacktrace to (filename, lineno) tuples. The input string may be a complete infolog (i.e. infolog.txt). At the very least it must contain the 'Spring XXX has crashed.' or 'Hang detection triggered for Spring XXX.' line and at least one stack frame. The outp... | 9156686b4113c7785dbaaaa2909e22a9289d3190 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1030/9156686b4113c7785dbaaaa2909e22a9289d3190/stacktrace_translator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4204,
67,
3772,
5129,
12,
10625,
3966,
4672,
875,
8314,
16820,
279,
3912,
26934,
358,
261,
3459,
16,
7586,
13,
10384,
18,
225,
1021,
810,
533,
2026,
506,
279,
3912,
8286,
3966,
261,
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,
4204,
67,
3772,
5129,
12,
10625,
3966,
4672,
875,
8314,
16820,
279,
3912,
26934,
358,
261,
3459,
16,
7586,
13,
10384,
18,
225,
1021,
810,
533,
2026,
506,
279,
3912,
8286,
3966,
261,
77,
... |
class PyWCmdLineTests(WCmdLineTests): | class PyWCmdLineTests(BaseTest, WCmdLineTests): | def test_improper_input(self): # Uses the private _setoption() function to test the parsing # of command-line warning arguments with test_support.catch_warning(self.module): self.assertRaises(self.module._OptionError, self.module._setoption, '1:2:3:4:5:6') self.assertRaises(self.module._OptionError, self.module._setopt... | 5561b5a428065a2753637468b90a1bbcdc8ab686 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/5561b5a428065a2753637468b90a1bbcdc8ab686/test_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
381,
22754,
67,
2630,
12,
2890,
4672,
468,
14854,
326,
3238,
389,
542,
3482,
1435,
445,
358,
1842,
326,
5811,
468,
434,
1296,
17,
1369,
3436,
1775,
598,
1842,
67,
13261,
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,
381,
22754,
67,
2630,
12,
2890,
4672,
468,
14854,
326,
3238,
389,
542,
3482,
1435,
445,
358,
1842,
326,
5811,
468,
434,
1296,
17,
1369,
3436,
1775,
598,
1842,
67,
13261,
18,
... |
cp.set(sec, 'module_name', pms.module_name) cp.set(sec, 'module_config_dict', pms.module_config.__dict__) cp.set(sec, 'glyph_position', glyph_pos_dict[pms.instance_name]) | cp.set(sec, 'module_name', pms.moduleName) cp.set(sec, 'module_config_dict', pms.moduleConfig.__dict__) cp.set(sec, 'glyph_position', glyph_pos_dict[pms.instanceName]) | def save_network(pms_dict, connection_list, glyph_pos_dict, filename): """Given the serialised network representation as returned by ModuleManager._serialiseNetwork, write the whole thing to disk as a config-style DVN file. """ cp = ConfigParser.ConfigParser() # create a section for each module for pms in pms_dict.val... | d2e6f789dbc16f4a6512fb342d5f85f0fa9791c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4494/d2e6f789dbc16f4a6512fb342d5f85f0fa9791c2/convert_dvn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
5185,
12,
84,
959,
67,
1576,
16,
1459,
67,
1098,
16,
9440,
67,
917,
67,
1576,
16,
1544,
4672,
3536,
6083,
326,
2734,
5918,
2483,
4335,
487,
2106,
635,
5924,
1318,
6315,
8818,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
5185,
12,
84,
959,
67,
1576,
16,
1459,
67,
1098,
16,
9440,
67,
917,
67,
1576,
16,
1544,
4672,
3536,
6083,
326,
2734,
5918,
2483,
4335,
487,
2106,
635,
5924,
1318,
6315,
8818,... |
if M <= 3: initial_precision = M elif ceil(log(M/2, 2)) == ceil(log(M/3, 2)): initial_precision = 2 else: initial_precision = 3 if initial_precision == 1: k = 1 X = S(1) elif initial_precision == 2: k = 2 X = S(base_ring(3) / base_ring(2)).shift(p) - r elif initial_precision == 3: k = 3 X = (base_ring(1) ... | if M <= 3: initial_precision = M elif ceil(log(M/2, 2)) == ceil(log(M/3, 2)): initial_precision = 2 else: initial_precision = 3 if initial_precision == 1: k = 1 X = S(1) elif initial_precision == 2: k = 2 X = S(base_ring(3) / base_ring(2)).shift(p) - r elif initial_precision == 3: k = 3 X = (base_ring(1) ... | def frobenius_expansion_by_newton(Q, p, M): r""" Computes the action of Frobenius on $dx/y$ and on $x dx/y$, using Newton's method (as suggested in Kedlaya's paper). (This function does *not* yet use the cohomology relations -- that happens afterwards in the "reduction" step.) More specifically, it finds $F_0$ and $F... | 06ea403f27d6562f2b12bd1e2b8f27b9b674388a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/06ea403f27d6562f2b12bd1e2b8f27b9b674388a/monsky_washnitzer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
303,
19425,
8384,
67,
2749,
12162,
67,
1637,
67,
2704,
1917,
12,
53,
16,
293,
16,
490,
4672,
436,
8395,
14169,
281,
326,
1301,
434,
478,
303,
19425,
8384,
603,
271,
13437,
19,
93,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
303,
19425,
8384,
67,
2749,
12162,
67,
1637,
67,
2704,
1917,
12,
53,
16,
293,
16,
490,
4672,
436,
8395,
14169,
281,
326,
1301,
434,
478,
303,
19425,
8384,
603,
271,
13437,
19,
93,... |
if variables == None: variables = f.variables() | def equify(f, variables = None): """ Returns the equation rewritten as a symbolic function to give negative values when True, positive when False. EXAMPLES:: sage: from sage.plot.contour_plot import equify sage: var('x, y') (x, y) sage: equify(x^2 < 2) x |--> x^2 - 2 sage: equify(x^2 > 2) x |--> -x^2 + 2 sage: equify... | d4235734e2435a6828f66583a85001debae436ae /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/d4235734e2435a6828f66583a85001debae436ae/contour_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1298,
1164,
12,
74,
16,
3152,
273,
599,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
286... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1298,
1164,
12,
74,
16,
3152,
273,
599,
4672,
3536,
2860,
326,
15778,
26768,
487,
279,
16754,
445,
358,
8492,
6092,
924,
1347,
1053,
16,
6895,
1347,
1083,
18,
225,
5675,
8900,
11386,
286... | |
self._embed = Browser() | self._embed = WebView() | def __init__(self, parent_window): gobject.GObject.__init__(self) | 80bdcd5fa306e11ef335cd3088e9bd409de20a89 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6905/80bdcd5fa306e11ef335cd3088e9bd409de20a89/webview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
67,
5668,
4672,
314,
1612,
18,
43,
921,
16186,
2738,
972,
12,
2890,
13,
2,
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,
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,
1001,
2738,
972,
12,
2890,
16,
982,
67,
5668,
4672,
314,
1612,
18,
43,
921,
16186,
2738,
972,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
DataPool.clear = notify_decorator(dict.__setitem__) | DataPool.clear = notify_decorator(dict.clear) | def __init__(self): | ad6be781c146ac791b91071e68bfbc445b917f95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11338/ad6be781c146ac791b91071e68bfbc445b917f95/session.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
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,
-100,
-1... |
w = int(w * size/height) | def get_screenshot_xcomposite(self, screen, window, size=200): ''' Get the window pixmap of window from the X compositor extension, return it as a gdk.pixbuf. ''' display = screen.get_display() xdisplay = libgdk.gdk_x11_display_get_xdisplay(hash(display)) | d472c168498b2241a2352fc0f9f67f7c0f855ee6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/d472c168498b2241a2352fc0f9f67f7c0f855ee6/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
29435,
67,
92,
27676,
12,
2890,
16,
5518,
16,
2742,
16,
963,
33,
6976,
4672,
9163,
968,
326,
2742,
11871,
1458,
434,
2742,
628,
326,
1139,
532,
1724,
280,
2710,
16,
327,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29435,
67,
92,
27676,
12,
2890,
16,
5518,
16,
2742,
16,
963,
33,
6976,
4672,
9163,
968,
326,
2742,
11871,
1458,
434,
2742,
628,
326,
1139,
532,
1724,
280,
2710,
16,
327,
518,
... | |
file = os.path.expandvars('$SystemRoot\\memory.dmp') | file = os.path.expandvars('$windir\\memory.dmp') | def get_commands(self, option_id): # cache if 'posix' == os.name and 'cache' == option_id: dirname = os.path.expanduser("~/.cache/") for filename in children_in_directory(dirname, True): yield Command.Delete(filename) | cc4d7c323b32dc1bec50333652d586b266b89d80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7853/cc4d7c323b32dc1bec50333652d586b266b89d80/Cleaner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7847,
12,
2890,
16,
1456,
67,
350,
4672,
468,
1247,
309,
296,
24463,
11,
422,
1140,
18,
529,
471,
296,
2493,
11,
422,
1456,
67,
350,
30,
4283,
273,
1140,
18,
803,
18,
12320,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7847,
12,
2890,
16,
1456,
67,
350,
4672,
468,
1247,
309,
296,
24463,
11,
422,
1140,
18,
529,
471,
296,
2493,
11,
422,
1456,
67,
350,
30,
4283,
273,
1140,
18,
803,
18,
12320,... |
elif data: | else: | def _to_xml(self, xml, data): if isinstance(data, (list, tuple)): for item in data: self._to_xml(xml, item) elif isinstance(data, dict): for key, value in data.iteritems(): xml.startElement(key, {}) self._to_xml(xml, value) xml.endElement(key) elif data: xml.characters(smart_unicode(data)) | f522696f9812cee3421e27b4779e8cd925ad6295 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11777/f522696f9812cee3421e27b4779e8cd925ad6295/emitters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
869,
67,
2902,
12,
2890,
16,
2025,
16,
501,
4672,
309,
1549,
12,
892,
16,
261,
1098,
16,
3193,
3719,
30,
364,
761,
316,
501,
30,
365,
6315,
869,
67,
2902,
12,
2902,
16,
761,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
869,
67,
2902,
12,
2890,
16,
2025,
16,
501,
4672,
309,
1549,
12,
892,
16,
261,
1098,
16,
3193,
3719,
30,
364,
761,
316,
501,
30,
365,
6315,
869,
67,
2902,
12,
2902,
16,
761,
1... |
for otherClassId in package.classes: otherClassDeps = self._depLoader.getDeps(otherClassId, variants) if classId in (x.name for x in otherClassDeps["load"]): self._console.info("Used by: %s (load)" % otherClassId) if classId in (x.name for x in otherClassDeps["run"]): self._console.info("Used by: %s (run)" % otherCla... | for part in parts.values(): if package in part.packages: self._console.info("Part %s" % part.name) for classId in sorted(package.classes): self._console.info("Class: %s" % classId) self._console.indent() for otherClassId in package.classes: otherClassDeps = self._depLoader.getDeps(otherClassId, variants) if classId ... | def usedByDeps(depsLogConf): for packageId, package in enumerate(packages): self._console.info("Package %s" % packageId) self._console.indent() | d1325a630dd674037a9e9c9ee82994269849d10d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/d1325a630dd674037a9e9c9ee82994269849d10d/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1399,
858,
14430,
12,
14877,
1343,
3976,
4672,
364,
2181,
548,
16,
2181,
316,
4241,
12,
10308,
4672,
365,
6315,
8698,
18,
1376,
2932,
2261,
738,
87,
6,
738,
2181,
548,
13,
365,
6315,
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,
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,
1399,
858,
14430,
12,
14877,
1343,
3976,
4672,
364,
2181,
548,
16,
2181,
316,
4241,
12,
10308,
4672,
365,
6315,
8698,
18,
1376,
2932,
2261,
738,
87,
6,
738,
2181,
548,
13,
365,
6315,
8... |
path('/home/guido/.scipy/cache/yzcoords.txt') | path('/home/guido/.scipy/cache/xyzcoords.txt') | def filepath(self, uri): """Return a path object to the uri in the cache. | 2ae79776959ca2db73d75db6abc360a4c38f76f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/2ae79776959ca2db73d75db6abc360a4c38f76f4/datasource.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3608,
12,
2890,
16,
2003,
4672,
3536,
990,
279,
589,
733,
358,
326,
2003,
316,
326,
1247,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
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,
3608,
12,
2890,
16,
2003,
4672,
3536,
990,
279,
589,
733,
358,
326,
2003,
316,
326,
1247,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
try: if arr.isbyteswapped(): arr.byteswap() except AttributeError: | if not hasattr(arr, "type") or not hasattr(arr, "astype"): | def showArray(self, arr, **kargs): """Display a 2-d or 3-d grayscale integer numarray arrays. 3-d images are displayed as data cubes, meaning one can view a single z at a time or play through them as a movie, that sort of thing. Inputs: - arr: a numarray array; must be 2-d or 3-d: 2-d arrays have index order (y, x) 3-... | f8269c0c32ad07c8ca488e6b62cd741160d3ab1e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/f8269c0c32ad07c8ca488e6b62cd741160d3ab1e/DS9.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
1076,
12,
2890,
16,
2454,
16,
2826,
79,
1968,
4672,
3536,
4236,
279,
576,
17,
72,
578,
890,
17,
72,
16937,
5864,
3571,
818,
1126,
5352,
18,
890,
17,
72,
4602,
854,
10453,
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,
2405,
1076,
12,
2890,
16,
2454,
16,
2826,
79,
1968,
4672,
3536,
4236,
279,
576,
17,
72,
578,
890,
17,
72,
16937,
5864,
3571,
818,
1126,
5352,
18,
890,
17,
72,
4602,
854,
10453,
487,
... |
prn( session.query( Employee).all( | prn( session.query( Employee).filter( | def test_selects(): from dbcook import expression session = sqlalchemy.orm.create_session() empl_table = mybuild.tables[ Employee] ######## simple age = 40 print '====== all Employee with age<=', age, ', plain SA' prn( session.query( Employee).all( empl_table.c.age <= age) ) print ' --- same, via expression' pr... | d9b3a2e587baabafe5ebcc0406b8e5b6168e245e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10808/d9b3a2e587baabafe5ebcc0406b8e5b6168e245e/example1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4025,
87,
13332,
628,
9881,
1184,
1930,
2652,
1339,
273,
1847,
24182,
18,
535,
18,
2640,
67,
3184,
1435,
801,
412,
67,
2121,
273,
3399,
3510,
18,
9373,
63,
512,
27520,
65,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4025,
87,
13332,
628,
9881,
1184,
1930,
2652,
1339,
273,
1847,
24182,
18,
535,
18,
2640,
67,
3184,
1435,
801,
412,
67,
2121,
273,
3399,
3510,
18,
9373,
63,
512,
27520,
65,
22... |
file = os.path.abspath(file) | def add(self, files, options=''): """ Add the given list of files (or file) or directories to your HG repository. They must exist already. | ac9f108c6f21c3ad8c2941ced5e59d4ddf264682 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/ac9f108c6f21c3ad8c2941ced5e59d4ddf264682/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1390,
16,
702,
2218,
11,
4672,
3536,
1436,
326,
864,
666,
434,
1390,
261,
280,
585,
13,
578,
6402,
358,
3433,
670,
43,
3352,
18,
225,
16448,
1297,
1005,
1818,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
1390,
16,
702,
2218,
11,
4672,
3536,
1436,
326,
864,
666,
434,
1390,
261,
280,
585,
13,
578,
6402,
358,
3433,
670,
43,
3352,
18,
225,
16448,
1297,
1005,
1818,
18,
... | |
self.assert_(not debugger.enabled) | self.assert_(not debugger.enabled) | def testEventDispatch(self): global debugger self.assert_(not debugger.enabled) debugger.onBreak = lambda evt: self.processDebugEvent(evt) debugger.onException = lambda evt: self.processDebugEvent(evt) debugger.onNewFunction = lambda evt: self.processDebugEvent(evt) debugger.onBeforeCompile = lambda evt: self.process... | 39238494c6380764c75b46d3d726c011640ecf54 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5828/39238494c6380764c75b46d3d726c011640ecf54/PyV8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1133,
5325,
12,
2890,
4672,
2552,
19977,
225,
365,
18,
11231,
67,
12,
902,
19977,
18,
5745,
13,
225,
19977,
18,
265,
7634,
273,
3195,
6324,
30,
365,
18,
2567,
2829,
1133,
12,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1133,
5325,
12,
2890,
4672,
2552,
19977,
225,
365,
18,
11231,
67,
12,
902,
19977,
18,
5745,
13,
225,
19977,
18,
265,
7634,
273,
3195,
6324,
30,
365,
18,
2567,
2829,
1133,
12,
73,... |
temp_fname.append(os.path.join(cache_prefix, 'labeled_' + filenames[(w,t)])) | temp_fname.append(os.path.join(cache_prefix, 'labeled_tracks_' + filenames[(w,t)])) | def populate_directories(path, dataset_id): if os.path.lexists(path) == False: os.mkdir(path) if os.path.lexists(os.path.join(path, 'cache')) == False: os.mkdir(os.path.join(path, 'cache')) if os.path.lexists(os.path.join(path, 'cache', dataset_id)) == False: os.mkdir(os.path.join(path, 'cache', dataset_id)) | c30a20afb9792b03141fb185b40ca49125c41c24 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10592/c30a20afb9792b03141fb185b40ca49125c41c24/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
15121,
12,
803,
16,
3709,
67,
350,
4672,
309,
1140,
18,
803,
18,
4149,
1486,
12,
803,
13,
422,
1083,
30,
1140,
18,
26686,
12,
803,
13,
309,
1140,
18,
803,
18,
4149,
1486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15121,
12,
803,
16,
3709,
67,
350,
4672,
309,
1140,
18,
803,
18,
4149,
1486,
12,
803,
13,
422,
1083,
30,
1140,
18,
26686,
12,
803,
13,
309,
1140,
18,
803,
18,
4149,
1486,
... |
etree.parse(StringIO(page), base_url=b.get_url()) | url = b.get_url() if isinstance(url, str): url = unicode(url, 'latin1') etree.parse(StringIO(page), base_url=url) | def _validate_xhtml(func_name, *args, **kwargs): page = b.get_html() if "xhtml1-strict.dtd" not in page: return etree.clear_error_log() try: etree.parse(StringIO(page), base_url=b.get_url()) except etree.XMLSyntaxError, e: raise twill.errors.TwillAssertionError( _format_error_log(page, e.error_log)) | 9d7cb5221dd9fda9c8c354330e3b297e919787d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/9d7cb5221dd9fda9c8c354330e3b297e919787d1/better_twill.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
26341,
12,
644,
67,
529,
16,
380,
1968,
16,
2826,
4333,
4672,
1363,
273,
324,
18,
588,
67,
2620,
1435,
309,
315,
26341,
21,
17,
13948,
18,
31834,
6,
486,
316,
1363,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5662,
67,
26341,
12,
644,
67,
529,
16,
380,
1968,
16,
2826,
4333,
4672,
1363,
273,
324,
18,
588,
67,
2620,
1435,
309,
315,
26341,
21,
17,
13948,
18,
31834,
6,
486,
316,
1363,
30... |
keys1 = set(self.iterkeys()) keys2 = set(other.iterkeys()) | keys1 = set(self.keys()) keys2 = set(other.keys()) | def is_coincident(self, other, keys = None): """ Return True if any segment in any list in self intersects any segment in any list in other. If the optional keys argument is not None, then only segment lists for the given keys are considered. Keys not represented in both segment lists are ignored. If keys is None (t... | 2eb095334435c04d805fcc534c24074057044496 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3589/2eb095334435c04d805fcc534c24074057044496/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
12645,
71,
6392,
12,
2890,
16,
1308,
16,
1311,
273,
599,
4672,
3536,
2000,
1053,
309,
1281,
3267,
316,
1281,
666,
316,
365,
19791,
1281,
3267,
316,
1281,
666,
316,
1308,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
12645,
71,
6392,
12,
2890,
16,
1308,
16,
1311,
273,
599,
4672,
3536,
2000,
1053,
309,
1281,
3267,
316,
1281,
666,
316,
365,
19791,
1281,
3267,
316,
1281,
666,
316,
1308,
18,
2... |
s = "\\pdfoutline goto name{page.%d}" % pageno | s = "\\pdfoutline goto name{page.%dx}" % pageno | def write_toc_entry(entry, fp, layer): stype, snum, title, pageno, toc = entry s = "\\pdfoutline goto name{page.%d}" % pageno if toc: s = "%s count -%d" % (s, len(toc)) if snum: title = "%s %s" % (snum, title) s = "%s {%s}\n" % (s, title) fp.write(s) for entry in toc: write_toc_entry(entry, fp, layer + 1) | 566b58b403519f9d4971caa9deee100e4170e9e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/566b58b403519f9d4971caa9deee100e4170e9e7/toc2bkm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1391,
67,
4099,
12,
4099,
16,
4253,
16,
3018,
4672,
29365,
16,
272,
2107,
16,
2077,
16,
4262,
5764,
16,
17919,
273,
1241,
272,
273,
8422,
22353,
617,
322,
1369,
2897,
508,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
1391,
67,
4099,
12,
4099,
16,
4253,
16,
3018,
4672,
29365,
16,
272,
2107,
16,
2077,
16,
4262,
5764,
16,
17919,
273,
1241,
272,
273,
8422,
22353,
617,
322,
1369,
2897,
508,
95... |
Graph on 30 vertices | union( Dodecahedron, Petersen graph ): Graph on 30 vertices | def disjoint_union(self, other): """ Returns the disjoint union of self and other. If there are common vertices to both, they will be renamed. EXAMPLE: sage: D = graphs.DodecahedralGraph() sage: P = graphs.PetersenGraph() sage: D.disjoint_union(P) Graph on 30 vertices """ if (self.is_directed() and not other.is_dire... | c6ee9b8c95a50319119e91b8cfe37d340af4ae88 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c6ee9b8c95a50319119e91b8cfe37d340af4ae88/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1015,
16452,
67,
18910,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
1015,
16452,
7812,
434,
365,
471,
1308,
18,
225,
971,
1915,
854,
2975,
6928,
358,
3937,
16,
2898,
903,
506,
17657,
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,
1015,
16452,
67,
18910,
12,
2890,
16,
1308,
4672,
3536,
2860,
326,
1015,
16452,
7812,
434,
365,
471,
1308,
18,
225,
971,
1915,
854,
2975,
6928,
358,
3937,
16,
2898,
903,
506,
17657,
18,
... |
supported_dists=('SuSE','debian','redhat','mandrake')): | supported_dists=('SuSE', 'debian', 'fedora', 'redhat', 'mandrake')): | def dist(distname='',version='',id='', supported_dists=('SuSE','debian','redhat','mandrake')): """ Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. Returns a tup... | ccc2a5b2493fee9a85ba9fb0fe7968b61af99d17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ccc2a5b2493fee9a85ba9fb0fe7968b61af99d17/platform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2411,
12,
4413,
529,
2218,
2187,
1589,
2218,
2187,
350,
2218,
2187,
225,
3260,
67,
30467,
33,
2668,
17072,
1090,
2187,
296,
31888,
2779,
2187,
296,
74,
15534,
2187,
296,
1118,
11304,
2187,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2411,
12,
4413,
529,
2218,
2187,
1589,
2218,
2187,
350,
2218,
2187,
225,
3260,
67,
30467,
33,
2668,
17072,
1090,
2187,
296,
31888,
2779,
2187,
296,
74,
15534,
2187,
296,
1118,
11304,
2187,... |
def stop_event(self): """ Event to send on stop. """ if hasattr(self.handler, 'item'): return Event(PLAY_END, self.handler.item) return None | def stop_event(self): """ Event to send on stop. """ if hasattr(self.handler, 'item'): return Event(PLAY_END, self.handler.item) return None | 6c6f757d74971379853d8a2bd5aa70177e48d2f1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/6c6f757d74971379853d8a2bd5aa70177e48d2f1/childapp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
67,
2575,
12,
2890,
4672,
3536,
2587,
358,
1366,
603,
2132,
18,
3536,
309,
3859,
12,
2890,
18,
4176,
16,
296,
1726,
11,
4672,
327,
2587,
12,
52,
7868,
67,
4415,
16,
365,
18,
41... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
67,
2575,
12,
2890,
4672,
3536,
2587,
358,
1366,
603,
2132,
18,
3536,
309,
3859,
12,
2890,
18,
4176,
16,
296,
1726,
11,
4672,
327,
2587,
12,
52,
7868,
67,
4415,
16,
365,
18,
41... | |
for _ in channel: pass yield inner, channel | def _inc(inner, self, key, channel, channels): try: while not channel.has_result(): for item in inner: inner.send(item) for _ in channel: pass yield inner, channel finally: channels.discard(channel) if self.counter.dec(key): callqueue.add(self._check, key) inner.finish(channel.result()) | 010e3ceb7ac4166a932dfbd4f9020a6aa1795911 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14361/010e3ceb7ac4166a932dfbd4f9020a6aa1795911/taskfarm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9523,
12,
7872,
16,
365,
16,
498,
16,
1904,
16,
5750,
4672,
775,
30,
1323,
486,
1904,
18,
5332,
67,
2088,
13332,
364,
761,
316,
3443,
30,
3443,
18,
4661,
12,
1726,
13,
3095,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9523,
12,
7872,
16,
365,
16,
498,
16,
1904,
16,
5750,
4672,
775,
30,
1323,
486,
1904,
18,
5332,
67,
2088,
13332,
364,
761,
316,
3443,
30,
3443,
18,
4661,
12,
1726,
13,
3095,
30,... | |
answer.extend([dy / dx] * dx) | answer.extend([-dy / dx] * dx) | def newton_slopes(self): polygon = self.newton_polygon() if polygon == []: return [] answer = [infinity] * polygon[0][0] for m in range(1, len(polygon)): dx = polygon[m][0] - polygon[m - 1][0] dy = polygon[m][1] - polygon[m - 1][1] answer.extend([dy / dx] * dx) return answer | 9b63542aac0ce93598f4740f38e6967c01639c31 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/9b63542aac0ce93598f4740f38e6967c01639c31/polynomial_padic_capped_relative_dense.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
1917,
67,
87,
16884,
281,
12,
2890,
4672,
7154,
273,
365,
18,
2704,
1917,
67,
20917,
1435,
309,
7154,
422,
5378,
30,
327,
5378,
5803,
273,
306,
267,
7850,
65,
380,
7154,
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,
394,
1917,
67,
87,
16884,
281,
12,
2890,
4672,
7154,
273,
365,
18,
2704,
1917,
67,
20917,
1435,
309,
7154,
422,
5378,
30,
327,
5378,
5803,
273,
306,
267,
7850,
65,
380,
7154,
63,
20,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.