rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.op = (self._mergeEdges, dart.label()) | self._op = (self._mergeEdges, dart.label()) | def preMergeEdges(self, dart): self.op = (self._mergeEdges, dart.label()) return True | 242031941f5d1265da84d5257d9b193749300383 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10394/242031941f5d1265da84d5257d9b193749300383/maputils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
6786,
10697,
12,
2890,
16,
302,
485,
4672,
365,
6315,
556,
273,
261,
2890,
6315,
2702,
10697,
16,
302,
485,
18,
1925,
10756,
327,
1053,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
6786,
10697,
12,
2890,
16,
302,
485,
4672,
365,
6315,
556,
273,
261,
2890,
6315,
2702,
10697,
16,
302,
485,
18,
1925,
10756,
327,
1053,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
(r'^([a-zA-Z_][a-zA-Z0-9_]*)(\n)', | (r'^([a-zA-Z_][a-zA-Z0-9_]*)(:?\n)', | def get_tokens_unprocessed(self, text): pylexer = PythonLexer(**self.options) tblexer = PythonTracebackLexer(**self.options) | 5bc90950f57a1a4febc6728f35f8329593200e47 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6148/5bc90950f57a1a4febc6728f35f8329593200e47/agile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
293,
1362,
92,
264,
273,
6600,
13356,
12,
636,
2890,
18,
2116,
13,
8739,
31731,
273,
6600,
3448,
823,
13356,
12,
636,
2890,
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,
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,
7860,
67,
318,
11005,
12,
2890,
16,
977,
4672,
293,
1362,
92,
264,
273,
6600,
13356,
12,
636,
2890,
18,
2116,
13,
8739,
31731,
273,
6600,
3448,
823,
13356,
12,
636,
2890,
18,
... |
if newProb > self.eps: | if newProb > self.epsilon: | def filter (order, current={}, prob=1.0): """Generator function used for creating filtered successors of ``u``. """ # If there are no bones left in ``order``, yield the current node if len (order) == 0: yield current.copy () return | eac8c1eef968ccecd284bdf960d8864e46c2dd6a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/eac8c1eef968ccecd284bdf960d8864e46c2dd6a/Combinatoric.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
261,
1019,
16,
783,
28793,
3137,
33,
21,
18,
20,
4672,
3536,
3908,
445,
1399,
364,
4979,
5105,
25190,
434,
12176,
89,
68,
8338,
3536,
468,
971,
1915,
854,
1158,
324,
5322,
2002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1034,
261,
1019,
16,
783,
28793,
3137,
33,
21,
18,
20,
4672,
3536,
3908,
445,
1399,
364,
4979,
5105,
25190,
434,
12176,
89,
68,
8338,
3536,
468,
971,
1915,
854,
1158,
324,
5322,
2002,
... |
>>> nv.mainLoop(tr) seen class def: c1 seen class def: c2 seen func def: f1 seen func def: f2 | >>> nv.mainLoop(nl) seen class def seen class def seen func def seen func def | ... def mainLoop(self, tree): | 90817d6c04b2ff5746473ce2e5d7bccc717cf328 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2720/90817d6c04b2ff5746473ce2e5d7bccc717cf328/ast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
2774,
6452,
12,
2890,
16,
2151,
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,
... | [
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,
1372,
377,
1652,
2774,
6452,
12,
2890,
16,
2151,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
assert_almost_equal_spec(np.log(x), y) | assert_almost_equal(np.log(x), y) | def test_special_values(self): xl = [] yl = [] | 8b1f7849329ff9e20b8d222e88356569aa585393 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/8b1f7849329ff9e20b8d222e88356569aa585393/test_umath_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
15643,
273,
5378,
677,
80,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9371,
67,
2372,
12,
2890,
4672,
15643,
273,
5378,
677,
80,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
sys.stdout.write(in_byte) | def SubprocessCallAndFilter(command, in_directory, print_messages, print_stdout, fail_status=None, filter=None): """Runs command, a list, in directory in_directory. If print_messages is true, a message indicating what is being done is printed to stdout. If print_messages is false, the message is printed only if we act... | 7f1d4e225b2cf4e6bfbe292fec24e24be0def480 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/7f1d4e225b2cf4e6bfbe292fec24e24be0def480/gclient_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2592,
2567,
1477,
1876,
1586,
12,
3076,
16,
316,
67,
5149,
16,
1172,
67,
6833,
16,
1172,
67,
10283,
16,
2321,
67,
2327,
33,
7036,
16,
1034,
33,
7036,
4672,
3536,
9361,
1296,
16,
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,
2592,
2567,
1477,
1876,
1586,
12,
3076,
16,
316,
67,
5149,
16,
1172,
67,
6833,
16,
1172,
67,
10283,
16,
2321,
67,
2327,
33,
7036,
16,
1034,
33,
7036,
4672,
3536,
9361,
1296,
16,
279,
... | |
self.frame = urwid.Frame(self.thePile, header=header,footer=footer) | self.frame = urwid.Frame(self.thePile, header=header, footer=urwid.BoxAdapter(self.footerList,2)) | def __init__(self): self.size = ui.get_cols_rows() # Happy screen saying that you can't do anything because we're scanning # for networks. :-) # Will need a translation sooner or later self.screen_locker = urwid.Filler(urwid.Text(('important',"Scanning networks... stand by..."), align='center')) self.TITLE = 'Wicd Cur... | b1475ce12c0b990f7b6a595934f0c2377bb8c973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12280/b1475ce12c0b990f7b6a595934f0c2377bb8c973/wicd-curses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
1467,
273,
5915,
18,
588,
67,
6842,
67,
3870,
1435,
468,
670,
438,
2074,
5518,
12532,
310,
716,
1846,
848,
1404,
741,
6967,
2724,
732,
4565,
2... |
self.signal('group-list-changed', ('record-changed', key)) | self.signal('group-list-changed', ('record-changed', i)) | def __setitem__(self, i, value): super(Group, self).__setitem__(i, value) if not self.lock_signal: self.signal('group-list-changed', ('record-changed', key)) | eff0e4be5b8326b3d76b0a81fc79f280f3eee2c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9151/eff0e4be5b8326b3d76b0a81fc79f280f3eee2c7/group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
277,
16,
460,
4672,
2240,
12,
1114,
16,
365,
2934,
972,
542,
1726,
972,
12,
77,
16,
460,
13,
309,
486,
365,
18,
739,
67,
10420,
30,
365,
18,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
542,
1726,
972,
12,
2890,
16,
277,
16,
460,
4672,
2240,
12,
1114,
16,
365,
2934,
972,
542,
1726,
972,
12,
77,
16,
460,
13,
309,
486,
365,
18,
739,
67,
10420,
30,
365,
18,
104... |
for interface in for_.split(u' '): if interface: required.append(_resolveDottedName(interface)) | for interface in for_.split(): required.append(_resolveDottedName(interface)) | def _initAdapters(self, node): blacklist = self._constructBlacklist() | e17cdcf91d0d73fbbfd6b5b5e5d03a4e03baa2ae /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3757/e17cdcf91d0d73fbbfd6b5b5e5d03a4e03baa2ae/components.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
26620,
12,
2890,
16,
756,
4672,
11709,
273,
365,
6315,
10062,
25811,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
26620,
12,
2890,
16,
756,
4672,
11709,
273,
365,
6315,
10062,
25811,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
patchinstaller = findAdobePatchInstallerApp(mountpoints[0]) | if copylocal: updatedir = tempfile.mkdtemp() retcode = subprocess.call(["/bin/cp", "-r", mountpoints[0], updatedir]) munkicommon.unmountdmg(mountpoints[0]) if retcode: munkicommon.display_error( "Error copying items from %s" % dmgpath) return -1 ignoreresult = subprocess.call(["/bin/rm", dmgpath]) else: updatedir =... | def runAdobeCS5PatchInstaller(dmgpath): munkicommon.display_status("Mounting disk image %s" % os.path.basename(dmgpath)) mountpoints = mountAdobeDmg(dmgpath) if mountpoints: patchinstaller = findAdobePatchInstallerApp(mountpoints[0]) if patchinstaller: # try to find and count the number of payloads # so we can give a r... | d017f8be802d57d1f1e35025b468e64fd1d43ce9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/d017f8be802d57d1f1e35025b468e64fd1d43ce9/adobeutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1871,
947,
73,
4596,
25,
7332,
18678,
12,
10956,
75,
803,
4672,
312,
1683,
335,
362,
2586,
18,
5417,
67,
2327,
2932,
8725,
310,
4234,
1316,
738,
87,
6,
738,
1140,
18,
803,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
1871,
947,
73,
4596,
25,
7332,
18678,
12,
10956,
75,
803,
4672,
312,
1683,
335,
362,
2586,
18,
5417,
67,
2327,
2932,
8725,
310,
4234,
1316,
738,
87,
6,
738,
1140,
18,
803,
18,
... |
-t: decode string 'Aladdin:open sesame'""" | -t: encode and decode string 'Aladdin:open sesame'"""%sys.argv[0] | def test(): """Small test program""" import sys, getopt try: opts, args = getopt.getopt(sys.argv[1:], 'deut') except getopt.error, msg: sys.stdout = sys.stderr print msg print """usage: basd64 [-d] [-e] [-u] [-t] [file|-] -d, -u: decode -e: encode (default) -t: decode string 'Aladdin:open sesame'""" sys.exit(2) func = ... | 6271185fe3f09b481bff94f0b6cdbcedf12c5fca /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/6271185fe3f09b481bff94f0b6cdbcedf12c5fca/base64.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
19187,
1842,
5402,
8395,
1930,
2589,
16,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
323,
322,
6134... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
13332,
3536,
19187,
1842,
5402,
8395,
1930,
2589,
16,
336,
3838,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
323,
322,
6134... |
filename = filename[:-3] | n = len(filename) - 3 assert n >= 0 filename = filename[:n] | def normalize_module(space, w_filename): if not space.is_true(w_filename): return space.wrap("<unknown>") filename = space.str_w(w_filename) length = len(filename) if filename.endswith(".py"): filename = filename[:-3] return space.wrap(filename) | 9a9de29f1ac0e528788a1f07382723f16054532d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/9a9de29f1ac0e528788a1f07382723f16054532d/interp_warnings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2978,
12,
2981,
16,
341,
67,
3459,
4672,
309,
486,
3476,
18,
291,
67,
3767,
12,
91,
67,
3459,
4672,
327,
3476,
18,
4113,
2932,
32,
8172,
2984,
13,
225,
1544,
273,
3476,
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,
3883,
67,
2978,
12,
2981,
16,
341,
67,
3459,
4672,
309,
486,
3476,
18,
291,
67,
3767,
12,
91,
67,
3459,
4672,
327,
3476,
18,
4113,
2932,
32,
8172,
2984,
13,
225,
1544,
273,
3476,
18,... |
return lambda fn, value : [TestItem(fn,False,"You forgot to put an e-mail address into MAINTAINER"),None] [toInt(value.find("@") == -1)] | return lambda fn, value : [None,TestItem(fn,False,"You forgot to put an e-mail address into MAINTAINER"),None] [value.find("@") == -1] | def maintainer2(): return lambda fn, value : [TestItem(fn,False,"You forgot to put an e-mail address into MAINTAINER"),None] [toInt(value.find("@") == -1)] | 929eb1c6b4355fabc79e4c5ff2eb91408974a0ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/929eb1c6b4355fabc79e4c5ff2eb91408974a0ad/content_checker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11566,
1521,
22,
13332,
327,
3195,
2295,
16,
460,
294,
306,
7036,
16,
4709,
1180,
12,
4293,
16,
8381,
10837,
6225,
364,
13212,
358,
1378,
392,
425,
17,
4408,
1758,
1368,
19316,
3217,
168... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11566,
1521,
22,
13332,
327,
3195,
2295,
16,
460,
294,
306,
7036,
16,
4709,
1180,
12,
4293,
16,
8381,
10837,
6225,
364,
13212,
358,
1378,
392,
425,
17,
4408,
1758,
1368,
19316,
3217,
168... |
data = '<text:variable-set text:name="%s" />' | data = u'<text:variable-set text:name="%s" />' | def odf_create_variable_set(name, value, value_type=None, display=False, representation=None, style=None): data = '<text:variable-set text:name="%s" />' element = odf_create_element(data % name) representation = _set_value_and_type(element, value=value, value_type=value_type, representation=representation) if not displ... | 96d2f162f95ccfef7171225af9d3c7cc2ead856c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10612/96d2f162f95ccfef7171225af9d3c7cc2ead856c/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
2180,
67,
2640,
67,
6105,
67,
542,
12,
529,
16,
460,
16,
460,
67,
723,
33,
7036,
16,
2562,
33,
8381,
16,
4335,
33,
7036,
16,
2154,
33,
7036,
4672,
501,
273,
582,
11,
32,
955,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
320,
2180,
67,
2640,
67,
6105,
67,
542,
12,
529,
16,
460,
16,
460,
67,
723,
33,
7036,
16,
2562,
33,
8381,
16,
4335,
33,
7036,
16,
2154,
33,
7036,
4672,
501,
273,
582,
11,
32,
955,
... |
exception = OSError if os.name == 'nt': exception = WindowsError for i in range(12): | for i in range(12): | def remove_recursively(path): import time # windows sometimes raises exceptions instead of removing files if os.name == 'nt' or sys.platform == 'cygwin': exception = OSError if os.name == 'nt': exception = WindowsError for i in range(12): try: _remove_recursively(path) except exception, e: if isinstance(e, OSError) and... | b2f15f653fd70fe33fa0117c7720d5e1f330c76d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8286/b2f15f653fd70fe33fa0117c7720d5e1f330c76d/testutils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
266,
6235,
12,
803,
4672,
1930,
813,
468,
9965,
16594,
14183,
4798,
3560,
434,
9427,
1390,
309,
1140,
18,
529,
422,
296,
496,
11,
578,
2589,
18,
9898,
422,
296,
2431,
75,
808... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
266,
6235,
12,
803,
4672,
1930,
813,
468,
9965,
16594,
14183,
4798,
3560,
434,
9427,
1390,
309,
1140,
18,
529,
422,
296,
496,
11,
578,
2589,
18,
9898,
422,
296,
2431,
75,
808... |
gLogger.warn('Error while matching the JDLs') | gLogger.warn('Error while matching the JDLs') | def selectJob(self, resourceJDL): """ Main job selection function to find the highest priority job matching the resource capacity """ | 44c6333e880109c5970260ed1670bfd1cd97e651 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/44c6333e880109c5970260ed1670bfd1cd97e651/MatcherHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
2027,
2278,
12,
2890,
16,
1058,
46,
8914,
4672,
3536,
12740,
1719,
4421,
445,
358,
1104,
326,
9742,
4394,
1719,
3607,
326,
1058,
7519,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
reg_verbs = cls.getRegVerbs() | reg_verbs = cls.getRegVerbs(request.user) | def addclass(self,request, tl, one, two, module, extra, prog): """ Preregister a student for the specified class, then return to the studentreg page """ reg_verb = GetNode('V/Deadline/Registration/Student/Classes') scrmi = self.program.getModuleExtension('StudentClassRegModuleInfo') # Explicitly set the user's onsi... | 2e011ec4e64c85d5e08784e3318c8460b3670854 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/2e011ec4e64c85d5e08784e3318c8460b3670854/studentclassregmodule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1106,
12,
2890,
16,
2293,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
3536,
2301,
13630,
279,
18110,
364,
326,
1269,
667,
16,
1508,
327,
358,
326,
18110,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
1106,
12,
2890,
16,
2293,
16,
8332,
16,
1245,
16,
2795,
16,
1605,
16,
2870,
16,
11243,
4672,
3536,
2301,
13630,
279,
18110,
364,
326,
1269,
667,
16,
1508,
327,
358,
326,
18110,
15... |
>>> source.link(event) | >>> _ = source.link(event) | def spawn_greenlet(function, *args): """Create a new greenlet that will run `function(*args)'. The current greenlet won't be unscheduled. Keyword arguments aren't supported (limitation of greenlet), use spawn() to work around that. """ g = api.Greenlet(function) g.parent = api.get_hub().greenlet api.get_hub().schedule_... | 7e93ec45360cf6299c27fdb6ee7e74aa0fa4eb1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/7e93ec45360cf6299c27fdb6ee7e74aa0fa4eb1d/proc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12560,
67,
11571,
1810,
12,
915,
16,
380,
1968,
4672,
3536,
1684,
279,
394,
10004,
1810,
716,
903,
1086,
1375,
915,
30857,
1968,
2506,
18,
1021,
783,
10004,
1810,
8462,
1404,
506,
640,
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,
12560,
67,
11571,
1810,
12,
915,
16,
380,
1968,
4672,
3536,
1684,
279,
394,
10004,
1810,
716,
903,
1086,
1375,
915,
30857,
1968,
2506,
18,
1021,
783,
10004,
1810,
8462,
1404,
506,
640,
2... |
self, 'appWillTerminate:', NSApplicationWillTerminateNotification, | self, 'appWillTerminate:', NSApplicationWillTerminateNotification, | def init(self, owner, appl): # owner is the actual frame object (the argument to onSelected, etc) NSObject.init(self) NSBundle.loadNibNamed_owner_("MainWindow", self) | ddc629d6d4727831df2ba153bd0b6d5fb7a33352 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/ddc629d6d4727831df2ba153bd0b6d5fb7a33352/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
3410,
16,
27808,
4672,
468,
3410,
353,
326,
3214,
2623,
733,
261,
5787,
1237,
358,
603,
7416,
16,
5527,
13,
11472,
921,
18,
2738,
12,
2890,
13,
11472,
3405,
18,
945... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1208,
12,
2890,
16,
3410,
16,
27808,
4672,
468,
3410,
353,
326,
3214,
2623,
733,
261,
5787,
1237,
358,
603,
7416,
16,
5527,
13,
11472,
921,
18,
2738,
12,
2890,
13,
11472,
3405,
18,
945... |
assert address1.select().execute().fetchall() == [(u1.user_id, a1.user_id, 'a1@foo.com')] assert address2.select().execute().fetchall() == [(u2.user_id, a2.user_id, 'a2@foo.com')] | assert address1.select().execute().fetchall() == [(a1.address_id, u1.user_id, 'a1@foo.com')] assert address2.select().execute().fetchall() == [(a1.address_id, u2.user_id, 'a2@foo.com')] | def testpolymorphic(self): """tests that entity_name can be used to have two kinds of relations on the same class.""" class User(object):pass class Address1(object):pass class Address2(object):pass a1mapper = mapper(Address1, address1, extension=ctx.mapper_extension) a2mapper = mapper(Address2, address2, extension=ctx... | 157e43bfad6911f54860b74a6bb3e3780ec2a020 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/157e43bfad6911f54860b74a6bb3e3780ec2a020/entity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3915,
21976,
12,
2890,
4672,
3536,
16341,
716,
1522,
67,
529,
848,
506,
1399,
358,
1240,
2795,
21961,
434,
7467,
603,
326,
1967,
667,
12123,
667,
2177,
12,
1612,
4672,
5466,
667,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3915,
21976,
12,
2890,
4672,
3536,
16341,
716,
1522,
67,
529,
848,
506,
1399,
358,
1240,
2795,
21961,
434,
7467,
603,
326,
1967,
667,
12123,
667,
2177,
12,
1612,
4672,
5466,
667,
5... |
win32api.MoveFileEx(src, dest, win32con.MOVEFILE_COPY_ALLOWED) else: shutil.copyfile(src, dest) | os.remove(src) | def _MigrateFile(self, filename, do_move = True): src = os.path.join(self.application_directory, filename) dest = os.path.join(self.data_directory, filename) if os.path.isfile(src) and not os.path.isfile(dest): if do_move: # shutil in 2.2 and earlier does not contain 'move' win32api.MoveFileEx(src, dest, win32con.MOVEF... | 7eb0e8942601a656cdff43b4edf90bd3bca1909c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/7eb0e8942601a656cdff43b4edf90bd3bca1909c/manager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19594,
812,
12,
2890,
16,
1544,
16,
741,
67,
8501,
273,
1053,
4672,
1705,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3685,
67,
5149,
16,
1544,
13,
1570,
273,
1140,
18,
803,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
19594,
812,
12,
2890,
16,
1544,
16,
741,
67,
8501,
273,
1053,
4672,
1705,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3685,
67,
5149,
16,
1544,
13,
1570,
273,
1140,
18,
803,
18,... |
conf = '@b3/conf/plugin_%s.xml' % name | conf = '@b3/conf/plugin_%s.xml' % plugin | def loadPlugins(self): """Load plugins specified in the config""" plugins = {} pluginSort = [] | d4dd2b1e812cc26ee62f8d35fd42a61c06463f83 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/d4dd2b1e812cc26ee62f8d35fd42a61c06463f83/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
9461,
12,
2890,
4672,
3536,
2563,
4799,
1269,
316,
326,
642,
8395,
4799,
273,
2618,
1909,
4416,
273,
5378,
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,
1262,
9461,
12,
2890,
4672,
3536,
2563,
4799,
1269,
316,
326,
642,
8395,
4799,
273,
2618,
1909,
4416,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.vboxlayout2.addLayout(self.hboxlayout3) | self.vboxlayout1.addLayout(self.hboxlayout3) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
allLangs = set(lcl.family.langs) | allLangs = set(lclSite.family.langs) | def finish(self, bot = None): """Round up the subject, making any necessary changes. This method should be called exactly once after the todo list has gone empty. | 971e6f99c8ffa9618fe651e4a32104d436d3bbef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/971e6f99c8ffa9618fe651e4a32104d436d3bbef/interwiki.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
16,
2512,
273,
599,
4672,
3536,
11066,
731,
326,
3221,
16,
10480,
1281,
4573,
3478,
18,
1220,
707,
1410,
506,
2566,
8950,
3647,
1839,
326,
10621,
666,
711,
22296,
1008,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4076,
12,
2890,
16,
2512,
273,
599,
4672,
3536,
11066,
731,
326,
3221,
16,
10480,
1281,
4573,
3478,
18,
1220,
707,
1410,
506,
2566,
8950,
3647,
1839,
326,
10621,
666,
711,
22296,
1008,
1... |
rlib_add_report_from_buffer = _librlib.rlib_add_report_from_buffer | rlib_add_report_from_buffer = _rlib.rlib_add_report_from_buffer | def _swig_getattr(self,class_type,name): method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError,name | 5896c3671984e1a35bf6763e59a746d9ce345f8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6831/5896c3671984e1a35bf6763e59a746d9ce345f8b/librlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5328,
360,
67,
588,
1747,
12,
2890,
16,
1106,
67,
723,
16,
529,
4672,
707,
273,
667,
67,
723,
16186,
5328,
360,
67,
588,
5163,
25648,
588,
12,
529,
16,
7036,
13,
309,
707,
30,
... |
self.executeStatement("CREATE TABLE hosts (id int(11) NOT NULL, name varchar(256) NOT NULL, up tinyint(1) NOT NULL, decayed tinyint(1) NOT NULL, state int(11) NOT NULL, memory int(11), cores int(11), version varchar(256))") | self.executeStatement("CREATE TABLE hosts (id INTEGER PRIMARY KEY, name varchar(256) NOT NULL, up tinyint(1) DEFAULT 0, decayed tinyint(1) DEFAULT 0, state int(11) DEFAULT 1, memory int(11), cores int(11), version varchar(256))") | def verifyStructure(self): self.executeStatement("CREATE TABLE instances (id int(11) NOT NULL, vmId int(11), hostId int(11), decayed tinyint(1) NOT NULL, state int(11) NOT NULL, userId int(11), name varchar(256), cores int(11) NOT NULL, memory int(11) NOT NULL, disks varchar(1024) NOT NULL, nics varchar(1024) NOT NULL,... | c0b0deb2ffe71623357d42fd605b86507e572753 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5161/c0b0deb2ffe71623357d42fd605b86507e572753/sql.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
6999,
12,
2890,
4672,
365,
18,
8837,
3406,
2932,
9344,
7567,
3884,
261,
350,
509,
12,
2499,
13,
4269,
3206,
16,
4268,
548,
509,
12,
2499,
3631,
1479,
548,
509,
12,
2499,
3631,
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,
3929,
6999,
12,
2890,
4672,
365,
18,
8837,
3406,
2932,
9344,
7567,
3884,
261,
350,
509,
12,
2499,
13,
4269,
3206,
16,
4268,
548,
509,
12,
2499,
3631,
1479,
548,
509,
12,
2499,
3631,
22... |
writeMolecule(m, atnum, alist, atnums, f) | atnum = writeMolecule(m, atnum, alist, atnums, f) | def writeGroup(group, atnum, alist, atnums, f): for m in group.members: if isinstance(m, molecule): writeMolecule(m, atnum, alist, atnums, f) else: writeGroup(m, atnum, alist, atnums, f) f.write(group.__str__() + "\n") | 205f0f33ddd039943682ec7602bf39533f5f19a9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/205f0f33ddd039943682ec7602bf39533f5f19a9/fileIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1114,
12,
1655,
16,
622,
2107,
16,
524,
376,
16,
622,
21180,
16,
284,
4672,
364,
312,
316,
1041,
18,
7640,
30,
309,
1549,
12,
81,
16,
13661,
4672,
622,
2107,
273,
1045,
29669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1114,
12,
1655,
16,
622,
2107,
16,
524,
376,
16,
622,
21180,
16,
284,
4672,
364,
312,
316,
1041,
18,
7640,
30,
309,
1549,
12,
81,
16,
13661,
4672,
622,
2107,
273,
1045,
29669,
... |
self.play=True | def on_playBtn_clicked(self): icon=QtGui.QIcon() if self.play: icon.addPixmap(QtGui.QPixmap(":/icons/media-playback-start.png")) self.play=False self.status.setPlaying("Paused") self.connection.client.pause() else: icon.addPixmap(QtGui.QPixmap(":/icons/media-playback-pause.png")) self.play=True self.status.setPlaying("... | f9dc94053462fd0e620e9a8031a16236829c0d19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14596/f9dc94053462fd0e620e9a8031a16236829c0d19/qplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1601,
20541,
67,
7475,
329,
12,
2890,
4672,
4126,
33,
23310,
18070,
18,
53,
5554,
1435,
309,
365,
18,
1601,
30,
4126,
18,
1289,
21816,
1458,
12,
23310,
18070,
18,
53,
21816,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
1601,
20541,
67,
7475,
329,
12,
2890,
4672,
4126,
33,
23310,
18070,
18,
53,
5554,
1435,
309,
365,
18,
1601,
30,
4126,
18,
1289,
21816,
1458,
12,
23310,
18070,
18,
53,
21816,
1... | |
if not self.jobs or kaa.notifier.shutdown: | if not self.jobs or kaa.notifier.shutting_down: | def step(self): if not self.jobs or kaa.notifier.shutdown: return False | d9cacb3ea621bd847197d1dfc99cd35a6c6e09a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11703/d9cacb3ea621bd847197d1dfc99cd35a6c6e09a4/server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
4672,
309,
486,
365,
18,
10088,
578,
417,
7598,
18,
902,
1251,
18,
674,
25387,
67,
2378,
30,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
4672,
309,
486,
365,
18,
10088,
578,
417,
7598,
18,
902,
1251,
18,
674,
25387,
67,
2378,
30,
327,
1083,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
the (n,k)-star graph. Frist, two vertices are adjacent if one can be | the (n,k)-star graph. First, two vertices are adjacent if one can be | def NKStarGraph(self,n,k): r''' Returns the (n,k)-star graph. The vertices of the (n,k)-star graph are the set of all arangements of n symbols into labels of length k. There are two adjacency rules for the (n,k)-star graph. Frist, two vertices are adjacent if one can be obtained from the other by swapping the first sy... | 7519f34dad04abdea4d0e650013315e3a19aa9b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/7519f34dad04abdea4d0e650013315e3a19aa9b2/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
47,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
261,
82,
16,
79,
24950,
10983,
2667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
423,
47,
18379,
4137,
12,
2890,
16,
82,
16,
79,
4672,
436,
26418,
2860,
326,
261,
82,
16,
79,
24950,
10983,
2667,
18,
225,
1021,
6928,
434,
326,
261,
82,
16,
79,
24950,
10983,
2667,
... |
deleteTemp = True, explicit = True, extract = True) | explicit = True, extract = True) | def do_mainModule(self, moduleName, newName = None, filename = None): """ Names the indicated module as the "main" module of the application or exe. """ | 4e0eae9eff6180d37b3eec5f526fcfb8956b1a15 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/4e0eae9eff6180d37b3eec5f526fcfb8956b1a15/Packager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5254,
3120,
12,
2890,
16,
9780,
16,
13253,
273,
599,
16,
1544,
273,
599,
4672,
3536,
5276,
326,
17710,
1605,
487,
326,
315,
5254,
6,
1605,
434,
326,
2521,
578,
15073,
18,
3536... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
5254,
3120,
12,
2890,
16,
9780,
16,
13253,
273,
599,
16,
1544,
273,
599,
4672,
3536,
5276,
326,
17710,
1605,
487,
326,
315,
5254,
6,
1605,
434,
326,
2521,
578,
15073,
18,
3536... |
if self.debug > 0: if hasattr(self,"_dacapo"): print "Starting External Dynamics while Dacapo is runnning ",self._dacapo.poll() else: print "No dacapo instance has been started yet" print "Stopprogram",stopprogram | if hasattr(self,"_dacapo"): log.debug("Starting External Dynamics while Dacapo is runnning: %s " % str(self._dacapo.poll())) else: log.debug("No dacapo instance has been started yet") log.debug("Stopprogram: %s" % stopprogram) | def execute_external_dynamics(self, nc=None, txt=None, stoppfile='stop', stopprogram=None): ''' Implementation of the stay alive functionality with socket communication between dacapo and python. Known limitations: It is not possible to start 2 independent Dacapo calculators from the same python process, since the pyt... | 97d65b7f6de853ae8bd02694f63966f3dfe9ab9e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/97d65b7f6de853ae8bd02694f63966f3dfe9ab9e/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
8194,
33,
7036,
16,
6463,
33,
7036,
16,
2132,
84,
768,
2218,
5681,
2187,
2132,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
9375,
67,
31129,
2102,
12,
2890,
16,
8194,
33,
7036,
16,
6463,
33,
7036,
16,
2132,
84,
768,
2218,
5681,
2187,
2132,
12890,
33,
7036,
4672,
9163,
25379,
434,
326,
23449,
13714,
... |
text = editwin.text text.bind("<<run-module>>", self.run_module) text.bind("<<run-script>>", self.run_script) text.bind("<<new-shell>>", self.new_shell) | self.flist = self.editwin.flist self.root = self.flist.root | def __init__(self, editwin): self.editwin = editwin text = editwin.text text.bind("<<run-module>>", self.run_module) text.bind("<<run-script>>", self.run_script) text.bind("<<new-shell>>", self.new_shell) | fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa33935d8c7da182d7f2ddc8a19b8d44abfb9ef5/ScriptBinding.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3874,
8082,
4672,
365,
18,
4619,
8082,
273,
3874,
8082,
977,
273,
3874,
8082,
18,
955,
977,
18,
4376,
2932,
17685,
2681,
17,
2978,
34,
2984,
16,
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,
1001,
2738,
972,
12,
2890,
16,
3874,
8082,
4672,
365,
18,
4619,
8082,
273,
3874,
8082,
977,
273,
3874,
8082,
18,
955,
977,
18,
4376,
2932,
17685,
2681,
17,
2978,
34,
2984,
16,
365,
18,... |
cty.c_int, [cty.POINTER(FL_OBJECT), cty.c_int], | cty.c_int, [cty.POINTER(FL_OBJECT), cty.c_int], | def fl_set_formbrowser_xoffset(ob, offset): """ fl_set_formbrowser_xoffset(ob, offset) -> num. """ retval = _fl_set_formbrowser_xoffset(ob, offset) 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,
67,
542,
67,
687,
11213,
67,
92,
3348,
12,
947,
16,
1384,
4672,
3536,
1183,
67,
542,
67,
687,
11213,
67,
92,
3348,
12,
947,
16,
1384,
13,
317,
818,
18,
3536,
225,
5221,
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,
1183,
67,
542,
67,
687,
11213,
67,
92,
3348,
12,
947,
16,
1384,
4672,
3536,
1183,
67,
542,
67,
687,
11213,
67,
92,
3348,
12,
947,
16,
1384,
13,
317,
818,
18,
3536,
225,
5221,
273,
... |
self.write_indent() leading_space = False | self.write_line_break() leading_space = True | def write_folded(self, text): hints = self.determine_block_hints(text) self.write_indicator(u'>'+hints, True) self.write_indent() leading_space = False spaces = False breaks = False start = end = 0 while end <= len(text): ch = None if end < len(text): ch = text[end] if breaks: if ch is None or ch not in u'\n\x85\u2028\... | f5c5eeb03e263493948c1faed35ac8ff6823f5c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5889/f5c5eeb03e263493948c1faed35ac8ff6823f5c0/emitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
9002,
785,
12,
2890,
16,
977,
4672,
13442,
273,
365,
18,
24661,
67,
2629,
67,
24598,
12,
955,
13,
365,
18,
2626,
67,
18741,
12,
89,
11,
1870,
15,
24598,
16,
1053,
13,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
9002,
785,
12,
2890,
16,
977,
4672,
13442,
273,
365,
18,
24661,
67,
2629,
67,
24598,
12,
955,
13,
365,
18,
2626,
67,
18741,
12,
89,
11,
1870,
15,
24598,
16,
1053,
13,
365,
... |
run_unittest(*test_classes) | _run_unittest(*test_classes) | def test_main(verbose=None): test_classes = (BuiltinTest, TestSorted) run_unittest(*test_classes) # verify reference counting if verbose and hasattr(sys, "gettotalrefcount"): import gc counts = [None] * 5 for i in xrange(len(counts)): run_unittest(*test_classes) gc.collect() counts[i] = sys.gettotalrefcount() print c... | 07d014fdb0d6cb71ef94a9de2c36dbf095732406 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/07d014fdb0d6cb71ef94a9de2c36dbf095732406/test_builtin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
12,
11369,
33,
7036,
4672,
1842,
67,
4701,
273,
261,
28032,
4709,
16,
7766,
11739,
13,
225,
389,
2681,
67,
4873,
3813,
30857,
3813,
67,
4701,
13,
225,
468,
3929,
2114,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
12,
11369,
33,
7036,
4672,
1842,
67,
4701,
273,
261,
28032,
4709,
16,
7766,
11739,
13,
225,
389,
2681,
67,
4873,
3813,
30857,
3813,
67,
4701,
13,
225,
468,
3929,
2114,
... |
iteminfo["installer_item"] = installitem | iteminfo["installer_item"] = updatename | def getSoftwareUpdateInfo(): '''Parses the Software Update index.plist and the downloaded updates, extracting info in the format Munki expects. Returns an array of installeritems like those found in munki's InstallInfo.plist''' infoarray = [] updatesdir = "/Library/Updates" updatesindex = os.path.join(updatesdir, "inde... | 80515793f55208a9ca0baf55bd7c28856cfb35c2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6241/80515793f55208a9ca0baf55bd7c28856cfb35c2/appleupdates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
4401,
2726,
1891,
966,
13332,
9163,
6656,
326,
24199,
2315,
770,
18,
17842,
471,
326,
13549,
4533,
16,
27117,
1123,
316,
326,
740,
490,
1683,
77,
10999,
18,
2860,
392,
526,
434,
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,
1322,
4401,
2726,
1891,
966,
13332,
9163,
6656,
326,
24199,
2315,
770,
18,
17842,
471,
326,
13549,
4533,
16,
27117,
1123,
316,
326,
740,
490,
1683,
77,
10999,
18,
2860,
392,
526,
434,
16... |
for constructor in (int, float, int, complex, str, str, tuple, list, file): | for constructor in (int, float, int, complex, str, str, tuple, list): | def keywords(): if verbose: print("Testing keyword args to basic type constructors ...") vereq(int(x=1), 1) vereq(float(x=2), 2.0) vereq(int(x=3), 3) vereq(complex(imag=42, real=666), complex(666, 42)) vereq(str(object=500), '500') vereq(str(string='abc', errors='strict'), 'abc') vereq(tuple(sequence=range(3)), (0, 1, ... | 85def692392804d753756cd126aaeef97a432a2c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/85def692392804d753756cd126aaeef97a432a2c/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7093,
13332,
309,
3988,
30,
1172,
2932,
22218,
4932,
833,
358,
5337,
618,
19874,
1372,
7923,
331,
822,
85,
12,
474,
12,
92,
33,
21,
3631,
404,
13,
331,
822,
85,
12,
5659,
12,
92,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7093,
13332,
309,
3988,
30,
1172,
2932,
22218,
4932,
833,
358,
5337,
618,
19874,
1372,
7923,
331,
822,
85,
12,
474,
12,
92,
33,
21,
3631,
404,
13,
331,
822,
85,
12,
5659,
12,
92,
33,... |
assert isinstance(subrefnode, nodes.substitution_reference) subreftext = subrefnode.astext() refname = normname(subreftext) subrefnode['refname'] = refname self.statemachine.memo.document.note_substitution_ref(subrefnode) if endstring[-1:] == '_': referencenode = nodes.reference('|%s%s' % (subreftext, endstring), '') i... | if isinstance(subrefnode, nodes.substitution_reference): subreftext = subrefnode.astext() refname = normname(subreftext) subrefnode['refname'] = refname self.statemachine.memo.document.note_substitution_ref( subrefnode) if endstring[-1:] == '_': referencenode = nodes.reference( '|%s%s' % (subreftext, endstring), '') if... | def substitution_reference(self, match, lineno): before, inlines, remaining, sysmessages, endstring = self.inlineobj( match, lineno, self.inline.patterns.substitution_ref, nodes.substitution_reference) if inlines: assert len(inlines) == 1 subrefnode = inlines[0] assert isinstance(subrefnode, nodes.substitution_referenc... | ce0c24195139efc8334ce9dec2c49af5e21c1202 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/ce0c24195139efc8334ce9dec2c49af5e21c1202/states.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12785,
67,
6180,
12,
2890,
16,
845,
16,
7586,
4672,
1865,
16,
316,
3548,
16,
4463,
16,
2589,
6833,
16,
679,
1080,
273,
365,
18,
10047,
2603,
12,
845,
16,
7586,
16,
365,
18,
10047,
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,
12785,
67,
6180,
12,
2890,
16,
845,
16,
7586,
4672,
1865,
16,
316,
3548,
16,
4463,
16,
2589,
6833,
16,
679,
1080,
273,
365,
18,
10047,
2603,
12,
845,
16,
7586,
16,
365,
18,
10047,
18... |
desiredPath.AddPath(trianglePath) desiredPath.AddPath(directionCircle) | desiredPath.AddPath(trianglePath) | def draw(self,gc): # Apply direction and offset rotVal = (self.rotVal + self.offset) * self.direction desiredRotVal = (self.desiredRotVal + self.offset) * self.direction # TODO: change pen color to correspond to degrees rotated? # TODO: clean up the code! width,height = self.GetSize() gc.SetPen(wx.Pen("black", 3)) gc.... | ec2945f74c14ce51db78a77bd9c92bb3ad6d9d89 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/ec2945f74c14ce51db78a77bd9c92bb3ad6d9d89/controls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
16,
13241,
4672,
468,
5534,
4068,
471,
1384,
4168,
3053,
273,
261,
2890,
18,
8342,
3053,
397,
365,
18,
3348,
13,
380,
365,
18,
9855,
6049,
8570,
3053,
273,
261,
2890,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
12,
2890,
16,
13241,
4672,
468,
5534,
4068,
471,
1384,
4168,
3053,
273,
261,
2890,
18,
8342,
3053,
397,
365,
18,
3348,
13,
380,
365,
18,
9855,
6049,
8570,
3053,
273,
261,
2890,
1... |
scan = sf[151] | scan = sf[360] | def writeInfoFile(self, outFile = None): """Write information about the current processing into a file | 8862dcf26a4225de67d49c677cfa7010b7a8e0ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/8862dcf26a4225de67d49c677cfa7010b7a8e0ce/transformations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
966,
812,
12,
2890,
16,
21651,
273,
599,
4672,
3536,
3067,
1779,
2973,
326,
783,
4929,
1368,
279,
585,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
966,
812,
12,
2890,
16,
21651,
273,
599,
4672,
3536,
3067,
1779,
2973,
326,
783,
4929,
1368,
279,
585,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
continue | continue | def search(self, cr, uid, args, offset=0, limit=2000, order=None, context=None, count=False): if context is None: context = {} | e90c097fe4b630b7222276d722284cab27831585 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/e90c097fe4b630b7222276d722284cab27831585/ir_ui_menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
17172,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
17172,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
27... |
asyncore.loop(use_poll=self.usepoll) | asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01) | def numeric_terminator_check(self, termlen): # Try reading a fixed number of bytes s = echo_server() s.start() time.sleep(0.5) # Give server time to initialize c = echo_client(termlen) data = "hello world, I'm not dead yet!\n" c.push(data) c.push(SERVER_QUIT) asyncore.loop(use_poll=self.usepoll)#, count=5, timeout=5) s... | 4950442fb7c0b668a10143300d97ed4a70e4ff49 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/4950442fb7c0b668a10143300d97ed4a70e4ff49/test_asynchat.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
67,
9505,
639,
67,
1893,
12,
2890,
16,
19272,
781,
275,
4672,
468,
6161,
6453,
279,
5499,
1300,
434,
1731,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6389,
67,
9505,
639,
67,
1893,
12,
2890,
16,
19272,
781,
275,
4672,
468,
6161,
6453,
279,
5499,
1300,
434,
1731,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12... |
- resp: server response if succesful | - resp: server response if successful | def help(self): """Process a HELP command. Returns: - resp: server response if succesful - list: list of strings""" | 2b9ab6deeb822299ae8e193ffb4fa9d7bd4be97e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/2b9ab6deeb822299ae8e193ffb4fa9d7bd4be97e/nntplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
12,
2890,
4672,
3536,
2227,
279,
22557,
52,
1296,
18,
225,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
2064,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
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,
2809,
12,
2890,
4672,
3536,
2227,
279,
22557,
52,
1296,
18,
225,
2860,
30,
300,
1718,
30,
1438,
766,
309,
6873,
300,
666,
30,
666,
434,
2064,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-10... |
syslog(LOG_ERR, "SSHbase: DNS lookup failed for client %s" % client) | self.LogError("DNS lookup failed for client %s" % client) | def build_skn(self, entry, metadata): '''This function builds builds a host specific known_hosts file''' client = metadata.hostname filedata = self.repository.entries['ssh_known_hosts'].data try: ipaddr = gethostbyname(client) # add client-specific key lines for hostkey in [keytmpl % client for keytmpl in self.pubkeys]... | ac4471c9ebad31ab12c0af14e11a5f9d0479ea11 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/ac4471c9ebad31ab12c0af14e11a5f9d0479ea11/SSHbase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
7771,
82,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
2503,
445,
10736,
10736,
279,
1479,
2923,
4846,
67,
11588,
585,
26418,
1004,
273,
1982,
18,
10358,
585,
892,
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,
1361,
67,
7771,
82,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
2503,
445,
10736,
10736,
279,
1479,
2923,
4846,
67,
11588,
585,
26418,
1004,
273,
1982,
18,
10358,
585,
892,
273,
365,
18,
... |
self.MapClass.remove_item_id(self.id, item_id) | try: self.MapClass.remove_item_id(self.id, item_id) except playlist.ObjectNotFoundError: return | def remove_id(self, item_id, signal_change=True): """Remove an item from the playlist.""" self.MapClass.remove_item_id(self.id, item_id) folder = self.get_folder() if folder is not None: folder.remove_id(item_id) if signal_change: item = models.Item.get_by_id(item_id) item.signal_change(needsSave=False) | 12573711c771de1a57c29d2b19e8f49042da2346 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12354/12573711c771de1a57c29d2b19e8f49042da2346/playlist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
350,
12,
2890,
16,
761,
67,
350,
16,
4277,
67,
3427,
33,
5510,
4672,
3536,
3288,
392,
761,
628,
326,
16428,
12123,
775,
30,
365,
18,
863,
797,
18,
4479,
67,
1726,
67,
350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
350,
12,
2890,
16,
761,
67,
350,
16,
4277,
67,
3427,
33,
5510,
4672,
3536,
3288,
392,
761,
628,
326,
16428,
12123,
775,
30,
365,
18,
863,
797,
18,
4479,
67,
1726,
67,
350,
... |
else: s = "" if self.showClass: s += str(cl) | if self.showClass: s += "%s" % str(cl) | def updateTableOutcomes(self): """updates the columns associated with the classifiers""" if self.freezeAttChange: # program-based changes should not alter the table immediately return if not self.data or not self.classifiers: return | 63e34d56e155a4f1aba288f36a71868771294735 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/63e34d56e155a4f1aba288f36a71868771294735/OWPredictions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1388,
1182,
10127,
12,
2890,
4672,
3536,
14703,
326,
2168,
3627,
598,
326,
667,
3383,
8395,
309,
365,
18,
29631,
3075,
3043,
30,
468,
5402,
17,
12261,
3478,
1410,
486,
10182,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
1388,
1182,
10127,
12,
2890,
4672,
3536,
14703,
326,
2168,
3627,
598,
326,
667,
3383,
8395,
309,
365,
18,
29631,
3075,
3043,
30,
468,
5402,
17,
12261,
3478,
1410,
486,
10182,
326,
... |
Table -- GroupPackageListingAcl | Table -- GroupPackageListingAclLog | def __repr__(self): return 'PersonPackageListingAclLog(%s, %s, description="%s",' \ ' changetime="%s", personpackagelistingaclid= %s)' % ( self.userid, self.action, self.description, self.changetime, self.personpackagelistingaclid) | 979e534003a1dfb7417650efee96fb5c64f5c0a2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/979e534003a1dfb7417650efee96fb5c64f5c0a2/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
296,
8346,
2261,
19081,
13538,
1343,
9275,
87,
16,
738,
87,
16,
2477,
11613,
87,
3113,
11,
521,
296,
9435,
2374,
11613,
87,
3113,
6175,
2920,
346,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
972,
12,
2890,
4672,
327,
296,
8346,
2261,
19081,
13538,
1343,
9275,
87,
16,
738,
87,
16,
2477,
11613,
87,
3113,
11,
521,
296,
9435,
2374,
11613,
87,
3113,
6175,
2920,
346,
... |
url = "http://lists.recensio.net/mailman/options/newsletter/%s?unsubconfirm=1&unsub=Unsubscribe" % emailaddress req = urllib2.Request(url=url) | url = "http://lists.recensio.net/mailman/options/newsletter" req = urllib2.Request(url=url, data="email=%s&unsubconfirm=1&login-unsub=Unsubscribe"%emailaddress) | def subscribe(self, emailaddress, name=''): """ helper method to enable mail subscription to anonymous user """ ptool = getToolByName(self.context, 'portal_url') portal = ptool.getPortalObject() pp = getToolByName(portal, 'portal_properties') sp = getattr(pp, 'site_properties', None) siteadmin = getattr(portal, 'email_... | d6892ebb52ee7a562bc5ed9a2a8fba0d782166fc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10561/d6892ebb52ee7a562bc5ed9a2a8fba0d782166fc/newsletter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9129,
12,
2890,
16,
2699,
2867,
16,
508,
2218,
11,
4672,
3536,
4222,
707,
358,
4237,
4791,
4915,
358,
13236,
729,
3536,
293,
6738,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9129,
12,
2890,
16,
2699,
2867,
16,
508,
2218,
11,
4672,
3536,
4222,
707,
358,
4237,
4791,
4915,
358,
13236,
729,
3536,
293,
6738,
273,
336,
6364,
5911,
12,
2890,
18,
2472,
16,
296,
24... |
if sqlalchemy.__version__.startswith('0.3'): to_delete = select([commands.c.id], and_(commands_on_host.c.fk_commands == commands.c.id, commands_on_host.c.current_state.in_(*['done', 'failed']), commands.c.fk_bundle == None, commands.c.creation_date < creation_timestamp), distinct = True) | if sqlalchemy.__version__.startswith('0.3'): not_finished_commands = select([commands.c.id], and_(commands_on_host.c.fk_commands == commands.c.id, not_(commands_on_host.c.current_state.in_(*['done', 'failed'])), commands.c.fk_bundle == None, commands.c.creation_date < creation_timestamp), distinct = True) to_delete = s... | def query_commands_to_delete(commands, commands_on_host, creation_timestamp): """ Get commands to delete, not part of a bundle @rtype: list @returns: list of command ids to delete """ if sqlalchemy.__version__.startswith('0.3'): to_delete = select([commands.c.id], and_(commands_on_host.c.fk_commands == commands.c.id, ... | e07400840717417034ff9171f035664f74f5018e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5988/e07400840717417034ff9171f035664f74f5018e/clean-msc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
7847,
67,
869,
67,
3733,
12,
7847,
16,
4364,
67,
265,
67,
2564,
16,
6710,
67,
5508,
4672,
3536,
968,
4364,
358,
1430,
16,
486,
1087,
434,
279,
3440,
225,
632,
86,
723,
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,
843,
67,
7847,
67,
869,
67,
3733,
12,
7847,
16,
4364,
67,
265,
67,
2564,
16,
6710,
67,
5508,
4672,
3536,
968,
4364,
358,
1430,
16,
486,
1087,
434,
279,
3440,
225,
632,
86,
723,
30,
... |
self.sendLine( ":%s TKL + Q * %s* %s 0 %d :Reserved for Dtella" % (cfg.my_host, cfg.dc_to_irc_prefix, cfg.my_host, time.time())) self.pushBotJoin(do_nick=True) | def handleCmd_SERVER(self, prefix, args): if prefix: # Not from our connected server return | 41cfee835992c192fb2464a231351b4271c46427 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8524/41cfee835992c192fb2464a231351b4271c46427/bridge_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
4370,
12,
2890,
16,
1633,
16,
833,
4672,
309,
1633,
30,
468,
2288,
628,
3134,
5840,
1438,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
5931,
67,
4370,
12,
2890,
16,
1633,
16,
833,
4672,
309,
1633,
30,
468,
2288,
628,
3134,
5840,
1438,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if I and inname not in I: continue | if I and zipname not in I: continue | def buildup_test(cls=test_pyRXPU,I=[]): ''' Add test methods to the TestCase ''' cls.valid = [] cls.invalid = [] cls.notwf = [] testdir = os.path.dirname(__file__) try: zipf = zipfile.ZipFile(os.path.join(testdir,'xmltest.zip')) except: print >> sys.stderr, "Can't locate file xmltest.zip\nPerhaps it should be downloade... | 0ce3ff81e6425eca835acd954b2c33a56a879644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0ce3ff81e6425eca835acd954b2c33a56a879644/test_xmltestsuite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
416,
67,
3813,
12,
6429,
33,
3813,
67,
2074,
54,
60,
18061,
16,
45,
33,
8526,
4672,
9163,
1436,
1842,
2590,
358,
326,
7766,
2449,
9163,
2028,
18,
877,
273,
5378,
2028,
18,
5387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
416,
67,
3813,
12,
6429,
33,
3813,
67,
2074,
54,
60,
18061,
16,
45,
33,
8526,
4672,
9163,
1436,
1842,
2590,
358,
326,
7766,
2449,
9163,
2028,
18,
877,
273,
5378,
2028,
18,
5387,
... |
collect_time_fraction = collect_time / compute_time old_heapsize = self.heap_usage garbage_generated = old_malloced - (curr_heap_size - old_heapsize) garbage_fraction = float(garbage_generated) / float(curr_heap_size) if collect_time_fraction > 0.02 * garbage_fraction: | garbage_collected = old_malloced - (curr_heap_size - self.heap_usage) if (collect_time * curr_heap_size > 0.02 * garbage_collected * compute_time): | def collect(self): # 1. mark from the roots, and also the objects that objects-with-del # point to (using the list of malloced_objects_with_finalizer) # 2. walk the list of objects-without-del and free the ones not marked # 3. walk the list of objects-with-del and for the ones not marked: # call __del__, move the... | 29c36a6ef5773e27c681884ecbc7cfc9fd89322c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/29c36a6ef5773e27c681884ecbc7cfc9fd89322c/gc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
12,
2890,
4672,
468,
404,
18,
2267,
628,
326,
12876,
16,
471,
2546,
326,
2184,
716,
2184,
17,
1918,
17,
3771,
468,
565,
1634,
358,
261,
9940,
326,
666,
434,
27431,
383,
3263,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3274,
12,
2890,
4672,
468,
404,
18,
2267,
628,
326,
12876,
16,
471,
2546,
326,
2184,
716,
2184,
17,
1918,
17,
3771,
468,
565,
1634,
358,
261,
9940,
326,
666,
434,
27431,
383,
3263,
67,... |
gen = RegexFilterPageGenerator(site.allpages(), regex) | gen = RegexFilterPageGenerator(site.allpages(), [regex]) | def handleArg(self, arg): """Parse one argument at a time. | fdcfb3efa9bfe50a6b4cff086059fdffff1c953a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/fdcfb3efa9bfe50a6b4cff086059fdffff1c953a/pagegenerators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
4117,
12,
2890,
16,
1501,
4672,
3536,
3201,
1245,
1237,
622,
279,
813,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (pkgconfig != None and libs == None): | if (pkgconfig != None and libs != None and len(libs) > 0): | def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None, framework = None, target_pkg = None, tool = "pkg-config"): global PKG_LIST_ALL if (pkg in PkgListGet() and PkgSkip(pkg)): return if (target_pkg == "" or target_pkg == None): target_pkg = pkg if (pkgconfig == ""): pkgconfig = None if (frame... | 11e4f386b728e002ed7d2dbd9f9b127c6c90bf21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/11e4f386b728e002ed7d2dbd9f9b127c6c90bf21/makepandacore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19656,
11264,
8317,
12,
10657,
16,
3475,
1425,
273,
599,
16,
15042,
273,
599,
16,
316,
2143,
273,
599,
16,
17588,
273,
599,
16,
8257,
273,
599,
16,
1018,
67,
10657,
273,
599,
16,
5226,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19656,
11264,
8317,
12,
10657,
16,
3475,
1425,
273,
599,
16,
15042,
273,
599,
16,
316,
2143,
273,
599,
16,
17588,
273,
599,
16,
8257,
273,
599,
16,
1018,
67,
10657,
273,
599,
16,
5226,... |
msgbuf = "" | msgbuf = [] | def makefile(self, mode, bufsize=None): """Return a readable file-like object with data from socket. | a3a06fe59aaff7c172e572bd38a98391355a3102 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a3a06fe59aaff7c172e572bd38a98391355a3102/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
768,
12,
2890,
16,
1965,
16,
1681,
1467,
33,
7036,
4672,
3536,
990,
279,
7471,
585,
17,
5625,
733,
598,
501,
628,
2987,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
768,
12,
2890,
16,
1965,
16,
1681,
1467,
33,
7036,
4672,
3536,
990,
279,
7471,
585,
17,
5625,
733,
598,
501,
628,
2987,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.gas.setStarlist(starList) self.gas.setNumberStars(len(starList)) | self.gas.setStarlist(starList) self.gas.setNumberStars(len(starList)) | def setWcs(self, fluxLim=None): import lsst.meas.astrom.net as astromNet | 4166029fdf95949111b92d7625b6bd320254e6d6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6523/4166029fdf95949111b92d7625b6bd320254e6d6/MeasureSources.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
59,
2143,
12,
2890,
16,
11772,
48,
381,
33,
7036,
4672,
1930,
7180,
334,
18,
21992,
18,
689,
520,
18,
2758,
487,
3364,
520,
7308,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
59,
2143,
12,
2890,
16,
11772,
48,
381,
33,
7036,
4672,
1930,
7180,
334,
18,
21992,
18,
689,
520,
18,
2758,
487,
3364,
520,
7308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self._rowCount += rowIncrement | self._rowCount += rowIncrement | def addPmWidget(self, pmWidget): """ Add a PM widget and its label to this group box. @param pmWidget: The PM widget to add. @type pmWidget: PM_Widget """ # Get all the widget and label layout parameters. widgetRow, \ widgetColumn, \ widgetSpanCols, \ widgetAlignment, \ rowIncrement, \ labelRow, \ labelColumn, \ lab... | 035ab3a21c512d436a6fbc68528e2fd467b5b220 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/035ab3a21c512d436a6fbc68528e2fd467b5b220/PM_DockWidget.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
52,
81,
4609,
12,
2890,
16,
7430,
4609,
4672,
3536,
1436,
279,
23544,
3604,
471,
2097,
1433,
358,
333,
1041,
3919,
18,
225,
632,
891,
7430,
4609,
30,
1021,
23544,
3604,
358,
527,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
52,
81,
4609,
12,
2890,
16,
7430,
4609,
4672,
3536,
1436,
279,
23544,
3604,
471,
2097,
1433,
358,
333,
1041,
3919,
18,
225,
632,
891,
7430,
4609,
30,
1021,
23544,
3604,
358,
527,
... |
ICAL.rrule) and \ | ICAL.rrule, ICAL.url) and \ | def exportEvent(self, sts, event): """ support for VEVENT components """ w = self._w | 4de65008d2779e24de665b0356d7e061dba09135 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/4de65008d2779e24de665b0356d7e061dba09135/toIcal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
1133,
12,
2890,
16,
27099,
16,
871,
4672,
3536,
2865,
364,
776,
10454,
4085,
3536,
341,
273,
365,
6315,
91,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
1133,
12,
2890,
16,
27099,
16,
871,
4672,
3536,
2865,
364,
776,
10454,
4085,
3536,
341,
273,
365,
6315,
91,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
INPUTS: | INPUT: | def qexp_eta(ps_ring, n): r""" Return the q-expansion of $\eta(q) / q^{1/24}$, where $\eta(q)$ is Dedekind's function $$\eta(q) = q^{1/24}\prod_{i=1}^\infty (1-q^i)$$, as an element of ps_ring, to precision n. Completely naive algorithm. INPUTS: -- (PowerSeriesRing) ps_ring: a power series ring -- we pass this as an a... | 1f3a538d6f6f09006ed698b975e492622ef875e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f3a538d6f6f09006ed698b975e492622ef875e5/etaproducts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
2749,
67,
1066,
12,
1121,
67,
8022,
16,
290,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
271,
64,
1066,
12,
85,
13,
342,
1043,
66,
95,
21,
19,
3247,
22496,
16,
1625... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1043,
2749,
67,
1066,
12,
1121,
67,
8022,
16,
290,
4672,
436,
8395,
2000,
326,
1043,
17,
2749,
12162,
434,
271,
64,
1066,
12,
85,
13,
342,
1043,
66,
95,
21,
19,
3247,
22496,
16,
1625... |
raise ValueError, "-(2*k)/B_k (=%s) must be invertible in the ring K"%a0inv | raise ValueError, "-(2*k)/B_k (=%s) must be invertible in the %r"%(a0inv, K) | def eisenstein_series_qexp(k, prec=10, K=QQ): r""" Return the $q$-expansion of the weight $k$ Eisenstein series to precision prec in the field $K$. Here's a rough description of how the algorithm works: we know $E_k = const + \sum_n sigma(n,k-1) q^n$. Now, we basically just compute all the $\sigma(n,k-1)$ simultaneous... | 2b0f8b53a0da5e908eb7fca329df5911534937ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/2b0f8b53a0da5e908eb7fca329df5911534937ee/eis_series.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
85,
2749,
12,
79,
16,
13382,
33,
2163,
16,
1475,
33,
53,
53,
4672,
436,
8395,
2000,
326,
271,
85,
8,
17,
2749,
12162,
434,
326,
3119,
271,
... |
base = base + ', opaque="%s"' % opaque | base += ', opaque="%s"' % opaque | def get_authorization(self, req, chal): try: realm = chal['realm'] nonce = chal['nonce'] qop = chal.get('qop') algorithm = chal.get('algorithm', 'MD5') # mod_digest doesn't send an opaque, even though it isn't # supposed to be optional opaque = chal.get('opaque', None) except KeyError: return None | 88cdba18accbca75c477e4068ade6adbdd07eb8a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/88cdba18accbca75c477e4068ade6adbdd07eb8a/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12218,
12,
2890,
16,
1111,
16,
462,
287,
4672,
775,
30,
11319,
273,
462,
287,
3292,
24056,
3546,
7448,
273,
462,
287,
3292,
12824,
3546,
1043,
556,
273,
462,
287,
18,
588,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12218,
12,
2890,
16,
1111,
16,
462,
287,
4672,
775,
30,
11319,
273,
462,
287,
3292,
24056,
3546,
7448,
273,
462,
287,
3292,
12824,
3546,
1043,
556,
273,
462,
287,
18,
588,
266... |
return _sparsetools.spdiags(*args) | return _sparsetools.spdiags(*args) | def spdiags(*args): """ spdiags(int n_row, int n_col, int n_diag, int offsets, float diags, std::vector<(int)> Ap, std::vector<(int)> Ai, std::vector<(float)> Ax) spdiags(int n_row, int n_col, int n_diag, int offsets, double diags, std::vector<(int)> Ap, std::vector<(int)> Ai, std::vector<(double)> Ax) spdiags(int n_ro... | 5ae78c789fc0e199f798df7b612701ba4deb366c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/5ae78c789fc0e199f798df7b612701ba4deb366c/sparsetools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
3211,
1341,
30857,
1968,
4672,
3536,
1694,
3211,
1341,
12,
474,
290,
67,
492,
16,
509,
290,
67,
1293,
16,
509,
290,
67,
12264,
16,
509,
8738,
16,
1431,
15306,
16,
2044,
2866,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
3211,
1341,
30857,
1968,
4672,
3536,
1694,
3211,
1341,
12,
474,
290,
67,
492,
16,
509,
290,
67,
1293,
16,
509,
290,
67,
12264,
16,
509,
8738,
16,
1431,
15306,
16,
2044,
2866,
773... |
retList = sorted(cu, lambda a: (a[0], a[1], -a[6])) | retList = sorted(cu, key = lambda a: (a[0], a[1], -a[6])) | def resolve(self, groupIds, label, depList, troveList=[], leavesOnly = False): """ Determine troves that provide the given dependencies, restricting by label and limiting to latest version for each (name, flavor) pair. """ cu = self.db.cursor() # need to make sure that depList does not contain duplicates # for efficien... | eac0661f20da2163ce0ece37cdf7c29f678313ee /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/eac0661f20da2163ce0ece37cdf7c29f678313ee/deptable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
2890,
16,
1041,
2673,
16,
1433,
16,
5993,
682,
16,
23432,
537,
682,
22850,
6487,
15559,
3386,
273,
1083,
4672,
3536,
10229,
23432,
3324,
716,
5615,
326,
864,
5030,
16,
13108,
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,
2245,
12,
2890,
16,
1041,
2673,
16,
1433,
16,
5993,
682,
16,
23432,
537,
682,
22850,
6487,
15559,
3386,
273,
1083,
4672,
3536,
10229,
23432,
3324,
716,
5615,
326,
864,
5030,
16,
13108,
3... |
addr = parseaddr(message['to'])[1] | addr = getaddr(message['to']) | def send(self, message): #addr = email.Utils.parseaddr(message['to'])[1] addr = parseaddr(message['to'])[1] logger.info('Sending mail to %s', addr) | 41ad40294cd72033ab26cfd6018137186773b2bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1871/41ad40294cd72033ab26cfd6018137186773b2bc/qMail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
12,
2890,
16,
883,
4672,
468,
4793,
273,
2699,
18,
1989,
18,
2670,
4793,
12,
2150,
3292,
869,
19486,
63,
21,
65,
3091,
273,
336,
4793,
12,
2150,
3292,
869,
19486,
1194,
18,
1376,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
12,
2890,
16,
883,
4672,
468,
4793,
273,
2699,
18,
1989,
18,
2670,
4793,
12,
2150,
3292,
869,
19486,
63,
21,
65,
3091,
273,
336,
4793,
12,
2150,
3292,
869,
19486,
1194,
18,
1376,... |
key += token.secret | key += escape(token.secret) | def build_signature(self, oauth_request, consumer, token): sig = ( escape(oauth_request.get_normalized_http_method()), escape(oauth_request.get_normalized_http_url()), escape(oauth_request.get_normalized_parameters()), ) | 58f8d318ab1d391b1209a9db7474f7d08e1190a3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1598/58f8d318ab1d391b1209a9db7474f7d08e1190a3/oauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
3553,
273,
261,
4114,
12,
7280,
67,
2293,
18,
588,
67,
17762,
67,
2505,
67,
2039,
1435,
3631,
4114,
12,
7280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
8195,
12,
2890,
16,
6924,
67,
2293,
16,
4765,
16,
1147,
4672,
3553,
273,
261,
4114,
12,
7280,
67,
2293,
18,
588,
67,
17762,
67,
2505,
67,
2039,
1435,
3631,
4114,
12,
7280,
... |
and puts up malicious software, signed with the attacker's private key, and puts up their \ public key too. If you've downloaded the real software before, you should be suspicious that \ the fingerprint has changed!"""), | and puts up malicious software, signed with the attacker's private key, and puts up the \ attacker's public key too. If you've downloaded this software before, you \ should be suspicious that you're being asked to confirm another key!"""), | def confirm_trust(interface, sigs, iface_xml): _queue.append(TrustBox(interface, sigs, iface_xml)) if len(_queue) == 1: _pop_queue() | cf6d5c00e8abd4f03fb18dc22f8496bbfab2d440 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10543/cf6d5c00e8abd4f03fb18dc22f8496bbfab2d440/trust_box.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
21879,
12,
5831,
16,
3553,
87,
16,
9751,
67,
2902,
4672,
389,
4000,
18,
6923,
12,
14146,
3514,
12,
5831,
16,
3553,
87,
16,
9751,
67,
2902,
3719,
309,
562,
24899,
4000,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6932,
67,
21879,
12,
5831,
16,
3553,
87,
16,
9751,
67,
2902,
4672,
389,
4000,
18,
6923,
12,
14146,
3514,
12,
5831,
16,
3553,
87,
16,
9751,
67,
2902,
3719,
309,
562,
24899,
4000,
13,
... |
if string.split(lines[lnum])[:1] == ['def']: break | if pat.match(lines[lnum]): break | def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r... | 704c314f4179203a24c494f2a40dd915600f9c28 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/704c314f4179203a24c494f2a40dd915600f9c28/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... |
self.find_bondable_pairs() self.o.gl_update() def get_neighbor_bond(self, a1, a2): '''Return the bond between atoms a1 and a2, or None if none exist. ''' for b in a1.bonds[:]: if b.other(a1) == a2: return b return None | self.find_bondable_pairs() self.o.gl_update() else: msg = "Fuse Chunks: No bonds have been made yet. Undo ignored." self.w.history.message(redmsg(msg)) | def Backup(self): if self.bondable_pairs_atoms: for a1, a2 in self.bondable_pairs_atoms: b = self.get_neighbor_bond(a1, a2) if b: b.bust() # Then I need to separate and rename the new chunk back to it's original name. for chunk in self.merged_chunks: print "Restore chunk: ", chunk.name self.find_bondable_pairs() # Fin... | 58f127e93b7fa4e2fed427821c60dc83c31baeda /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/58f127e93b7fa4e2fed427821c60dc83c31baeda/fusechunksMode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11856,
12,
2890,
4672,
309,
365,
18,
26425,
429,
67,
11545,
67,
14937,
30,
364,
279,
21,
16,
279,
22,
316,
365,
18,
26425,
429,
67,
11545,
67,
14937,
30,
324,
273,
365,
18,
588,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11856,
12,
2890,
4672,
309,
365,
18,
26425,
429,
67,
11545,
67,
14937,
30,
364,
279,
21,
16,
279,
22,
316,
365,
18,
26425,
429,
67,
11545,
67,
14937,
30,
324,
273,
365,
18,
588,
67,
... |
class LayoutToolBar(aui.AuiToolBar): | class LayoutToolBar(wx.ToolBar): | def UntoggleAllItem(self, pubsub_evt): for id in SLICE_TOOLS: state = self.GetToolToggled(id) if state: self.ToggleTool(id, False) | 9ea636e5642af91c5164934cac1dbceeb58b46d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/9ea636e5642af91c5164934cac1dbceeb58b46d5/frame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23931,
9891,
1595,
1180,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
364,
612,
316,
348,
2053,
1441,
67,
26263,
55,
30,
919,
273,
365,
18,
967,
6364,
56,
23972,
1259,
12,
350,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23931,
9891,
1595,
1180,
12,
2890,
16,
23288,
67,
73,
11734,
4672,
364,
612,
316,
348,
2053,
1441,
67,
26263,
55,
30,
919,
273,
365,
18,
967,
6364,
56,
23972,
1259,
12,
350,
13,
309,
... |
tt=string.lower(re.sub("\;\s*\Z","",_chop_end_codes(tail))) | tt=re.sub("\;\s*\Z","",_chop_end_codes(tail)).lower() | def _parse_pdb_header_list(header): # database fields dict={'name':"", 'head':'', 'deposition_date' : "1909-01-08", 'release_date' : "1909-01-08", 'structure_method' : "unknown", 'resolution' : 0.0, 'structure_reference' : "unknown", 'journal_reference' : "unknown", 'author' : "", 'compound':{'1':{'misc':''}},'source':... | 8ddf606a834a8cc06f52daec7b4ce067280da302 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/8ddf606a834a8cc06f52daec7b4ce067280da302/parse_pdb_header.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
17414,
67,
3374,
67,
1098,
12,
3374,
4672,
468,
2063,
1466,
2065,
5899,
11,
529,
11,
2773,
3113,
296,
1978,
11,
2497,
2187,
296,
323,
3276,
67,
712,
11,
294,
315,
3657,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2670,
67,
17414,
67,
3374,
67,
1098,
12,
3374,
4672,
468,
2063,
1466,
2065,
5899,
11,
529,
11,
2773,
3113,
296,
1978,
11,
2497,
2187,
296,
323,
3276,
67,
712,
11,
294,
315,
3657,
... |
self.pov = V(0,0,0) | def setViewRecenter(self): "Recenter our current view around the origin of modeling space in our current part, and gl_update." part = self.part self.pov = V(0,0,0) part.computeBoundingBox() self.scale = part.bbox.scale() + vlen(part.center) #bruce 050418 comments: # - doesn't this need to correct for aspect ratio, like... | dc06c760dbe5ded748eaa71389af2211878d2189 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/dc06c760dbe5ded748eaa71389af2211878d2189/GLPane.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19923,
5650,
2328,
12,
2890,
4672,
315,
5650,
2328,
3134,
783,
1476,
6740,
326,
4026,
434,
938,
310,
3476,
316,
3134,
783,
1087,
16,
471,
5118,
67,
2725,
1199,
1087,
273,
365,
18,
2680,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19923,
5650,
2328,
12,
2890,
4672,
315,
5650,
2328,
3134,
783,
1476,
6740,
326,
4026,
434,
938,
310,
3476,
316,
3134,
783,
1087,
16,
471,
5118,
67,
2725,
1199,
1087,
273,
365,
18,
2680,
... | |
if not os.path.exists(placeholder): | if not placeholder or not os.path.exists(placeholder): | def after_install(dist): log.warn('After install bootstrap.') placeholder = dist.get_command_obj('install').install_purelib if not os.path.exists(placeholder): log.warn('Could not find the install location') return pyver = '%s.%s' % (sys.version_info[0], sys.version_info[1]) setuptools_file = 'setuptools-0.6c9-py%s.egg... | 1502d7426ed56d8235426db13e6cda4f4609f8a4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/495/1502d7426ed56d8235426db13e6cda4f4609f8a4/distribute_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
4413,
4672,
613,
18,
8935,
2668,
4436,
3799,
7065,
1093,
13,
6695,
273,
2411,
18,
588,
67,
3076,
67,
2603,
2668,
5425,
16063,
5425,
67,
84,
594,
2941,
309,
486,
669... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
4413,
4672,
613,
18,
8935,
2668,
4436,
3799,
7065,
1093,
13,
6695,
273,
2411,
18,
588,
67,
3076,
67,
2603,
2668,
5425,
16063,
5425,
67,
84,
594,
2941,
309,
486,
669... |
for error in msg.split('\n'): | for error in msg.splitlines(): | def log_scriptlet_output(self, data, msg): """ Note that data can be either a real pkg. ... or not. """ if msg is None or not hasattr(self, '_tid'): return # Not configured to run | d75aed77b1bb5c866d564b99116d84561cb09ee1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5445/d75aed77b1bb5c866d564b99116d84561cb09ee1/history.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
4263,
1810,
67,
2844,
12,
2890,
16,
501,
16,
1234,
4672,
3536,
3609,
716,
501,
848,
506,
3344,
279,
2863,
3475,
18,
1372,
578,
486,
18,
3536,
309,
1234,
353,
599,
578,
486,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
67,
4263,
1810,
67,
2844,
12,
2890,
16,
501,
16,
1234,
4672,
3536,
3609,
716,
501,
848,
506,
3344,
279,
2863,
3475,
18,
1372,
578,
486,
18,
3536,
309,
1234,
353,
599,
578,
486,
... |
ga.add(g_a, g_b, g_b, 0.1, 0.9) if not np.all(ga.get(g_b) == a): | if gatype == ga.C_SCPL: ga.add(g_a, g_b, g_b, complex(0.1,-0.1), complex(0.9,-0.9)) else: ga.add(g_a, g_b, g_b, 0.1, 0.9) b = ga.get(g_b, buffer=b) if np.any(np.vectorize(mismatch)(ga.get(g_b),a)): | def check(gatype, nptype): n = 256 m = 2*n a = np.zeros((n,n), dtype=nptype) b = np.zeros((n,n), dtype=nptype) maxloop = 100 maxproc = 4096 num_restricted = 0 restricted_list = 0 iproc = me % lprocs nloop = min(maxloop,n) if USE_RESTRICTED: num_restricted = nproc/2 restricted_list = [0]*num_restricted if (num_restricte... | 9398e6c3a6f6a465ba91c0a69aef76d46e3462eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9416/9398e6c3a6f6a465ba91c0a69aef76d46e3462eb/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
75,
6361,
16,
290,
27672,
4672,
290,
273,
8303,
312,
273,
576,
14,
82,
279,
273,
1130,
18,
22008,
12443,
82,
16,
82,
3631,
3182,
33,
82,
27672,
13,
324,
273,
1130,
18,
22008... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
75,
6361,
16,
290,
27672,
4672,
290,
273,
8303,
312,
273,
576,
14,
82,
279,
273,
1130,
18,
22008,
12443,
82,
16,
82,
3631,
3182,
33,
82,
27672,
13,
324,
273,
1130,
18,
22008... |
return result = MenuKey(ord(c)) id = (result>>16) & 0xffff item = result & 0xffff if id: self.do_rawmenu(id, item, None, event) else: if DEBUG: print "Command-" +`c` | return | def do_key(self, event): (what, message, when, where, modifiers) = event c = chr(message & charCodeMask) if modifiers & cmdKey: if c == '.': raise self else: if not self.menubar: MacOS.HandleEvent(event) return result = MenuKey(ord(c)) id = (result>>16) & 0xffff # Hi word item = result & 0xffff # Lo word if id: self.d... | c15e43a2da0bee955d5e939e31c43f8dc6270fef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c15e43a2da0bee955d5e939e31c43f8dc6270fef/FrameWork.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
856,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
276,
273,
4513,
12,
2150,
473,
13096,
5796,
13,
309,
10429,
473,
1797,
653,
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,
741,
67,
856,
12,
2890,
16,
871,
4672,
261,
23770,
16,
883,
16,
1347,
16,
1625,
16,
10429,
13,
273,
871,
276,
273,
4513,
12,
2150,
473,
13096,
5796,
13,
309,
10429,
473,
1797,
653,
3... |
if not sysconfig.python_build: | src = _get_source_filename() if not os.path.exists(src): | def test_suite(): if not sysconfig.python_build: if test_support.verbose: print 'test_build_ext: The test must be run in a python build dir' return unittest.TestSuite() else: return unittest.makeSuite(BuildExtTestCase) | 4d00138fe1465b32168e39c688f3eda277af51dd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/4d00138fe1465b32168e39c688f3eda277af51dd/test_build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
30676,
13332,
1705,
273,
389,
588,
67,
3168,
67,
3459,
1435,
309,
486,
1140,
18,
803,
18,
1808,
12,
4816,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
3813,
67,
3510... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30676,
13332,
1705,
273,
389,
588,
67,
3168,
67,
3459,
1435,
309,
486,
1140,
18,
803,
18,
1808,
12,
4816,
4672,
309,
1842,
67,
13261,
18,
11369,
30,
1172,
296,
3813,
67,
3510... |
events.trigger("Close", self.window_list[network, type, id]) | def __delitem__(self, item): network, type, id = item if network: id = network.normalize_case(id) | 4a5a7e198dfcf58ae90c65b0eeed660208299fc7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/4a5a7e198dfcf58ae90c65b0eeed660208299fc7/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
1726,
972,
12,
2890,
16,
761,
4672,
2483,
16,
618,
16,
612,
273,
761,
225,
309,
2483,
30,
612,
273,
2483,
18,
12237,
67,
3593,
12,
350,
13,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
1726,
972,
12,
2890,
16,
761,
4672,
2483,
16,
618,
16,
612,
273,
761,
225,
309,
2483,
30,
612,
273,
2483,
18,
12237,
67,
3593,
12,
350,
13,
2,
-100,
-100,
-100,
-100,
-10... | |
self.editwin.Bind(wx.EVT_TIMER, self.OnTimer) | def createWindowPostHook(self): Publisher().subscribe(self.showMessages, 'mpd') self.update_timer = wx.Timer(self.editwin) self.editwin.Bind(wx.EVT_TIMER, self.OnTimer) | 5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/5d0654c6ed59c9ed6c325bb83e8a022b3bc88ff9/mpd_major_mode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3829,
3349,
5394,
12,
2890,
4672,
21932,
7675,
9174,
12,
2890,
18,
4500,
5058,
16,
296,
1291,
72,
6134,
225,
365,
18,
2725,
67,
12542,
273,
7075,
18,
6777,
12,
2890,
18,
4619,
808... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
3829,
3349,
5394,
12,
2890,
4672,
21932,
7675,
9174,
12,
2890,
18,
4500,
5058,
16,
296,
1291,
72,
6134,
225,
365,
18,
2725,
67,
12542,
273,
7075,
18,
6777,
12,
2890,
18,
4619,
808... | |
"Function: %s" % (pa.function and pa.function.name_get()[0][1] or ''), | "Function: %s" % (pa.function or ''), | def get_lead_details(self, cr, uid, lead_id, context=None): body = [] lead_proxy = self.pool.get('crm.lead') lead = lead_proxy.browse(cr, uid, lead_id, context=context) if not lead.type or lead.type == 'lead': field_names = [ 'partner_name', 'title', 'function', 'street', 'street2', 'zip', 'city', 'country_id', 'state_... | 2aa3e0c9d3a0755f377969a7b42b3e9543c88ecf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/2aa3e0c9d3a0755f377969a7b42b3e9543c88ecf/crm_forward_to_partner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
24429,
67,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
5871,
67,
350,
16,
819,
33,
7036,
4672,
1417,
273,
5378,
5871,
67,
5656,
273,
365,
18,
6011,
18,
588,
2668,
3353,
81,
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,
24429,
67,
6395,
12,
2890,
16,
4422,
16,
4555,
16,
5871,
67,
350,
16,
819,
33,
7036,
4672,
1417,
273,
5378,
5871,
67,
5656,
273,
365,
18,
6011,
18,
588,
2668,
3353,
81,
18,
... |
manager = NodeManager() | manager = NodeManager(sys.path[0]) | def usage(): print "\nUsage of objdictgen.py :" print "\n %s XMLFilePath CFilePath\n"%sys.argv[0] | 7402a7b74ba916d4fa2ac2a1c29e579579cb2915 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/7402a7b74ba916d4fa2ac2a1c29e579579cb2915/objdictgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
1548,
82,
5357,
434,
1081,
1576,
4507,
18,
2074,
20514,
1172,
1548,
82,
282,
738,
87,
3167,
5598,
385,
5598,
64,
82,
28385,
9499,
18,
19485,
63,
20,
65,
225,
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,
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,
13332,
1172,
1548,
82,
5357,
434,
1081,
1576,
4507,
18,
2074,
20514,
1172,
1548,
82,
282,
738,
87,
3167,
5598,
385,
5598,
64,
82,
28385,
9499,
18,
19485,
63,
20,
65,
225,
2,
-100... |
node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) self.op.node_name = node_name | self.op.node_name = _ExpandNodeName(self.cfg, self.op.node_name) | def CheckArguments(self): node_name = self.cfg.ExpandNodeName(self.op.node_name) if node_name is None: raise errors.OpPrereqError("Invalid node name '%s'" % self.op.node_name, errors.ECODE_NOENT) | cf26a87a6f249091d1b4e39d90b027e0ab688d45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/cf26a87a6f249091d1b4e39d90b027e0ab688d45/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
4628,
12,
2890,
4672,
756,
67,
529,
273,
365,
18,
7066,
18,
12271,
18948,
12,
2890,
18,
556,
18,
2159,
67,
529,
13,
309,
756,
67,
529,
353,
599,
30,
1002,
1334,
18,
3817,
2050,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4628,
12,
2890,
4672,
756,
67,
529,
273,
365,
18,
7066,
18,
12271,
18948,
12,
2890,
18,
556,
18,
2159,
67,
529,
13,
309,
756,
67,
529,
353,
599,
30,
1002,
1334,
18,
3817,
2050,... |
sys.stderr.write("G3 f2py support is not implemented, yet.\n") | sys.stderr.write("G3 f2py support is not implemented, yet.\\n") | def generate_f2py_py(build_dir): f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] if f2py_exe[-4:]=='.exe': f2py_exe = f2py_exe[:-4] + '.py' if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': f2py_exe = f2py_exe + '.py' target = os.path.join(build_dir,f2py_exe) if newer(__file__,target): log.info('Creatin... | 34667890e3927d79c5b716de9ecb17480198d9c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/34667890e3927d79c5b716de9ecb17480198d9c1/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
74,
22,
2074,
67,
2074,
12,
3510,
67,
1214,
4672,
284,
22,
2074,
67,
14880,
273,
296,
74,
22,
2074,
11,
15,
538,
18,
803,
18,
13909,
12,
9499,
18,
17751,
25146,
26,
26894,
... |
if isinstance(vals.get('parent.currency'), (int, long)): | if isinstance(vals.get('_parent_purchase.currency'), (int, long)): | def on_change_with_amount(self, cursor, user, ids, vals, context=None): currency_obj = self.pool.get('currency.currency') if vals.get('type') == 'line': if isinstance(vals.get('parent.currency'), (int, long)): currency = currency_obj.browse(cursor, user, vals['parent.currency'], context=context) else: currency = vals['... | 8fc447b5740912d57c3802d1347c8d34692aeece /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9276/8fc447b5740912d57c3802d1347c8d34692aeece/purchase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3427,
67,
1918,
67,
8949,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
5462,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7095,
18,
7095,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3427,
67,
1918,
67,
8949,
12,
2890,
16,
3347,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
5462,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
7095,
18,
7095,
6134,
... |
def post_traversal(expr, stack=None): input = [[expr]] while input: e = input.pop() if isinstance(e, Terminal): yield e else: input.extend(e.operands()) | def post_traversal(expr, stack=None): input = [[expr]] while input: e = input.pop() if isinstance(e, Terminal): yield e else: input.extend(e.operands()) | 43045df799d96667c9374a8bf3bc3690e0649334 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/624/43045df799d96667c9374a8bf3bc3690e0649334/traversal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
31750,
287,
12,
8638,
16,
2110,
33,
7036,
4672,
810,
273,
12167,
8638,
13563,
1323,
810,
30,
425,
273,
810,
18,
5120,
1435,
309,
1549,
12,
73,
16,
18778,
4672,
2824,
425,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
67,
31750,
287,
12,
8638,
16,
2110,
33,
7036,
4672,
810,
273,
12167,
8638,
13563,
1323,
810,
30,
425,
273,
810,
18,
5120,
1435,
309,
1549,
12,
73,
16,
18778,
4672,
2824,
425,
469... | |
print "%s (%d @%d)" % (self.absPath, count, offset) | def read(self, offset, count): if not self.openedFile: self.open() | a6db7b2f100a395db813362d5cae8366598fa7f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/a6db7b2f100a395db813362d5cae8366598fa7f5/spreadfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1384,
16,
1056,
4672,
309,
486,
365,
18,
25304,
812,
30,
365,
18,
3190,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
1384,
16,
1056,
4672,
309,
486,
365,
18,
25304,
812,
30,
365,
18,
3190,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
class AppTestRangeImplementation(AppTestRangeListObject): | class AppTestRangeImplementation(test_rangeobject.AppTestRangeListObject): | def test_strlist_append(self): l = [] l.append("a") assert self.impl_used(l, "StrListImplementation") l.extend(["b", "c", "d"]) l += ["e", "f"] assert l == ["a", "b", "c", "d", "e", "f"] assert self.impl_used(l, "StrListImplementation") | 792dd47f1d2c923a58b6b21fc0b7c08bae45e52f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/792dd47f1d2c923a58b6b21fc0b7c08bae45e52f/test_listmultiobject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
1098,
67,
6923,
12,
2890,
4672,
328,
273,
5378,
328,
18,
6923,
2932,
69,
7923,
1815,
365,
18,
11299,
67,
3668,
12,
80,
16,
315,
1585,
682,
13621,
7923,
328,
18,
14313,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
1098,
67,
6923,
12,
2890,
4672,
328,
273,
5378,
328,
18,
6923,
2932,
69,
7923,
1815,
365,
18,
11299,
67,
3668,
12,
80,
16,
315,
1585,
682,
13621,
7923,
328,
18,
14313,
... |
If the "algorithm" directive's value is "MD5-sess", then A1 | If the "algorithm" directive's value is "MD5-sess", then A1 | def md5SessionKey (params, password): """ If the "algorithm" directive's value is "MD5-sess", then A1 [the session key] is calculated only once - on the first request by the client following receipt of a WWW-Authenticate challenge from the server. This creates a 'session key' for the authentication of subsequent reque... | e298f23781ffb0544bfe11a32ada02c906f1d0ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/e298f23781ffb0544bfe11a32ada02c906f1d0ca/httpauth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3481,
25,
2157,
653,
261,
2010,
16,
2201,
4672,
3536,
971,
326,
315,
12743,
6,
8655,
1807,
460,
353,
315,
6188,
25,
17,
23828,
3113,
1508,
432,
21,
306,
5787,
1339,
498,
65,
353,
8894,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3481,
25,
2157,
653,
261,
2010,
16,
2201,
4672,
3536,
971,
326,
315,
12743,
6,
8655,
1807,
460,
353,
315,
6188,
25,
17,
23828,
3113,
1508,
432,
21,
306,
5787,
1339,
498,
65,
353,
8894,... |
def convert_css_selectors(rules, prefix='//'): | def convert_css_selectors(rules): | def convert_css_selectors(rules, prefix='//'): """Convert css rules to xpath rules element tree in place """ #XXX: There is a :root pseudo-class - http://www.w3.org/TR/css3-selectors/#root-pseudo # We may wish to add support to lxml.cssselect for it some day. for element in rules.xpath("//@*[namespace-uri()='%s']/.." %... | 35d9d586daf60d4e13a4bc23636938f5b9874bd3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12188/35d9d586daf60d4e13a4bc23636938f5b9874bd3/cssrules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
5212,
67,
29829,
12,
7482,
4672,
3536,
2723,
3747,
2931,
358,
6748,
2931,
930,
2151,
316,
3166,
3536,
468,
15639,
30,
6149,
353,
279,
294,
3085,
12454,
17,
1106,
300,
1062,
220... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
5212,
67,
29829,
12,
7482,
4672,
3536,
2723,
3747,
2931,
358,
6748,
2931,
930,
2151,
316,
3166,
3536,
468,
15639,
30,
6149,
353,
279,
294,
3085,
12454,
17,
1106,
300,
1062,
220... |
available. Return '' if no cooked data available otherwise. | available. Return b'' if no cooked data available otherwise. | def read_very_eager(self): """Read everything that's possible without blocking in I/O (eager). | 326ef86b41f6cb43653ace4abaf10445c8f1501c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/326ef86b41f6cb43653ace4abaf10445c8f1501c/telnetlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3242,
67,
73,
6817,
12,
2890,
4672,
3536,
1994,
7756,
716,
1807,
3323,
2887,
9445,
316,
467,
19,
51,
261,
73,
6817,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3242,
67,
73,
6817,
12,
2890,
4672,
3536,
1994,
7756,
716,
1807,
3323,
2887,
9445,
316,
467,
19,
51,
261,
73,
6817,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
IEEEFormatTestCase) | IEEEFormatTestCase, ReprTestCase) | def test_main(): test_support.run_unittest( FormatFunctionsTestCase, UnknownFormatTestCase, IEEEFormatTestCase) | 1723b1904e7dedbbd4986e120953aba9d2abc85a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/1723b1904e7dedbbd4986e120953aba9d2abc85a/test_float.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
4077,
7503,
4709,
2449,
16,
9077,
1630,
4709,
2449,
16,
467,
9383,
41,
1630,
4709,
2449,
16,
868,
683,
4709,
2449,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
4077,
7503,
4709,
2449,
16,
9077,
1630,
4709,
2449,
16,
467,
9383,
41,
1630,
4709,
2449,
16,
868,
683,
4709,
2449,
... |
self.default(line) return | return self.default(line) | def onecmd(self, line): line = string.strip(line) if line == '?': line = 'help' elif line == '!': if hasattr(self, 'do_shell'): line = 'shell' else: self.default(line) return elif not line: self.emptyline() return self.lastcmd = line i, n = 0, len(line) while i < n and line[i] in self.identchars: i = i+1 cmd, arg = lin... | f4b823edf9232b2fd30d15453a0d6d71f99d34f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/f4b823edf9232b2fd30d15453a0d6d71f99d34f0/cmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1245,
4172,
12,
2890,
16,
980,
4672,
980,
273,
533,
18,
6406,
12,
1369,
13,
309,
980,
422,
13023,
4278,
980,
273,
296,
5201,
11,
1327,
980,
422,
11817,
4278,
309,
3859,
12,
2890,
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,
1245,
4172,
12,
2890,
16,
980,
4672,
980,
273,
533,
18,
6406,
12,
1369,
13,
309,
980,
422,
13023,
4278,
980,
273,
296,
5201,
11,
1327,
980,
422,
11817,
4278,
309,
3859,
12,
2890,
16,
... |
if converter: feed = self.GetFeed(uri, converter=converter) else: feed = self.GetFeed(uri) | try: if converter: feed = self.GetFeed(uri, converter=converter) else: feed = self.GetFeed(uri) except gdata.service.RequestError, err: print 'Failed to get entries: ' + str(err) return [] | def get_entries(self, uri, title=None, converter=None): """Get a list of entries from a feed uri. Keyword arguments: uri: URI to get the feed from. title: String to use when looking for entries to return. Will be compared to entry.title.text, using regular expressions if self.use_regex. (Default None for all entries f... | e90816bffbec50eef76976a3644ed2fd7dc050b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/e90816bffbec50eef76976a3644ed2fd7dc050b4/service.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8219,
12,
2890,
16,
2003,
16,
2077,
33,
7036,
16,
6027,
33,
7036,
4672,
3536,
967,
279,
666,
434,
3222,
628,
279,
4746,
2003,
18,
225,
18317,
1775,
30,
2003,
30,
3699,
358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8219,
12,
2890,
16,
2003,
16,
2077,
33,
7036,
16,
6027,
33,
7036,
4672,
3536,
967,
279,
666,
434,
3222,
628,
279,
4746,
2003,
18,
225,
18317,
1775,
30,
2003,
30,
3699,
358,
... |
print 'Unpacking test copies' | logging.info('Unpacking test copies') | def run_once(self): """ Represents a single iteration of the process. Uncompresses a previously calculated number of copies of the linux kernel, sequentially or in parallel, and then compares the tree with a base tree, that was uncompressed on the very beginning. """ | 2430f4e85f0de621aac81e66c6a2f6e4f7fdce3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10349/2430f4e85f0de621aac81e66c6a2f6e4f7fdce3d/dma_memtest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
8243,
12,
2890,
4672,
3536,
868,
6706,
87,
279,
2202,
6532,
434,
326,
1207,
18,
1351,
14706,
281,
279,
7243,
8894,
1300,
434,
13200,
434,
326,
19725,
5536,
16,
695,
6979,
6261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8243,
12,
2890,
4672,
3536,
868,
6706,
87,
279,
2202,
6532,
434,
326,
1207,
18,
1351,
14706,
281,
279,
7243,
8894,
1300,
434,
13200,
434,
326,
19725,
5536,
16,
695,
6979,
6261,... |
A->A B->B C->C D->G E->E F->F G->G H->H I->I J->J K->K L->L M->M | A->A B->B C->C D->G E->E F->F G->G H->H I->I J->J K->K L->L M->M | ... def __str__(self): | c420b2f3ee1dbda2ca7a4fb81db1558b2d896f22 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/c420b2f3ee1dbda2ca7a4fb81db1558b2d896f22/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
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,
... | [
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,
1372,
377,
1652,
1001,
701,
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... |
elif len(stack[-1].childNodes[0].data) == 1: escp = stack[-1].childNodes[0].data | elif len(escp) == 1: | def _colorize(doc, token, errors, warnings=None, tagName='para'): """ Given a string containing the contents of a paragraph, produce a DOM C{Element} encoding that paragraph. Colorized regions are represented using DOM C{Element}s, and text is represented using DOM C{Text}s. @param errors: A list of errors. Any newl... | 69baddf654f0154a0e1fd114433821b807fcb3de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/69baddf654f0154a0e1fd114433821b807fcb3de/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3266,
554,
12,
2434,
16,
1147,
16,
1334,
16,
5599,
33,
7036,
16,
7196,
2218,
25072,
11,
4672,
3536,
16803,
279,
533,
4191,
326,
2939,
434,
279,
10190,
16,
11402,
279,
4703,
385,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3266,
554,
12,
2434,
16,
1147,
16,
1334,
16,
5599,
33,
7036,
16,
7196,
2218,
25072,
11,
4672,
3536,
16803,
279,
533,
4191,
326,
2939,
434,
279,
10190,
16,
11402,
279,
4703,
385,
9... |
coincmap.table_name = ilwd.ILWDTableName(event.event_id) | coincmap.table_name = ilwd.ILWDTableName(event.coinc_event_id) | def add_sim_burst_coinc_coinc(contents, process, sim, coinc_events): """ Create a coinc_event in the coinc table, and add arcs in the coinc_event_map table linking the sim_burst row and the list of coinc_event rows to the new coinc_event row. """ coinc = contents.new_coinc(process, contents.sc_coinc_def_id) coinc.neven... | 1377095131393f3180344954fdec2c90ffda0538 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/1377095131393f3180344954fdec2c90ffda0538/ligolw_binjfind.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9812,
67,
70,
18593,
67,
12645,
71,
67,
12645,
71,
12,
3980,
16,
1207,
16,
3142,
16,
13170,
71,
67,
5989,
4672,
3536,
1788,
279,
13170,
71,
67,
2575,
316,
326,
13170,
71,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
9812,
67,
70,
18593,
67,
12645,
71,
67,
12645,
71,
12,
3980,
16,
1207,
16,
3142,
16,
13170,
71,
67,
5989,
4672,
3536,
1788,
279,
13170,
71,
67,
2575,
316,
326,
13170,
71,
10... |
if string.find(greetline, "Netscape IMAP4rev1 Service 3.6") > 0: warnings = warnings + """ This server violates the RFC2060 requirement that a BODY[TEXT] fetch should set the messages's Seen flag. As a result, if you use the keep option the same messages will be downloaded over and over. """ | def autoprobe(self): | 0dcaf23e529b3c639d91653e51270ae6a96b2f98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3182/0dcaf23e529b3c639d91653e51270ae6a96b2f98/fetchmailconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
556,
303,
2196,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2059,
556,
303,
2196,
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,
-10... | |
pass return '?' | if not self.lseen: if not self.rseen: return '0' else: return 'N' else: if not self.rseen: return '?' if self.lsum == self.rsum: return 'c' else: return 'C' else: if not self.lseen: if self.eremoved: if self.rseen: return 'R' else: return 'r' else: if self.rseen: print "warning:", print self.file, print "was lost" ret... | def action(self): """Return a code indicating the update status of this file. | a945404a50aa892b1e623924015479199d71dc52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a945404a50aa892b1e623924015479199d71dc52/rcvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
4672,
3536,
990,
279,
981,
11193,
326,
1089,
1267,
434,
333,
585,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
4672,
3536,
990,
279,
981,
11193,
326,
1089,
1267,
434,
333,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.body.append(node.astext()) | self.body.append(node.astext() + "\n") | def visit_raw(self, node): if node.get('format') == 'manpage': self.body.append(node.astext()) # Keep non-manpage raw text out of output: raise nodes.SkipNode | 696f3c1373319c96d914817fc3a3d034e402c5ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/696f3c1373319c96d914817fc3a3d034e402c5ce/manpage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
756,
18,
588,
2668,
2139,
6134,
422,
296,
4728,
2433,
4278,
365,
18,
3432,
18,
6923,
12,
2159,
18,
689,
408,
1435,
397,
1548,
82,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1899,
12,
2890,
16,
756,
4672,
309,
756,
18,
588,
2668,
2139,
6134,
422,
296,
4728,
2433,
4278,
365,
18,
3432,
18,
6923,
12,
2159,
18,
689,
408,
1435,
397,
1548,
82,
7923,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.