rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
sequencelengths 256
256
| attention_mask
sequencelengths 256
256
| labels
sequencelengths 128
128
|
---|---|---|---|---|---|---|
print "precision problem for %s, %dd, %dk, need fixing" % (mode, d, k) | print "precision problem for %s, %dd, %dk, test need fixing" % (mode, d, k) | def _test_common(self, d, k, mode): dic = load_dataset('%s_%dd_%dk.mat' % (mode, d, k)) | 76afc91d8ddf202146c1cc1b22949de3110c98d0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/76afc91d8ddf202146c1cc1b22949de3110c98d0/test_gmm_em.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
6054,
12,
2890,
16,
302,
16,
417,
16,
1965,
4672,
11681,
273,
1262,
67,
8682,
29909,
87,
10185,
449,
10185,
2883,
18,
7373,
11,
738,
261,
3188,
16,
302,
16,
417,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.respond("150 %s" %resp) | self.respond("150 FILE: %s" %resp) | def ftp_STOU(self, line): "store a file with a unique name" # note: RFC 959 prohibited STOU parameters, but this prohibition is obsolete. # note2: RFC 959 wants ftpd to respond with code 250 but I've seen a # lot of FTP servers responding with 125 or 150, and this is a better choice, imho, # because STOU works just like STOR. | 6ea4c256591c49c89bfcade357edbebf2ac0a674 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/6ea4c256591c49c89bfcade357edbebf2ac0a674/FTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
315,
2233,
279,
585,
598,
279,
3089,
508,
6,
468,
4721,
30,
8372,
2468,
6162,
450,
29993,
2347,
26556,
1472,
16,
1496,
333,
450,
15769,
608,
353,
27191,
18,
468,
4721,
22,
30,
8372,
2468,
6162,
14805,
13487,
72,
358,
6846,
598,
981,
16927,
1496,
467,
8081,
5881,
279,
468,
17417,
434,
19324,
7084,
6846,
310,
598,
30616,
578,
18478,
16,
471,
333,
353,
279,
7844,
6023,
16,
709,
15008,
16,
468,
2724,
2347,
26556,
6330,
2537,
3007,
2347,
916,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
13487,
67,
882,
26556,
12,
2890,
16,
980,
4672,
315,
2233,
279,
585,
598,
279,
3089,
508,
6,
468,
4721,
30,
8372,
2468,
6162,
450,
29993,
2347,
26556,
1472,
16,
1496,
333,
450,
15769,
608,
353,
27191,
18,
468,
4721,
22,
30,
8372,
2468,
6162,
14805,
13487,
72,
358,
6846,
598,
981,
16927,
1496,
467,
8081,
5881,
279,
468,
17417,
434,
19324,
7084,
6846,
310,
598,
30616,
578,
18478,
16,
471,
333,
353,
279,
7844,
6023,
16,
709,
15008,
16,
468,
2724,
2347,
26556,
6330,
2537,
3007,
2347,
916,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
line['account_id'] = line['account_id'] and line['account_id'][0] line['product_id'] = line['product_id'] and line['product_id'][0] line['uos_id'] = line['uos_id'] and line['uos_id'][0] line['invoice_line_tax_id'] = [(6,0, line.get('invoice_line_tax_id', [])) ] | if 'account_id' in line: line['account_id'] = line.get('account_id', False) and line['account_id'][0] if 'product_id' in line: line['product_id'] = line.get('product_id', False) and line['product_id'][0] if 'uos_id' in line: line['uos_id'] = line.get('uos_id', False) and line['uos_id'][0] if 'invoice_line_tax_id' in line: line['invoice_line_tax_id'] = [(6,0, line.get('invoice_line_tax_id', [])) ] | def cleanup_lines(lines): for line in lines: del line['id'] del line['invoice_id'] line['account_id'] = line['account_id'] and line['account_id'][0] line['product_id'] = line['product_id'] and line['product_id'][0] line['uos_id'] = line['uos_id'] and line['uos_id'][0] line['invoice_line_tax_id'] = [(6,0, line.get('invoice_line_tax_id', [])) ] return map(lambda x: (0,0,x), lines) | 570538f86090ba30a80bf48e0f311c9c2b35a7bc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/570538f86090ba30a80bf48e0f311c9c2b35a7bc/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
67,
3548,
12,
3548,
4672,
364,
980,
316,
2362,
30,
1464,
980,
3292,
350,
3546,
1464,
980,
3292,
16119,
67,
350,
3546,
309,
296,
4631,
67,
350,
11,
316,
980,
30,
980,
3292,
4631,
67,
350,
3546,
273,
980,
18,
588,
2668,
4631,
67,
350,
2187,
1083,
13,
471,
980,
3292,
4631,
67,
350,
3546,
63,
20,
65,
309,
296,
5896,
67,
350,
11,
316,
980,
30,
980,
3292,
5896,
67,
350,
3546,
273,
980,
18,
588,
2668,
5896,
67,
350,
2187,
1083,
13,
471,
980,
3292,
5896,
67,
350,
3546,
63,
20,
65,
309,
296,
89,
538,
67,
350,
11,
316,
980,
30,
980,
3292,
89,
538,
67,
350,
3546,
273,
980,
18,
588,
2668,
89,
538,
67,
350,
2187,
1083,
13,
471,
980,
3292,
89,
538,
67,
350,
3546,
63,
20,
65,
309,
296,
16119,
67,
1369,
67,
8066,
67,
350,
11,
316,
980,
30,
980,
3292,
16119,
67,
1369,
67,
8066,
67,
350,
3546,
273,
306,
12,
26,
16,
20,
16,
980,
18,
588,
2668,
16119,
67,
1369,
67,
8066,
67,
350,
2187,
5378,
3719,
308,
327,
852,
12,
14661,
619,
30,
261,
20,
16,
20,
16,
92,
3631,
2362,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6686,
67,
3548,
12,
3548,
4672,
364,
980,
316,
2362,
30,
1464,
980,
3292,
350,
3546,
1464,
980,
3292,
16119,
67,
350,
3546,
309,
296,
4631,
67,
350,
11,
316,
980,
30,
980,
3292,
4631,
67,
350,
3546,
273,
980,
18,
588,
2668,
4631,
67,
350,
2187,
1083,
13,
471,
980,
3292,
4631,
67,
350,
3546,
63,
20,
65,
309,
296,
5896,
67,
350,
11,
316,
980,
30,
980,
3292,
5896,
67,
350,
3546,
273,
980,
18,
588,
2668,
5896,
67,
350,
2187,
1083,
13,
471,
980,
3292,
5896,
67,
350,
3546,
63,
20,
65,
309,
296,
89,
538,
67,
350,
11,
316,
980,
30,
980,
3292,
89,
538,
67,
350,
3546,
273,
980,
18,
588,
2668,
89,
2
] |
if not self.credential.isValid('00:30'): logger.warning('GRID proxy not valid.') | if not self.credential.isValid('01:00'): logger.warning('GRID proxy lifetime shorter than 1 hour') | def native_master_cancel(self,jobids): '''Native bulk cancellation supported by GLITE middleware.''' | 2894819cc9fb319a887e52d7bcf90bfd04bd02b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1488/2894819cc9fb319a887e52d7bcf90bfd04bd02b0/Grid.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6448,
67,
7525,
67,
10996,
12,
2890,
16,
4688,
2232,
4672,
9163,
9220,
8280,
7272,
3260,
635,
10252,
5398,
5827,
1093,
6309,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print id, type, name, size, hex(attrs) | if DEBUG: print id, type, name, size, hex(attrs) | def copyres(input, output): ctor = None UseResFile(input) ntypes = Count1Types() for itype in range(1, 1+ntypes): type = Get1IndType(itype) nresources = Count1Resources(type) for ires in range(1, 1+nresources): res = Get1IndResource(type, ires) id, type, name = res.GetResInfo() lcname = string.lower(name) if (type, lcname) == (RESTYPE, RESNAME): continue # Don't copy __main__ from template if lcname == OWNERNAME: ctor = type size = res.size attrs = res.GetResAttrs() print id, type, name, size, hex(attrs) res.LoadResource() res.DetachResource() UseResFile(output) try: res2 = Get1Resource(type, id) except MacOS.Error: res2 = None if res2: print "Overwriting..." res2.RemoveResource() res.AddResource(type, id, name) res.WriteResource() attrs = attrs | res.GetResAttrs() print "New attrs =", hex(attrs) res.SetResAttrs(attrs) UseResFile(input) return ctor | 61c70e63ab82b74b8dadfc71296290b2c75eefdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/61c70e63ab82b74b8dadfc71296290b2c75eefdf/BuildApplet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
455,
12,
2630,
16,
876,
4672,
15120,
273,
599,
2672,
607,
812,
12,
2630,
13,
290,
2352,
273,
6974,
21,
2016,
1435,
364,
518,
388,
316,
1048,
12,
21,
16,
404,
15,
496,
989,
4672,
618,
273,
968,
21,
3866,
559,
12,
305,
388,
13,
290,
4683,
273,
6974,
21,
3805,
12,
723,
13,
364,
277,
455,
316,
1048,
12,
21,
16,
404,
15,
82,
4683,
4672,
400,
273,
968,
21,
3866,
1420,
12,
723,
16,
277,
455,
13,
612,
16,
618,
16,
508,
273,
400,
18,
967,
607,
966,
1435,
9109,
529,
273,
533,
18,
8167,
12,
529,
13,
309,
261,
723,
16,
9109,
529,
13,
422,
261,
12030,
1738,
16,
12915,
1985,
4672,
1324,
468,
7615,
1404,
1610,
1001,
5254,
972,
628,
1542,
309,
9109,
529,
422,
531,
22527,
1985,
30,
15120,
273,
618,
963,
273,
400,
18,
1467,
3422,
273,
400,
18,
967,
607,
8262,
1435,
309,
6369,
30,
1172,
612,
16,
618,
16,
508,
16,
963,
16,
3827,
12,
7039,
13,
400,
18,
2563,
1420,
1435,
400,
18,
17650,
1420,
1435,
2672,
607,
812,
12,
2844,
13,
775,
30,
400,
22,
273,
968,
21,
1420,
12,
723,
16,
612,
13,
1335,
13217,
4618,
18,
668,
30,
400,
22,
273,
599,
309,
400,
22,
30,
1172,
315,
4851,
14345,
7070,
400,
22,
18,
3288,
1420,
1435,
400,
18,
986,
1420,
12,
723,
16,
612,
16,
508,
13,
400,
18,
3067,
1420,
1435,
3422,
273,
3422,
571,
400,
18,
967,
607,
8262,
1435,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
455,
12,
2630,
16,
876,
4672,
15120,
273,
599,
2672,
607,
812,
12,
2630,
13,
290,
2352,
273,
6974,
21,
2016,
1435,
364,
518,
388,
316,
1048,
12,
21,
16,
404,
15,
496,
989,
4672,
618,
273,
968,
21,
3866,
559,
12,
305,
388,
13,
290,
4683,
273,
6974,
21,
3805,
12,
723,
13,
364,
277,
455,
316,
1048,
12,
21,
16,
404,
15,
82,
4683,
4672,
400,
273,
968,
21,
3866,
1420,
12,
723,
16,
277,
455,
13,
612,
16,
618,
16,
508,
273,
400,
18,
967,
607,
966,
1435,
9109,
529,
273,
533,
18,
8167,
12,
529,
13,
309,
261,
723,
16,
9109,
529,
13,
422,
261,
12030,
1738,
16,
12915,
1985,
4672,
1324,
468,
2
] |
hourdate = datetime.combine(dummyDate, time(hour)) | timedate = time(hour=hour, tzinfo=defaultTzinfo) hourdate = datetime.combine(dummyDate, timedate) | def GetLocaleHourStrings(hourrange): """ use PyICU to format the hour, because some locales use a 24 hour clock """ timeFormatter = DateFormat.createTimeInstance() hourFP = FieldPosition(DateFormat.HOUR1_FIELD) dummyDate = date.today() for hour in hourrange: hourdate = datetime.combine(dummyDate, time(hour)) timeString = timeFormatter.format(hourdate, hourFP) (start, end) = (hourFP.getBeginIndex(),hourFP.getEndIndex()) hourString = str(timeString)[start:end] yield hour, hourString | d69d62b4d7b5b44421f92098358b81f41a87f089 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d69d62b4d7b5b44421f92098358b81f41a87f089/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3916,
13433,
7957,
12,
12091,
3676,
4672,
3536,
999,
4707,
2871,
57,
358,
740,
326,
6126,
16,
2724,
2690,
6922,
999,
279,
4248,
6126,
7268,
3536,
813,
5074,
273,
18371,
18,
2640,
950,
1442,
1435,
6126,
30246,
273,
2286,
2555,
12,
11878,
18,
21372,
21,
67,
6776,
13,
9609,
1626,
273,
1509,
18,
30064,
1435,
225,
364,
6126,
316,
6126,
3676,
30,
7491,
340,
273,
813,
12,
12091,
33,
12091,
16,
15732,
33,
1886,
56,
94,
1376,
13,
6126,
712,
273,
3314,
18,
14082,
12,
21050,
1626,
16,
7491,
340,
13,
813,
780,
273,
813,
5074,
18,
2139,
12,
12091,
712,
16,
6126,
30246,
13,
261,
1937,
16,
679,
13,
273,
261,
12091,
30246,
18,
588,
8149,
1016,
9334,
12091,
30246,
18,
588,
24152,
10756,
6126,
780,
273,
609,
12,
957,
780,
25146,
1937,
30,
409,
65,
2824,
6126,
16,
6126,
780,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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555,
12,
11878,
18,
21372,
21,
67,
6776,
13,
9609,
1626,
273,
1509,
18,
30064,
1435,
225,
364,
6126,
316,
6126,
3676,
30,
7491,
340,
273,
813,
12,
12091,
33,
12091,
16,
15732,
33,
1886,
56,
94,
1376,
13,
6126,
712,
273,
3314,
18,
14082,
12,
21050,
1626,
16,
7491,
340,
13,
813,
780,
273,
813,
5074,
18,
2139,
12,
12091,
712,
16,
6126,
30246,
13,
261,
1937,
16,
679,
13,
273,
261,
12091,
30246,
18,
588,
8149,
2
] |
name=string.strip(name) if len(name)==0: name = socket.gethostname() try: name = socket.gethostbyaddr(name)[0] except socket.error: pass self.putcmd("ehlo",name) | self.putcmd("ehlo", _get_fqdn_hostname(name)) | def ehlo(self, name=''): """ SMTP 'ehlo' command. Hostname to send for this command defaults to the FQDN of the local host. """ name=string.strip(name) if len(name)==0: name = socket.gethostname() try: name = socket.gethostbyaddr(name)[0] except socket.error: pass self.putcmd("ehlo",name) (code,msg)=self.getreply() # According to RFC1869 some (badly written) # MTA's will disconnect on an ehlo. Toss an exception if # that happens -ddm if code == -1 and len(msg) == 0: raise SMTPServerDisconnected("Server not connected") self.ehlo_resp=msg if code<>250: return (code,msg) self.does_esmtp=1 #parse the ehlo response -ddm resp=string.split(self.ehlo_resp,'\n') del resp[0] for each in resp: m=re.match(r'(?P<feature>[A-Za-z0-9][A-Za-z0-9\-]*)',each) if m: feature=string.lower(m.group("feature")) params=string.strip(m.string[m.end("feature"):]) self.esmtp_features[feature]=params return (code,msg) | 7baf72fe4c119e32e58bb5dd7356a68ce800b2f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7baf72fe4c119e32e58bb5dd7356a68ce800b2f7/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
3536,
365,
18,
458,
4172,
2932,
73,
76,
383,
3113,
389,
588,
67,
19206,
5176,
67,
10358,
12,
529,
3719,
261,
710,
16,
3576,
13,
33,
2890,
18,
588,
10629,
1435,
468,
12848,
4643,
358,
8372,
2643,
8148,
2690,
261,
8759,
715,
5941,
13,
468,
490,
9833,
1807,
903,
9479,
603,
392,
20124,
383,
18,
399,
8464,
392,
1520,
309,
468,
716,
10555,
300,
449,
81,
309,
981,
422,
300,
21,
471,
562,
12,
3576,
13,
422,
374,
30,
1002,
18102,
2081,
26303,
2932,
2081,
486,
5840,
7923,
365,
18,
73,
76,
383,
67,
12243,
33,
3576,
309,
981,
29667,
26520,
30,
327,
261,
710,
16,
3576,
13,
365,
18,
20657,
67,
281,
11091,
33,
21,
468,
2670,
326,
20124,
383,
766,
300,
449,
81,
1718,
33,
1080,
18,
4939,
12,
2890,
18,
73,
76,
383,
67,
12243,
16,
8314,
82,
6134,
1464,
1718,
63,
20,
65,
364,
1517,
316,
1718,
30,
312,
33,
266,
18,
1916,
12,
86,
11,
3680,
52,
32,
7238,
23224,
37,
17,
15948,
17,
94,
20,
17,
29,
6362,
37,
17,
15948,
17,
94,
20,
17,
29,
12907,
15471,
2187,
13798,
13,
309,
312,
30,
2572,
33,
1080,
18,
8167,
12,
81,
18,
1655,
2932,
7238,
6,
3719,
859,
33,
1080,
18,
6406,
12,
81,
18,
1080,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20124,
383,
12,
2890,
16,
508,
2218,
11,
4672,
3536,
18102,
296,
73,
76,
383,
11,
1296,
18,
17423,
358,
1366,
364,
333,
1296,
3467,
358,
326,
23127,
8609,
434,
326,
1191,
1479,
18,
3536,
365,
18,
458,
4172,
2932,
73,
76,
383,
3113,
389,
588,
67,
19206,
5176,
67,
10358,
12,
529,
3719,
261,
710,
16,
3576,
13,
33,
2890,
18,
588,
10629,
1435,
468,
12848,
4643,
358,
8372,
2643,
8148,
2690,
261,
8759,
715,
5941,
13,
468,
490,
9833,
1807,
903,
9479,
603,
392,
20124,
383,
18,
399,
8464,
392,
1520,
309,
468,
716,
10555,
300,
449,
81,
309,
981,
422,
300,
21,
471,
562,
12,
3576,
13,
422,
374,
30,
1002,
18102,
2081,
26303,
2932,
2
] |
def getClassVariantsFromTree(node, console): classvariants = set([]) variants = treeutil.findVariablePrefix(node, "qx.core.Variant") for variant in variants: if not variant.hasParentContext("call/operand"): continue variantMethod = treeutil.selectNode(variant, "identifier[4]/@name") if variantMethod not in ["select", "isSet", "compilerIsSet"]: continue firstParam = treeutil.selectNode(variant, "../../params/1") if firstParam and treeutil.isStringLiteral(firstParam): classvariants.add(firstParam.get("value")) else: console.warn("! qx.core.Variant call without literal argument") return classvariants def getClassVariants(fileId, filePath, treeLoader, cache, console, generate=True): cacheId = "class-%s" % (filePath,) classinfo, _ = cache.readmulti(cacheId, filePath) classvariants = None if classinfo == None or 'svariants' not in classinfo: if generate: tree = treeLoader.getTree(fileId, {}) classvariants = getClassVariantsFromTree(tree, console) if classinfo == None: classinfo = {} classinfo['svariants'] = classvariants cache.writemulti(cacheId, classinfo) else: classvariants = classinfo['svariants'] return classvariants | def projectClassVariantsToCurrent(classVariants, variantSet): res = {} for key in variantSet: if key in classVariants: res[key] = variantSet[key] return res | d17bc4ee70a82a11f3064c1370149d5708b2059a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/d17bc4ee70a82a11f3064c1370149d5708b2059a/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
797,
21165,
774,
3935,
12,
1106,
21165,
16,
5437,
694,
4672,
400,
273,
2618,
364,
498,
316,
5437,
694,
30,
309,
498,
316,
667,
21165,
30,
400,
63,
856,
65,
273,
5437,
694,
63,
856,
65,
327,
400,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
797,
21165,
774,
3935,
12,
1106,
21165,
16,
5437,
694,
4672,
400,
273,
2618,
364,
498,
316,
5437,
694,
30,
309,
498,
316,
667,
21165,
30,
400,
63,
856,
65,
273,
5437,
694,
63,
856,
65,
327,
400,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
oper = block.operations[operindex] msg.append(str(oper)) | if operindex is not None: oper = block.operations[operindex] msg.append(str(oper)) else: msg.append("at the start of the block with input arguments:") for v in block.inputargs: s_v = annotator.binding(v, "(no annotation)") msg.append("%8s: %s" % (v, s_v)) | def format_someobject_error(annotator, position_key, what, s_value, called_from_graph, binding=""): #block = getattr(annotator, 'flowin_block', None) or block msg = ["annotation of %r degenerated to SomeObject()" % (what,)] if position_key is not None: graph, block, operindex = position_key oper = block.operations[operindex] msg.append(str(oper)) msg.append('') msg += source_lines(graph, block, operindex, long=True) if called_from_graph is not None: msg.append(".. called from %r" % (called_from_graph,)) if s_value.origin is not None: msg.append(".. SomeObject() origin: %s" % ( annotator.whereami(s_value.origin),)) msg.append("Previous annotation:") msg.append(" " + str(binding)) return "\n".join(msg) | 99a4051e1b079a1346a68ac8caa3ace508faecb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/99a4051e1b079a1346a68ac8caa3ace508faecb3/error.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
19068,
1612,
67,
1636,
12,
18338,
639,
16,
1754,
67,
856,
16,
4121,
16,
272,
67,
1132,
16,
2566,
67,
2080,
67,
4660,
16,
5085,
1546,
6,
4672,
468,
2629,
273,
3869,
12,
18338,
639,
16,
296,
2426,
267,
67,
2629,
2187,
599,
13,
578,
1203,
1234,
273,
8247,
11495,
434,
738,
86,
443,
11168,
358,
10548,
921,
10031,
738,
261,
23770,
16,
25887,
309,
1754,
67,
856,
353,
486,
599,
30,
2667,
16,
1203,
16,
2255,
1615,
273,
1754,
67,
856,
309,
2255,
1615,
353,
486,
599,
30,
2255,
273,
1203,
18,
17542,
63,
4063,
1615,
65,
1234,
18,
6923,
12,
701,
12,
4063,
3719,
469,
30,
1234,
18,
6923,
2932,
270,
326,
787,
434,
326,
1203,
598,
810,
1775,
2773,
13,
364,
331,
316,
1203,
18,
2630,
1968,
30,
272,
67,
90,
273,
6545,
639,
18,
7374,
12,
90,
16,
7751,
2135,
3204,
2225,
13,
1234,
18,
6923,
27188,
28,
87,
30,
738,
87,
6,
738,
261,
90,
16,
272,
67,
90,
3719,
1234,
18,
6923,
2668,
6134,
1234,
1011,
1084,
67,
3548,
12,
4660,
16,
1203,
16,
2255,
1615,
16,
1525,
33,
5510,
13,
225,
309,
2566,
67,
2080,
67,
4660,
353,
486,
599,
30,
1234,
18,
6923,
2932,
838,
2566,
628,
738,
86,
6,
738,
261,
11777,
67,
2080,
67,
4660,
16,
3719,
309,
272,
67,
1132,
18,
10012,
353,
486,
599,
30,
1234,
18,
6923,
2932,
838,
10548,
921,
1435,
4026,
30,
738,
87,
6,
738,
261,
6545,
639,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
19068,
1612,
67,
1636,
12,
18338,
639,
16,
1754,
67,
856,
16,
4121,
16,
272,
67,
1132,
16,
2566,
67,
2080,
67,
4660,
16,
5085,
1546,
6,
4672,
468,
2629,
273,
3869,
12,
18338,
639,
16,
296,
2426,
267,
67,
2629,
2187,
599,
13,
578,
1203,
1234,
273,
8247,
11495,
434,
738,
86,
443,
11168,
358,
10548,
921,
10031,
738,
261,
23770,
16,
25887,
309,
1754,
67,
856,
353,
486,
599,
30,
2667,
16,
1203,
16,
2255,
1615,
273,
1754,
67,
856,
309,
2255,
1615,
353,
486,
599,
30,
2255,
273,
1203,
18,
17542,
63,
4063,
1615,
65,
1234,
18,
6923,
12,
701,
12,
4063,
3719,
469,
30,
1234,
18,
6923,
2932,
270,
326,
787,
434,
2
] |
else: | elif args in ('', 'disabled'): | def do_repo(self, line): (cmd, args, line) = self.parseline(line) if cmd in ['list', None]: if self.base.repos.repos.values(): self.base.log(2, '%-20.20s %-40.40s status' % ('repo id', 'repo name')) for repo in self.base.repos.repos.values(): if repo in self.base.repos.listEnabled(): self.base.log(2, '%-20.20s %-40.40s enabled' % (repo, repo.name)) else: self.base.log(2, '%-20.20s %-40.40s disabled' % (repo, repo.name)) elif cmd == 'enable': repos = self._shlex_split(args) for repo in repos: try: changed = self.base.repos.enableRepo(repo) except Errors.ConfigError, e: self.base.errorlog(0, e) except Errors.RepoError, e: self.base.errorlog(0, e) else: for repo in changed: try: self.base.doRepoSetup(thisrepo=repo) except Errors.RepoError, e: self.base.errorlog(0, 'Disabling Repository') self.base.repos.disableRepo(repo) return False if hasattr(self.base, 'up'): # reset the updates del self.base.up elif cmd == 'disable': repos = self._shlex_split(args) for repo in repos: try: self.base.repos.disableRepo(repo) except Errors.ConfigError, e: self.base.errorlog(0, e) except Errors.RepoError, e: self.base.errorlog(0, e) | b9d20781cfbcbfbf5431e97fc31a8ee7f39e9551 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5445/b9d20781cfbcbfbf5431e97fc31a8ee7f39e9551/shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7422,
12,
2890,
16,
980,
4672,
261,
4172,
16,
833,
16,
980,
13,
273,
365,
18,
1065,
1786,
558,
12,
1369,
13,
309,
1797,
316,
10228,
1098,
2187,
599,
14542,
309,
365,
18,
1969,
18,
15564,
18,
15564,
18,
2372,
13332,
365,
18,
1969,
18,
1330,
12,
22,
16,
1995,
17,
3462,
18,
3462,
87,
738,
17,
7132,
18,
7132,
87,
225,
1267,
11,
738,
7707,
7422,
612,
2187,
296,
7422,
508,
26112,
364,
3538,
316,
365,
18,
1969,
18,
15564,
18,
15564,
18,
2372,
13332,
309,
3538,
316,
365,
18,
1969,
18,
15564,
18,
1098,
1526,
13332,
365,
18,
1969,
18,
1330,
12,
22,
16,
1995,
17,
3462,
18,
3462,
87,
738,
17,
7132,
18,
7132,
87,
225,
3696,
11,
738,
261,
7422,
16,
3538,
18,
529,
3719,
1327,
833,
316,
7707,
2187,
296,
9278,
11,
4672,
365,
18,
1969,
18,
1330,
12,
22,
16,
1995,
17,
3462,
18,
3462,
87,
738,
17,
7132,
18,
7132,
87,
225,
5673,
11,
738,
261,
7422,
16,
3538,
18,
529,
3719,
225,
1327,
1797,
422,
296,
7589,
4278,
13686,
273,
365,
6315,
674,
4149,
67,
4939,
12,
1968,
13,
364,
3538,
316,
13686,
30,
775,
30,
3550,
273,
365,
18,
1969,
18,
15564,
18,
7589,
8791,
12,
7422,
13,
1335,
9372,
18,
809,
668,
16,
425,
30,
365,
18,
1969,
18,
1636,
1330,
12,
20,
16,
425,
13,
1335,
9372,
18,
8791,
668,
16,
425,
30,
365,
18,
1969,
18,
1636,
1330,
12,
20,
16,
425,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7422,
12,
2890,
16,
980,
4672,
261,
4172,
16,
833,
16,
980,
13,
273,
365,
18,
1065,
1786,
558,
12,
1369,
13,
309,
1797,
316,
10228,
1098,
2187,
599,
14542,
309,
365,
18,
1969,
18,
15564,
18,
15564,
18,
2372,
13332,
365,
18,
1969,
18,
1330,
12,
22,
16,
1995,
17,
3462,
18,
3462,
87,
738,
17,
7132,
18,
7132,
87,
225,
1267,
11,
738,
7707,
7422,
612,
2187,
296,
7422,
508,
26112,
364,
3538,
316,
365,
18,
1969,
18,
15564,
18,
15564,
18,
2372,
13332,
309,
3538,
316,
365,
18,
1969,
18,
15564,
18,
1098,
1526,
13332,
365,
18,
1969,
18,
1330,
12,
22,
16,
1995,
17,
3462,
18,
3462,
87,
738,
17,
7132,
18,
2
] |
id(self._id2ref), | id(self.__dict__), | def __init__(self, name, firstCheckDelay = None): Job.__init__(self, name) self._serialNum = serialNum() self._priority = (Job.Priorities.Low + Job.Priorities.Normal) / 2 self._checkContainersJob = None # run first check after one hour if firstCheckDelay is None: firstCheckDelay = 60. * 15. self._nextCheckDelay = firstCheckDelay self._index2containerName2len = {} self._index2delay = {} # set up our data structures self._id2ref = {} | 88950518abcce43f6828c7e417218c4bdb6988d8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/88950518abcce43f6828c7e417218c4bdb6988d8/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1122,
1564,
6763,
273,
599,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
8818,
2578,
273,
2734,
2578,
1435,
365,
6315,
8457,
273,
261,
2278,
18,
25355,
1961,
18,
10520,
397,
3956,
18,
25355,
1961,
18,
5506,
13,
342,
576,
365,
6315,
1893,
11177,
2278,
273,
599,
468,
1086,
1122,
866,
1839,
1245,
6126,
309,
1122,
1564,
6763,
353,
599,
30,
1122,
1564,
6763,
273,
4752,
18,
380,
4711,
18,
365,
6315,
4285,
1564,
6763,
273,
1122,
1564,
6763,
365,
6315,
1615,
22,
3782,
461,
22,
1897,
273,
2618,
365,
6315,
1615,
22,
10790,
273,
2618,
468,
444,
731,
3134,
501,
12597,
365,
6315,
350,
22,
1734,
273,
2618,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1122,
1564,
6763,
273,
599,
4672,
3956,
16186,
2738,
972,
12,
2890,
16,
508,
13,
365,
6315,
8818,
2578,
273,
2734,
2578,
1435,
365,
6315,
8457,
273,
261,
2278,
18,
25355,
1961,
18,
10520,
397,
3956,
18,
25355,
1961,
18,
5506,
13,
342,
576,
365,
6315,
1893,
11177,
2278,
273,
599,
468,
1086,
1122,
866,
1839,
1245,
6126,
309,
1122,
1564,
6763,
353,
599,
30,
1122,
1564,
6763,
273,
4752,
18,
380,
4711,
18,
365,
6315,
4285,
1564,
6763,
273,
1122,
1564,
6763,
365,
6315,
1615,
22,
3782,
461,
22,
1897,
273,
2618,
365,
6315,
1615,
22,
10790,
273,
2618,
468,
444,
731,
3134,
501,
12597,
365,
6315,
350,
22,
2
] |
def __init__(data = None) | def __init__(data = None): | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 509) else quickfix.StringField.__init__(self, 509, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5908,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5908,
16,
501,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5908,
13,
469,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
1381,
5908,
16,
501,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for qx in qx_in_tango_without_image: | keys = qx_in_tango_without_image.keys() keys.sort() for qx in keys: | def get_html(qx_to_tango_map, qx_not_in_tango, qx_in_tango_without_image, qx_icon_path, tango_icon_path): html = """ <html> <body> %s </body> </html> """ qx_to_tango_table = """ <h2>qooxdoo to Tango mapping</h2> <table> %s </table> """ rows = "" for qx in qx_to_tango_map: tango = qx_to_tango_map[qx] rows += "<tr><td><img src='%s/%s.png'></img>%s</td><td><img src='%s/%s.png'></img>%s</td></tr>\n" % (qx_icon_path, qx, qx, tango_icon_path, tango, tango) qx_to_tango_table = qx_to_tango_table % rows no_tango_icon_table = """ <h2>qoxxdoo images tango equivalent but no tango icon</h2> <table> %s </table> """ rows = "" for qx in qx_in_tango_without_image: rows += "<tr><td><img src='%s/%s.png'></img>%s</td><td>%s</td></tr>\n" % (qx_icon_path, qx, qx, qx_in_tango_without_image[qx]) no_tango_icon_table = no_tango_icon_table % rows no_tango_list = "<h2>qoxxdoo images without tango equivalent</h2>" for qx in qx_not_in_tango: no_tango_list += "<img src='%s/%s.png'></img>%s<br>\n" % (qx_icon_path, qx, qx) return html % (qx_to_tango_table + no_tango_icon_table + no_tango_list) | 2c98d0979abca19a2176c742a4d52a42b9417cdf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5718/2c98d0979abca19a2176c742a4d52a42b9417cdf/fix-names.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2620,
12,
85,
92,
67,
869,
67,
88,
6399,
67,
1458,
16,
1043,
92,
67,
902,
67,
267,
67,
88,
6399,
16,
1043,
92,
67,
267,
67,
88,
6399,
67,
13299,
67,
2730,
16,
1043,
92,
67,
3950,
67,
803,
16,
268,
6399,
67,
3950,
67,
803,
4672,
1729,
273,
3536,
411,
2620,
34,
411,
3432,
34,
738,
87,
7765,
3432,
34,
7765,
2620,
34,
3536,
1043,
92,
67,
869,
67,
88,
6399,
67,
2121,
273,
3536,
411,
76,
22,
34,
85,
83,
2409,
2896,
83,
358,
15284,
2874,
1757,
76,
22,
34,
411,
2121,
34,
738,
87,
7765,
2121,
34,
3536,
2595,
273,
1408,
364,
1043,
92,
316,
1043,
92,
67,
869,
67,
88,
6399,
67,
1458,
30,
268,
6399,
273,
1043,
92,
67,
869,
67,
88,
6399,
67,
1458,
63,
85,
92,
65,
2595,
1011,
3532,
313,
4438,
4465,
4438,
6081,
1705,
28713,
87,
5258,
87,
18,
6446,
11,
4695,
6081,
9822,
87,
1757,
4465,
4438,
4465,
4438,
6081,
1705,
28713,
87,
5258,
87,
18,
6446,
11,
4695,
6081,
9822,
87,
1757,
4465,
4695,
313,
5333,
82,
6,
738,
261,
85,
92,
67,
3950,
67,
803,
16,
1043,
92,
16,
1043,
92,
16,
268,
6399,
67,
3950,
67,
803,
16,
268,
6399,
16,
268,
6399,
13,
1043,
92,
67,
869,
67,
88,
6399,
67,
2121,
273,
1043,
92,
67,
869,
67,
88,
6399,
67,
2121,
738,
2595,
225,
1158,
67,
88,
6399,
67,
3950,
67,
2121,
273,
3536,
411,
76,
22,
34,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2620,
12,
85,
92,
67,
869,
67,
88,
6399,
67,
1458,
16,
1043,
92,
67,
902,
67,
267,
67,
88,
6399,
16,
1043,
92,
67,
267,
67,
88,
6399,
67,
13299,
67,
2730,
16,
1043,
92,
67,
3950,
67,
803,
16,
268,
6399,
67,
3950,
67,
803,
4672,
1729,
273,
3536,
411,
2620,
34,
411,
3432,
34,
738,
87,
7765,
3432,
34,
7765,
2620,
34,
3536,
1043,
92,
67,
869,
67,
88,
6399,
67,
2121,
273,
3536,
411,
76,
22,
34,
85,
83,
2409,
2896,
83,
358,
15284,
2874,
1757,
76,
22,
34,
411,
2121,
34,
738,
87,
7765,
2121,
34,
3536,
2595,
273,
1408,
364,
1043,
92,
316,
1043,
92,
67,
869,
67,
88,
6399,
2
] |
def text(self, id): | def text(self, id=None): | def text(self, id): text_name = id text = model.Material.byName(text_name) # no id or no text by that id if not text: return self.text_index() stats = shakespeare.stats.Stats() c.text = text c.stats = stats.text_stats(text) # 40 seems limit for google data = [ (s.word, s.freq) for s in c.stats[:40] ] try: c.img_url = self.vertical_bar_chart(data) except: # TODO: log error message c.img_url = '' return render('stats/text.html') | d78b505af77788d5d03432507546f621c575df26 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9817/d78b505af77788d5d03432507546f621c575df26/stats.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
977,
12,
2890,
16,
612,
33,
7036,
4672,
977,
67,
529,
273,
612,
977,
273,
938,
18,
11790,
18,
1637,
461,
12,
955,
67,
529,
13,
468,
1158,
612,
578,
1158,
977,
635,
716,
612,
309,
486,
977,
30,
327,
365,
18,
955,
67,
1615,
1435,
3177,
273,
699,
3223,
347,
834,
18,
5296,
18,
4195,
1435,
276,
18,
955,
273,
977,
276,
18,
5296,
273,
3177,
18,
955,
67,
5296,
12,
955,
13,
468,
8063,
12001,
1800,
364,
5200,
501,
273,
306,
261,
87,
18,
1095,
16,
272,
18,
10212,
13,
364,
272,
316,
276,
18,
5296,
10531,
7132,
65,
308,
775,
30,
276,
18,
6081,
67,
718,
273,
365,
18,
17824,
67,
3215,
67,
11563,
12,
892,
13,
1335,
30,
468,
2660,
30,
613,
555,
883,
276,
18,
6081,
67,
718,
273,
875,
327,
1743,
2668,
5296,
19,
955,
18,
2620,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
977,
12,
2890,
16,
612,
33,
7036,
4672,
977,
67,
529,
273,
612,
977,
273,
938,
18,
11790,
18,
1637,
461,
12,
955,
67,
529,
13,
468,
1158,
612,
578,
1158,
977,
635,
716,
612,
309,
486,
977,
30,
327,
365,
18,
955,
67,
1615,
1435,
3177,
273,
699,
3223,
347,
834,
18,
5296,
18,
4195,
1435,
276,
18,
955,
273,
977,
276,
18,
5296,
273,
3177,
18,
955,
67,
5296,
12,
955,
13,
468,
8063,
12001,
1800,
364,
5200,
501,
273,
306,
261,
87,
18,
1095,
16,
272,
18,
10212,
13,
364,
272,
316,
276,
18,
5296,
10531,
7132,
65,
308,
775,
30,
276,
18,
6081,
67,
718,
273,
365,
18,
17824,
67,
3215,
67,
11563,
12,
2
] |
def recordClip(addRecorder, removeRecorder, seconds, name, extension, rate): | def recordClipImpl(addRecorder, removeRecorder, seconds, name, extension, rate): | def recordClip(addRecorder, removeRecorder, seconds, name, extension, rate): # All comments are needed. Do not add blank lines! TIMEOUT = core.declareEventType('TIMEOUT') conn = None def stop(event): removeRecorder(name + extension) conn.disconnect() conn = queuedEventHub.subscribeToType(TIMEOUT, stop) # If no name was given, create one out of the time if name is None: timeStamp = datetime.fromtimestamp(timer.time()) name = timeStamp.strftime("%Y%m%d%H%M%S") # Add the forward recorder addRecorder(name + extension, rate) # Create the timer clipTimer = timerManager.newTimer(TIMEOUT, seconds) clipTimer.start() | 176d20b74d7fee149376822838f92eb4a30de589 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10608/176d20b74d7fee149376822838f92eb4a30de589/shellinit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
15339,
2828,
12,
1289,
10777,
16,
1206,
10777,
16,
3974,
16,
508,
16,
2710,
16,
4993,
4672,
468,
4826,
5678,
854,
3577,
18,
2256,
486,
527,
7052,
2362,
5,
24374,
273,
2922,
18,
29554,
16346,
2668,
9503,
6134,
1487,
273,
599,
1652,
2132,
12,
2575,
4672,
1206,
10777,
12,
529,
397,
2710,
13,
1487,
18,
20177,
1435,
1487,
273,
12234,
1133,
8182,
18,
9174,
31616,
12,
9503,
16,
2132,
13,
468,
971,
1158,
508,
1703,
864,
16,
752,
1245,
596,
434,
326,
813,
309,
508,
353,
599,
30,
18198,
273,
3314,
18,
2080,
5508,
12,
12542,
18,
957,
10756,
508,
273,
18198,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
9,
44,
9,
49,
9,
55,
7923,
468,
1436,
326,
5104,
15766,
527,
10777,
12,
529,
397,
2710,
16,
4993,
13,
468,
1788,
326,
5441,
6807,
6777,
273,
5441,
1318,
18,
2704,
6777,
12,
9503,
16,
3974,
13,
6807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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1409,
15339,
2828,
12,
1289,
10777,
16,
1206,
10777,
16,
3974,
16,
508,
16,
2710,
16,
4993,
4672,
468,
4826,
5678,
854,
3577,
18,
2256,
486,
527,
7052,
2362,
5,
24374,
273,
2922,
18,
29554,
16346,
2668,
9503,
6134,
1487,
273,
599,
1652,
2132,
12,
2575,
4672,
1206,
10777,
12,
529,
397,
2710,
13,
1487,
18,
20177,
1435,
1487,
273,
12234,
1133,
8182,
18,
9174,
31616,
12,
9503,
16,
2132,
13,
468,
971,
1158,
508,
1703,
864,
16,
752,
1245,
596,
434,
326,
813,
309,
508,
353,
599,
30,
18198,
273,
3314,
18,
2080,
5508,
12,
12542,
18,
957,
10756,
508,
273,
18198,
18,
701,
9982,
27188,
61,
9,
81,
9,
72,
9,
44,
9,
49,
9,
55,
2
] |
self.catalogTableName = self.__getTableName( "catalog", "Types" ) | self.catalogTableName = _getTableName( "catalog", "Types" ) | def __init__( self, name = 'Accounting/AccountingDB', maxQueueSize = 10 ): DB.__init__( self, 'AccountingDB', name, maxQueueSize ) self.maxBucketTime = 604800 #1 w self.autoCompact = False self.__doingCompaction = False self.__doingPendingLockTime = 0 self.__deadLockRetries = 2 self.__queuedRecordsLock = ThreadSafe.Synchronizer() self.__queuedRecordsToInsert = [] self.dbCatalog = {} self.dbBucketsLength = {} self.__keysCache = {} maxParallelInsertions = self.getCSOption( "ParallelRecordInsertions", 10 ) self.__threadPool = ThreadPool( 1, maxParallelInsertions ) self.__threadPool.daemonize() self.catalogTableName = self.__getTableName( "catalog", "Types" ) self._createTables( { self.catalogTableName : { 'Fields' : { 'name' : "VARCHAR(64) UNIQUE NOT NULL", 'keyFields' : "VARCHAR(256) NOT NULL", 'valueFields' : "VARCHAR(256) NOT NULL", 'bucketsLength' : "VARCHAR(256) NOT NULL", }, 'PrimaryKey' : 'name' } } ) self.__loadCatalogFromDB() gMonitor.registerActivity( "registeradded", "Register added", "Accounting", "entries", gMonitor.OP_ACUM ) gMonitor.registerActivity( "insertiontime", "Record insertion time", "Accounting", "seconds", gMonitor.OP_MEAN ) gMonitor.registerActivity( "querytime", "Records query time", "Accounting", "seconds", gMonitor.OP_MEAN ) | 5644734dd5f9b2176cf1b7afc4f6ab55941c88f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5644734dd5f9b2176cf1b7afc4f6ab55941c88f0/AccountingDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
365,
16,
508,
273,
296,
3032,
310,
19,
3032,
310,
2290,
2187,
943,
3183,
1225,
273,
1728,
262,
30,
2383,
16186,
2738,
972,
12,
365,
16,
296,
3032,
310,
2290,
2187,
508,
16,
943,
3183,
1225,
262,
365,
18,
1896,
4103,
950,
273,
1666,
3028,
17374,
468,
21,
341,
365,
18,
6079,
16863,
273,
1083,
365,
16186,
2896,
310,
2945,
1128,
273,
1083,
365,
16186,
2896,
310,
8579,
2531,
950,
273,
374,
365,
16186,
22097,
2531,
13656,
273,
576,
365,
16186,
19499,
6499,
2531,
273,
4884,
9890,
18,
19298,
1824,
1435,
365,
16186,
19499,
6499,
774,
4600,
273,
5378,
365,
18,
1966,
9769,
273,
2618,
365,
18,
1966,
14517,
1782,
273,
2618,
365,
16186,
2452,
1649,
273,
2618,
943,
13056,
4600,
1115,
273,
365,
18,
588,
4596,
1895,
12,
315,
13056,
2115,
4600,
1115,
3113,
1728,
262,
365,
16186,
5930,
2864,
273,
27359,
12,
404,
16,
943,
13056,
4600,
1115,
262,
365,
16186,
5930,
2864,
18,
21511,
554,
1435,
365,
18,
7199,
7147,
273,
389,
588,
7147,
12,
315,
7199,
3113,
315,
2016,
6,
262,
365,
6315,
2640,
6905,
12,
288,
365,
18,
7199,
7147,
294,
288,
296,
2314,
11,
294,
288,
296,
529,
11,
294,
315,
7716,
7305,
12,
1105,
13,
26623,
4269,
3206,
3113,
296,
856,
2314,
11,
294,
315,
7716,
7305,
12,
5034,
13,
4269,
3206,
3113,
296,
1132,
2314,
11,
294,
315,
7716,
7305,
12,
5034,
13,
4269,
3206,
3113,
296,
20700,
1782,
11,
294,
315,
7716,
7305,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
365,
16,
508,
273,
296,
3032,
310,
19,
3032,
310,
2290,
2187,
943,
3183,
1225,
273,
1728,
262,
30,
2383,
16186,
2738,
972,
12,
365,
16,
296,
3032,
310,
2290,
2187,
508,
16,
943,
3183,
1225,
262,
365,
18,
1896,
4103,
950,
273,
1666,
3028,
17374,
468,
21,
341,
365,
18,
6079,
16863,
273,
1083,
365,
16186,
2896,
310,
2945,
1128,
273,
1083,
365,
16186,
2896,
310,
8579,
2531,
950,
273,
374,
365,
16186,
22097,
2531,
13656,
273,
576,
365,
16186,
19499,
6499,
2531,
273,
4884,
9890,
18,
19298,
1824,
1435,
365,
16186,
19499,
6499,
774,
4600,
273,
5378,
365,
18,
1966,
9769,
273,
2618,
365,
18,
1966,
14517,
1782,
273,
2618,
365,
16186,
2
] |
yield user | yield user.decode('utf-8') | def _get_users(self, filename): f = open(filename) for line in f: user = line.split(':', 1)[0] if user: yield user | f640684c762ccbbeb365e9ddb5f50d3d7183bb15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6208/f640684c762ccbbeb365e9ddb5f50d3d7183bb15/htfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5577,
12,
2890,
16,
1544,
4672,
284,
273,
1696,
12,
3459,
13,
364,
980,
316,
284,
30,
729,
273,
980,
18,
4939,
2668,
30,
2187,
404,
25146,
20,
65,
309,
729,
30,
2824,
729,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5577,
12,
2890,
16,
1544,
4672,
284,
273,
1696,
12,
3459,
13,
364,
980,
316,
284,
30,
729,
273,
980,
18,
4939,
2668,
30,
2187,
404,
25146,
20,
65,
309,
729,
30,
2824,
729,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" Returns the 'mysterious' $L$-invariant associated to an elliptic curve with split multiplicative reduction. One instance where this constant appears is in the exceptional case of the $p$-adic Birch and Swinnerton-Dyer conjecture as | r""" Returns the ``mysterious'' $\mathcal{L}$-invariant associated to an elliptic curve with split multiplicative reduction. One instance where this constant appears is in the exceptional case of the $p$-adic Birch and Swinnerton-Dyer conjecture as | def L_invariant(self,prec=20): """ Returns the 'mysterious' $L$-invariant associated to an elliptic curve with split multiplicative reduction. One instance where this constant appears is in the exceptional case of the $p$-adic Birch and Swinnerton-Dyer conjecture as formulated by Mazur-Tate-Teitelbaum (Invent. Math. 84, 1986). | 8b9a7f70654e1801d87f39c2c02110d0180493fd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/8b9a7f70654e1801d87f39c2c02110d0180493fd/ell_tate_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
67,
267,
8688,
12,
2890,
16,
4036,
33,
3462,
4672,
436,
8395,
2860,
326,
12176,
81,
1094,
264,
22774,
6309,
271,
64,
15949,
771,
95,
48,
22496,
17,
267,
8688,
3627,
358,
392,
415,
549,
21507,
8882,
598,
1416,
3309,
28884,
20176,
18,
6942,
791,
1625,
333,
5381,
14606,
353,
316,
326,
1520,
287,
648,
434,
326,
271,
84,
8,
17,
20333,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
594,
487,
646,
11799,
635,
490,
1561,
295,
17,
56,
340,
17,
21575,
305,
292,
12124,
379,
261,
382,
616,
18,
2361,
18,
23421,
16,
5342,
5292,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
67,
267,
8688,
12,
2890,
16,
4036,
33,
3462,
4672,
436,
8395,
2860,
326,
12176,
81,
1094,
264,
22774,
6309,
271,
64,
15949,
771,
95,
48,
22496,
17,
267,
8688,
3627,
358,
392,
415,
549,
21507,
8882,
598,
1416,
3309,
28884,
20176,
18,
6942,
791,
1625,
333,
5381,
14606,
353,
316,
326,
1520,
287,
648,
434,
326,
271,
84,
8,
17,
20333,
605,
481,
343,
471,
5434,
267,
82,
1051,
265,
17,
40,
93,
264,
356,
937,
594,
487,
646,
11799,
635,
490,
1561,
295,
17,
56,
340,
17,
21575,
305,
292,
12124,
379,
261,
382,
616,
18,
2361,
18,
23421,
16,
5342,
5292,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
write('Instrument: %s\n' % iname) | f.write('Instrument: %s\n' % iname) | def _write_settings_file(self): fn = self.get_settings_filepath() f = open(fn) f.write('Filename: %s\n', self._filename) f.write('Timestamp: %s\n\n', self._timestamp) | ff159a13593e9bbf0a057a9ca9add33979c4910c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6471/ff159a13593e9bbf0a057a9ca9add33979c4910c/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
4272,
67,
768,
12,
2890,
4672,
2295,
273,
365,
18,
588,
67,
4272,
67,
10561,
1435,
284,
273,
1696,
12,
4293,
13,
284,
18,
2626,
2668,
5359,
30,
738,
87,
64,
82,
2187,
365,
6315,
3459,
13,
284,
18,
2626,
2668,
4921,
30,
738,
87,
64,
82,
64,
82,
2187,
365,
6315,
5508,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2626,
67,
4272,
67,
768,
12,
2890,
4672,
2295,
273,
365,
18,
588,
67,
4272,
67,
10561,
1435,
284,
273,
1696,
12,
4293,
13,
284,
18,
2626,
2668,
5359,
30,
738,
87,
64,
82,
2187,
365,
6315,
3459,
13,
284,
18,
2626,
2668,
4921,
30,
738,
87,
64,
82,
64,
82,
2187,
365,
6315,
5508,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
':action':'file_upload', 'protcol_version':'1', 'name':self.distribution.get_name(), 'version':self.distribution.get_version(), 'content':(os.path.basename(filename),content), 'filetype':command, 'pyversion':pyversion, 'md5_digest':md5(content).hexdigest(), | ':action': 'file_upload', 'protcol_version': '1', 'name': meta.get_name(), 'version': meta.get_version(), 'content': (os.path.basename(filename),content), 'filetype': command, 'pyversion': pyversion, 'md5_digest': md5(content).hexdigest(), 'metadata_version' : '1.0', 'summary': meta.get_description(), 'home_page': meta.get_url(), 'author': meta.get_contact(), 'author_email': meta.get_contact_email(), 'license': meta.get_licence(), 'description': meta.get_long_description(), 'keywords': meta.get_keywords(), 'platform': meta.get_platforms(), 'classifiers': meta.get_classifiers(), 'download_url': meta.get_download_url(), 'provides': meta.get_provides(), 'requires': meta.get_requires(), 'obsoletes': meta.get_obsoletes(), | def upload_file(self, command, pyversion, filename): # Sign if requested if self.sign: spawn(("gpg", "--detach-sign", "-a", filename), dry_run=self.dry_run) | 6d0c85a71c0d12fd45693ca37b66959a33e9b941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/6d0c85a71c0d12fd45693ca37b66959a33e9b941/upload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3617,
67,
768,
12,
2890,
16,
1296,
16,
2395,
1589,
16,
1544,
4672,
468,
4383,
309,
3764,
309,
365,
18,
2977,
30,
12560,
12,
2932,
6403,
75,
3113,
5238,
8238,
497,
17,
2977,
3113,
3701,
69,
3113,
1544,
3631,
10299,
67,
2681,
33,
2890,
18,
25011,
67,
2681,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3617,
67,
768,
12,
2890,
16,
1296,
16,
2395,
1589,
16,
1544,
4672,
468,
4383,
309,
3764,
309,
365,
18,
2977,
30,
12560,
12,
2932,
6403,
75,
3113,
5238,
8238,
497,
17,
2977,
3113,
3701,
69,
3113,
1544,
3631,
10299,
67,
2681,
33,
2890,
18,
25011,
67,
2681,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
nodestrength=mins | def VisualizeNet(net,xy,coloredvertices=False,equalsize=False,labels={},showAllNodes=True,vcolor=[1.0,1.0,1.0],vsize=1.0,nodeColors={},bgcolor='white',maxwidth=2.0,minwidth=0.2,uselabels='none',edgeColorMap='winter',weightLimits='none'): ''' Visualizes a network. Inputs: net = network to be visualized (of type SymmNet() ). xy = coordinates (usually originating from visuals.Himmeli, e.g. h=visuals.Himmeli(net,...,...) followed by xy=h.getCoordinates() coloredvertices = (True/False). If True, i) IF dict nodeColors was given, these colors are used, ii) IF NOT, vcolor is used if given, and if not, nodes are white. If False, node colors are based on strength. equalsize = (True/False) True: all vertices are of same size, input as vsize, default 1.0. False: sizes are based on vertex strength. showAllNodes = (True/False) something of a quick hack; if True, displays disconnected components and nodes which have no edges left after e.g. thresholding bgcolor = [r g b], r/g/b between 0.0 and 1.0. Background color, default is black. maxwidth = max width of edges as plotted, default 2.0 minwidth = min width of edges as plotted, default 0.2 uselabels = ('none','all') Determines if node labels are shown. 'none' shows none, 'all' shows all. Note: any labels input in dict labels ({nodename:labelstring}) are always shown; use this dict to show labels next to your chosen nodes of interest. edgeColorMap=myMap allows the user to set color scheme for edges. Edges are always colored according to edge weights, which are first normalized to the range (0,1) and then transformed to colors using edgeColorMap. There are 150 colormaps available in pylab; for a full listing, please see help(pylab.cm) (and look for DATA). Or try, for example, edgeColorMap='orange' or edgeColorMap='primary', two colormaps of our own that are not available in pylab. weightLimits=(0,5) The tuple (minWeight, maxWeight) provides the minimum and maximum value for weights. If none are given, (nearly) the true min and max weights in the network will be used. The weightLimits are used for setting edge colors and width. They enable the user to plot several networks (which may have different min and max weights) such that a certain color and width always correspond to a certain edge weight. Thus, the color and width in the visualization can be used to infer edge weight. If the network turns out to contain weights above the given maxWeight (below minWeight) these will be rounded downwards (upwards) to the given limit. It is more reasonable however for the user to provide limits that can accommodate all weights, this is just a necessary precaution for the case where the given limits are too tight. Usage examples: m=pynet.SymmNet() m[0][1]=1.0 m[1][2]=3.5 m[0][2]=5.0 Here are the coordinates, a dictionary that contains 2-tuples xy={} xy[0]=(0,0) xy[1]=(4,0) xy[2]=(2,3) f=FigureCanvasBase(visuals.VisualizeNet(m,xy)) f.print_eps("tmp.eps",dpi=80.0) f=FigureCanvasBase(visuals.VisualizeNet(m,xy,edgeColorMap='orange')) f.print_eps("tmp2.eps",dpi=80.0) f=FigureCanvasBase(visuals.VisualizeNet(m,xy,edgeColorMap='orange',equalsize=True,vsize=16)) f.print_eps("tmp3.eps",dpi=80.0) (General questions: Is there a neater way to output the figures than using FigureCanvasBase? How can I have a look at the figures from within python, without saving them to .eps files?) ''' thisfigure=Figure(figsize=(6,6),dpi=100,facecolor=bgcolor) axes=thisfigure.add_subplot(111) axes.set_axis_bgcolor(bgcolor) # sets the color for node labels fontcolor='w' if bgcolor=='white': fontcolor='k' # first draw all edges edges=list(net.edges) wlist=[] for edge in edges: wlist.append(edge[2]) wmin=min(wlist) wmax=max(wlist) # If weightLimits were not given, use (almost) the true min # and max weights in the network. Note: using a value slightly # below wmin, because otherwise when normalizing the weights, # the minimum weights would be transformed to zero and the # edges not visible at all. - Riitta if weightLimits=='none': if wmin==0: weightLimits=(wmin,wmax) else: weightLimits=(wmin-0.00001,wmax) myEdgeColorMap=setEdgeColorMap(edgeColorMap) for edge in edges: width=setEdgeWidth(edge[2],weightLimits,minwidth,maxwidth) colour=setEdgeColor(edge[2],weightLimits,myEdgeColorMap) xcoords=[xy[edge[0]][0],xy[edge[1]][0]] ycoords=[xy[edge[0]][1],xy[edge[1]][1]] plot_edge(axes,xcoords,ycoords,width=width,colour=colour) # then draw nodes, depending on given options # showAllNodes displays also nodes who do not have any edges # left after e.g. thresholding nodelist=[] if showAllNodes: for node in xy.keys(): nodelist.append(node) else: for node in net: nodelist.append(node) minnode=2.0 maxnode=6.0 strengths=netext.strengths(net) maxs=max(strengths.values()) mins=min(strengths.values()) if not(equalsize): A=(maxnode-minnode)/(maxs-mins) B=maxnode-A*maxs for node in nodelist: # first define size if equalsize: nodesize=vsize if (nodesize<1.0): # hack: Himmeli wants size <1.0 nodesize=nodesize*maxnode # if Himmeli-type size used, scale up else: if node in net: nodestrength=strengths[node] nodesize=A*strengths[node]+B else: nodestrength=mins nodesize=minnode # then determine color if coloredvertices: if len(nodeColors)>0: ctemp=nodeColors[node] if len(ctemp)==6: # recognize as Himmeli-type string ('999999') rc=float(ctemp[0:2])/99.0 gc=float(ctemp[2:4])/99.0 bc=float(ctemp[4:6])/99.0 # this is a stupid hack; sometimes rounding errors result # in rc=1.0 + epsilon and matplotlib complains... if (rc<0.0): rc=0.0 elif rc>1.0: rc=1.0 if (bc<0.0): bc=0.0 elif bc>1.0: bc=1.0 if (gc<0.0): gc=0.0 elif gc>1.0: gc=1.0 color=(rc,gc,bc) else: color=nodeColors[node] #othrwise assume it is a RGB tuple else: if len(vcolor)==6: rc=float(vcolor[0:2])/99.0 gc=float(vcolor[2:4])/99.0 bc=float(vcolor[4:6])/99.0 if (rc<0.0): rc=0.0 elif rc>1.0: rc=1.0 if (bc<0.0): bc=0.0 elif bc>1.0: bc=1.0 if (gc<0.0): gc=0.0 elif gc>1.0: gc=1.0 color=(rc,gc,bc) else: color=vcolor else: color=setEdgeColor(nodestrength,(mins,maxs),myEdgeColorMap) # use the same colormap for nodes as for edges (now the name edgeColorMap is a bit misleading... Could change it to just colorMap, or alternatively add another input option, 'nodeColorMap') #color=colortuple(nodestrength,mins,maxs) plot_node(axes,x=xy[node][0],y=xy[node][1],color=color,size=nodesize) if uselabels=='all': axes.annotate(str(node),(xy[node][0],xy[node][1]),color=fontcolor,size=7) elif node in labels: axes.annotate(labels[node],(xy[node][0],xy[node][1]),color=fontcolor,size=7) setp(axes,'xticks','','xticklabels','','yticks','','yticklabels','') xylist=xy.values() xlist=[] ylist=[] for elem in xylist: xlist.append(elem[0]) ylist.append(elem[1]) minx=min(xlist) maxx=max(xlist) miny=min(ylist) maxy=max(ylist) xdelta=0.05*(maxx-minx) ydelta=0.05*(maxy-miny) setp(axes,'xlim',(minx-xdelta,maxx+xdelta),'ylim',(miny-ydelta,maxy+ydelta)) return thisfigure | c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/c16fe22866cce6c3aabc203d3b2bf1cd6e8eb553/visuals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26832,
554,
7308,
12,
2758,
16,
1698,
16,
1293,
7653,
17476,
33,
8381,
16,
14963,
554,
33,
8381,
16,
5336,
28793,
4500,
1595,
3205,
33,
5510,
16,
90,
3266,
22850,
21,
18,
20,
16,
21,
18,
20,
16,
21,
18,
20,
6487,
90,
1467,
33,
21,
18,
20,
16,
2159,
12570,
28793,
12370,
3266,
2218,
14739,
2187,
1896,
2819,
33,
22,
18,
20,
16,
1154,
2819,
33,
20,
18,
22,
16,
407,
292,
873,
87,
2218,
6102,
2187,
7126,
2957,
863,
2218,
91,
2761,
2187,
4865,
12768,
2218,
6102,
11,
4672,
225,
9163,
26832,
3128,
279,
2483,
18,
24472,
30,
225,
2901,
273,
2483,
358,
506,
11623,
1235,
261,
792,
618,
10042,
81,
7308,
1435,
262,
18,
225,
7668,
273,
5513,
261,
407,
3452,
4026,
1776,
628,
2281,
12588,
18,
44,
381,
81,
292,
77,
16,
425,
18,
75,
18,
366,
33,
3516,
12588,
18,
44,
381,
81,
292,
77,
12,
2758,
16,
2777,
16,
21846,
10860,
635,
7668,
33,
76,
18,
588,
13431,
1435,
225,
19757,
17476,
273,
261,
5510,
19,
8381,
2934,
971,
1053,
16,
277,
13,
11083,
2065,
756,
12570,
1703,
864,
16,
4259,
5740,
854,
1399,
16,
6072,
13,
11083,
4269,
16,
331,
3266,
353,
1399,
309,
864,
16,
471,
309,
486,
16,
2199,
854,
9578,
18,
971,
1083,
16,
756,
5740,
854,
2511,
603,
21638,
18,
225,
1606,
554,
273,
261,
5510,
19,
8381,
13,
1053,
30,
777,
6928,
854,
434,
1967,
963,
16,
810,
487,
331,
1467,
16,
805,
404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26832,
554,
7308,
12,
2758,
16,
1698,
16,
1293,
7653,
17476,
33,
8381,
16,
14963,
554,
33,
8381,
16,
5336,
28793,
4500,
1595,
3205,
33,
5510,
16,
90,
3266,
22850,
21,
18,
20,
16,
21,
18,
20,
16,
21,
18,
20,
6487,
90,
1467,
33,
21,
18,
20,
16,
2159,
12570,
28793,
12370,
3266,
2218,
14739,
2187,
1896,
2819,
33,
22,
18,
20,
16,
1154,
2819,
33,
20,
18,
22,
16,
407,
292,
873,
87,
2218,
6102,
2187,
7126,
2957,
863,
2218,
91,
2761,
2187,
4865,
12768,
2218,
6102,
11,
4672,
225,
9163,
26832,
3128,
279,
2483,
18,
24472,
30,
225,
2901,
273,
2483,
358,
506,
11623,
1235,
261,
792,
618,
10042,
81,
7308,
1435,
262,
18,
225,
2
] |
|
self.received = s.recv(1024) | self.received = data = s.recv(1024) | def connecting_client(self, addr): socket = __import__("socket", {}, {}, []) s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(addr) self.client_addr = s.getsockname() s.send("@") self.received = s.recv(1024) while data: self.received += s.recv(1024) s.close() | 2751e02612e24ffea6b311c671baed9e5196342d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/2751e02612e24ffea6b311c671baed9e5196342d/test__socket.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14244,
67,
2625,
12,
2890,
16,
3091,
4672,
2987,
273,
1001,
5666,
972,
2932,
7814,
3113,
10615,
10615,
5378,
13,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12,
4793,
13,
365,
18,
2625,
67,
4793,
273,
272,
18,
14665,
975,
529,
1435,
272,
18,
4661,
2932,
36,
7923,
365,
18,
15213,
273,
501,
273,
272,
18,
18334,
12,
2163,
3247,
13,
1323,
501,
30,
365,
18,
15213,
1011,
272,
18,
18334,
12,
2163,
3247,
13,
272,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14244,
67,
2625,
12,
2890,
16,
3091,
4672,
2987,
273,
1001,
5666,
972,
2932,
7814,
3113,
10615,
10615,
5378,
13,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12,
4793,
13,
365,
18,
2625,
67,
4793,
273,
272,
18,
14665,
975,
529,
1435,
272,
18,
4661,
2932,
36,
7923,
365,
18,
15213,
273,
501,
273,
272,
18,
18334,
12,
2163,
3247,
13,
1323,
501,
30,
365,
18,
15213,
1011,
272,
18,
18334,
12,
2163,
3247,
13,
272,
18,
4412,
1435,
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
] |
return http.Response(stream = encode_list([v, W.name()])) | return HTMLResponse(stream = encode_list([v, W.name()])) | def render(self, ctx): name = ctx.args['name'][0] W = notebook.create_new_worksheet(name) v = notebook.worksheet_list_html(W.name()) return http.Response(stream = encode_list([v, W.name()])) | 86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
508,
273,
1103,
18,
1968,
3292,
529,
3546,
63,
20,
65,
678,
273,
14718,
18,
2640,
67,
2704,
67,
1252,
8118,
12,
529,
13,
331,
273,
14718,
18,
1252,
8118,
67,
1098,
67,
2620,
12,
59,
18,
529,
10756,
327,
1062,
18,
1064,
12,
3256,
273,
2017,
67,
1098,
3816,
90,
16,
678,
18,
529,
1435,
22643,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
18,
529,
10756,
327,
1062,
18,
1064,
12,
3256,
273,
2017,
67,
1098,
3816,
90,
16,
678,
18,
529,
1435,
22643,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SendMail(fromAddr, mailtoAddr, startTime, buildName, "The build failed", | SendMail(fromAddr, mailtoAddr, startTime, buildName, "status", | def main(): global buildscriptFile, fromAddr, mailtoAddr, alertAddr, adminAddr, defaultDomain, defaultRsyncServer parser = OptionParser(usage="%prog [options] buildName", version="%prog 1.2") parser.add_option("-t", "--toAddr", action="store", type="string", dest="toAddr", default=mailtoAddr, help="Where to mail script reports\n" " [default] " + mailtoAddr + defaultDomain) parser.add_option("-p", "--project", action="store", type="string", dest="project", default="newchandler", help="Name of script to use (without .py extension)\n" "[default] newchandler") parser.add_option("-o", "--output", action="store", type="string", dest="outputDir", default=os.path.join(os.environ['HOME'],"output"), help="Name of temp output directory\n" " [default] ~/output") parser.add_option("-a", "--alert", action="store", type="string", dest="alertAddr", default=alertAddr, help="E-mail to notify on build errors \n" " [default] " + alertAddr + defaultDomain) parser.add_option("-r", "--rsyncServer", action="store", type="string", dest="rsyncServer", default=defaultRsyncServer, help="Net address of server where builds get uploaded \n" " [default] " + defaultRsyncServer) (options, args) = parser.parse_args() if len(args) != 1: parser.print_help() parser.error("You must at least provide a name for your build") buildName = args[0] fromAddr += defaultDomain mailtoAddr = options.toAddr alertAddr = options.alertAddr if mailtoAddr.find('@') == -1: mailtoAddr += defaultDomain if alertAddr.find('@') == -1: alertAddr += defaultDomain prevStartInt = 0 curDir = os.path.abspath(os.getcwd()) buildscriptFile = os.path.join("buildscripts", options.project + ".py") outputDir = os.path.abspath(options.outputDir) if not os.path.exists(outputDir): os.mkdir(outputDir) if not os.path.exists(buildDir): os.mkdir(buildDir) path = os.environ.get('PATH', os.environ.get('path')) cvsProgram = hardhatutil.findInPath(path, "cvs") print "cvs =", cvsProgram rsyncProgram = hardhatutil.findInPath(path, "rsync") print "rsync =", rsyncProgram startInt = int(time.time()) startTime = str(startInt) os.chdir(curDir) nowString = time.strftime("%Y-%m-%d %H:%M:%S") buildVersion = hardhatutil.RemovePunctuation(nowString) print "Starting:", nowString, buildVersion log = open(logFile, "w") log.write("Start: " + nowString + "\n") try: # load (or reload) the buildscript file for the project mod = hardhatutil.ModuleFromFile(buildscriptFile, "buildscript") treeName = mod.treeName SendMail(fromAddr, mailtoAddr, startTime, buildName, "building", treeName, None) ret = mod.Start(hardhatFile, buildDir, "-D'"+ nowString + "'", buildVersion, 0, log) except TinderbuildError, e: print e print "Tinderbuild: Build failed" log.write("Tinderbuild: Build failed\n") status = "build_failed" log.close() log = open(logFile, "r") logContents = log.read() log.close() SendMail(fromAddr, alertAddr, startTime, buildName, "The build failed", treeName, logContents) SendMail(fromAddr, mailtoAddr, startTime, buildName, "The build failed", treeName, logContents) log = open(logFile, "w") except Exception, e: print e print "Build failed" log.write("Build failed\n") status = "build_failed" log.close() log = open(logFile, "r") logContents = log.read() log.close() SendMail(fromAddr, alertAddr, startTime, buildName, "The build failed", treeName, logContents) SendMail(fromAddr, mailtoAddr, startTime, buildName, "The build failed", treeName, logContents) log = open(logFile, "w") else: if ret == "success-nochanges": print "There were no changes, and the tests were successful" log.write("There were no changes, and the tests were successful\n") status = "success" elif ret == "success-changes" or ret == "success-first-run": if ret == "success-first-run": print "First run of tinderbox, and the tests were successful" log.write("First run of tinderbox, and the tests were successful\n") else: print "There were changes, and the tests were successful" log.write("There were changes, and the tests were successful\n") status = "success" newDir = os.path.join(outputDir, buildVersion) print "Renaming " + os.path.join(buildDir, "output", buildVersion) + " to " + newDir log.write("Renaming " + os.path.join(buildDir, "output", buildVersion) + " to " + newDir + "\n") os.rename(os.path.join(buildDir, "output", buildVersion), newDir) if os.path.exists(outputDir+os.sep+"index.html"): os.remove(outputDir+os.sep+"index.html") if os.path.exists(outputDir+os.sep+"time.js"): os.remove(outputDir+os.sep+"time.js") print "Calling RotateDirectories" log.write("Calling RotateDirectories\n") RotateDirectories(outputDir) print "Calling CreateIndex with " + newDir log.write("Calling CreateIndex with " + newDir + "\n") CreateIndex(outputDir, buildVersion, nowString, buildName) buildNameNoSpaces = buildName.replace(" ", "") print "Rsyncing..." outputList = hardhatutil.executeCommandReturnOutputRetry( [rsyncProgram, "-e", "ssh", "-avzp", "--delete", outputDir + os.sep, "192.168.101.46:continuous/" + buildNameNoSpaces]) hardhatutil.dumpOutputList(outputList, log) elif ret == "build_failed": print "The build failed" log.write("The build failed\n") status = "build_failed" log.close() log = open(logFile, "r") logContents = log.read() log.close() SendMail(fromAddr, alertAddr, startTime, buildName, "The build failed", treeName, logContents) SendMail(fromAddr, mailtoAddr, startTime, buildName, "The build failed", treeName, logContents) log = open(logFile, "w") elif ret == "test_failed": print "Unit tests failed" log.write("Unit tests failed\n") status = "test_failed" log.close() log = open(logFile, "r") logContents = log.read() log.close() SendMail(fromAddr, alertAddr, startTime, buildName, "Unit tests failed", treeName, logContents) SendMail(fromAddr, mailtoAddr, startTime, buildName, "Unit tests failed", treeName, logContents) log = open(logFile, "w") else: print "There were no changes" log.write("There were no changes in CVS\n") status = "not_running" log.write( "End = " + time.strftime("%Y-%m-%d %H:%M:%S") + "\n") log.close() log = open(logFile, "r") logContents = log.read() log.close() nowTime = str(int(time.time())) SendMail(fromAddr, mailtoAddr, startTime, buildName, status, treeName, logContents) | e0d3f665cd0450be1abd0ace7bb244be1777f644 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e0d3f665cd0450be1abd0ace7bb244be1777f644/tinderbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
1361,
4263,
812,
16,
628,
3178,
16,
4791,
869,
3178,
16,
6881,
3178,
16,
3981,
3178,
16,
805,
3748,
16,
805,
54,
8389,
2081,
225,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
2116,
65,
1361,
461,
3113,
1177,
11613,
14654,
404,
18,
22,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
88,
3113,
5238,
869,
3178,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
869,
3178,
3113,
805,
33,
4408,
869,
3178,
16,
2809,
1546,
5262,
358,
4791,
2728,
10557,
64,
82,
6,
315,
306,
1886,
65,
315,
397,
4791,
869,
3178,
397,
805,
3748,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
84,
3113,
5238,
4406,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
4406,
3113,
805,
1546,
2704,
343,
464,
749,
3113,
2809,
1546,
461,
434,
2728,
358,
999,
261,
13299,
263,
2074,
2710,
5153,
82,
6,
5158,
1886,
65,
394,
343,
464,
749,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
83,
3113,
5238,
2844,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
2844,
1621,
3113,
805,
33,
538,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
14209,
3546,
10837,
2844,
6,
3631,
2809,
1546,
461,
434,
1906,
876,
1867,
64,
82,
6,
315,
306,
1886,
65,
4871,
19,
2844,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
69,
3113,
5238,
11798,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
11798,
3178,
3113,
805,
33,
11798,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
1361,
4263,
812,
16,
628,
3178,
16,
4791,
869,
3178,
16,
6881,
3178,
16,
3981,
3178,
16,
805,
3748,
16,
805,
54,
8389,
2081,
225,
2082,
273,
18862,
12,
9167,
11613,
14654,
306,
2116,
65,
1361,
461,
3113,
1177,
11613,
14654,
404,
18,
22,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
88,
3113,
5238,
869,
3178,
3113,
1301,
1546,
2233,
3113,
618,
1546,
1080,
3113,
1570,
1546,
869,
3178,
3113,
805,
33,
4408,
869,
3178,
16,
2809,
1546,
5262,
358,
4791,
2728,
10557,
64,
82,
6,
315,
306,
1886,
65,
315,
397,
4791,
869,
3178,
397,
805,
3748,
13,
2082,
18,
1289,
67,
3482,
2932,
17,
84,
3113,
5238,
4406,
3113,
1301,
1546,
2233,
2
] |
assert request.session | assert request.session is not None | def testAnonSession(self): """ run some requests, no auth, check if anon sessions work """ self.config = self.TestConfig(anonymous_session_lifetime=1) cookie = '' trail_expected = [] first = True for pagename in self.PAGES: environ = self.setup_env(PATH_INFO='/%s' % pagename, HTTP_COOKIE=cookie) request = self.process_request(environ) | 8da57c08ef8cfbefd2d454c1dc46ccccab25736c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/8da57c08ef8cfbefd2d454c1dc46ccccab25736c/test_auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
979,
265,
2157,
12,
2890,
4672,
3536,
1086,
2690,
3285,
16,
1158,
1357,
16,
866,
309,
30637,
8856,
1440,
3536,
365,
18,
1425,
273,
365,
18,
4709,
809,
12,
19070,
67,
3184,
67,
17155,
33,
21,
13,
3878,
273,
875,
15569,
67,
3825,
273,
5378,
1122,
273,
1053,
364,
4262,
1069,
316,
365,
18,
11219,
55,
30,
5473,
273,
365,
18,
8401,
67,
3074,
12,
4211,
67,
5923,
2218,
5258,
87,
11,
738,
4262,
1069,
16,
2239,
67,
13584,
33,
8417,
13,
590,
273,
365,
18,
2567,
67,
2293,
12,
28684,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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33,
21,
13,
3878,
273,
875,
15569,
67,
3825,
273,
5378,
1122,
273,
1053,
364,
4262,
1069,
316,
365,
18,
11219,
55,
30,
5473,
273,
365,
18,
8401,
67,
3074,
12,
4211,
67,
5923,
2218,
5258,
87,
11,
738,
4262,
1069,
16,
2239,
67,
13584,
33,
8417,
13,
590,
273,
365,
18,
2567,
67,
2293,
12,
28684,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
best = shift, bin1, bin2 | best = t1, t2, shift | def splitbins(bins): # split a sparse integer table into two tables, such as: # value = t2[(t1[char>>shift]<<shift)+(char&mask)] # and value == 0 means no data bytes = sys.maxint for shift in range(16): bin1 = [] bin2 = [] size = 2**shift bincache = {} for i in range(0, len(bins), size): bin = bins[i:i+size] index = bincache.get(tuple(bin)) if index is None: index = len(bin2) bincache[tuple(bin)] = index for v in bin: if v is None: bin2.append(0) else: bin2.append(v) bin1.append(index>>shift) # determine memory size b = len(bin1)*getsize(bin1) + len(bin2)*getsize(bin2) if b < bytes: best = shift, bin1, bin2 bytes = b shift, bin1, bin2 = best | 20c6c6a885ef170c8c80b25320c00639f6714b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/20c6c6a885ef170c8c80b25320c00639f6714b7b/makeunicodedata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
11862,
12,
11862,
4672,
468,
1416,
279,
9387,
3571,
1014,
1368,
2795,
4606,
16,
4123,
487,
30,
468,
282,
460,
273,
268,
22,
63,
12,
88,
21,
63,
3001,
9778,
4012,
65,
17685,
4012,
27921,
12,
3001,
10,
4455,
25887,
468,
471,
460,
422,
374,
4696,
1158,
501,
1731,
273,
2589,
18,
1896,
474,
364,
4654,
316,
1048,
12,
2313,
4672,
4158,
21,
273,
5378,
4158,
22,
273,
5378,
963,
273,
576,
636,
4012,
4158,
2493,
273,
2618,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
11862,
3631,
963,
4672,
4158,
273,
8963,
63,
77,
30,
77,
15,
1467,
65,
770,
273,
4158,
2493,
18,
588,
12,
8052,
12,
4757,
3719,
309,
770,
353,
599,
30,
770,
273,
562,
12,
4757,
22,
13,
4158,
2493,
63,
8052,
12,
4757,
25887,
273,
770,
364,
331,
316,
4158,
30,
309,
331,
353,
599,
30,
4158,
22,
18,
6923,
12,
20,
13,
469,
30,
4158,
22,
18,
6923,
12,
90,
13,
4158,
21,
18,
6923,
12,
1615,
9778,
4012,
13,
468,
4199,
3778,
963,
324,
273,
562,
12,
4757,
21,
17653,
588,
1467,
12,
4757,
21,
13,
397,
562,
12,
4757,
22,
17653,
588,
1467,
12,
4757,
22,
13,
309,
324,
411,
1731,
30,
3796,
273,
268,
21,
16,
268,
22,
16,
4654,
1731,
273,
324,
4654,
16,
4158,
21,
16,
4158,
22,
273,
3796,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
11862,
12,
11862,
4672,
468,
1416,
279,
9387,
3571,
1014,
1368,
2795,
4606,
16,
4123,
487,
30,
468,
282,
460,
273,
268,
22,
63,
12,
88,
21,
63,
3001,
9778,
4012,
65,
17685,
4012,
27921,
12,
3001,
10,
4455,
25887,
468,
471,
460,
422,
374,
4696,
1158,
501,
1731,
273,
2589,
18,
1896,
474,
364,
4654,
316,
1048,
12,
2313,
4672,
4158,
21,
273,
5378,
4158,
22,
273,
5378,
963,
273,
576,
636,
4012,
4158,
2493,
273,
2618,
364,
277,
316,
1048,
12,
20,
16,
562,
12,
11862,
3631,
963,
4672,
4158,
273,
8963,
63,
77,
30,
77,
15,
1467,
65,
770,
273,
4158,
2493,
18,
588,
12,
8052,
12,
4757,
3719,
309,
770,
353,
599,
30,
2
] |
en._callback_add("anchor,clicked", my_entry_anchor_test, (en,)) | en.callback_anchor_clicked_add(my_entry_anchor_test, en) | def entry_clicked(obj, it, *args, **kargs): win = elementary.Window("entry", elementary.ELM_WIN_BASIC) win.title_set("Entry") win.autodel_set(True) bg = elementary.Background(win) win.resize_object_add(bg) bg.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bg.show() bx = elementary.Box(win) win.resize_object_add(bx) bx.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) bx.show() en = elementary.Entry(win) en.line_wrap_set(False) en.entry_set("This is an entry widget in this window that<br>" "uses markup <b>like this</> for styling and<br>" "formatting <em>like this</>, as well as<br>" "<a href=X><link>links in the text</></a>, so enter text<br>" "in here to edit it. By the way, links are<br>" "called <a href=anc-02>Anchors</a> so you will need<br>" "to refer to them this way.") en._callback_add("anchor,clicked", my_entry_anchor_test, (en,)) en.size_hint_weight_set(evas.EVAS_HINT_EXPAND, evas.EVAS_HINT_EXPAND) en.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bx.pack_end(en) en.show() bx2 = elementary.Box(win) bx2.horizontal_set(True) bx2.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) bx2.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bt = elementary.Button(win) bt.label_set("Clear") bt.clicked = (my_entry_bt_1, en) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) bx2.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Print") bt.clicked = (my_entry_bt_2, en) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) bx2.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Selection") bt.clicked = (my_entry_bt_3, en) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) bx2.pack_end(bt) bt.show() bt = elementary.Button(win) bt.label_set("Insert") bt.clicked = (my_entry_bt_4, en) bt.size_hint_align_set(evas.EVAS_HINT_FILL, evas.EVAS_HINT_FILL) bt.size_hint_weight_set(evas.EVAS_HINT_EXPAND, 0.0) bx2.pack_end(bt) bt.show() bx.pack_end(bx2) bx2.show() en.focus() win.show() | ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/ef127faaba8fc06ebbb7bd48a4185405cdfc6a4e/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1241,
67,
7475,
329,
12,
2603,
16,
518,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
4099,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1622,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
24356,
273,
930,
814,
18,
3514,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
70,
92,
13,
24356,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
24356,
18,
4500,
1435,
225,
570,
273,
930,
814,
18,
1622,
12,
8082,
13,
570,
18,
1369,
67,
4113,
67,
542,
12,
8381,
13,
570,
18,
4099,
67,
542,
2932,
2503,
353,
392,
1241,
3604,
316,
333,
2742,
716,
32,
2848,
2984,
315,
6117,
9813,
411,
70,
34,
5625,
333,
1757,
34,
364,
16253,
2456,
471,
32,
2848,
2984,
315,
2139,
1787,
411,
351,
34,
5625,
333,
1757,
20401,
487,
5492,
487,
32,
2848,
2984,
3532,
69,
3897,
33,
60,
4438,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1241,
67,
7475,
329,
12,
2603,
16,
518,
16,
380,
1968,
16,
2826,
79,
1968,
4672,
5657,
273,
930,
814,
18,
3829,
2932,
4099,
3113,
930,
814,
18,
2247,
49,
67,
24572,
67,
25642,
13,
5657,
18,
2649,
67,
542,
2932,
1622,
7923,
5657,
18,
5854,
1009,
67,
542,
12,
5510,
13,
225,
7611,
273,
930,
814,
18,
8199,
12,
8082,
13,
5657,
18,
15169,
67,
1612,
67,
1289,
12,
12370,
13,
7611,
18,
1467,
67,
11317,
67,
4865,
67,
542,
12,
73,
4423,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
16,
2113,
345,
18,
24427,
3033,
67,
44,
3217,
67,
16109,
4307,
13,
7611,
18,
4500,
1435,
225,
24356,
273,
930,
814,
18,
3514,
12,
2
] |
def cancel(self): | def keyCancelConfirm(self, result): if not result: return | def cancel(self): if self.oldInterfaceState is False: iNetwork.deactivateInterface(self.iface,self.cancelCB) else: self.close('cancel') | f741c4cc282f2f99b86e6ec305604f27216087ba /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6652/f741c4cc282f2f99b86e6ec305604f27216087ba/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
6691,
11269,
12,
2890,
16,
563,
4672,
309,
486,
563,
30,
327,
309,
365,
18,
1673,
1358,
1119,
353,
1083,
30,
277,
3906,
18,
323,
10014,
1358,
12,
2890,
18,
31479,
16,
2890,
18,
10996,
8876,
13,
469,
30,
365,
18,
4412,
2668,
10996,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
30,
365,
18,
4412,
2668,
10996,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.fuseChunksDashboard.setGeometry(QRect(462,45,84,29)) | self.fuseChunksDashboard.setGeometry(QRect(495,48,92,29)) | def __init__(self,parent = None,name = None,fl = 0): QMainWindow.__init__(self,parent,name,fl) self.statusBar() | 12c8fe24cb1ace55e7caf0b09c7238554087208a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/12c8fe24cb1ace55e7caf0b09c7238554087208a/MainWindowUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
2327,
5190,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
273,
599,
16,
529,
273,
599,
16,
2242,
273,
374,
4672,
2238,
6376,
3829,
16186,
2738,
972,
12,
2890,
16,
2938,
16,
529,
16,
2242,
13,
365,
18,
2327,
5190,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.infos[key] | return copy.deepcopy(self.infos[key]) | def info(self, key): """ Retrieve the value associated with the name key. """ if key in self.infos: return self.infos[key] return None | 8ac35d276f830ba42b58e9384dab19333d0aef66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9114/8ac35d276f830ba42b58e9384dab19333d0aef66/BProject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
16,
498,
4672,
3536,
10708,
326,
460,
3627,
598,
326,
508,
498,
18,
3536,
309,
498,
316,
365,
18,
18227,
30,
327,
1610,
18,
16589,
3530,
12,
2890,
18,
18227,
63,
856,
5717,
327,
599,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1123,
12,
2890,
16,
498,
4672,
3536,
10708,
326,
460,
3627,
598,
326,
508,
498,
18,
3536,
309,
498,
316,
365,
18,
18227,
30,
327,
1610,
18,
16589,
3530,
12,
2890,
18,
18227,
63,
856,
5717,
327,
599,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
mul1s regm, t1 | mul1s regm, t1, flags=(OF,CF) | def macroop IMUL_R_R_I | b64d0bdeda1662091746c3695b4429fcc6f69342 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6787/b64d0bdeda1662091746c3695b4429fcc6f69342/multiply_and_divide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
54,
67,
45,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
6246,
1506,
67,
54,
67,
54,
67,
45,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
params = ref[ pI+1: ] | params = ref[ pI + 1: ] | def __mapReferer(self): ref = request.environ[ 'HTTP_REFERER' ] ref = ref[ ref.find( "/", 8 ) : ] scriptName = request.environ[ 'SCRIPT_NAME' ] if scriptName: if scriptName[0] != "/": scriptName = "/%s" % scriptName if ref.find( scriptName ) == 0: ref = ref[ len( scriptName ): ] pI = ref.find( '?' ); if pI > -1: params = ref[ pI+1: ] ref = ref[ :pI ] else: params = "" pDict = dict( cgi.parse_qsl( params ) ) return ( config[ 'routes.map' ].match( ref ), pDict ) | a808837c8f1431d1e02fdbb67a8e5983086333a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12767/a808837c8f1431d1e02fdbb67a8e5983086333a2/userdata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
31008,
273,
590,
18,
28684,
63,
296,
10885,
67,
1985,
11,
308,
309,
31008,
30,
309,
31008,
63,
20,
65,
480,
4016,
30,
31008,
273,
2206,
9,
87,
6,
738,
31008,
309,
1278,
18,
4720,
12,
31008,
262,
422,
374,
30,
1278,
273,
1278,
63,
562,
12,
31008,
262,
30,
308,
293,
45,
273,
1278,
18,
4720,
12,
6787,
11272,
309,
293,
45,
405,
300,
21,
30,
859,
273,
1278,
63,
293,
45,
397,
404,
30,
308,
1278,
273,
1278,
63,
294,
84,
45,
308,
469,
30,
859,
273,
1408,
293,
5014,
273,
2065,
12,
276,
10052,
18,
2670,
67,
85,
2069,
12,
859,
262,
262,
327,
261,
642,
63,
296,
10854,
18,
1458,
11,
308,
18,
1916,
12,
1278,
262,
16,
293,
5014,
225,
262,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1458,
426,
18459,
12,
2890,
4672,
1278,
273,
590,
18,
28684,
63,
296,
3693,
67,
30269,
654,
11,
308,
1278,
273,
1278,
63,
1278,
18,
4720,
12,
2206,
3113,
1725,
262,
294,
308,
31008,
273,
590,
18,
28684,
63,
296,
10885,
67,
1985,
11,
308,
309,
31008,
30,
309,
31008,
63,
20,
65,
480,
4016,
30,
31008,
273,
2206,
9,
87,
6,
738,
31008,
309,
1278,
18,
4720,
12,
31008,
262,
422,
374,
30,
1278,
273,
1278,
63,
562,
12,
31008,
262,
30,
308,
293,
45,
273,
1278,
18,
4720,
12,
6787,
11272,
309,
293,
45,
405,
300,
21,
30,
859,
273,
1278,
63,
293,
45,
397,
404,
30,
308,
1278,
273,
1278,
63,
294,
84,
45,
2
] |
debug_log = True | def startswithany(str, prefixes): for prefix in prefixes: if str.startswith(prefix): return True return False | d34b631d2e45870e85a6b7e5f824aa96f5632111 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9368/d34b631d2e45870e85a6b7e5f824aa96f5632111/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4244,
2273,
12,
701,
16,
9419,
4672,
364,
1633,
316,
9419,
30,
309,
609,
18,
17514,
1918,
12,
3239,
4672,
327,
1053,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
sage: finance.Stock('vmw').historical()[:5] | sage: finance.Stock('vmw').google()[:5] | def historical(self,startdate='Jan+1,+1990'): """ Return an immutable sequence of historical price data for this stock, obtained from Google. | 5ba1a4a9510fd2da6a56209f764593aa64c92d20 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5ba1a4a9510fd2da6a56209f764593aa64c92d20/stock.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23922,
12,
2890,
16,
1937,
712,
2218,
46,
304,
15,
21,
16,
15,
19818,
20,
11,
4672,
3536,
2000,
392,
11732,
3102,
434,
23922,
6205,
501,
364,
333,
12480,
16,
12700,
628,
6124,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23922,
12,
2890,
16,
1937,
712,
2218,
46,
304,
15,
21,
16,
15,
19818,
20,
11,
4672,
3536,
2000,
392,
11732,
3102,
434,
23922,
6205,
501,
364,
333,
12480,
16,
12700,
628,
6124,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
... self.close = self.generator.close | ... def __init__(self, name): | 3e69fb99647491a8e186e4e8c077fc39f70ce520 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3e69fb99647491a8e186e4e8c077fc39f70ce520/test_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2738,
972,
12,
2890,
16,
508,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
class Version(object): | class Version(debian_support.Version, object): | def __str__(self): return "Could not parse version: "+self._version | d1a6e7d1146d8d4d723d7162f4e59e6efb012666 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12282/d1a6e7d1146d8d4d723d7162f4e59e6efb012666/changelog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
327,
315,
4445,
486,
1109,
1177,
30,
13773,
2890,
6315,
1589,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
972,
12,
2890,
4672,
327,
315,
4445,
486,
1109,
1177,
30,
13773,
2890,
6315,
1589,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: glpk_lib = cdll.LoadLibrary(dllname) except: raise ImportError("Cannot import GLPK's shared library (" + dllname + "). Make sure its path is included in your system's PATH variable.") | def _load_glpk(): # Attempt to automatically detect which version of GLPK we are using. try: fi, fo = os.popen4('glpsol -v') fi.close() tokens = fo.read().split() # Version GLPK detected!! i = tokens.index('LP/MIP') if tokens[i+1] == 'Solver,': i += 3 else: i += 2 version_string = tokens[i] version = version_string.split('.') version = tuple([int(i) for i in version[:2]]) except Exception, e: raise ImportError("Failed to run 'glpsol' to extract version number. GLPK may not be properly installed.") # Attempt to load the DLL if os.name == 'posix' and sys.platform.startswith('linux'): dllname = 'libglpk.so' elif os.name == 'posix' and sys.platform.startswith('darwin'): dllname = 'libglpk.dylib' elif os.name == 'nt': dllname = 'glpk'+str(version[0])+str(version[1])+'.dll' else: raise ImportError('Platform '+str(os.name)+' is currently not supported.') try: glpk_lib = cdll.LoadLibrary(dllname) except: raise ImportError("Cannot import GLPK's shared library (" + dllname + "). Make sure its path is included in your system's PATH variable.") return version, glpk_lib | 6f19a1f55402af52669d1e2728707ba0e9b605b3 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1322/6f19a1f55402af52669d1e2728707ba0e9b605b3/glpk.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
67,
7043,
5465,
13332,
468,
12864,
358,
6635,
5966,
1492,
1177,
434,
10252,
8784,
732,
854,
1450,
18,
775,
30,
7314,
16,
18261,
273,
1140,
18,
84,
3190,
24,
2668,
7043,
1121,
355,
300,
90,
6134,
7314,
18,
4412,
1435,
2430,
273,
18261,
18,
896,
7675,
4939,
1435,
225,
468,
4049,
10252,
8784,
8316,
8548,
277,
273,
2430,
18,
1615,
2668,
14461,
19,
49,
2579,
6134,
309,
2430,
63,
77,
15,
21,
65,
422,
296,
27721,
16,
4278,
277,
1011,
890,
469,
30,
277,
1011,
576,
225,
1177,
67,
1080,
273,
2430,
63,
77,
65,
1177,
273,
1177,
67,
1080,
18,
4939,
2668,
1093,
13,
1177,
273,
3193,
3816,
474,
12,
77,
13,
364,
277,
316,
1177,
10531,
22,
65,
5717,
225,
1335,
1185,
16,
425,
30,
1002,
11308,
2932,
2925,
358,
1086,
296,
7043,
1121,
355,
11,
358,
2608,
1177,
1300,
18,
10252,
8784,
2026,
486,
506,
8214,
5876,
1199,
13,
225,
468,
12864,
358,
1262,
326,
463,
4503,
309,
1140,
18,
529,
422,
296,
24463,
11,
471,
2589,
18,
9898,
18,
17514,
1918,
2668,
20132,
11,
4672,
302,
2906,
529,
273,
296,
2941,
7043,
5465,
18,
2048,
11,
1327,
1140,
18,
529,
422,
296,
24463,
11,
471,
2589,
18,
9898,
18,
17514,
1918,
2668,
28076,
11,
4672,
302,
2906,
529,
273,
296,
2941,
7043,
5465,
18,
15680,
2941,
11,
1327,
1140,
18,
529,
422,
296,
496,
4278,
302,
2906,
529,
273,
296,
7043,
5465,
11,
15,
701,
12,
1589,
63,
20,
5717,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
945,
67,
7043,
5465,
13332,
468,
12864,
358,
6635,
5966,
1492,
1177,
434,
10252,
8784,
732,
854,
1450,
18,
775,
30,
7314,
16,
18261,
273,
1140,
18,
84,
3190,
24,
2668,
7043,
1121,
355,
300,
90,
6134,
7314,
18,
4412,
1435,
2430,
273,
18261,
18,
896,
7675,
4939,
1435,
225,
468,
4049,
10252,
8784,
8316,
8548,
277,
273,
2430,
18,
1615,
2668,
14461,
19,
49,
2579,
6134,
309,
2430,
63,
77,
15,
21,
65,
422,
296,
27721,
16,
4278,
277,
1011,
890,
469,
30,
277,
1011,
576,
225,
1177,
67,
1080,
273,
2430,
63,
77,
65,
1177,
273,
1177,
67,
1080,
18,
4939,
2668,
1093,
13,
1177,
273,
3193,
3816,
474,
12,
77,
13,
364,
277,
316,
2
] |
|
>>> VersionManagement.infer_next_version('3.0.9', '0.0.1') | >>> VM_infer('3.0.9', '0.0.1') | def infer_next_version(last_version, increment): """ Given a simple application version (as a StrictVersion), and an increment (1.0, 0.1, or 0.0.1), guess the next version. >>> VersionManagement.infer_next_version('3.2', '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version(StrictVersion('3.2'), '0.0.1') '3.2.1' >>> VersionManagement.infer_next_version('3.2.3', '0.1') '3.3' >>> VersionManagement.infer_next_version('3.1.2', '1.0') '4.0' Subversions never increment parent versions >>> VersionManagement.infer_next_version('3.0.9', '0.0.1') '3.0.10' If it's a prerelease version, just remove the prerelease. >>> VersionManagement.infer_next_version('3.1a1', '0.0.1') '3.1' """ last_version = SummableVersion(str(last_version)) if last_version.prerelease: last_version.prerelease = None return str(last_version) increment = SummableVersion(increment) sum = last_version + increment sum.reset_less_significant(increment) return str(sum) | e305d484aa2294b4f486a574edcd9ecbe9dea495 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/e305d484aa2294b4f486a574edcd9ecbe9dea495/hgtools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
16,
578,
374,
18,
20,
18,
21,
3631,
7274,
326,
1024,
1177,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
12,
14809,
1444,
2668,
23,
18,
22,
19899,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
18,
23,
2187,
296,
20,
18,
21,
6134,
296,
23,
18,
23,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
21,
18,
22,
2187,
296,
21,
18,
20,
6134,
296,
24,
18,
20,
11,
225,
2592,
10169,
5903,
5504,
982,
5244,
4080,
8251,
67,
25889,
2668,
23,
18,
20,
18,
29,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
20,
18,
2163,
11,
225,
971,
518,
1807,
279,
846,
30464,
1177,
16,
2537,
1206,
326,
846,
30464,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
21,
69,
21,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
21,
11,
3536,
1142,
67,
1589,
273,
9352,
81,
429,
1444,
12,
701,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12455,
67,
4285,
67,
1589,
12,
2722,
67,
1589,
16,
5504,
4672,
3536,
16803,
279,
4143,
2521,
1177,
261,
345,
279,
22307,
1444,
3631,
471,
392,
5504,
261,
21,
18,
20,
16,
374,
18,
21,
16,
578,
374,
18,
20,
18,
21,
3631,
7274,
326,
1024,
1177,
18,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
18,
22,
2187,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
12,
14809,
1444,
2668,
23,
18,
22,
19899,
296,
20,
18,
20,
18,
21,
6134,
296,
23,
18,
22,
18,
21,
11,
4080,
4049,
10998,
18,
25889,
67,
4285,
67,
1589,
2668,
23,
2
] |
if selectedinfilename: | if selectedinfilename or tdef.get_live(): | def start_and_play(self,tdef,dscfg): """ Called by GUI thread when Tribler started with live or video torrent on cmdline """ | b0c0fcfd2260b17400bbe42aa53bafc144783e69 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9686/b0c0fcfd2260b17400bbe42aa53bafc144783e69/VideoPlayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
464,
67,
1601,
12,
2890,
16,
88,
536,
16,
72,
1017,
2137,
4672,
3536,
11782,
635,
10978,
2650,
1347,
840,
495,
749,
5746,
598,
8429,
578,
6191,
17351,
603,
22877,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
787,
67,
464,
67,
1601,
12,
2890,
16,
88,
536,
16,
72,
1017,
2137,
4672,
3536,
11782,
635,
10978,
2650,
1347,
840,
495,
749,
5746,
598,
8429,
578,
6191,
17351,
603,
22877,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR | def set_reuse_addr(self): # try to re-use a server port if possible try: # Windows SO_REUSEADDR is very broken (from a unixy perspective) if sys.platform == 'win32': reuse_constant = socket.SO_EXCLUSIVEADDRUSE else: reuse_constant = socket.SO_REUSEADDR | 9d499f2f96197b5a8deeff98228c667adb4b43e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/9d499f2f96197b5a8deeff98228c667adb4b43e6/asyncore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
468,
8202,
7460,
67,
862,
8001,
14142,
353,
8572,
12933,
261,
2080,
279,
9753,
93,
26651,
13,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
11827,
67,
14384,
273,
2987,
18,
3584,
67,
2294,
11686,
24870,
14142,
8001,
469,
30,
11827,
67,
14384,
273,
2987,
18,
3584,
67,
862,
8001,
14142,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
266,
1202,
67,
4793,
12,
2890,
4672,
468,
775,
358,
283,
17,
1202,
279,
1438,
1756,
309,
3323,
775,
30,
468,
8202,
7460,
67,
862,
8001,
14142,
353,
8572,
12933,
261,
2080,
279,
9753,
93,
26651,
13,
309,
2589,
18,
9898,
422,
296,
8082,
1578,
4278,
11827,
67,
14384,
273,
2987,
18,
3584,
67,
2294,
11686,
24870,
14142,
8001,
469,
30,
11827,
67,
14384,
273,
2987,
18,
3584,
67,
862,
8001,
14142,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "Running %s.test09_MultiDB..." % self.__class__.__name__ | print "Running %s.test10_MultiDB..." % self.__class__.__name__ | def test09_MultiDB(self): d1 = self.d if verbose: print '\n', '-=' * 30 print "Running %s.test09_MultiDB..." % self.__class__.__name__ | 46ea74ede0b8d2264d7a6e3eeddf206a32b98522 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/46ea74ede0b8d2264d7a6e3eeddf206a32b98522/test_basics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5908,
67,
5002,
2290,
12,
2890,
4672,
302,
21,
273,
365,
18,
72,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
5908,
67,
5002,
2290,
7070,
738,
365,
16186,
1106,
972,
16186,
529,
972,
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,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5908,
67,
5002,
2290,
12,
2890,
4672,
302,
21,
273,
365,
18,
72,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
5908,
67,
5002,
2290,
7070,
738,
365,
16186,
1106,
972,
16186,
529,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "\nAvailable (toolbar) controls:" | print "\nAvailable (panel/toolbar) controls:" | def usage(actions, msg=None): name = os.path.basename(sys.argv[0]) uiname = "%s %s" % (UInfo.name, UInfo.version) print "\n%s" % uiname print "=" * len(uiname) print "\nUsage: %s [options] [floppy image]" % name print "\nOptions:" print "\t-h, --help\t\tthis help" print "\t-n, --nomenu\t\tomit menus" print "\t-e, --embed\t\tembed Hatari window in middle of controls" print "\t-f, --fullscreen\tstart in fullscreen" print "\t-l, --left <controls>\ttoolbar at left" print "\t-r, --right <controls>\ttoolbar at right" print "\t-t, --top <controls>\ttoolbar at top" print "\t-b, --bottom <controls>\ttoolbar at bottom" print "\t-p, --panel <name>,<controls>" print "\t\t\t\tseparate window with given name and controls" print "\nAvailable (toolbar) controls:" for action, description in actions.list_actions(): size = len(action) if size < 8: tabs = "\t\t" elif size < 16: tabs = "\t" else: tabs = "\n\t\t\t" print "\t%s%s%s" % (action, tabs, description) print """ | 686602b8ab36ee4ec2ff799f2a8c8c77a682e402 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2811/686602b8ab36ee4ec2ff799f2a8c8c77a682e402/hatariui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
4905,
16,
1234,
33,
7036,
4672,
508,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
582,
267,
339,
273,
2213,
87,
738,
87,
6,
738,
261,
57,
966,
18,
529,
16,
587,
966,
18,
1589,
13,
1172,
1548,
82,
9,
87,
6,
738,
582,
267,
339,
1172,
9671,
380,
562,
12,
89,
267,
339,
13,
1172,
1548,
82,
5357,
30,
738,
87,
306,
2116,
65,
306,
74,
16884,
2074,
1316,
4279,
738,
508,
1172,
1548,
82,
1320,
2773,
1172,
1548,
88,
17,
76,
16,
1493,
5201,
64,
88,
64,
88,
2211,
2809,
6,
1172,
1548,
88,
17,
82,
16,
1493,
12306,
2104,
64,
88,
64,
3599,
305,
21374,
6,
1172,
1548,
88,
17,
73,
16,
1493,
8483,
64,
88,
64,
874,
2992,
670,
8761,
77,
2742,
316,
7689,
434,
11022,
6,
1172,
1548,
88,
17,
74,
16,
1493,
2854,
9252,
64,
88,
1937,
316,
1983,
9252,
6,
1172,
1548,
88,
17,
80,
16,
1493,
4482,
411,
24350,
5333,
748,
1371,
3215,
622,
2002,
6,
1172,
1548,
88,
17,
86,
16,
1493,
4083,
411,
24350,
5333,
748,
1371,
3215,
622,
2145,
6,
1172,
1548,
88,
17,
88,
16,
1493,
3669,
411,
24350,
5333,
748,
1371,
3215,
622,
1760,
6,
1172,
1548,
88,
17,
70,
16,
1493,
9176,
411,
24350,
5333,
748,
1371,
3215,
622,
5469,
6,
1172,
1548,
88,
17,
84,
16,
1493,
13916,
411,
529,
20401,
32,
24350,
2984,
1172,
1548,
88,
64,
88,
64,
88,
64,
88,
16627,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
4905,
16,
1234,
33,
7036,
4672,
508,
273,
1140,
18,
803,
18,
13909,
12,
9499,
18,
19485,
63,
20,
5717,
582,
267,
339,
273,
2213,
87,
738,
87,
6,
738,
261,
57,
966,
18,
529,
16,
587,
966,
18,
1589,
13,
1172,
1548,
82,
9,
87,
6,
738,
582,
267,
339,
1172,
9671,
380,
562,
12,
89,
267,
339,
13,
1172,
1548,
82,
5357,
30,
738,
87,
306,
2116,
65,
306,
74,
16884,
2074,
1316,
4279,
738,
508,
1172,
1548,
82,
1320,
2773,
1172,
1548,
88,
17,
76,
16,
1493,
5201,
64,
88,
64,
88,
2211,
2809,
6,
1172,
1548,
88,
17,
82,
16,
1493,
12306,
2104,
64,
88,
64,
3599,
305,
21374,
6,
1172,
1548,
2
] |
self._send_log_msg(pkgLogMsg, '%s updated summary for %s' % ( identity.current.user.display_name, pkg.name), | self._send_log_msg(pkgLogMsg, '%s summary updated by %s' % ( pkg.name, identity.current.user.display_name), | def edit_package(self, package, **changes): '''Add a new package to the database. ''' # Check that the tg.identity is allowed to set themselves as owner if not identity.in_any_group('cvsadmin'): return dict(status=False, message='User must be in cvsadmin') | 86e82a2b4d3ce67d7dd2881604f20fc61759f00b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9953/86e82a2b4d3ce67d7dd2881604f20fc61759f00b/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
5610,
12,
2890,
16,
2181,
16,
2826,
6329,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
2073,
716,
326,
18289,
18,
10781,
353,
2935,
358,
444,
20968,
487,
3410,
309,
486,
4215,
18,
267,
67,
2273,
67,
1655,
2668,
71,
6904,
3666,
11,
4672,
327,
2065,
12,
2327,
33,
8381,
16,
883,
2218,
1299,
1297,
506,
316,
276,
6904,
3666,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3874,
67,
5610,
12,
2890,
16,
2181,
16,
2826,
6329,
4672,
9163,
986,
279,
394,
2181,
358,
326,
2063,
18,
9163,
468,
2073,
716,
326,
18289,
18,
10781,
353,
2935,
358,
444,
20968,
487,
3410,
309,
486,
4215,
18,
267,
67,
2273,
67,
1655,
2668,
71,
6904,
3666,
11,
4672,
327,
2065,
12,
2327,
33,
8381,
16,
883,
2218,
1299,
1297,
506,
316,
276,
6904,
3666,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedContainer else: self.mixedclass_ = mixedclass_ if content_ is None: self.content_ = [] else: self.content_ = content_ self.valueOf_ = valueOf_ | pass | def __init__(self, about=None, meta=None, label=None, id=None, node=None, edge=None, rootedge=None, valueOf_=None, mixedclass_=None, content_=None): super(NodeAndRootEdgeAndEdgeSet, self).__init__(about, meta, label, id, valueOf_, mixedclass_, content_, ) self.node = _cast(None, node) self.edge = _cast(None, edge) self.rootedge = _cast(None, rootedge) self.valueOf_ = valueOf_ if mixedclass_ is None: self.mixedclass_ = MixedContainer else: self.mixedclass_ = mixedclass_ if content_ is None: self.content_ = [] else: self.content_ = content_ self.valueOf_ = valueOf_ | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2973,
33,
7036,
16,
2191,
33,
7036,
16,
1433,
33,
7036,
16,
612,
33,
7036,
16,
756,
33,
7036,
16,
3591,
33,
7036,
16,
1365,
7126,
33,
7036,
16,
4323,
67,
33,
7036,
16,
7826,
1106,
67,
33,
7036,
16,
913,
67,
33,
7036,
4672,
2240,
12,
907,
1876,
2375,
6098,
1876,
6098,
694,
16,
365,
2934,
972,
2738,
972,
12,
21071,
16,
2191,
16,
1433,
16,
612,
16,
4323,
67,
16,
7826,
1106,
67,
16,
913,
67,
16,
262,
365,
18,
2159,
273,
389,
4155,
12,
7036,
16,
756,
13,
365,
18,
7126,
273,
389,
4155,
12,
7036,
16,
3591,
13,
365,
18,
3085,
7126,
273,
389,
4155,
12,
7036,
16,
1365,
7126,
13,
365,
18,
1132,
951,
67,
273,
4323,
67,
309,
7826,
1106,
67,
353,
599,
30,
365,
18,
19562,
1106,
67,
273,
24725,
2170,
469,
30,
365,
18,
19562,
1106,
67,
273,
7826,
1106,
67,
309,
913,
67,
353,
599,
30,
365,
18,
1745,
67,
273,
5378,
469,
30,
365,
18,
1745,
67,
273,
913,
67,
365,
18,
1132,
951,
67,
273,
4323,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2973,
33,
7036,
16,
2191,
33,
7036,
16,
1433,
33,
7036,
16,
612,
33,
7036,
16,
756,
33,
7036,
16,
3591,
33,
7036,
16,
1365,
7126,
33,
7036,
16,
4323,
67,
33,
7036,
16,
7826,
1106,
67,
33,
7036,
16,
913,
67,
33,
7036,
4672,
2240,
12,
907,
1876,
2375,
6098,
1876,
6098,
694,
16,
365,
2934,
972,
2738,
972,
12,
21071,
16,
2191,
16,
1433,
16,
612,
16,
4323,
67,
16,
7826,
1106,
67,
16,
913,
67,
16,
262,
365,
18,
2159,
273,
389,
4155,
12,
7036,
16,
756,
13,
365,
18,
7126,
273,
389,
4155,
12,
7036,
16,
3591,
13,
365,
18,
3085,
7126,
273,
389,
4155,
12,
7036,
16,
2
] |
def __str__(self): if not self.upToDate: return str(self.value) else: return str(self.getOutput("value")) | def __str__(self): if not self.upToDate: return str(self.value) else: return str(self.getOutput("value")) | bbb89ebe493db9587a30f7ab1f63c48c2c8e5e95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6341/bbb89ebe493db9587a30f7ab1f63c48c2c8e5e95/basic_modules.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
309,
486,
365,
18,
416,
31264,
30,
327,
609,
12,
2890,
18,
1132,
13,
469,
30,
327,
609,
12,
2890,
18,
588,
1447,
2932,
1132,
6,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
701,
972,
12,
2890,
4672,
309,
486,
365,
18,
416,
31264,
30,
327,
609,
12,
2890,
18,
1132,
13,
469,
30,
327,
609,
12,
2890,
18,
588,
1447,
2932,
1132,
6,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
for badobject in "a string", 3+42j, randrange: self.assertRaises((struct.error, TypeError), | for badobject in ("a string", 3+42j, randrange, NotAnIntNS(), NotAnIntOS()): self.assertRaises(struct.error, | def run(self): from random import randrange | 463dc4bf26c37c5f90cfe9328087976a0bdc5757 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/463dc4bf26c37c5f90cfe9328087976a0bdc5757/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
628,
2744,
1930,
5605,
3676,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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4672,
628,
2744,
1930,
5605,
3676,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def cloneContext(self, context, domain, encodedDomain): | def cloneContext(self, context, domain, attributes, metas): | def cloneContext(self, context, domain, encodedDomain): import copy context = copy.deepcopy(context) for field in self.fields: value = context.values.get(field.name, None) if value: if field.flags & self.List: i = j = realI = 0 selected = context.values.get(field.selected, []) selected.sort() nextSel = selected and selected[0] or None while i < len(value): if encodedDomain.get(value[i][0], None) != value[i][1]: del value[i] if nextSel == realI: del selected[j] nextSel = j < len(selected) and selected[j] or None else: if nextSel == realI: selected[j] -= realI - i j += 1 nextSel = j < len(selected) and selected[j] or None i += 1 realI += 1 if hasattr(field, "selected"): context.values[field.selected] = selected[:j] else: if value[1] >= 0 and encodedDomain.get(value[0], None) != value[1]: del context.values[field.name] context.encodedDomain = encodedDomain context.orderedDomain = [(attr.name, attr.varType) for attr in domain] return context | 5a8bd231f596fa01d75d6ac9602fa7521b797293 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/5a8bd231f596fa01d75d6ac9602fa7521b797293/OWContexts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
1042,
12,
2890,
16,
819,
16,
2461,
16,
1677,
16,
21232,
4672,
1930,
1610,
819,
273,
1610,
18,
16589,
3530,
12,
2472,
13,
225,
364,
652,
316,
365,
18,
2821,
30,
460,
273,
819,
18,
2372,
18,
588,
12,
1518,
18,
529,
16,
599,
13,
309,
460,
30,
309,
652,
18,
7133,
473,
365,
18,
682,
30,
277,
273,
525,
273,
2863,
45,
273,
374,
3170,
273,
819,
18,
2372,
18,
588,
12,
1518,
18,
8109,
16,
5378,
13,
3170,
18,
3804,
1435,
1024,
1877,
273,
3170,
471,
3170,
63,
20,
65,
578,
599,
1323,
277,
411,
562,
12,
1132,
4672,
309,
3749,
3748,
18,
588,
12,
1132,
63,
77,
6362,
20,
6487,
599,
13,
480,
460,
63,
77,
6362,
21,
14542,
1464,
460,
63,
77,
65,
309,
1024,
1877,
422,
2863,
45,
30,
1464,
3170,
63,
78,
65,
1024,
1877,
273,
525,
411,
562,
12,
8109,
13,
471,
3170,
63,
78,
65,
578,
599,
469,
30,
309,
1024,
1877,
422,
2863,
45,
30,
3170,
63,
78,
65,
3947,
2863,
45,
300,
277,
525,
1011,
404,
1024,
1877,
273,
525,
411,
562,
12,
8109,
13,
471,
3170,
63,
78,
65,
578,
599,
277,
1011,
404,
2863,
45,
1011,
404,
309,
3859,
12,
1518,
16,
315,
8109,
6,
4672,
819,
18,
2372,
63,
1518,
18,
8109,
65,
273,
3170,
10531,
78,
65,
469,
30,
309,
460,
63,
21,
65,
1545,
374,
471,
3749,
3748,
18,
588,
12,
1132,
63,
20,
6487,
599,
13,
480,
460,
63,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
1042,
12,
2890,
16,
819,
16,
2461,
16,
1677,
16,
21232,
4672,
1930,
1610,
819,
273,
1610,
18,
16589,
3530,
12,
2472,
13,
225,
364,
652,
316,
365,
18,
2821,
30,
460,
273,
819,
18,
2372,
18,
588,
12,
1518,
18,
529,
16,
599,
13,
309,
460,
30,
309,
652,
18,
7133,
473,
365,
18,
682,
30,
277,
273,
525,
273,
2863,
45,
273,
374,
3170,
273,
819,
18,
2372,
18,
588,
12,
1518,
18,
8109,
16,
5378,
13,
3170,
18,
3804,
1435,
1024,
1877,
273,
3170,
471,
3170,
63,
20,
65,
578,
599,
1323,
277,
411,
562,
12,
1132,
4672,
309,
3749,
3748,
18,
588,
12,
1132,
63,
77,
6362,
20,
6487,
599,
13,
480,
460,
2
] |
for file in pkg.getFilesInfo(): print "file",file filename = file[0] print "filename",filename if filename.startswith('/usr/lib/debug') or \ not stat.S_ISREG(files[filename][0]) or \ string.find(file[1], 'ELF') == -1: | for fname, pkgfile in pkg.files().items(): if fname.startswith('/usr/lib/debug') or \ not stat.S_ISREG(pkgfile.mode) or \ string.find(pkgfile.magic, 'ELF') == -1: | def check(self, pkg): | 29a4c5a13a46e5592daecf3ca6e03acc12a1f285 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10341/29a4c5a13a46e5592daecf3ca6e03acc12a1f285/CheckStaticLibraries.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
3475,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
866,
12,
2890,
16,
3475,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return '-' | return u'-' | def render(self, context): # FIXME this needs to be documentet and explainded alot better # FIXME store transaction with select related to reduce query count entry = self.entry.resolve(context) value = self.value.resolve(context) | f0e078d297b549bb662c1e54365d71effdb26ff8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12178/f0e078d297b549bb662c1e54365d71effdb26ff8/ufs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
4672,
468,
9852,
333,
4260,
358,
506,
1668,
278,
471,
19765,
785,
524,
352,
7844,
468,
9852,
1707,
2492,
598,
2027,
3746,
358,
5459,
843,
1056,
1241,
273,
365,
18,
4099,
18,
10828,
12,
2472,
13,
460,
273,
365,
18,
1132,
18,
10828,
12,
2472,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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890,
16,
819,
4672,
468,
9852,
333,
4260,
358,
506,
1668,
278,
471,
19765,
785,
524,
352,
7844,
468,
9852,
1707,
2492,
598,
2027,
3746,
358,
5459,
843,
1056,
1241,
273,
365,
18,
4099,
18,
10828,
12,
2472,
13,
460,
273,
365,
18,
1132,
18,
10828,
12,
2472,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
eg.PrintError(text.error2+' '+text.error3 % (SERVER,PORT)) | eg.PrintError(self.text.error2+' '+self.text.error3 % (SERVER,PORT)) | def processEmail(mailbox, data, idList, account, count, id, tmpData): conds = ["%s.find(%s)>-1", "not %s.find(%s)>-1", "%s==%s", "not %s==%s", "%s.startswith(%s)", "%s.endswith(%s)"] msg = myParser.parsestr(data) parts = GetParts(msg) flag = False if self.setup[4] == 1: #filter AND mode i = 0 while i < 6: what, cond, strng = self.setup[5][i] if what > 0 and not eval(conds[cond] % (('parts[what-1]'), 'strng')): break i += 1 if i == 6: flag = True else: #filter OR mode i = 0 while i < 6: what, cond, strng = self.setup[5][i] if what > 0 and eval(conds[cond] % (('parts[what-1]'), 'strng')): flag = True break i += 1 if flag: if msg.has_key('Message-Id'): messId = msg['Message-Id'] else: messId = parts[1] if self.setup[11]: #trigger event for each email ? if not messId in idList: if self.setup[13] > 0: eg.TriggerEvent(self.setup[12], payload = parts[self.setup[13]-1], prefix = 'E-mail') else: eg.TriggerEvent(self.setup[12], prefix = 'E-mail') if self.setup[14]: #~ delete if account[1] == 0: #POP resp = mailbox.dele(id) #if resp[:3]=='+OK': # print "deleted !!!" # notDeleted = False else: resp = mailbox.store(id, "+FLAGS", '(\Deleted)') #if resp[0] =='OK': # resp = mailbox.expunge() # if resp[0] =='OK': # print "deleted !!!" count += 1 #show notification window? if self.setup[6]: tmpRec = [messId] #0 ID tmpRec.append(parts[0]) #1 Subject tmpRec.append(parts[1]) #2 From tmpRec.append(account[0]) #3 tmpRec.append(str(count)) #4 tmpRec.append(id) #5 tmpData.append(tmpRec) return (count, tmpData) | 12fb689db69b2ce866902fbcc1bb19e0622932ba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8076/12fb689db69b2ce866902fbcc1bb19e0622932ba/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
4134,
12,
4408,
2147,
16,
501,
16,
29174,
16,
2236,
16,
1056,
16,
612,
16,
1853,
751,
4672,
30958,
273,
8247,
9,
87,
18,
4720,
9275,
87,
13,
34,
17,
21,
3113,
315,
902,
738,
87,
18,
4720,
9275,
87,
13,
34,
17,
21,
3113,
2213,
87,
631,
9,
87,
3113,
315,
902,
738,
87,
631,
9,
87,
3113,
2213,
87,
18,
17514,
1918,
9275,
87,
2225,
16,
2213,
87,
18,
5839,
1918,
9275,
87,
2225,
65,
1234,
273,
3399,
2678,
18,
1065,
2420,
313,
12,
892,
13,
2140,
273,
968,
4305,
12,
3576,
13,
2982,
273,
1083,
309,
365,
18,
8401,
63,
24,
65,
422,
404,
30,
468,
2188,
4116,
1965,
277,
273,
374,
1323,
277,
411,
1666,
30,
4121,
16,
6941,
16,
609,
3368,
273,
365,
18,
8401,
63,
25,
6362,
77,
65,
309,
4121,
405,
374,
471,
486,
5302,
12,
20874,
63,
10013,
65,
738,
261,
2668,
6019,
63,
23770,
17,
21,
3864,
3631,
296,
701,
3368,
26112,
30,
898,
277,
1011,
404,
309,
277,
422,
1666,
30,
2982,
273,
1053,
469,
30,
5375,
468,
2188,
4869,
1965,
277,
273,
374,
1323,
277,
411,
1666,
30,
4121,
16,
6941,
16,
609,
3368,
273,
365,
18,
8401,
63,
25,
6362,
77,
65,
309,
4121,
405,
374,
471,
5302,
12,
20874,
63,
10013,
65,
738,
261,
2668,
6019,
63,
23770,
17,
21,
3864,
3631,
296,
701,
3368,
26112,
30,
2982,
273,
1053,
898,
277,
1011,
404,
309,
2982,
30,
309,
1234,
18,
5332,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
4134,
12,
4408,
2147,
16,
501,
16,
29174,
16,
2236,
16,
1056,
16,
612,
16,
1853,
751,
4672,
30958,
273,
8247,
9,
87,
18,
4720,
9275,
87,
13,
34,
17,
21,
3113,
315,
902,
738,
87,
18,
4720,
9275,
87,
13,
34,
17,
21,
3113,
2213,
87,
631,
9,
87,
3113,
315,
902,
738,
87,
631,
9,
87,
3113,
2213,
87,
18,
17514,
1918,
9275,
87,
2225,
16,
2213,
87,
18,
5839,
1918,
9275,
87,
2225,
65,
1234,
273,
3399,
2678,
18,
1065,
2420,
313,
12,
892,
13,
2140,
273,
968,
4305,
12,
3576,
13,
2982,
273,
1083,
309,
365,
18,
8401,
63,
24,
65,
422,
404,
30,
468,
2188,
4116,
1965,
277,
273,
374,
1323,
277,
2
] |
el = self.document.getroot().cssselect('.bloc-video-edito h3')[0] | el = self.document.getroot().cssselect('div.bloc-produit-haut p.date')[0] | def get_date_and_duration(self): duration_regexp = re.compile('(.+) - (.+)min(.+)s') el = self.document.getroot().cssselect('.bloc-video-edito h3')[0] if el is not None: m = duration_regexp.match(el.text.strip()) if m: day, month, year = [int(s) for s in m.group(1).split('/')] date = datetime.datetime(year, month, day) duration = datetime.timedelta(minutes=int(m.group(3)), seconds=int(m.group(2))) return date, duration else: return None | d4ecc0c5de4690c529d24afcdd6d285b2a2144f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7471/d4ecc0c5de4690c529d24afcdd6d285b2a2144f0/video.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
712,
67,
464,
67,
8760,
12,
2890,
4672,
3734,
67,
17745,
273,
283,
18,
11100,
2668,
22770,
300,
261,
18,
6975,
1154,
22770,
87,
6134,
415,
273,
365,
18,
5457,
18,
588,
3085,
7675,
5212,
4025,
2668,
2892,
18,
70,
1829,
17,
11776,
305,
17,
3395,
322,
293,
18,
712,
6134,
63,
20,
65,
309,
415,
353,
486,
599,
30,
312,
273,
3734,
67,
17745,
18,
1916,
12,
292,
18,
955,
18,
6406,
10756,
309,
312,
30,
2548,
16,
3138,
16,
3286,
273,
306,
474,
12,
87,
13,
364,
272,
316,
312,
18,
1655,
12,
21,
2934,
4939,
2668,
2473,
25887,
1509,
273,
3314,
18,
6585,
12,
6874,
16,
3138,
16,
2548,
13,
3734,
273,
3314,
18,
31295,
12,
17916,
33,
474,
12,
81,
18,
1655,
12,
23,
13,
3631,
3974,
33,
474,
12,
81,
18,
1655,
12,
22,
20349,
327,
1509,
16,
3734,
469,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
712,
67,
464,
67,
8760,
12,
2890,
4672,
3734,
67,
17745,
273,
283,
18,
11100,
2668,
22770,
300,
261,
18,
6975,
1154,
22770,
87,
6134,
415,
273,
365,
18,
5457,
18,
588,
3085,
7675,
5212,
4025,
2668,
2892,
18,
70,
1829,
17,
11776,
305,
17,
3395,
322,
293,
18,
712,
6134,
63,
20,
65,
309,
415,
353,
486,
599,
30,
312,
273,
3734,
67,
17745,
18,
1916,
12,
292,
18,
955,
18,
6406,
10756,
309,
312,
30,
2548,
16,
3138,
16,
3286,
273,
306,
474,
12,
87,
13,
364,
272,
316,
312,
18,
1655,
12,
21,
2934,
4939,
2668,
2473,
25887,
1509,
273,
3314,
18,
6585,
12,
6874,
16,
3138,
16,
2548,
13,
3734,
273,
3314,
2
] |
if (wn, wb, wr, 0, bn, wb, wr, 0) in drawSet: | if (wn, wb, wr, 0, bn, bb, br, 0) in drawSet: | def testMaterial (board): """ Tests if no players are able to win the game from the current position """ whiteBoards = board.boards[WHITE] blackBoards = board.boards[BLACK] if bitLength(whiteBoards[PAWN]) or bitLength(blackBoards[PAWN]): return False if bitLength(whiteBoards[QUEEN]) or bitLength(blackBoards[QUEEN]): return False wn = bitLength(whiteBoards[KNIGHT]) wb = bitLength(whiteBoards[BISHOP]) wr = bitLength(whiteBoards[ROOK]) bn = bitLength(blackBoards[KNIGHT]) bb = bitLength(blackBoards[BISHOP]) br = bitLength(blackBoards[ROOK]) if (wn, wb, wr, 0, bn, wb, wr, 0) in drawSet: return True # Tests KBKB. Draw if bishops are of same color if not wn + wr + bn + wr and wb == 1 and bb == 1: if whiteBoards[BISHOP] & BLACK_SQUARES and True != \ blackBoards[BISHOP] & BLACK_SQUARES and True: return True | 37c5ec69f8e6027c19db8a116fac1b3883fd2f22 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5339/37c5ec69f8e6027c19db8a116fac1b3883fd2f22/ldraw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11790,
261,
3752,
4672,
3536,
7766,
87,
309,
1158,
18115,
854,
7752,
358,
5657,
326,
7920,
628,
326,
783,
1754,
3536,
225,
9578,
13809,
14727,
273,
11094,
18,
3752,
87,
63,
16861,
65,
7721,
13809,
14727,
273,
11094,
18,
3752,
87,
63,
14618,
3649,
65,
225,
309,
2831,
1782,
12,
14739,
13809,
14727,
63,
4066,
5665,
5717,
578,
2831,
1782,
12,
11223,
13809,
14727,
63,
4066,
5665,
65,
4672,
327,
1083,
225,
309,
2831,
1782,
12,
14739,
13809,
14727,
63,
4067,
1157,
5717,
578,
2831,
1782,
12,
11223,
13809,
14727,
63,
4067,
1157,
65,
4672,
327,
1083,
225,
341,
82,
273,
2831,
1782,
12,
14739,
13809,
14727,
63,
47,
50,
7700,
5717,
17298,
273,
2831,
1782,
12,
14739,
13809,
14727,
63,
38,
20424,
3665,
5717,
12408,
273,
2831,
1782,
12,
14739,
13809,
14727,
63,
1457,
3141,
5717,
18254,
273,
2831,
1782,
12,
11223,
13809,
14727,
63,
47,
50,
7700,
5717,
7129,
273,
2831,
1782,
12,
11223,
13809,
14727,
63,
38,
20424,
3665,
5717,
5186,
273,
2831,
1782,
12,
11223,
13809,
14727,
63,
1457,
3141,
5717,
225,
309,
261,
91,
82,
16,
17298,
16,
12408,
16,
374,
16,
282,
18254,
16,
7129,
16,
5186,
16,
374,
13,
316,
3724,
694,
30,
327,
1053,
225,
468,
7766,
87,
20784,
16024,
18,
10184,
309,
324,
1468,
4473,
854,
434,
1967,
2036,
309,
486,
341,
82,
397,
12408,
397,
18254,
397,
12408,
471,
17298,
422,
404,
471,
7129,
422,
404,
30,
309,
9578,
13809,
14727,
63,
38,
20424,
3665,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11790,
261,
3752,
4672,
3536,
7766,
87,
309,
1158,
18115,
854,
7752,
358,
5657,
326,
7920,
628,
326,
783,
1754,
3536,
225,
9578,
13809,
14727,
273,
11094,
18,
3752,
87,
63,
16861,
65,
7721,
13809,
14727,
273,
11094,
18,
3752,
87,
63,
14618,
3649,
65,
225,
309,
2831,
1782,
12,
14739,
13809,
14727,
63,
4066,
5665,
5717,
578,
2831,
1782,
12,
11223,
13809,
14727,
63,
4066,
5665,
65,
4672,
327,
1083,
225,
309,
2831,
1782,
12,
14739,
13809,
14727,
63,
4067,
1157,
5717,
578,
2831,
1782,
12,
11223,
13809,
14727,
63,
4067,
1157,
65,
4672,
327,
1083,
225,
341,
82,
273,
2831,
1782,
12,
14739,
13809,
14727,
63,
47,
50,
7700,
5717,
17298,
273,
2831,
1782,
12,
2
] |
<form name="step3_form" action="%s/admin2/bibcirculation/loan_on_desk_step4" method="get" > | <form name="step3_form" action="%s/admin2/bibcirculation/loan_on_desk_step4" method="post" > | def tmpl_loan_on_desk_step3(self, user_id, list_of_books, infos, ln=CFG_SITE_LANG): """ @param ln: language of the page """ | 648f0875a183c65548d6b2535cea8cf25a2a9827 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/648f0875a183c65548d6b2535cea8cf25a2a9827/bibcirculation_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
383,
304,
67,
265,
67,
5489,
79,
67,
4119,
23,
12,
2890,
16,
729,
67,
350,
16,
666,
67,
792,
67,
12567,
16,
10626,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
7211,
30,
2653,
434,
326,
1363,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10720,
67,
383,
304,
67,
265,
67,
5489,
79,
67,
4119,
23,
12,
2890,
16,
729,
67,
350,
16,
666,
67,
792,
67,
12567,
16,
10626,
16,
7211,
33,
19727,
67,
20609,
67,
10571,
4672,
3536,
632,
891,
7211,
30,
2653,
434,
326,
1363,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
msg = " %-11s : %s" % (state[txmbr.output_state],txmbr.po) | msg = " %-11s : %s " % (state[txmbr.output_state],txmbr.po) | def _printTransaction(self): #transaction set states state = { TS_UPDATE : "update", TS_INSTALL : "install", TS_TRUEINSTALL: "trueinstall", TS_ERASE : "erase", TS_OBSOLETED : "obsoleted", TS_OBSOLETING : "obsoleting", TS_AVAILABLE : "available", TS_UPDATED : "updated"} | 0c832bd74c22c94ef8330887bd41ff1477ef6737 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5445/0c832bd74c22c94ef8330887bd41ff1477ef6737/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1188,
3342,
12,
2890,
4672,
468,
7958,
444,
5493,
919,
273,
288,
15508,
67,
8217,
377,
294,
315,
2725,
3113,
15508,
67,
28865,
565,
294,
315,
5425,
3113,
15508,
67,
18724,
28865,
30,
315,
3767,
5425,
3113,
15508,
67,
654,
4429,
1377,
294,
315,
264,
448,
3113,
15508,
67,
5704,
3584,
4311,
40,
225,
294,
315,
10992,
355,
278,
329,
3113,
15508,
67,
5704,
3584,
15146,
1360,
294,
315,
10992,
355,
21747,
3113,
15508,
67,
23222,
225,
294,
315,
5699,
3113,
15508,
67,
8217,
40,
565,
294,
315,
7007,
6,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1188,
3342,
12,
2890,
4672,
468,
7958,
444,
5493,
919,
273,
288,
15508,
67,
8217,
377,
294,
315,
2725,
3113,
15508,
67,
28865,
565,
294,
315,
5425,
3113,
15508,
67,
18724,
28865,
30,
315,
3767,
5425,
3113,
15508,
67,
654,
4429,
1377,
294,
315,
264,
448,
3113,
15508,
67,
5704,
3584,
4311,
40,
225,
294,
315,
10992,
355,
278,
329,
3113,
15508,
67,
5704,
3584,
15146,
1360,
294,
315,
10992,
355,
21747,
3113,
15508,
67,
23222,
225,
294,
315,
5699,
3113,
15508,
67,
8217,
40,
565,
294,
315,
7007,
6,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
% (default_filename, home_dir)), _("Yes"), | % (default_filename, home_dir)), _("Yes"), | def calc_url(self): """ Creates a file for use with GoogleEarth and launches GoogleEarth if in system """ home_dir = os.path.expanduser("~") default_filename = 'GrampsPlacesForGoogleEarth' filename = os.path.join(home_dir, default_filename) if not _GOOGLEEARTH_OK: qd2 = QuestionDialog2( _("GoogleEarth not installed!"), (_("Create kmz/kml file ''%s''\n" "in user directory ''%s''?")\ % (default_filename, home_dir)), _("Yes"), _("No")) if not qd2.run(): return base = os.path.dirname(filename) # Check if directory exists if not os.path.exists(os.path.normpath(base)): ErrorDialog((_("Failure writing to %s") % base), _("Directory does not exist")) return | 767a0ae51fb403854e86b60498675cea0c45c60e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/767a0ae51fb403854e86b60498675cea0c45c60e/GoogleEarthWriteKML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
718,
12,
2890,
4672,
3536,
10210,
279,
585,
364,
999,
598,
6124,
41,
27076,
471,
8037,
281,
6124,
41,
27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
7923,
805,
67,
3459,
273,
296,
20799,
25508,
24791,
1290,
9639,
41,
27076,
11,
1544,
273,
1140,
18,
803,
18,
5701,
12,
8712,
67,
1214,
16,
805,
67,
3459,
13,
309,
486,
389,
16387,
13369,
900,
9250,
2455,
67,
3141,
30,
1043,
72,
22,
273,
18267,
6353,
22,
12,
389,
2932,
9639,
41,
27076,
486,
5876,
4442,
3631,
261,
67,
2932,
1684,
18952,
94,
19,
79,
781,
585,
875,
9,
87,
6309,
64,
82,
6,
315,
267,
729,
1867,
875,
9,
87,
6309,
7225,
5153,
738,
261,
1886,
67,
3459,
16,
6382,
67,
1214,
13,
3631,
389,
2932,
22352,
6,
3631,
389,
2932,
2279,
6,
3719,
309,
486,
1043,
72,
22,
18,
2681,
13332,
327,
1026,
273,
1140,
18,
803,
18,
12287,
12,
3459,
13,
468,
2073,
309,
1867,
1704,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
7959,
803,
12,
1969,
3719,
30,
1068,
6353,
12443,
67,
2932,
5247,
7410,
358,
738,
87,
7923,
738,
1026,
3631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27076,
309,
316,
2619,
3536,
6382,
67,
1214,
273,
1140,
18,
803,
18,
12320,
1355,
2932,
98,
7923,
805,
67,
3459,
273,
296,
20799,
25508,
24791,
1290,
9639,
41,
27076,
11,
1544,
273,
1140,
18,
803,
18,
5701,
12,
8712,
67,
1214,
16,
805,
67,
3459,
13,
309,
486,
389,
16387,
13369,
900,
9250,
2455,
67,
3141,
30,
1043,
72,
22,
273,
18267,
6353,
22,
12,
389,
2932,
9639,
41,
27076,
486,
5876,
4442,
3631,
261,
67,
2932,
1684,
18952,
94,
19,
79,
781,
585,
875,
9,
87,
6309,
64,
82,
6,
315,
267,
729,
1867,
875,
2
] |
"Overloaded __getslice__ which accpepts one-based indices." | "Overloaded __getslice__ which accepts one-based indices." | def __getslice__(self, i, j): "Overloaded __getslice__ which accpepts one-based indices." if i != 0: i = FortranArray.map_int(i) obj = numpy.ndarray.__getslice__(self, i, j) if isinstance(obj, numpy.ndarray): fa = obj.view(FortranArray) return fa | cfb253cd7493b5416ac61bd9a57cf65cb5c321ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/cfb253cd7493b5416ac61bd9a57cf65cb5c321ef/farray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
4672,
315,
4851,
4230,
1001,
588,
6665,
972,
1492,
8104,
1245,
17,
12261,
4295,
1199,
309,
277,
480,
374,
30,
277,
273,
2457,
13171,
1076,
18,
1458,
67,
474,
12,
77,
13,
1081,
273,
3972,
18,
25681,
16186,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
13,
309,
1549,
12,
2603,
16,
3972,
18,
25681,
4672,
11087,
273,
1081,
18,
1945,
12,
1290,
13171,
1076,
13,
327,
11087,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
4672,
315,
4851,
4230,
1001,
588,
6665,
972,
1492,
8104,
1245,
17,
12261,
4295,
1199,
309,
277,
480,
374,
30,
277,
273,
2457,
13171,
1076,
18,
1458,
67,
474,
12,
77,
13,
1081,
273,
3972,
18,
25681,
16186,
588,
6665,
972,
12,
2890,
16,
277,
16,
525,
13,
309,
1549,
12,
2603,
16,
3972,
18,
25681,
4672,
11087,
273,
1081,
18,
1945,
12,
1290,
13171,
1076,
13,
327,
11087,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
... >>> 1/0 | ... >>> 1//0 | >>> def f(x): | a234b5762eb4de6cb8ecae9c9cb84c877a302afe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/a234b5762eb4de6cb8ecae9c9cb84c877a302afe/test_doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4080,
1652,
284,
12,
92,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4080,
1652,
284,
12,
92,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print taskNames | def updateTaskListBox(self): # Get a list of task names taskNames = [] self.__taskDict = {} tasks = self.taskMgr.getTasks() tasks.sort(key = lambda t: t.getName()) count = 0 for task in tasks: taskNames.append(task.getName()) self.__taskDict[count] = task count += 1 print taskNames if taskNames: self.taskListBox.setlist(taskNames) # And set current index (so keypresses will start with index 0) self.taskListBox.component('listbox').activate(0) # Select first item #self.taskListBox.select_set(0) # [gjeon] commented out to avoid focus problem with other lists self.setCurrentTask() | 1712abd96c1df181db8096c1fe181a6755d407be /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8543/1712abd96c1df181db8096c1fe181a6755d407be/TaskManagerPanel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
2174,
682,
3514,
12,
2890,
4672,
468,
968,
279,
666,
434,
1562,
1257,
1562,
1557,
273,
5378,
365,
16186,
4146,
5014,
273,
2618,
4592,
273,
365,
18,
4146,
9455,
18,
588,
6685,
1435,
4592,
18,
3804,
12,
856,
273,
3195,
268,
30,
268,
18,
17994,
10756,
1056,
273,
374,
364,
1562,
316,
4592,
30,
1562,
1557,
18,
6923,
12,
4146,
18,
17994,
10756,
365,
16186,
4146,
5014,
63,
1883,
65,
273,
1562,
1056,
1011,
404,
225,
309,
1562,
1557,
30,
365,
18,
4146,
682,
3514,
18,
542,
1098,
12,
4146,
1557,
13,
468,
7835,
444,
783,
770,
261,
2048,
498,
1028,
281,
903,
787,
598,
770,
374,
13,
365,
18,
4146,
682,
3514,
18,
4652,
2668,
1098,
2147,
16063,
10014,
12,
20,
13,
468,
6766,
1122,
761,
468,
2890,
18,
4146,
682,
3514,
18,
4025,
67,
542,
12,
20,
13,
468,
306,
75,
78,
73,
265,
65,
31813,
596,
358,
4543,
7155,
6199,
598,
1308,
6035,
365,
18,
542,
3935,
2174,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1089,
2174,
682,
3514,
12,
2890,
4672,
468,
968,
279,
666,
434,
1562,
1257,
1562,
1557,
273,
5378,
365,
16186,
4146,
5014,
273,
2618,
4592,
273,
365,
18,
4146,
9455,
18,
588,
6685,
1435,
4592,
18,
3804,
12,
856,
273,
3195,
268,
30,
268,
18,
17994,
10756,
1056,
273,
374,
364,
1562,
316,
4592,
30,
1562,
1557,
18,
6923,
12,
4146,
18,
17994,
10756,
365,
16186,
4146,
5014,
63,
1883,
65,
273,
1562,
1056,
1011,
404,
225,
309,
1562,
1557,
30,
365,
18,
4146,
682,
3514,
18,
542,
1098,
12,
4146,
1557,
13,
468,
7835,
444,
783,
770,
261,
2048,
498,
1028,
281,
903,
787,
598,
770,
374,
13,
365,
18,
4146,
682,
3514,
18,
4652,
2668,
1098,
2
] |
|
print _('The following books were not added as they already exist in the database (see --duplicates option):') | print >>sys.stderr, _('The following books were not added as they already exist in the database (see --duplicates option):') | def do_add(db, paths, one_book_per_directory, recurse, add_duplicates): sys.stdout = NULL try: files, dirs = [], [] for path in paths: path = os.path.abspath(path) if os.path.isdir(path): dirs.append(path) else: files.append(path) formats, metadata = [], [] for book in files: format = os.path.splitext(book)[1] format = format[1:] if format else None if not format: continue stream = open(book, 'rb') mi = get_metadata(stream, stream_type=format, use_libprs_metadata=True) if not mi.title: mi.title = os.path.splitext(os.path.basename(book))[0] if not mi.authors: mi.authors = ['Unknown'] formats.append(format) metadata.append(mi) file_duplicates = db.add_books(files, formats, metadata, add_duplicates=add_duplicates) if not file_duplicates: file_duplicates = [] dir_dups = [] for dir in dirs: if recurse: dir_dups.extend(db.recursive_import(dir, single_book_per_directory=one_book_per_directory)) else: func = db.import_book_directory if one_book_per_directory else db.import_book_directory_multiple dups = func(dir) if not dups: dups = [] dir_dups.extend(dups) sys.stdout = sys.__stdout__ if add_duplicates: for mi, formats in dir_dups: db.import_book(mi, formats) else: print _('The following books were not added as they already exist in the database (see --duplicates option):') for mi, formats in dir_dups: title = mi.title if isinstance(title, unicode): title = title.encode(preferred_encoding) print '\t', title + ':' for path in formats: print '\t\t ', path if file_duplicates: for path, mi in zip(file_duplicates[0], file_duplicates[2]): title = mi.title if isinstance(title, unicode): title = title.encode(preferred_encoding) print '\t', title+':' print '\t\t ', path if send_message is not None: send_message('refreshdb:', 'calibre GUI') finally: sys.stdout = sys.__stdout__ | aab8744748b031f43fe9148ccb2cdc2e9db72d82 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/aab8744748b031f43fe9148ccb2cdc2e9db72d82/cli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
1289,
12,
1966,
16,
2953,
16,
1245,
67,
3618,
67,
457,
67,
5149,
16,
11502,
16,
527,
67,
22449,
4672,
2589,
18,
10283,
273,
3206,
775,
30,
1390,
16,
7717,
273,
5378,
16,
5378,
364,
589,
316,
2953,
30,
589,
273,
1140,
18,
803,
18,
5113,
803,
12,
803,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
7717,
18,
6923,
12,
803,
13,
469,
30,
1390,
18,
6923,
12,
803,
13,
225,
6449,
16,
1982,
273,
5378,
16,
5378,
364,
6978,
316,
1390,
30,
740,
273,
1140,
18,
803,
18,
4939,
408,
12,
3618,
25146,
21,
65,
740,
273,
740,
63,
21,
26894,
309,
740,
469,
599,
309,
486,
740,
30,
1324,
1407,
273,
1696,
12,
3618,
16,
296,
6731,
6134,
12837,
273,
336,
67,
4165,
12,
3256,
16,
1407,
67,
723,
33,
2139,
16,
999,
67,
2941,
683,
87,
67,
4165,
33,
5510,
13,
309,
486,
12837,
18,
2649,
30,
12837,
18,
2649,
273,
1140,
18,
803,
18,
4939,
408,
12,
538,
18,
803,
18,
13909,
12,
3618,
3719,
63,
20,
65,
309,
486,
12837,
18,
19368,
30,
12837,
18,
19368,
273,
10228,
4874,
3546,
225,
6449,
18,
6923,
12,
2139,
13,
1982,
18,
6923,
12,
9197,
13,
225,
585,
67,
22449,
273,
1319,
18,
1289,
67,
12567,
12,
2354,
16,
6449,
16,
1982,
16,
527,
67,
22449,
33,
1289,
67,
22449,
13,
309,
486,
585,
67,
22449,
30,
585,
67,
22449,
273,
5378,
282,
1577,
67,
72,
18294,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
12,
1966,
16,
2953,
16,
1245,
67,
3618,
67,
457,
67,
5149,
16,
11502,
16,
527,
67,
22449,
4672,
2589,
18,
10283,
273,
3206,
775,
30,
1390,
16,
7717,
273,
5378,
16,
5378,
364,
589,
316,
2953,
30,
589,
273,
1140,
18,
803,
18,
5113,
803,
12,
803,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
7717,
18,
6923,
12,
803,
13,
469,
30,
1390,
18,
6923,
12,
803,
13,
225,
6449,
16,
1982,
273,
5378,
16,
5378,
364,
6978,
316,
1390,
30,
740,
273,
1140,
18,
803,
18,
4939,
408,
12,
3618,
25146,
21,
65,
740,
273,
740,
63,
21,
26894,
309,
740,
469,
599,
309,
486,
740,
30,
1324,
1407,
2
] |
mb.member_operators( lambda x: x.name in ("operator++", "operator--", "operator*", "operator->", "operator()") ).exclude() | mb.member_operators( lambda x: x.name in ("operator++", "operator--", "operator*", "operator->", "operator()", "operator[]") ).exclude() | def export_interface_classes( mb ): """export virtual classes. These classes can not instantiated directly from python. """ classes_to_export = set( ['Alignandum', 'MultipleAlignment', 'Alignator', 'Iterator', # 'Dottor', 'Translator', 'SubstitutionMatrix', 'Fragmentor', 'Alignment', 'AlignmentIterator', 'AlignmentConstIterator', 'Scorer', 'Weightor', 'Renderer', 'LogOddor', 'Regularizor', 'Iterator2D', 'ResiduePAIR', 'Alignatum', 'EVDParameters', 'AlignandumData', 'SubstitutionMatrixData', 'NormalDistributionParameters', 'Distor', 'Treetor', 'Tree', 'PhyloMatrix', ]) ## include all classes mb.classes( lambda x: x.name in classes_to_export ).include() ## deal with copying/cloning members functions mb.member_functions( lambda x: x.name == "getClone" ).call_policies = \ return_value_policy( manage_new_object ) mb.member_functions( lambda x: x.name == "getNew" ).call_policies = \ return_value_policy( manage_new_object ) ## add __str__ function for functions having defined the '<<' operator ## This automatically maps std::ostream to a string mb.free_operators( lambda x: x.name == "operator<<" ).include() ## used for dottor objects ## mb.member_functions( lambda x: x.name == "getPairs" ).call_policies = \ ## return_value_policy( manage_new_object ) # return reference to existing values - look at managing this better later mb.member_functions( lambda x: x.name == "getPointer" ).call_policies = \ return_value_policy( reference_existing_object ) mb.member_functions( lambda x: x.name == "getReference" ).call_policies = \ return_value_policy( reference_existing_object ) ## mb.member_functions( lambda x: x.name == "getRowIndices" ).call_policies = \ ## return_value_policy( reference_existing_object ) mb.member_functions( lambda x: x.name == "getRow" ).call_policies = \ return_value_policy( reference_existing_object ) mb.member_functions( lambda x: x.name == "align" ).call_policies = \ return_value_policy( reference_existing_object ) mb.member_functions( lambda x: x.name == "fragment" ).call_policies = \ return_value_policy( reference_existing_object ) mb.member_functions( "calculateWeights" ).call_policies = \ return_value_policy( manage_new_object ) mb.member_functions( "calculateMatrix" ).call_policies = \ return_value_policy( manage_new_object ) mb.member_functions( "calculateTree" ).call_policies = \ return_value_policy( manage_new_object ) mb.member_functions( lambda mem_fun: mem_fun.name.startswith( "getNodes" ) ).call_policies = \ return_value_policy( manage_new_object ) ## deal with Translator objects ## do not export decode/encode cls = mb.class_( "Translator" ) cls.member_functions( "decode" ).exclude() cls.member_functions( "encode" ).exclude() ## exclude the following because of unhandled arguments/return types mb.member_functions( "fillProfile").exclude() mb.member_functions( "fillFrequencies").exclude() mb.member_functions( "getMatrix" ).exclude() ## get an error for this. For Dottor, now obsolete. ## mb.member_functions( lambda x: x.name in ("getRowIndices",) ).exclude() ## do not include the increment/decrement and dereference operators, because there is no equivalent in python ## exlude functions while testing. Need to map return types later. mb.member_operators( lambda x: x.name in ("operator++", "operator--", "operator*", "operator->", "operator()") ).exclude() ## do not export the internal iterator interfaces. This makes Alignment ## virtual and the wrapper will cause compilation to fail. mb.classes( lambda x: x.name in ("Iterator", "ConstIterator")).exclude() ## see http://article.gmane.org/gmane.comp.python.c++/10177 ## this is used to remove the wrapper classes for purely virtual classes. for c in classes_to_export: cls = mb.class_( c ) ## remove virtual member functions. This will result in a class to be ## not virtual and hence no wrapper. members = cls.decls( declarations.virtuality_type_matcher( declarations.VIRTUALITY_TYPES.PURE_VIRTUAL ), decl_type=declarations.calldef.member_calldef_t, allow_empty=True) members.set_virtuality( declarations.VIRTUALITY_TYPES.NOT_VIRTUAL ) members = cls.decls( declarations.virtuality_type_matcher( declarations.VIRTUALITY_TYPES.ALL ), decl_type=declarations.calldef.member_calldef_t, allow_empty=True) members.set_virtuality( declarations.VIRTUALITY_TYPES.NOT_VIRTUAL ) ## do not wrap constructors, because compilation will fail for ## abstract classes. cls.constructors().exclude() ## deal with methods that transfer ownership of the first argument ## supplied to the method. ## The list contains ## 1: the class with the member function ## 2: the function prefix that needs to wrapped ## 3: the class of the pointee classes_with_ownership_transfer = [ ("MultipleAlignment", "add", "Alignatum") , ] ## TODO: add others, in particular addPair, but check for argument types #("Alignment", "addPair", "ResiduePAIR" ) ] for ccontainer, fname, cpointee in classes_with_ownership_transfer: cls_pointee = mb.class_( cpointee ) cls_pointee.held_type = 'std::auto_ptr< %s >' % cls_pointee.decl_string cls_container= mb.class_( ccontainer ) mem_funs = cls_container.member_functions( fname ) for f in mem_funs: # set alias to original function name, otherwise ugly names will be created # a call for rename() had no effect. f.add_transformation( function_transformers.transfer_ownership( 0 ), alias = fname ) ## export load/save functionality exportSave( mb, options ) exportLoad( mb, options ) ## Deal with templated matrix class template_translations = { 'Matrix<double>' : 'MatrixDouble', 'Matrix<unsigned>' : 'MatrixUInt', 'Matrix<int>' : 'MatrixInt', } ## first include the whole class, then exclude specific member functions declarations_to_export = set( template_translations.keys() ) mb.decls( lambda x: x.name in declarations_to_export ).include() for old, new in template_translations.items(): cls = mb.class_( old ) cls.rename( new ) cls.alias = new ## no warning for warning W1036: Py++ can not expose pointer to Python immutable member cls.vars(lambda x: x.name == "mMatrix" ).disable_warnings( messages.W1036 ) ## do not wrap [], gives rise to "invalid application of 'sizeof' to incomplete type" cls.member_operators( "operator[]" ).exclude() ## silence warnings about immutable types cls.mem_fun( "getValue" ).disable_warnings( messages.W1008 ) cls.mem_fun( "setValue" ).disable_warnings( messages.W1008 ) | 17694f712e3a6083ccc3dcd42f7ac85d1ed3158c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8012/17694f712e3a6083ccc3dcd42f7ac85d1ed3158c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5831,
67,
4701,
12,
4903,
262,
30,
3536,
6530,
5024,
3318,
18,
225,
8646,
3318,
848,
486,
17651,
5122,
628,
5790,
18,
3536,
3318,
67,
869,
67,
6530,
273,
444,
12,
10228,
10044,
464,
379,
2187,
296,
8438,
11535,
2187,
296,
10044,
639,
2187,
296,
3198,
2187,
468,
12900,
296,
10412,
13039,
2187,
296,
12233,
2187,
296,
23798,
4635,
2187,
296,
7456,
280,
2187,
296,
11535,
2187,
296,
11535,
3198,
2187,
296,
11535,
9661,
3198,
2187,
296,
1541,
8922,
2187,
296,
6544,
280,
2187,
296,
6747,
2187,
296,
1343,
51,
449,
280,
2187,
296,
17974,
452,
280,
2187,
296,
3198,
22,
40,
2187,
296,
607,
23965,
4066,
7937,
2187,
296,
10044,
270,
379,
2187,
296,
41,
21544,
2402,
2187,
296,
10044,
464,
379,
751,
2187,
296,
23798,
4635,
751,
2187,
296,
5506,
9003,
2402,
2187,
296,
5133,
280,
2187,
296,
56,
9015,
280,
2187,
296,
2471,
2187,
296,
3731,
93,
383,
4635,
2187,
308,
13,
225,
7541,
2341,
777,
3318,
4903,
18,
4701,
12,
3195,
619,
30,
619,
18,
529,
316,
3318,
67,
869,
67,
6530,
262,
18,
6702,
1435,
225,
7541,
10490,
598,
8933,
19,
830,
22470,
4833,
4186,
4903,
18,
5990,
67,
10722,
12,
3195,
619,
30,
619,
18,
529,
422,
315,
588,
10930,
6,
262,
18,
1991,
67,
17407,
273,
521,
327,
67,
1132,
67,
5086,
12,
10680,
67,
2704,
67,
1612,
262,
4903,
18,
5990,
67,
10722,
12,
3195,
619,
30,
619,
18,
529,
422,
315,
588,
1908,
6,
262,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
5831,
67,
4701,
12,
4903,
262,
30,
3536,
6530,
5024,
3318,
18,
225,
8646,
3318,
848,
486,
17651,
5122,
628,
5790,
18,
3536,
3318,
67,
869,
67,
6530,
273,
444,
12,
10228,
10044,
464,
379,
2187,
296,
8438,
11535,
2187,
296,
10044,
639,
2187,
296,
3198,
2187,
468,
12900,
296,
10412,
13039,
2187,
296,
12233,
2187,
296,
23798,
4635,
2187,
296,
7456,
280,
2187,
296,
11535,
2187,
296,
11535,
3198,
2187,
296,
11535,
9661,
3198,
2187,
296,
1541,
8922,
2187,
296,
6544,
280,
2187,
296,
6747,
2187,
296,
1343,
51,
449,
280,
2187,
296,
17974,
452,
280,
2187,
296,
3198,
22,
40,
2187,
296,
607,
23965,
4066,
7937,
2187,
296,
10044,
270,
379,
2187,
296,
41,
2
] |
if isinstance(iv, list): [ fu.append(self, _elt) for _elt in iv ] else: fu.set(self, iv) | if isinstance(iv, list): assert fu.isPlural() [ fu.append(self, _elt) for _elt in iv ] else: fu.set(self, iv) | def __init__ (self, *args, **kw): dom_node = kw.pop('_dom_node', None) if dom_node is not None: kw['_validate_constraints'] = False if self._AttributeWildcard is not None: self.__wildcardAttributeMap = { } if self._HasWildcardElement: self.__wildcardElements = [] if self._Abstract: raise pyxb.AbstractInstantiationError(type(self)) super(complexTypeDefinition, self).__init__(**kw) self.reset() if self._CT_SIMPLE == self._ContentTypeTag: self.__setContent(self._TypeDefinition.Factory(_dom_node=dom_node, *args, **kw)) # Extract keywords that match field names attribute_settings = { } if dom_node is not None: attribute_settings.update(self.__AttributesFromDOM(dom_node)) for fu in self._AttributeMap.values(): iv = kw.get(fu.id()) if iv is not None: attribute_settings[fu.name()] = iv self.__setAttributes(attribute_settings, dom_node) for fu in self._ElementMap.values(): iv = kw.get(fu.id()) if iv is not None: if isinstance(iv, list): [ fu.append(self, _elt) for _elt in iv ] else: fu.set(self, iv) if dom_node is not None: self._setContentFromDOM(dom_node) elif 0 < len(args): self.extend(args) | 75ebca63756007c0475e260d076b0b620801eb29 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7171/75ebca63756007c0475e260d076b0b620801eb29/basis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
4092,
67,
2159,
273,
5323,
18,
5120,
2668,
67,
9859,
67,
2159,
2187,
599,
13,
309,
4092,
67,
2159,
353,
486,
599,
30,
5323,
3292,
67,
5662,
67,
11967,
3546,
273,
1083,
309,
365,
6315,
1499,
12121,
353,
486,
599,
30,
365,
16186,
22887,
1499,
863,
273,
288,
289,
309,
365,
6315,
5582,
12121,
1046,
30,
365,
16186,
22887,
3471,
273,
5378,
309,
365,
6315,
7469,
30,
1002,
2395,
6114,
18,
7469,
10675,
7072,
668,
12,
723,
12,
2890,
3719,
2240,
12,
14259,
559,
1852,
16,
365,
2934,
972,
2738,
972,
12,
636,
9987,
13,
365,
18,
6208,
1435,
309,
365,
6315,
1268,
67,
31669,
900,
422,
365,
6315,
8046,
1805,
30,
365,
16186,
542,
1350,
12,
2890,
6315,
559,
1852,
18,
1733,
24899,
9859,
67,
2159,
33,
9859,
67,
2159,
16,
380,
1968,
16,
2826,
9987,
3719,
468,
8152,
7093,
716,
845,
652,
1257,
1566,
67,
4272,
273,
288,
289,
309,
4092,
67,
2159,
353,
486,
599,
30,
1566,
67,
4272,
18,
2725,
12,
2890,
16186,
2498,
1265,
8168,
12,
9859,
67,
2159,
3719,
364,
284,
89,
316,
365,
6315,
1499,
863,
18,
2372,
13332,
4674,
273,
5323,
18,
588,
12,
27074,
18,
350,
10756,
309,
4674,
353,
486,
599,
30,
1566,
67,
4272,
63,
27074,
18,
529,
1435,
65,
273,
4674,
365,
16186,
542,
2498,
12,
4589,
67,
4272,
16,
4092,
67,
2159,
13,
364,
284,
89,
316,
365,
6315,
1046,
863,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
380,
1968,
16,
2826,
9987,
4672,
4092,
67,
2159,
273,
5323,
18,
5120,
2668,
67,
9859,
67,
2159,
2187,
599,
13,
309,
4092,
67,
2159,
353,
486,
599,
30,
5323,
3292,
67,
5662,
67,
11967,
3546,
273,
1083,
309,
365,
6315,
1499,
12121,
353,
486,
599,
30,
365,
16186,
22887,
1499,
863,
273,
288,
289,
309,
365,
6315,
5582,
12121,
1046,
30,
365,
16186,
22887,
3471,
273,
5378,
309,
365,
6315,
7469,
30,
1002,
2395,
6114,
18,
7469,
10675,
7072,
668,
12,
723,
12,
2890,
3719,
2240,
12,
14259,
559,
1852,
16,
365,
2934,
972,
2738,
972,
12,
636,
9987,
13,
365,
18,
6208,
1435,
309,
365,
6315,
1268,
67,
31669,
900,
2
] |
self.boss.command('filemanager', 'browse', | self.boss.call_command('filemanager', 'browse', | def command_filemanager(self, filename): self.boss.command('filemanager', 'browse', directory=self.get_parent_directory(filename)) | 0289a17045ed9782553b943e4530757c0b0690b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2233/0289a17045ed9782553b943e4530757c0b0690b1/contexts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
67,
768,
4181,
12,
2890,
16,
1544,
4672,
365,
18,
70,
8464,
18,
1991,
67,
3076,
2668,
768,
4181,
2187,
296,
25731,
2187,
1867,
33,
2890,
18,
588,
67,
2938,
67,
5149,
12,
3459,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1296,
67,
768,
4181,
12,
2890,
16,
1544,
4672,
365,
18,
70,
8464,
18,
1991,
67,
3076,
2668,
768,
4181,
2187,
296,
25731,
2187,
1867,
33,
2890,
18,
588,
67,
2938,
67,
5149,
12,
3459,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if fullpath[0:2] == '.' + os.sep: fullpath = fullpath[2:] else: fullpath = fullpath[len(path)+1:] | fullpath = fullpath[len(path)+1:] | def loadTestModules(path, name='', packages=None): """ Return a test suite composed of all the tests from modules in a directory. Search for modules in directory `path`, beginning with `name`. If `packages` is true, search subdirectories (also beginning with `name`) recursively. Subdirectories must be Python packages; they must contain an '__init__.py' module. """ testLoader = unittest.defaultTestLoader testSuite = unittest.TestSuite() testModules = [] paths = [path] while paths: p = paths.pop(0) if not p: p = os.curdir files = os.listdir(p) for filename in files: if filename.startswith(name): fullpath = os.path.join(p, filename) if filename.endswith('.py'): # If the path is empty, we get a module name # starting with ./ . It means that we need to truncate # two characters from the start in order to get a # meaningful module name. if fullpath[0:2] == '.' + os.sep: fullpath = fullpath[2:] else: fullpath = fullpath[len(path)+1:] testModules.append(path2mod(fullpath)) elif packages and os.path.isdir(fullpath) and \ os.path.isfile(os.path.join(fullpath, '__init__.py')): paths.append(fullpath) # Import modules and add their tests to the suite. sys.path.insert(0, path) for mod in testModules: if debug: print >>sys.stderr, "importing %s" % mod module = import_module(mod) # if there's a suite defined, incorporate its contents try: suite = getattr(module, 'suite') except AttributeError: # Look for individual tests moduleTests = testLoader.loadTestsFromModule(module) # unittest.TestSuite.addTests() doesn't work as advertised, # as it can't load tests from another TestSuite, so we have # to cheat: testSuite.addTest(moduleTests) continue if type(suite) == types.FunctionType: testSuite.addTest(suite()) elif type(suite) == types.InstanceType \ and isinstance(suite, unittest.TestSuite): testSuite.addTest(suite) else: raise AssertionError, "don't understand suite (%s)" % mod sys.path.pop(0) return testSuite | 56ca6d9fa7781566ef98949ce7d2098ee0431fb6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/56ca6d9fa7781566ef98949ce7d2098ee0431fb6/package_unittest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
4709,
7782,
12,
803,
16,
508,
2218,
2187,
5907,
33,
7036,
4672,
3536,
2000,
279,
1842,
11371,
18673,
434,
777,
326,
7434,
628,
4381,
316,
279,
1867,
18,
225,
5167,
364,
4381,
316,
1867,
1375,
803,
9191,
8435,
598,
1375,
529,
8338,
971,
1375,
10308,
68,
353,
638,
16,
1623,
31220,
261,
31144,
8435,
598,
1375,
529,
24065,
8536,
18,
225,
2592,
15121,
1297,
506,
6600,
5907,
31,
2898,
1297,
912,
392,
4940,
2738,
25648,
2074,
11,
1605,
18,
3536,
1842,
2886,
273,
2836,
3813,
18,
1886,
4709,
2886,
1842,
13587,
273,
2836,
3813,
18,
4709,
13587,
1435,
1842,
7782,
273,
5378,
2953,
273,
306,
803,
65,
1323,
2953,
30,
293,
273,
2953,
18,
5120,
12,
20,
13,
309,
486,
293,
30,
293,
273,
1140,
18,
1397,
1214,
1390,
273,
1140,
18,
1098,
1214,
12,
84,
13,
364,
1544,
316,
1390,
30,
309,
1544,
18,
17514,
1918,
12,
529,
4672,
15170,
273,
1140,
18,
803,
18,
5701,
12,
84,
16,
1544,
13,
309,
1544,
18,
5839,
1918,
2668,
18,
2074,
11,
4672,
468,
971,
326,
589,
353,
1008,
16,
732,
336,
279,
1605,
508,
468,
5023,
598,
263,
19,
263,
2597,
4696,
716,
732,
1608,
358,
10310,
468,
2795,
3949,
628,
326,
787,
316,
1353,
358,
336,
279,
468,
26271,
1605,
508,
18,
309,
15170,
63,
20,
30,
22,
65,
422,
2611,
397,
1140,
18,
10814,
30,
15170,
273,
15170,
63,
22,
26894,
469,
30,
15170,
273,
15170,
63,
1897,
12,
803,
27921,
21,
26894,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
4709,
7782,
12,
803,
16,
508,
2218,
2187,
5907,
33,
7036,
4672,
3536,
2000,
279,
1842,
11371,
18673,
434,
777,
326,
7434,
628,
4381,
316,
279,
1867,
18,
225,
5167,
364,
4381,
316,
1867,
1375,
803,
9191,
8435,
598,
1375,
529,
8338,
971,
1375,
10308,
68,
353,
638,
16,
1623,
31220,
261,
31144,
8435,
598,
1375,
529,
24065,
8536,
18,
225,
2592,
15121,
1297,
506,
6600,
5907,
31,
2898,
1297,
912,
392,
4940,
2738,
25648,
2074,
11,
1605,
18,
3536,
1842,
2886,
273,
2836,
3813,
18,
1886,
4709,
2886,
1842,
13587,
273,
2836,
3813,
18,
4709,
13587,
1435,
1842,
7782,
273,
5378,
2953,
273,
306,
803,
65,
1323,
2953,
30,
293,
273,
2953,
18,
5120,
12,
20,
2
] |
query = tquery + query + ';' | query = tquery + query + ' AND task.success=1;' | def get_global_report(request, reportId): """ Generates a global report. @param reportId report Id """ post = request.POST if reportId == 'imssavedselections': from terapix.reporting.csv import CSVReport sels = ImageSelections.objects.all().order_by('date') content = [] k = 1 for s in sels: content.append((k, s.name)) k += 1 if not content: return HttpResponse('No saved selections found', mimetype = 'text/plain') return HttpResponse(str(CSVReport(data = content, separator = '\t')), mimetype = 'text/plain') elif reportId == 'procresults': try: kind = post['kind_select'] except Exception, e: return HttpResponseRedirect('/youpi/reporting/') from terapix.reporting.csv import CSVReport from django.db import connection import time cur = connection.cursor() s = time.time() q = """ SELECT t.success, t.title, t.start_date, u.username, t.hostname, t.clusterId, t.results_output_dir FROM youpi_processing_task AS t, auth_user AS u, youpi_processing_kind AS k WHERE t.user_id = u.id AND t.kind_id = k.id AND k.name = '%s' ORDER BY t.start_date """ % kind cur.execute(q) res = cur.fetchall() content = [] for r in res: status = 'F' # Failed if r[0]: status = 'S' row = [status] row.extend(r[1:]) content.append(row) if not content: return HttpResponse('No results found', mimetype = 'text/plain') return HttpResponse(str(CSVReport(data = content)), mimetype = 'text/plain') elif reportId == 'advimgreport': from terapix.youpi.forms import ReportAdvancedImageForm form = ReportAdvancedImageForm(post) if form.is_valid(): from django.template.loader import get_template tmpl = get_template('reports/advanced-image-report-options.html') tdata = tmpl.render(Context({'report': {'context': {'form': form}}})) report_columns = post.getlist('show_column_in_report') # Builds query tables = ['youpi_image AS i'] tquery = 'SELECT DISTINCT(i.id) FROM %s ' query = '' updated = False if post['date_obs_min']: query += "dateobs >= '%s'" % post['date_obs_min'] updated = True if post['date_obs_max']: if not updated: query += "dateobs <= '%s'" % post['date_obs_max'] else: query += " AND dateobs <= '%s'" % post['date_obs_max'] updated = True if post['exptime_min']: if updated: query += " AND" query += " exptime >= %s" % post['exptime_min'] updated = True if post['exptime_max']: if updated: query += " AND" query += " exptime <= %s" % post['exptime_max'] updated = True if post['run_id'] and post['run_id'] != '-1': tables.append('youpi_rel_ri AS ri') if updated: query += " AND" query += " ri.run_id = %s AND ri.image_id = i.id" % post['run_id'] updated = True if post['flat']: if updated: query += " AND" query += ' i.flat LIKE \'%' + post['flat'] + '%\'' updated = True if post['mask']: if updated: query += " AND" query += ' i.mask LIKE \'%' + post['mask'] + '%\'' updated = True if post['object']: if updated: query += " AND" query += ' i.object LIKE \'%' + post['object'] + '%\'' updated = True if post['airmass_min']: if updated: query += " AND" query += ' i.airmass >= %s' % post['airmass_min'] updated = True if post['airmass_max']: if updated: query += " AND" query += ' i.airmass <= %s' % post['airmass_max'] updated = True if post.has_key('tags'): tables.append('youpi_rel_tagi AS tagi') tagList = post.getlist('tags') if updated: query += " AND" query += " tagi.image_id = i.id AND (" for tagid in tagList: query += ' tagi.tag_id = %s OR' % tagid query = query[:-3] + ')' updated = True if post.has_key('instruments'): tables.append('youpi_instrument AS inst') instList = post.getlist('instruments') if updated: query += " AND" query += " inst.id = i.instrument_id AND (" for instid in instList: query += ' inst.id = %s OR' % instid query = query[:-3] + ')' updated = True if post.has_key('channels'): tables.append('youpi_channel AS chan') chanList = post.getlist('channels') if updated: query += " AND" query += " chan.id = i.channel_id AND (" for chanid in chanList: query += ' chan.id = %s OR' % chanid query = query[:-3] + ')' updated = True if post['elongation_min']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.psfelmin >= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['elongation_min'] updated = True if post['elongation_max']: if not post['elongation_min']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.psfelmax <= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['elongation_max'] updated = True if post['seeing_min']: if not post['elongation_min'] and not post['elongation_max']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.psffwhmmin >= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['seeing_min'] updated = True if post['seeing_max']: if not post['elongation_min'] and not post['elongation_max'] and not post['seeing_min']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.psffwhmmax <= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['seeing_max'] updated = True if post['sky_background_min']: if not post['elongation_min'] and not post['elongation_max'] and not post['seeing_min'] and not post['seeing_max']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.bkg >= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['sky_background_min'] updated = True if post['sky_background_max']: if not post['elongation_min'] and not post['elongation_max'] and not post['seeing_min'] and not post['seeing_max'] and not post['sky_background_min']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.bkg <= %s AND fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id' % post['sky_background_max'] updated = True if post.has_key('grades'): if not post['elongation_min'] and not post['elongation_max'] and not post['seeing_min'] and not post['seeing_max'] and not post['sky_background_min'] and not post['sky_background_max']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') tables.append('youpi_firstqeval AS eval') gList = post.getlist('grades') if updated: query += " AND" query += ' fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id AND eval.fitsin_id = fitsin.id AND (' for gid in gList: query += " eval.grade = '%s' OR" % gid query = query[:-3] + ')' updated = True if post['comment']: if not post['elongation_min'] and not post['elongation_max'] and not post['seeing_min'] and not post['seeing_max'] and not post['sky_background_min'] and not post['sky_background_max']: tables.append('youpi_plugin_fitsin AS fitsin') tables.append('youpi_processing_task AS task') tables.append('youpi_rel_it AS relit') if updated: query += " AND" query += ' fitsin.task_id = task.id AND relit.task_id = task.id AND relit.image_id = i.id AND eval.fitsin_id = fitsin.id AND ' if not post.has_key('grades'): tables.append('youpi_firstqeval AS eval') tables.append('youpi_firstqcomment AS fcom') query += ' eval.comment_id = fcom.id AND ' query += ' (eval.custom_comment LIKE \'%' + post['comment'] + '%\' OR fcom.comment LIKE \'%' + post['comment'] + '%\')' updated = True tquery = tquery % ','.join(tables) if updated: tquery += ' WHERE ' query = tquery + query + ';' # If WHERE not in query, there will be too much results if query.find('WHERE') == -1 and not post['right_ascension_RA']: report_content = """ | 92db3ba484128ec1a1d566c5d6aa1619e7283736 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11651/92db3ba484128ec1a1d566c5d6aa1619e7283736/reporting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6347,
67,
6006,
12,
2293,
16,
2605,
548,
4672,
3536,
31902,
279,
2552,
2605,
18,
632,
891,
2605,
548,
2605,
3124,
3536,
1603,
273,
590,
18,
3798,
309,
2605,
548,
422,
296,
381,
1049,
8158,
10705,
87,
4278,
628,
19272,
438,
697,
18,
20904,
18,
6715,
1930,
10381,
4820,
357,
87,
273,
3421,
29913,
18,
6911,
18,
454,
7675,
1019,
67,
1637,
2668,
712,
6134,
913,
273,
5378,
417,
273,
404,
364,
272,
316,
357,
87,
30,
913,
18,
6923,
12443,
79,
16,
272,
18,
529,
3719,
417,
1011,
404,
309,
486,
913,
30,
327,
9476,
2668,
2279,
5198,
21738,
1392,
2187,
12595,
273,
296,
955,
19,
7446,
6134,
327,
9476,
12,
701,
12,
16570,
4820,
12,
892,
273,
913,
16,
4182,
273,
2337,
88,
6134,
3631,
12595,
273,
296,
955,
19,
7446,
6134,
225,
1327,
2605,
548,
422,
296,
9381,
4717,
4278,
775,
30,
3846,
273,
1603,
3292,
9224,
67,
4025,
3546,
1335,
1185,
16,
425,
30,
327,
31780,
2668,
19,
93,
83,
416,
77,
19,
20904,
2473,
13,
628,
19272,
438,
697,
18,
20904,
18,
6715,
1930,
10381,
4820,
628,
13710,
18,
1966,
1930,
1459,
1930,
813,
662,
273,
1459,
18,
9216,
1435,
272,
273,
813,
18,
957,
1435,
1043,
273,
3536,
9111,
268,
18,
4768,
16,
268,
18,
2649,
16,
268,
18,
1937,
67,
712,
16,
582,
18,
5053,
16,
268,
18,
10358,
16,
268,
18,
7967,
548,
16,
268,
18,
4717,
67,
2844,
67,
1214,
4571,
677,
83,
416,
77,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6347,
67,
6006,
12,
2293,
16,
2605,
548,
4672,
3536,
31902,
279,
2552,
2605,
18,
632,
891,
2605,
548,
2605,
3124,
3536,
1603,
273,
590,
18,
3798,
309,
2605,
548,
422,
296,
381,
1049,
8158,
10705,
87,
4278,
628,
19272,
438,
697,
18,
20904,
18,
6715,
1930,
10381,
4820,
357,
87,
273,
3421,
29913,
18,
6911,
18,
454,
7675,
1019,
67,
1637,
2668,
712,
6134,
913,
273,
5378,
417,
273,
404,
364,
272,
316,
357,
87,
30,
913,
18,
6923,
12443,
79,
16,
272,
18,
529,
3719,
417,
1011,
404,
309,
486,
913,
30,
327,
9476,
2668,
2279,
5198,
21738,
1392,
2187,
12595,
273,
296,
955,
19,
7446,
6134,
327,
9476,
12,
701,
12,
16570,
4820,
2
] |
self.clear_trajectory_vars() | def initialize_state(self, initial_state, initial_velocities=0): self.current_state[:] = initial_state self.current_velocities[:] = initial_velocities[:] self.accelerations[:] = -self.calculate_gradient(self.current_state)/self.masses self.tmp[:] = self.current_velocities + 0.5*self.accelerations*self.time_step self.clear_trajectory_vars() self.initialized = True | b2ffe3203c09ea911540e50150e3f1ea1f5526a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11053/b2ffe3203c09ea911540e50150e3f1ea1f5526a2/dynamics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4046,
67,
2019,
12,
2890,
16,
2172,
67,
2019,
16,
2172,
67,
29418,
1961,
33,
20,
4672,
365,
18,
2972,
67,
2019,
10531,
65,
273,
2172,
67,
2019,
365,
18,
2972,
67,
29418,
1961,
10531,
65,
273,
2172,
67,
29418,
1961,
10531,
65,
365,
18,
8981,
22990,
1012,
10531,
65,
273,
300,
2890,
18,
11162,
67,
20219,
12,
2890,
18,
2972,
67,
2019,
13176,
2890,
18,
10424,
281,
365,
18,
5645,
10531,
65,
273,
365,
18,
2972,
67,
29418,
1961,
397,
374,
18,
25,
14,
2890,
18,
8981,
22990,
1012,
14,
2890,
18,
957,
67,
4119,
365,
18,
13227,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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418,
1961,
33,
20,
4672,
365,
18,
2972,
67,
2019,
10531,
65,
273,
2172,
67,
2019,
365,
18,
2972,
67,
29418,
1961,
10531,
65,
273,
2172,
67,
29418,
1961,
10531,
65,
365,
18,
8981,
22990,
1012,
10531,
65,
273,
300,
2890,
18,
11162,
67,
20219,
12,
2890,
18,
2972,
67,
2019,
13176,
2890,
18,
10424,
281,
365,
18,
5645,
10531,
65,
273,
365,
18,
2972,
67,
29418,
1961,
397,
374,
18,
25,
14,
2890,
18,
8981,
22990,
1012,
14,
2890,
18,
957,
67,
4119,
365,
18,
13227,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
"RShift":"<<", "BitOr":"|", "BitXor":"^", "BitAnd":"&", "FloorDiv":"//"} | "LShift":">>", "RShift":"<<", "BitOr":"|", "BitXor":"^", "BitAnd":"&", "FloorDiv":"//", "Pow": "**"} | def _UnaryOp(self, t): self.write(self.unop[t.op.__class__.__name__]) self.write("(") self.dispatch(t.operand) self.write(")") | abdcc23a326c677816e7fc6af76d81f37581157f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/abdcc23a326c677816e7fc6af76d81f37581157f/unparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15972,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
12,
2890,
18,
318,
556,
63,
88,
18,
556,
16186,
1106,
972,
16186,
529,
972,
5717,
365,
18,
2626,
2932,
2932,
13,
365,
18,
10739,
12,
88,
18,
4063,
464,
13,
365,
18,
2626,
2932,
2225,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15972,
3817,
12,
2890,
16,
268,
4672,
365,
18,
2626,
12,
2890,
18,
318,
556,
63,
88,
18,
556,
16186,
1106,
972,
16186,
529,
972,
5717,
365,
18,
2626,
2932,
2932,
13,
365,
18,
10739,
12,
88,
18,
4063,
464,
13,
365,
18,
2626,
2932,
2225,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._ReleaseNodeLock([self.target_node, self.new_node]) | self._ReleaseNodeLock([self.instance.primary_node, self.target_node, self.new_node]) | def _ExecDrbd8Secondary(self, feedback_fn): """Replace the secondary node for DRBD 8. | d5cd389c61faca21f200400d2e65b2148da79ddd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/d5cd389c61faca21f200400d2e65b2148da79ddd/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1905,
40,
6731,
72,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
16801,
18096,
1725,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1905,
40,
6731,
72,
28,
14893,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
5729,
326,
9946,
756,
364,
16801,
18096,
1725,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class Utility: | def get_widget_attrs(table,column,with_desc=True,sortable=False,index=None): options = {} lower_column = column.lower() lower_table = table.lower() | 4ca7700265af8d7a7c519d2d573f1cbd8ce829a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14755/4ca7700265af8d7a7c519d2d573f1cbd8ce829a3/controllers.py | [
1,
8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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6587,
67,
7039,
12,
2121,
16,
2827,
16,
1918,
67,
5569,
33,
5510,
16,
27236,
33,
8381,
16,
1615,
33,
7036,
4672,
702,
273,
2618,
2612,
67,
2827,
273,
1057,
18,
8167,
1435,
2612,
67,
2121,
273,
1014,
18,
8167,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
rev_date = "$Date: 2004/10/20 10:03:54 $"[7:-2] | rev_date = "$Date: 2004/11/16 12:08:44 $"[7:-2] | def getGRUFVersion(self,): """ getGRUFVersion(self,) => Return human-readable GRUF version as a string. """ rev_date = "$Date: 2004/10/20 10:03:54 $"[7:-2] return "%s / Revised %s" % (version__, rev_date) | c9a00afcb496b7bca821e7b762ee9380af0bd1a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/c9a00afcb496b7bca821e7b762ee9380af0bd1a1/GroupUserFolder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
6997,
57,
42,
1444,
12,
2890,
16,
4672,
3536,
336,
6997,
57,
42,
1444,
12,
2890,
16,
13,
516,
2000,
8672,
17,
11018,
15228,
57,
42,
1177,
487,
279,
533,
18,
3536,
5588,
67,
712,
273,
4662,
1626,
30,
4044,
24,
19,
2499,
19,
2313,
2593,
30,
6840,
30,
6334,
271,
6,
63,
27,
30,
17,
22,
65,
327,
2213,
87,
342,
868,
26779,
738,
87,
6,
738,
261,
1589,
972,
16,
5588,
67,
712,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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30,
6334,
271,
6,
63,
27,
30,
17,
22,
65,
327,
2213,
87,
342,
868,
26779,
738,
87,
6,
738,
261,
1589,
972,
16,
5588,
67,
712,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
assert brefs == [payment, payment2] | self.assertEquals(brefs, [payment, payment2]) | def test_back_relationships(self): | 86089dd5ecda849baf4811c4a444c82c5f916c42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/86089dd5ecda849baf4811c4a444c82c5f916c42/test_referenceable.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
823,
67,
21632,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
tags.append(FeedParserDict({'term': term, 'scheme': scheme, 'label': label})) | tags.append(value) | def _addTag(self, term, scheme, label): context = self._getContext() tags = context.setdefault('tags', []) if (not term) and (not scheme) and (not label): return value = FeedParserDict({'term': term, 'scheme': scheme, 'label': label}) if value not in tags: tags.append(FeedParserDict({'term': term, 'scheme': scheme, 'label': label})) | 44482af2baebba8741223b8967e4efeaf8365c45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/44482af2baebba8741223b8967e4efeaf8365c45/feedparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
1805,
12,
2890,
16,
2481,
16,
4355,
16,
1433,
4672,
819,
273,
365,
6315,
29120,
1435,
2342,
273,
819,
18,
542,
1886,
2668,
4156,
2187,
5378,
13,
309,
261,
902,
2481,
13,
471,
261,
902,
4355,
13,
471,
261,
902,
1433,
4672,
327,
460,
273,
14013,
2678,
5014,
12590,
11,
6408,
4278,
2481,
16,
296,
9068,
4278,
4355,
16,
296,
1925,
4278,
1433,
6792,
309,
460,
486,
316,
2342,
30,
2342,
18,
6923,
12,
8141,
2678,
5014,
12590,
11,
6408,
4278,
2481,
16,
296,
9068,
4278,
4355,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1289,
1805,
12,
2890,
16,
2481,
16,
4355,
16,
1433,
4672,
819,
273,
365,
6315,
29120,
1435,
2342,
273,
819,
18,
542,
1886,
2668,
4156,
2187,
5378,
13,
309,
261,
902,
2481,
13,
471,
261,
902,
4355,
13,
471,
261,
902,
1433,
4672,
327,
460,
273,
14013,
2678,
5014,
12590,
11,
6408,
4278,
2481,
16,
296,
9068,
4278,
4355,
16,
296,
1925,
4278,
1433,
6792,
309,
460,
486,
316,
2342,
30,
2342,
18,
6923,
12,
8141,
2678,
5014,
12590,
11,
6408,
4278,
2481,
16,
296,
9068,
4278,
4355,
16,
296,
1925,
4278,
1433,
31700,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
row = list(row) for i in xrange(len(row)): row[i] = converters[i](row[i]).encode('utf-8') writer.writerow(row) | writer.writerow([converters[i](cell).encode('utf-8') for i, cell in enumerate(row) if cols[i] not in self._html_cols]) | def iso_datetime(dt): return format_datetime(from_utimestamp(dt), 'iso8601') | 7791c448d96ebf3665d60e2764a6e1dec34e8db9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/7791c448d96ebf3665d60e2764a6e1dec34e8db9/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8702,
67,
6585,
12,
7510,
4672,
327,
740,
67,
6585,
12,
2080,
67,
322,
2796,
12,
7510,
3631,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8702,
67,
6585,
12,
7510,
4672,
327,
740,
67,
6585,
12,
2080,
67,
322,
2796,
12,
7510,
3631,
296,
9699,
14181,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
docroot = self._req.document_root() | def make_cookie(self): | 00524ee271ee1d9c14cdf63bd9e078875ac7552f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10002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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
8417,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
m[:] = 'c'*mapsize self.assertEqual(m[:], 'c'*mapsize, | m[:] = b'c'*mapsize self.assertEqual(m[:], b'c'*mapsize, | def test_access_parameter(self): # Test for "access" keyword parameter mapsize = 10 open(TESTFN, "wb").write("a"*mapsize) f = open(TESTFN, "rb") m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) self.assertEqual(m[:], 'a'*mapsize, "Readonly memory map data incorrect.") | 3c5b3f3090b6007274572d236a3d5ae5856203ec /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/3c5b3f3090b6007274572d236a3d5ae5856203ec/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3860,
67,
6775,
12,
2890,
4672,
468,
7766,
364,
315,
3860,
6,
4932,
1569,
852,
1467,
273,
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
1467,
13,
284,
273,
1696,
12,
16961,
19793,
16,
315,
6731,
7923,
312,
273,
30749,
18,
81,
1458,
12,
74,
18,
7540,
5764,
9334,
852,
1467,
16,
2006,
33,
81,
1458,
18,
13204,
67,
6949,
13,
365,
18,
11231,
5812,
12,
81,
10531,
6487,
296,
69,
11,
14,
1458,
1467,
16,
315,
1994,
3700,
3778,
852,
501,
11332,
1199,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
1467,
13,
284,
273,
1696,
12,
16961,
19793,
16,
315,
6731,
7923,
312,
273,
30749,
18,
81,
1458,
12,
74,
18,
7540,
5764,
9334,
852,
1467,
16,
2006,
33,
81,
1458,
18,
13204,
67,
6949,
13,
365,
18,
11231,
5812,
12,
81,
10531,
6487,
296,
69,
11,
14,
1458,
1467,
16,
315,
1994,
3700,
3778,
852,
501,
11332,
1199,
13,
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
] |
out.append('\n') out.append( indent+str(self.asList()) ) | def dump(self,indent='',depth=0): """Diagnostic method for listing out the contents of a ParseResults. Accepts an optional indent argument so that this string can be embedded in a nested display of other data.""" out = [] keys = self.items() keys.sort() for k,v in keys: if out: out.append('\n') out.append( "%s%s- %s: " % (indent,(' '*depth), k) ) if isinstance(v,ParseResults): if v.keys(): out.append('\n') out.append( v.dump(indent,depth+1) ) out.append('\n') else: out.append(str(v)) else: out.append(str(v)) out.append('\n') out.append( indent+str(self.asList()) ) return "".join(out) | b18dc9df3d867052b855a09a154d1d37325344c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/b18dc9df3d867052b855a09a154d1d37325344c4/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
506,
7488,
316,
279,
4764,
2562,
434,
1308,
501,
12123,
596,
273,
5378,
1311,
273,
365,
18,
3319,
1435,
1311,
18,
3804,
1435,
364,
417,
16,
90,
316,
1311,
30,
309,
596,
30,
596,
18,
6923,
2668,
64,
82,
6134,
596,
18,
6923,
12,
2213,
87,
9,
87,
17,
738,
87,
30,
315,
738,
261,
9355,
16,
2668,
225,
14609,
5979,
3631,
417,
13,
262,
309,
1549,
12,
90,
16,
3201,
3447,
4672,
309,
331,
18,
2452,
13332,
596,
18,
6923,
2668,
64,
82,
6134,
596,
18,
6923,
12,
331,
18,
8481,
12,
9355,
16,
5979,
15,
21,
13,
262,
596,
18,
6923,
2668,
64,
82,
6134,
469,
30,
596,
18,
6923,
12,
701,
12,
90,
3719,
469,
30,
596,
18,
6923,
12,
701,
12,
90,
3719,
225,
327,
1408,
18,
5701,
12,
659,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4657,
12,
2890,
16,
9355,
2218,
2187,
5979,
33,
20,
4672,
3536,
26836,
707,
364,
11591,
596,
326,
2939,
434,
279,
2884,
3447,
18,
27158,
392,
3129,
3504,
1237,
1427,
716,
333,
533,
848,
506,
7488,
316,
279,
4764,
2562,
434,
1308,
501,
12123,
596,
273,
5378,
1311,
273,
365,
18,
3319,
1435,
1311,
18,
3804,
1435,
364,
417,
16,
90,
316,
1311,
30,
309,
596,
30,
596,
18,
6923,
2668,
64,
82,
6134,
596,
18,
6923,
12,
2213,
87,
9,
87,
17,
738,
87,
30,
315,
738,
261,
9355,
16,
2668,
225,
14609,
5979,
3631,
417,
13,
262,
309,
1549,
12,
90,
16,
3201,
3447,
4672,
309,
331,
18,
2452,
13332,
596,
18,
6923,
2668,
64,
82,
2
] |
|
self.marginsHard = self.getHardMargins() self.marginsSoft = self.getSoftMargins() | self.marginsHard = self.getMarginsHard() self.marginsSoft = self.getMarginsSoft() | def inputWindow(self, xLL = None, yLL = None, xUR = None, yUR = None): self._writePort(self.lang.inputWindow(xLL, yLL, xUR, yUR)) #print "doing getHardMargins()" self.marginsHard = self.getHardMargins() #print "doing getSoftMargins()" self.marginsSoft = self.getSoftMargins() | ae2d12ff6ed28ac1579cccecb715b30b14c4dede /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3716/ae2d12ff6ed28ac1579cccecb715b30b14c4dede/plotter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
810,
3829,
12,
2890,
16,
619,
4503,
273,
599,
16,
677,
4503,
273,
599,
16,
619,
1099,
273,
599,
16,
677,
1099,
273,
599,
4672,
365,
6315,
2626,
2617,
12,
2890,
18,
4936,
18,
2630,
3829,
12,
92,
4503,
16,
677,
4503,
16,
619,
1099,
16,
677,
1099,
3719,
468,
1188,
315,
2896,
310,
7628,
1060,
28528,
10031,
365,
18,
10107,
87,
29601,
273,
365,
18,
588,
29601,
28528,
1435,
468,
1188,
315,
2896,
310,
1322,
4401,
28528,
10031,
365,
18,
10107,
87,
12468,
273,
365,
18,
588,
12468,
28528,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
810,
3829,
12,
2890,
16,
619,
4503,
273,
599,
16,
677,
4503,
273,
599,
16,
619,
1099,
273,
599,
16,
677,
1099,
273,
599,
4672,
365,
6315,
2626,
2617,
12,
2890,
18,
4936,
18,
2630,
3829,
12,
92,
4503,
16,
677,
4503,
16,
619,
1099,
16,
677,
1099,
3719,
468,
1188,
315,
2896,
310,
7628,
1060,
28528,
10031,
365,
18,
10107,
87,
29601,
273,
365,
18,
588,
29601,
28528,
1435,
468,
1188,
315,
2896,
310,
1322,
4401,
28528,
10031,
365,
18,
10107,
87,
12468,
273,
365,
18,
588,
12468,
28528,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.within_title = len(self.body) | self.in_document_title = len(self.body) | def visit_subtitle(self, node): if isinstance(node.parent, nodes.sidebar): self.body.append(self.starttag(node, 'p', '', CLASS='sidebar-subtitle')) self.context.append('</p>\n') else: self.body.append(self.starttag(node, 'h2', '', CLASS='subtitle')) self.context.append('</h2>\n') self.within_title = len(self.body) | 89793d1bacb5cf79ed93134514193035075bf21a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8194/89793d1bacb5cf79ed93134514193035075bf21a/html4css1.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
1717,
2649,
12,
2890,
16,
756,
4672,
309,
1549,
12,
2159,
18,
2938,
16,
2199,
18,
26417,
4672,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
84,
2187,
10226,
7383,
2218,
26417,
17,
1717,
2649,
26112,
365,
18,
2472,
18,
6923,
2668,
1757,
84,
5333,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
76,
22,
2187,
10226,
7383,
2218,
1717,
2649,
26112,
365,
18,
2472,
18,
6923,
2668,
1757,
76,
22,
5333,
82,
6134,
365,
18,
25850,
67,
2649,
273,
562,
12,
2890,
18,
3432,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
26112,
365,
18,
2472,
18,
6923,
2668,
1757,
84,
5333,
82,
6134,
469,
30,
365,
18,
3432,
18,
6923,
12,
2890,
18,
1937,
2692,
12,
2159,
16,
296,
76,
22,
2187,
10226,
7383,
2218,
1717,
2649,
26112,
365,
18,
2472,
18,
6923,
2668,
1757,
76,
22,
5333,
82,
6134,
365,
18,
25850,
67,
2649,
273,
562,
12,
2890,
18,
3432,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, tests, directory, platform, is_debug_mode, is_lint_mode): | def __init__(self, tests, directory, platform, is_debug_mode, is_lint_mode, standalone=False): | def __init__(self, tests, directory, platform, is_debug_mode, is_lint_mode): """Reads the test expectations files from the given directory.""" path = os.path.join(directory, self.TEST_LIST) self._expected_failures = TestExpectationsFile(path, tests, platform, is_debug_mode, is_lint_mode) | 8382948623a694853c63da7de1ac272f65883504 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/8382948623a694853c63da7de1ac272f65883504/test_expectations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1867,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
16,
17676,
33,
8381,
4672,
3536,
7483,
326,
1842,
26305,
1390,
628,
326,
864,
1867,
12123,
589,
273,
1140,
18,
803,
18,
5701,
12,
5149,
16,
365,
18,
16961,
67,
7085,
13,
365,
6315,
3825,
67,
26268,
273,
7766,
11988,
1012,
812,
12,
803,
16,
7434,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7434,
16,
1867,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
16,
17676,
33,
8381,
4672,
3536,
7483,
326,
1842,
26305,
1390,
628,
326,
864,
1867,
12123,
589,
273,
1140,
18,
803,
18,
5701,
12,
5149,
16,
365,
18,
16961,
67,
7085,
13,
365,
6315,
3825,
67,
26268,
273,
7766,
11988,
1012,
812,
12,
803,
16,
7434,
16,
4072,
16,
353,
67,
4148,
67,
3188,
16,
353,
67,
5671,
67,
3188,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.priv["ctasklist"]["columns"].insert(self.CTASKLIST_COL_TITLE, title_col) | self.priv["ctasklist"]["columns"].insert( self.CTASKLIST_COL_TITLE, title_col) | def __create_closed_tasks_tview(self): | fac54dcba973acc5967f43b60fb540659a1a87a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8234/fac54dcba973acc5967f43b60fb540659a1a87a8/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
67,
12204,
67,
9416,
67,
88,
1945,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2640,
67,
12204,
67,
9416,
67,
88,
1945,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
label = self.builder.get_object("label1") | label = self.builder.get_object("label1") | def on_delete_task(self, widget=None, tid=None): #If we don't have a parameter, then take the selection in the treeview if not tid: #tid_to_delete is a [project,task] tuple self.tids_todelete = self.get_selected_tasks() else: self.tids_todelete = [tid] #We must at least have something to delete ! if len(self.tids_todelete) > 0: label = self.builder.get_object("label1") label_text = label.get_text() label_text = label_text[0:label_text.find(":") + 1] # I find the tasks that are going to be deleted tasks = [] for tid in self.tids_todelete: def recursive_list_tasks(task_list, root): """Populate a list of all the subtasks and their children, recursively""" if root not in task_list: task_list.append(root) for i in root.get_subtasks(): recursive_list_tasks(task_list, i) task = self.req.get_task(tid) recursive_list_tasks(tasks, task) titles_list = [task.get_title() for task in tasks] titles = reduce (lambda x, y: x + "\n - " + y, titles_list) label.set_text("%s %s" % (label_text, "\n - " + titles)) delete_dialog = self.builder.get_object("confirm_delete") delete_dialog.run() delete_dialog.hide() #has the task been deleted ? return not self.tids_todelete else: return False | 3b0e27344d0061ec5df265b1e55f3f8390a2fce4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/3b0e27344d0061ec5df265b1e55f3f8390a2fce4/browser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
3733,
67,
4146,
12,
2890,
16,
3604,
33,
7036,
16,
11594,
33,
7036,
4672,
468,
2047,
732,
2727,
1404,
1240,
279,
1569,
16,
1508,
4862,
326,
4421,
316,
326,
2151,
1945,
309,
486,
11594,
30,
468,
18081,
67,
869,
67,
3733,
353,
279,
306,
4406,
16,
4146,
65,
3193,
365,
18,
88,
2232,
67,
88,
369,
929,
273,
365,
18,
588,
67,
8109,
67,
9416,
1435,
469,
30,
365,
18,
88,
2232,
67,
88,
369,
929,
273,
306,
18081,
65,
468,
3218,
1297,
622,
4520,
1240,
5943,
358,
1430,
401,
309,
562,
12,
2890,
18,
88,
2232,
67,
88,
369,
929,
13,
405,
374,
30,
282,
1433,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
1925,
21,
7923,
1433,
67,
955,
273,
1433,
18,
588,
67,
955,
1435,
1433,
67,
955,
273,
1433,
67,
955,
63,
20,
30,
1925,
67,
955,
18,
4720,
2932,
2773,
13,
397,
404,
65,
468,
467,
1104,
326,
4592,
716,
854,
8554,
358,
506,
4282,
4592,
273,
5378,
364,
11594,
316,
365,
18,
88,
2232,
67,
88,
369,
929,
30,
1652,
5904,
67,
1098,
67,
9416,
12,
4146,
67,
1098,
16,
1365,
4672,
3536,
19097,
279,
666,
434,
777,
326,
720,
9416,
471,
3675,
2325,
16,
8536,
8395,
309,
1365,
486,
316,
1562,
67,
1098,
30,
1562,
67,
1098,
18,
6923,
12,
3085,
13,
364,
277,
316,
1365,
18,
588,
67,
1717,
9416,
13332,
5904,
67,
1098,
67,
9416,
12,
4146,
67,
1098,
16,
277,
13,
1562,
273,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3733,
67,
4146,
12,
2890,
16,
3604,
33,
7036,
16,
11594,
33,
7036,
4672,
468,
2047,
732,
2727,
1404,
1240,
279,
1569,
16,
1508,
4862,
326,
4421,
316,
326,
2151,
1945,
309,
486,
11594,
30,
468,
18081,
67,
869,
67,
3733,
353,
279,
306,
4406,
16,
4146,
65,
3193,
365,
18,
88,
2232,
67,
88,
369,
929,
273,
365,
18,
588,
67,
8109,
67,
9416,
1435,
469,
30,
365,
18,
88,
2232,
67,
88,
369,
929,
273,
306,
18081,
65,
468,
3218,
1297,
622,
4520,
1240,
5943,
358,
1430,
401,
309,
562,
12,
2890,
18,
88,
2232,
67,
88,
369,
929,
13,
405,
374,
30,
282,
1433,
273,
365,
18,
9574,
18,
588,
67,
1612,
2932,
2
] |
""" | """ | def fl_set_fselector_filetype_marker(p1, p2, p3, p4, p5): """ fl_set_fselector_filetype_marker(p1, p2, p3, p4, p5) """ _fl_set_fselector_filetype_marker(p1, p2, p3, p4, p5) | 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,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
67,
542,
67,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
3536,
225,
389,
2242,
67,
542,
67,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
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,
1183,
67,
542,
67,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
4672,
3536,
1183,
67,
542,
67,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
3536,
225,
389,
2242,
67,
542,
67,
74,
9663,
67,
7540,
5872,
67,
11145,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
13,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.iptables.command("-A POSTROUTING -t mangle -m mark --mark %s -j DROP" % self.mark1) self.assertEqual(connectTcp(HOST, self.port1, TIMEOUT), False) | self.iptables.command("-A POSTROUTING -t mangle -m mark --mark %s -j DROP" % self.mark) self.assertEqual(connectTcp(HOST, self.port, TIMEOUT), False) | def testValid(self): # Connect client and filter port self.assert_(connectClient(self.client)) self.iptables.filterTcp(self.port1) | 48308515ea16f240da28b031af9875bd2e965cb9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/48308515ea16f240da28b031af9875bd2e965cb9/test_mark_flag.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1556,
12,
2890,
4672,
468,
8289,
1004,
471,
1034,
1756,
365,
18,
11231,
67,
12,
3612,
1227,
12,
2890,
18,
2625,
3719,
365,
18,
8138,
1538,
18,
2188,
27591,
12,
2890,
18,
655,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1556,
12,
2890,
4672,
468,
8289,
1004,
471,
1034,
1756,
365,
18,
11231,
67,
12,
3612,
1227,
12,
2890,
18,
2625,
3719,
365,
18,
8138,
1538,
18,
2188,
27591,
12,
2890,
18,
655,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not args: args = '--block=4096 --block=8192 --threads=10 --size=1024 --numruns=2' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): utils.system('./tiobench.pl --dir %s %s' %(dir, args)) if profilers.present(): profilers.start(self) utils.system('./tiobench.pl --dir %s %s' %(dir, args)) profilers.stop(self) profilers.report(self) | utils.system('./tiobench.pl --dir %s %s' %(self.dir, self.args)) | def execute(self, dir = None, iterations=1, args = None): if not dir: dir = self.tmpdir os.chdir(self.srcdir) if not args: args = '--block=4096 --block=8192 --threads=10 --size=1024 --numruns=2' profilers = self.job.profilers if not profilers.only(): for i in range(iterations): utils.system('./tiobench.pl --dir %s %s' %(dir, args)) | 270244f1d6340930ba742d9d10cd64a27bf7651d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/270244f1d6340930ba742d9d10cd64a27bf7651d/tiobench.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
16,
1577,
273,
599,
16,
11316,
33,
21,
16,
833,
273,
599,
4672,
309,
486,
1577,
30,
1577,
273,
365,
18,
5645,
1214,
1140,
18,
343,
1214,
12,
2890,
18,
4816,
1214,
13,
309,
486,
833,
30,
833,
273,
3534,
2629,
33,
24,
5908,
26,
1493,
2629,
33,
28,
15561,
1493,
12495,
33,
2163,
1493,
1467,
33,
2163,
3247,
1493,
2107,
20152,
33,
22,
11,
450,
7540,
414,
273,
365,
18,
4688,
18,
685,
7540,
414,
309,
486,
450,
7540,
414,
18,
3700,
13332,
364,
277,
316,
1048,
12,
19330,
4672,
2990,
18,
4299,
2668,
18,
19,
9096,
947,
7382,
18,
412,
1493,
1214,
738,
87,
738,
87,
11,
8975,
1214,
16,
833,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1836,
12,
2890,
16,
1577,
273,
599,
16,
11316,
33,
21,
16,
833,
273,
599,
4672,
309,
486,
1577,
30,
1577,
273,
365,
18,
5645,
1214,
1140,
18,
343,
1214,
12,
2890,
18,
4816,
1214,
13,
309,
486,
833,
30,
833,
273,
3534,
2629,
33,
24,
5908,
26,
1493,
2629,
33,
28,
15561,
1493,
12495,
33,
2163,
1493,
1467,
33,
2163,
3247,
1493,
2107,
20152,
33,
22,
11,
450,
7540,
414,
273,
365,
18,
4688,
18,
685,
7540,
414,
309,
486,
450,
7540,
414,
18,
3700,
13332,
364,
277,
316,
1048,
12,
19330,
4672,
2990,
18,
4299,
2668,
18,
19,
9096,
947,
7382,
18,
412,
1493,
1214,
738,
87,
738,
87,
11,
8975,
1214,
16,
833,
3719,
2,
-100
] |
print "PErr2 Pick deleted" | msg = "PErr2 Pick deleted" appendTextview(self.textviewStdOut, msg) | def delPErr2(self): try: del self.dicts[self.stPt]['PErr2'] print "PErr2 Pick deleted" except: pass | b822b77814749ba0fa0b0a638d2c2e8ccf514f6c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10470/b822b77814749ba0fa0b0a638d2c2e8ccf514f6c/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1464,
1423,
523,
22,
12,
2890,
4672,
775,
30,
1464,
365,
18,
16287,
63,
2890,
18,
334,
16484,
23962,
1423,
523,
22,
3546,
1234,
273,
315,
1423,
523,
22,
23038,
4282,
6,
714,
1528,
1945,
12,
2890,
18,
955,
1945,
10436,
1182,
16,
1234,
13,
1335,
30,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
18,
16287,
63,
2890,
18,
334,
16484,
23962,
1423,
523,
22,
3546,
1234,
273,
315,
1423,
523,
22,
23038,
4282,
6,
714,
1528,
1945,
12,
2890,
18,
955,
1945,
10436,
1182,
16,
1234,
13,
1335,
30,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
warning("Unable to guess type (interface=%s protocol=% | warning("Unable to guess datalink type (interface=%s linktype=%i). Using Ethernet" % (self.iface, ll)) | def recv(self, x): ll = self.ins.datalink() if LLTypes.has_key(ll): cls = LLTypes[ll] else: warning("Unable to guess type (interface=%s protocol=%#x family=%i). Using Ethernet" % (sa_ll[0],sa_ll[1],sa_ll[3])) cls = Ether | 22f9552562090f31dc59eb10c4b933437ecba2eb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/22f9552562090f31dc59eb10c4b933437ecba2eb/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10665,
12,
2890,
16,
619,
4672,
6579,
273,
365,
18,
2679,
18,
72,
3145,
754,
1435,
309,
29863,
2016,
18,
5332,
67,
856,
12,
2906,
4672,
2028,
273,
29863,
2016,
63,
2906,
65,
469,
30,
3436,
2932,
3370,
358,
7274,
618,
261,
5831,
5095,
87,
1771,
5095,
7,
92,
6755,
5095,
77,
2934,
11637,
512,
27281,
6,
738,
261,
13098,
67,
2906,
63,
20,
6487,
13098,
67,
2906,
63,
21,
6487,
13098,
67,
2906,
63,
23,
22643,
2028,
273,
512,
1136,
2,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
10665,
12,
2890,
16,
619,
4672,
6579,
273,
365,
18,
2679,
18,
72,
3145,
754,
1435,
309,
29863,
2016,
18,
5332,
67,
856,
12,
2906,
4672,
2028,
273,
29863,
2016,
63,
2906,
65,
469,
30,
3436,
2932,
3370,
358,
7274,
618,
261,
5831,
5095,
87,
1771,
5095,
7,
92,
6755,
5095,
77,
2934,
11637,
512,
27281,
6,
738,
261,
13098,
67,
2906,
63,
20,
6487,
13098,
67,
2906,
63,
21,
6487,
13098,
67,
2906,
63,
23,
22643,
2028,
273,
512,
1136,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: magma.function_call('IsSquare', 100, nvals=2) | sage: magma.function_call('IsSquare', 100, nvals=2) | def function_call(self, function, args=[], params={}, nvals=1): """ Return result of evaluating a Magma function with given input, parameters, and asking for nvals as output. | 04917fdfb19c54d3ca3aa421b8fa4cc30257acef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/04917fdfb19c54d3ca3aa421b8fa4cc30257acef/magma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
3536,
2000,
563,
434,
26704,
279,
490,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
445,
67,
1991,
12,
2890,
16,
445,
16,
833,
22850,
6487,
859,
28793,
290,
4524,
33,
21,
4672,
3536,
2000,
563,
434,
26704,
279,
490,
9454,
445,
598,
864,
810,
16,
1472,
16,
471,
29288,
364,
290,
4524,
487,
876,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if port <> -1: | if self.port <> -1: | def check(self): """ Check for new mails on your pop3 account. """ try: if self.ssl == True: if port <> -1: s = poplib.POP3_SSL(self.host, self.port) else: s = poplib.POP3_SSL(self.host) else: if port <> -1: s = poplib.POP3(self.host, self.port) else: s = poplib.POP3(self.host) except poplib.error_protoerror, e: self.error = True self.specto.logger.log( ('%s') % str(e), "warning", self.name) else: try: s.user(self.username) s.pass_(self.password) self.unreadMsg = len(s.list()[1]) self.newMsg = 0 self.mail_info.clear_old() if self.unreadMsg > 0: i=1 while i < self.unreadMsg + 1: str_msg = string.join(s.top(i, 0)[1], "\n") msg = email.message_from_string(str_msg) id = string.split(s.uidl(i))[2] #get unique info mail = Email(id, msg["From"].replace("\n", ""), msg["Subject"].replace("\n", ""), msg["date"]) if self.mail_info.add(mail): #check if it is a new email or just unread self.actually_changed=True self.newMsg+=1 i+=1 self.mail_info.sort() self.mail_info.remove_old() self.write_cache_file() s.quit() except poplib.error_proto, e: self.error = True self.specto.logger.log( ('%s') % str(e), "warning", self.name) except: self.specto.logger.log(_("Unexpected error: "), sys.exc_info()[0], "error", self.name) | 6fa69a66ab3e54395f6a87e45693c5f017e28dfb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10818/6fa69a66ab3e54395f6a87e45693c5f017e28dfb/watch_mail_pop3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
2073,
364,
394,
4791,
87,
603,
3433,
1843,
23,
2236,
18,
3536,
775,
30,
309,
365,
18,
8157,
422,
1053,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
273,
8275,
6673,
18,
30374,
23,
67,
6745,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
469,
30,
272,
273,
8275,
6673,
18,
30374,
23,
67,
6745,
12,
2890,
18,
2564,
13,
469,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
273,
8275,
6673,
18,
30374,
23,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
469,
30,
272,
273,
8275,
6673,
18,
30374,
23,
12,
2890,
18,
2564,
13,
1335,
8275,
6673,
18,
1636,
67,
9393,
1636,
16,
425,
30,
365,
18,
1636,
273,
1053,
365,
18,
13234,
83,
18,
4901,
18,
1330,
12,
7707,
9,
87,
6134,
738,
609,
12,
73,
3631,
315,
8551,
3113,
365,
18,
529,
13,
469,
30,
775,
30,
272,
18,
1355,
12,
2890,
18,
5053,
13,
272,
18,
5466,
67,
12,
2890,
18,
3664,
13,
365,
18,
318,
896,
3332,
273,
562,
12,
87,
18,
1098,
1435,
63,
21,
5717,
365,
18,
2704,
3332,
273,
374,
365,
18,
4408,
67,
1376,
18,
8507,
67,
1673,
1435,
225,
309,
365,
18,
318,
896,
3332,
405,
374,
30,
277,
33,
21,
1323,
277,
411,
365,
18,
318,
896,
3332,
397,
404,
30,
609,
67,
3576,
273,
533,
18,
5701,
12,
87,
18,
3669,
12,
77,
16,
374,
25146,
21,
6487,
1548,
82,
7923,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2890,
4672,
3536,
2073,
364,
394,
4791,
87,
603,
3433,
1843,
23,
2236,
18,
3536,
775,
30,
309,
365,
18,
8157,
422,
1053,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
273,
8275,
6673,
18,
30374,
23,
67,
6745,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
469,
30,
272,
273,
8275,
6673,
18,
30374,
23,
67,
6745,
12,
2890,
18,
2564,
13,
469,
30,
309,
365,
18,
655,
2813,
300,
21,
30,
272,
273,
8275,
6673,
18,
30374,
23,
12,
2890,
18,
2564,
16,
365,
18,
655,
13,
469,
30,
272,
273,
8275,
6673,
18,
30374,
23,
12,
2890,
18,
2564,
13,
1335,
8275,
6673,
18,
1636,
67,
9393,
1636,
16,
425,
2
] |
processData["store"] = process.storeSupported processData["status"] = process.statusSupported | if process.storeSupported == True: processData["store"] = 'true' else: processData["store"] = 'false' if process.statusSupported == True: processData["status"] = 'true' else: processData["status"] = 'false' | def processesDescription(self): """Format process description block | 5e3d987bdc40124b62600fe04fcf38e29a45153e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10967/5e3d987bdc40124b62600fe04fcf38e29a45153e/DescribeProcess.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8488,
3291,
12,
2890,
4672,
3536,
1630,
1207,
2477,
1203,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8488,
3291,
12,
2890,
4672,
3536,
1630,
1207,
2477,
1203,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print CATALOG_INDEXES | def addIndexesToCatalogTool(self, out): ctool = getToolByName(self, 'portal_catalog') if ctool: # add indexes and metadatas to the portal catalog ct = getToolByName(self, 'portal_catalog') print CATALOG_INDEXES for idx in CATALOG_INDEXES: if idx['name'] in ct.indexes(): ct.delIndex(idx['name']) ct.addIndex(**idx) ct.reindexIndex(idx['name'], REQUEST=None) out.write("Found the '%s' index in the catalog, reinstalled and reindexed it to make sure the index type correct.\n" % idx['name']) else: ct.addIndex(**idx) ct.reindexIndex(idx['name'], REQUEST=None) out.write("Added and reindexed '%s' (%s) to the catalog.\n" % (idx['name'], idx['type'])) | 08c82074e83a691ff222875556f02fd35e6f9cf1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9787/08c82074e83a691ff222875556f02fd35e6f9cf1/Install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
8639,
774,
9769,
6364,
12,
2890,
16,
596,
4672,
276,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
7199,
6134,
309,
276,
6738,
30,
468,
527,
5596,
471,
312,
24484,
358,
326,
11899,
6222,
5691,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
7199,
6134,
364,
2067,
316,
30210,
18683,
67,
9199,
3991,
30,
309,
2067,
3292,
529,
3546,
316,
5691,
18,
11265,
13332,
5691,
18,
3771,
1016,
12,
3465,
3292,
529,
19486,
5691,
18,
1289,
1016,
12,
636,
3465,
13,
5691,
18,
266,
1615,
1016,
12,
3465,
3292,
529,
17337,
12492,
33,
7036,
13,
596,
18,
2626,
2932,
2043,
326,
1995,
87,
11,
770,
316,
326,
6222,
16,
283,
13435,
471,
17492,
329,
518,
358,
1221,
3071,
326,
770,
618,
3434,
8403,
82,
6,
738,
2067,
3292,
529,
19486,
469,
30,
5691,
18,
1289,
1016,
12,
636,
3465,
13,
5691,
18,
266,
1615,
1016,
12,
3465,
3292,
529,
17337,
12492,
33,
7036,
13,
596,
18,
2626,
2932,
8602,
471,
17492,
329,
1995,
87,
11,
6142,
87,
13,
358,
326,
6222,
8403,
82,
6,
738,
261,
3465,
3292,
529,
17337,
2067,
3292,
723,
3546,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
8639,
774,
9769,
6364,
12,
2890,
16,
596,
4672,
276,
6738,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
7199,
6134,
309,
276,
6738,
30,
468,
527,
5596,
471,
312,
24484,
358,
326,
11899,
6222,
5691,
273,
336,
6364,
5911,
12,
2890,
16,
296,
24386,
67,
7199,
6134,
364,
2067,
316,
30210,
18683,
67,
9199,
3991,
30,
309,
2067,
3292,
529,
3546,
316,
5691,
18,
11265,
13332,
5691,
18,
3771,
1016,
12,
3465,
3292,
529,
19486,
5691,
18,
1289,
1016,
12,
636,
3465,
13,
5691,
18,
266,
1615,
1016,
12,
3465,
3292,
529,
17337,
12492,
33,
7036,
13,
596,
18,
2626,
2932,
2043,
326,
1995,
87,
11,
770,
316,
326,
6222,
16,
283,
13435,
471,
2
] |
|
lines = text.split('\n') lines = map(lambda line, prefix=prefix: prefix + line, lines) | lines = [prefix + line for line in text.split('\n')] | def indent(self, text, prefix=' '): """Indent text by prepending a given prefix to each line.""" if not text: return '' lines = text.split('\n') lines = map(lambda line, prefix=prefix: prefix + line, lines) if lines: lines[-1] = lines[-1].rstrip() return '\n'.join(lines) | 112a82b439e9fd04c483ed4a33a763333fe074b6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/112a82b439e9fd04c483ed4a33a763333fe074b6/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3504,
12,
2890,
16,
977,
16,
1633,
2218,
565,
296,
4672,
3536,
7790,
977,
635,
8254,
310,
279,
864,
1633,
358,
1517,
980,
12123,
309,
486,
977,
30,
327,
875,
2362,
273,
306,
3239,
397,
980,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
6134,
65,
309,
2362,
30,
2362,
18919,
21,
65,
273,
2362,
18919,
21,
8009,
86,
6406,
1435,
327,
2337,
82,
10332,
5701,
12,
3548,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3504,
12,
2890,
16,
977,
16,
1633,
2218,
565,
296,
4672,
3536,
7790,
977,
635,
8254,
310,
279,
864,
1633,
358,
1517,
980,
12123,
309,
486,
977,
30,
327,
875,
2362,
273,
306,
3239,
397,
980,
364,
980,
316,
977,
18,
4939,
2668,
64,
82,
6134,
65,
309,
2362,
30,
2362,
18919,
21,
65,
273,
2362,
18919,
21,
8009,
86,
6406,
1435,
327,
2337,
82,
10332,
5701,
12,
3548,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if box: if orientation == 'horizontal': b = QHGroupBox(widget) else: b = QVGroupBox(widget) b.setTitle(box) else: if orientation == 'horizontal': b = QHBox(widget) else: b = QVBox(widget) return b | if box: if orientation == 'horizontal': b = QHGroupBox(widget) else: b = QVGroupBox(widget) b.setTitle(box) else: if orientation == 'horizontal': b = QHBox(widget) else: b = QVBox(widget) return b | def widgetBox(widget, box=None, orientation='vertical'): if box: if orientation == 'horizontal': b = QHGroupBox(widget) else: b = QVGroupBox(widget) b.setTitle(box) else: if orientation == 'horizontal': b = QHBox(widget) else: b = QVBox(widget) return b | 7abe12326ad3cc73b55d7b6d29e51c9eacee5a84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/7abe12326ad3cc73b55d7b6d29e51c9eacee5a84/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3604,
3514,
12,
6587,
16,
3919,
33,
7036,
16,
9820,
2218,
17824,
11,
4672,
309,
3919,
30,
309,
9820,
422,
296,
18396,
4278,
324,
273,
2238,
44,
1114,
3514,
12,
6587,
13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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3604,
3514,
12,
6587,
16,
3919,
33,
7036,
16,
9820,
2218,
17824,
11,
4672,
309,
3919,
30,
309,
9820,
422,
296,
18396,
4278,
324,
273,
2238,
44,
1114,
3514,
12,
6587,
13,
469,
30,
324,
273,
2238,
58,
1114,
3514,
12,
6587,
13,
324,
18,
542,
4247,
12,
2147,
13,
469,
30,
309,
9820,
422,
296,
18396,
4278,
324,
273,
2238,
44,
3514,
12,
6587,
13,
469,
30,
324,
273,
2238,
58,
3514,
12,
6587,
13,
327,
324,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
approx = self._complex_mpfr_field_(ComplexField(field.prec())) | approx = self._complex_mpfr_field_(ComplexField(prec)) | def numerical_approximation(self, prec=53): """ Get a numerical approximation of self as either a real or complex number. | b7c4e96480f4622b4b10c6b9a335b1f79150ab82 /local1/tlutelli/issta_data/temp/all_python//python/2007_tem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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
17409,
67,
26742,
5115,
12,
2890,
16,
13382,
33,
8643,
4672,
3536,
968,
279,
17409,
24769,
434,
365,
487,
3344,
279,
2863,
578,
7233,
1300,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
2.0000000000000000000000000000000 | 2.0000000000000000000000000000 | def real(self): """ Return real part of self. | 0f85c81e959512e75d1c3f66db056b379125ea81 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0f85c81e959512e75d1c3f66db056b379125ea81/complex_number.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2863,
12,
2890,
4672,
3536,
2000,
2863,
1087,
434,
365,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2863,
12,
2890,
4672,
3536,
2000,
2863,
1087,
434,
365,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def main(instr_path, dir_to_clean): | def clean_folder(instr_path, dir_to_clean): """ <Purpose> Given an instructions file and a directory, it will make sure that the directory matches the instructions, deleting files where necessary, printing errors where files are missing, and printing warnings where unrecognized files exist. <Arguments> instr_path: The location of the instructions file to be used. dir_to_clean: The location of the directory to be cleaned. <Exceptions> IllegalArgError on bad filepaths. ParseError on invalid instructions file. <Side Effects> None. <Returns> None. """ | def main(instr_path, dir_to_clean): # First, get the required files and the files to be deleted (req_files, del_files) = parse_instructions(instr_path) req_files_found = [False for i in range(len(req_files))] unrecognized_files = [] if not os.path.exists(dir_to_clean): raise IllegalArgError("Given directory does not exist: " + dir_to_clean) for filename in os.listdir(dir_to_clean): deleted = False for del_file in del_files: if re.match(del_file, filename): deleted = True try: os.remove(dir_to_clean + "/" + filename) except OSError: # If it can't delete for some reason, move on pass if not deleted: required = False for i in range(len(req_files)): for part in req_files[i].split(","): part = part.strip() if re.match(part, filename): req_files_found[i] = True required = True if not required: unrecognized_files.append(filename) for filename in unrecognized_files: output("Warning: unrecognized file " + filename + " in " + dir_to_clean) for i in range(len(req_files)): if not req_files_found[i]: output("Error: required file " + req_files[i] + " not found in " + dir_to_clean) | 88ea2e701d142effa344a8ae5d4a46364a17cbf6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7263/88ea2e701d142effa344a8ae5d4a46364a17cbf6/clean_folder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
5609,
12,
267,
701,
67,
803,
16,
1577,
67,
869,
67,
6200,
4672,
3536,
411,
10262,
4150,
34,
16803,
392,
12509,
585,
471,
279,
1867,
16,
518,
903,
1221,
3071,
716,
326,
1867,
1885,
326,
12509,
16,
12993,
1390,
1625,
4573,
16,
19171,
1334,
1625,
1390,
854,
3315,
16,
471,
19171,
5599,
1625,
28333,
1390,
1005,
18,
225,
411,
4628,
34,
16170,
67,
803,
30,
1021,
2117,
434,
326,
12509,
585,
358,
506,
1399,
18,
1577,
67,
869,
67,
6200,
30,
1021,
2117,
434,
326,
1867,
358,
506,
9426,
18,
225,
411,
11416,
34,
2141,
4117,
668,
603,
5570,
3608,
87,
18,
17372,
603,
2057,
12509,
585,
18,
225,
411,
8895,
30755,
87,
34,
599,
18,
225,
411,
1356,
34,
599,
18,
3536,
468,
5783,
16,
336,
326,
1931,
1390,
471,
326,
1390,
358,
506,
4282,
261,
3658,
67,
2354,
16,
1464,
67,
2354,
13,
273,
1109,
67,
25758,
12,
267,
701,
67,
803,
13,
1111,
67,
2354,
67,
7015,
273,
306,
8381,
364,
277,
316,
1048,
12,
1897,
12,
3658,
67,
2354,
3719,
65,
28333,
67,
2354,
273,
5378,
309,
486,
1140,
18,
803,
18,
1808,
12,
1214,
67,
869,
67,
6200,
4672,
1002,
2141,
4117,
668,
2932,
6083,
1867,
1552,
486,
1005,
30,
315,
397,
1577,
67,
869,
67,
6200,
13,
364,
1544,
316,
1140,
18,
1098,
1214,
12,
1214,
67,
869,
67,
6200,
4672,
4282,
273,
1083,
364,
1464,
67,
768,
316,
1464,
67,
2354,
30,
309,
283,
18,
1916,
12,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
5609,
12,
267,
701,
67,
803,
16,
1577,
67,
869,
67,
6200,
4672,
3536,
411,
10262,
4150,
34,
16803,
392,
12509,
585,
471,
279,
1867,
16,
518,
903,
1221,
3071,
716,
326,
1867,
1885,
326,
12509,
16,
12993,
1390,
1625,
4573,
16,
19171,
1334,
1625,
1390,
854,
3315,
16,
471,
19171,
5599,
1625,
28333,
1390,
1005,
18,
225,
411,
4628,
34,
16170,
67,
803,
30,
1021,
2117,
434,
326,
12509,
585,
358,
506,
1399,
18,
1577,
67,
869,
67,
6200,
30,
1021,
2117,
434,
326,
1867,
358,
506,
9426,
18,
225,
411,
11416,
34,
2141,
4117,
668,
603,
5570,
3608,
87,
18,
17372,
603,
2057,
12509,
585,
18,
225,
411,
8895,
30755,
87,
34,
599,
18,
2
] |
file_locate(self.settings, ["netboot/busybox_config"]) | file_locate(self.settings, ["netboot/busybox_config"]) | def __init__(self,spec,addlargs): self.valid_values = [ "netboot/kernel/sources", "netboot/kernel/config", "netboot/kernel/prebuilt", | 76e4b76af7393b5a674cfebf7a0578d4ef501a73 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/76e4b76af7393b5a674cfebf7a0578d4ef501a73/netboot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
877,
67,
2372,
273,
306,
315,
2758,
7137,
19,
8111,
19,
10141,
3113,
315,
2758,
7137,
19,
8111,
19,
1425,
3113,
315,
2758,
7137,
19,
8111,
19,
1484,
12406,
3113,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2793,
16,
1289,
80,
1968,
4672,
365,
18,
877,
67,
2372,
273,
306,
315,
2758,
7137,
19,
8111,
19,
10141,
3113,
315,
2758,
7137,
19,
8111,
19,
1425,
3113,
315,
2758,
7137,
19,
8111,
19,
1484,
12406,
3113,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
SELECT RDB$RELATION_FIELDS.RDB$FIELD_NAME as field, RDB$TYPES.RDB$TYPE_NAME as t, RDB$FIELDS.RDB$FIELD_LENGTH as flength, RDB$FIELDS.RDB$FIELD_SCALE as fscale, RDB$RELATION_FIELDS.RDB$NULL_FLAG as nullAllowed, RDB$RELATION_FIELDS.RDB$DEFAULT_VALUE as thedefault, RDB$FIELDS.RDB$FIELD_SUB_TYPE as blobtype FROM RDB$RELATION_FIELDS INNER JOIN RDB$FIELDS ON (RDB$RELATION_FIELDS.RDB$FIELD_SOURCE = RDB$FIELDS.RDB$FIELD_NAME) INNER JOIN RDB$TYPES ON (RDB$FIELDS.RDB$FIELD_TYPE = RDB$TYPES.RDB$TYPE) WHERE (RDB$RELATION_FIELDS.RDB$RELATION_NAME = '%s') AND (RDB$TYPES.RDB$FIELD_NAME = 'RDB$FIELD_TYPE')""" | SELECT rf.RDB$FIELD_NAME as field, t.RDB$TYPE_NAME as t, f.RDB$FIELD_LENGTH as flength, f.RDB$FIELD_SCALE as fscale, rf.RDB$NULL_FLAG as nullAllowed, coalesce(rf.RDB$DEFAULT_SOURCE, f.rdb$default_source) as thedefault, f.RDB$FIELD_SUB_TYPE as blobtype FROM RDB$RELATION_FIELDS rf INNER JOIN RDB$FIELDS f ON rf.RDB$FIELD_SOURCE = f.RDB$FIELD_NAME INNER JOIN RDB$TYPES t ON f.RDB$FIELD_TYPE = t.RDB$TYPE WHERE rf.RDB$RELATION_NAME = '%s' AND t.RDB$FIELD_NAME = 'RDB$FIELD_TYPE'""" | def columnsFromSchema(self, tableName, soClass): """ Look at the given table and create Col instances (or subclasses of Col) for the fields it finds in that table. """ | e67bf0dfaf2a7e84533480c43f4026dd1e5e0524 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8798/e67bf0dfaf2a7e84533480c43f4026dd1e5e0524/firebirdconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2168,
1265,
3078,
12,
2890,
16,
4775,
16,
1427,
797,
4672,
3536,
10176,
622,
326,
864,
1014,
471,
752,
1558,
3884,
261,
280,
15320,
434,
1558,
13,
364,
326,
1466,
518,
13094,
316,
716,
1014,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2168,
1265,
3078,
12,
2890,
16,
4775,
16,
1427,
797,
4672,
3536,
10176,
622,
326,
864,
1014,
471,
752,
1558,
3884,
261,
280,
15320,
434,
1558,
13,
364,
326,
1466,
518,
13094,
316,
716,
1014,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
NE1_QWidgetAction(self.subControlActionGroup, win = self.win) | NE1_QWidgetAction(parentWidget, win = self.win) | def _createBondToolActions(self, parentWidget): """ Create the actions to be included in flyout toolbar , when the 'bonds tool' is active. Note that the object names of these action will be be used to find the Bond Tool type to which each action corresponds to. @see: self._createActions() where this is called. """ self.bondToolsActionGroup = QActionGroup(parentWidget) self.bondToolsActionGroup.setExclusive(True) self.bond1Action = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.bond1Action.setText("Single") self.bond1Action.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/SingleBond.png")) self.bond1Action.setObjectName('ACTION_SINGLE_BOND_TOOL') self.bond2Action = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.bond2Action.setText("Double") self.bond2Action.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/DoubleBond.png")) self.bond2Action.setObjectName('ACTION_DOUBLE_BOND_TOOL') self.bond3Action = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.bond3Action.setText("Triple") self.bond3Action.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/TripleBond.png")) self.bond3Action.setObjectName('ACTION_TRIPLE_BOND_TOOL') self.bondaAction = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.bondaAction.setText("Aromatic") self.bondaAction.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/AromaticBond.png")) self.bondaAction.setObjectName('ACTION_AROMATIC_BOND_TOOL') self.bondgAction = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.bondgAction.setText("Graphitic") self.bondgAction.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/GraphiticBond.png")) self.bondgAction.setObjectName('ACTION_GRAPHITIC_BOND_TOOL') self.cutBondsAction = \ NE1_QWidgetAction(self.subControlActionGroup, win = self.win) self.cutBondsAction.setText("Cut Bonds") self.cutBondsAction.setIcon(geticon("ui/actions/Command Toolbar/BuildAtoms/CutBonds.png")) self.cutBondsAction.setObjectName('ACTION_DELETE_BOND_TOOL') for action in [self.bond1Action, self.bond2Action, self.bond3Action, self.bondaAction, self.bondgAction, self.cutBondsAction ]: self.bondToolsActionGroup.addAction(action) action.setCheckable(True) return | b2377bd13a375f591a6882c75a30d10db225cfe9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/b2377bd13a375f591a6882c75a30d10db225cfe9/Ui_BuildAtomsFlyout.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
9807,
6364,
6100,
12,
2890,
16,
982,
4609,
4672,
3536,
1788,
326,
4209,
358,
506,
5849,
316,
21434,
659,
12748,
269,
1347,
326,
296,
70,
4096,
5226,
11,
353,
2695,
18,
3609,
716,
326,
733,
1257,
434,
4259,
1301,
903,
506,
506,
1399,
358,
1104,
326,
605,
1434,
13288,
618,
358,
1492,
1517,
1301,
13955,
358,
18,
225,
632,
5946,
30,
365,
6315,
2640,
6100,
1435,
1625,
333,
353,
2566,
18,
3536,
365,
18,
26425,
10348,
1803,
1114,
273,
2238,
1803,
1114,
12,
2938,
4609,
13,
365,
18,
26425,
10348,
1803,
1114,
18,
542,
17075,
12,
5510,
13,
225,
365,
18,
26425,
21,
1803,
273,
521,
12901,
21,
67,
53,
4609,
1803,
12,
2938,
4609,
16,
5657,
273,
365,
18,
8082,
13,
365,
18,
26425,
21,
1803,
18,
542,
1528,
2932,
5281,
7923,
365,
18,
26425,
21,
1803,
18,
542,
5554,
12,
588,
3950,
2932,
4881,
19,
4905,
19,
2189,
13288,
3215,
19,
3116,
14280,
19,
5281,
9807,
18,
6446,
6,
3719,
365,
18,
26425,
21,
1803,
18,
542,
16707,
2668,
12249,
67,
20184,
67,
38,
673,
40,
67,
26263,
6134,
225,
365,
18,
26425,
22,
1803,
273,
521,
12901,
21,
67,
53,
4609,
1803,
12,
2938,
4609,
16,
5657,
273,
365,
18,
8082,
13,
365,
18,
26425,
22,
1803,
18,
542,
1528,
2932,
5265,
7923,
365,
18,
26425,
22,
1803,
18,
542,
5554,
12,
588,
3950,
2932,
4881,
19,
4905,
19,
2189,
13288,
3215,
19,
3116,
14280,
19,
5265,
9807,
18,
6446,
6,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2640,
9807,
6364,
6100,
12,
2890,
16,
982,
4609,
4672,
3536,
1788,
326,
4209,
358,
506,
5849,
316,
21434,
659,
12748,
269,
1347,
326,
296,
70,
4096,
5226,
11,
353,
2695,
18,
3609,
716,
326,
733,
1257,
434,
4259,
1301,
903,
506,
506,
1399,
358,
1104,
326,
605,
1434,
13288,
618,
358,
1492,
1517,
1301,
13955,
358,
18,
225,
632,
5946,
30,
365,
6315,
2640,
6100,
1435,
1625,
333,
353,
2566,
18,
3536,
365,
18,
26425,
10348,
1803,
1114,
273,
2238,
1803,
1114,
12,
2938,
4609,
13,
365,
18,
26425,
10348,
1803,
1114,
18,
542,
17075,
12,
5510,
13,
225,
365,
18,
26425,
21,
1803,
273,
521,
12901,
21,
67,
53,
4609,
1803,
12,
2938,
4609,
16,
2
] |
print >> ssio, " Old Value shape, dtype, strides:", | print >> ssio, " Old Value shape, dtype, strides:", | def str_diagnostic(self): """Return a pretty multiline string representating the cause of the exception""" sio = StringIO() val_str_len_limit = 800 print >> sio, "BadOptimization Error", super(BadOptimization, self).__str__() print >> sio, " Variable: id", id(self.new_r), self.new_r print >> sio, " Op", self.new_r.owner print >> sio, " Value Type:", type(self.new_r_val) try: ssio = StringIO() print >> ssio, " Old Value shape, dtype, strides:", print >> ssio, self.old_r_val.shape, print >> ssio, self.old_r_val.dtype, print >> ssio, self.old_r_val.strides # only if all succeeds to we add anything to sio print >> sio, ssio.getvalue() except: pass | 9b4af0ce9c47ac8d047e3343176029ad0ec512da /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/9b4af0ce9c47ac8d047e3343176029ad0ec512da/debugmode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
12264,
11388,
12,
2890,
4672,
3536,
990,
279,
7517,
19431,
533,
2406,
1776,
326,
4620,
434,
326,
1520,
8395,
272,
1594,
273,
15777,
1435,
1244,
67,
701,
67,
1897,
67,
3595,
273,
1725,
713,
1172,
1671,
272,
1594,
16,
315,
6434,
13930,
1588,
1068,
3113,
2240,
12,
6434,
13930,
1588,
16,
365,
2934,
972,
701,
972,
1435,
1172,
1671,
272,
1594,
16,
315,
225,
7110,
30,
612,
3113,
612,
12,
2890,
18,
2704,
67,
86,
3631,
365,
18,
2704,
67,
86,
1172,
1671,
272,
1594,
16,
315,
225,
6066,
3113,
365,
18,
2704,
67,
86,
18,
8443,
1172,
1671,
272,
1594,
16,
315,
225,
1445,
1412,
2773,
16,
618,
12,
2890,
18,
2704,
67,
86,
67,
1125,
13,
775,
30,
5202,
1594,
273,
15777,
1435,
1172,
1671,
5202,
1594,
16,
315,
225,
18613,
1445,
2179,
16,
3182,
16,
21626,
2773,
16,
1172,
1671,
5202,
1594,
16,
365,
18,
1673,
67,
86,
67,
1125,
18,
4867,
16,
1172,
1671,
5202,
1594,
16,
365,
18,
1673,
67,
86,
67,
1125,
18,
8972,
16,
1172,
1671,
5202,
1594,
16,
365,
18,
1673,
67,
86,
67,
1125,
18,
701,
4369,
468,
1338,
309,
777,
21933,
358,
732,
527,
6967,
358,
272,
1594,
1172,
1671,
272,
1594,
16,
5202,
1594,
18,
588,
1132,
1435,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
12264,
11388,
12,
2890,
4672,
3536,
990,
279,
7517,
19431,
533,
2406,
1776,
326,
4620,
434,
326,
1520,
8395,
272,
1594,
273,
15777,
1435,
1244,
67,
701,
67,
1897,
67,
3595,
273,
1725,
713,
1172,
1671,
272,
1594,
16,
315,
6434,
13930,
1588,
1068,
3113,
2240,
12,
6434,
13930,
1588,
16,
365,
2934,
972,
701,
972,
1435,
1172,
1671,
272,
1594,
16,
315,
225,
7110,
30,
612,
3113,
612,
12,
2890,
18,
2704,
67,
86,
3631,
365,
18,
2704,
67,
86,
1172,
1671,
272,
1594,
16,
315,
225,
6066,
3113,
365,
18,
2704,
67,
86,
18,
8443,
1172,
1671,
272,
1594,
16,
315,
225,
1445,
1412,
2773,
16,
618,
12,
2890,
18,
2704,
67,
86,
67,
2
] |
vbox.pack_start(f1); vbox.pack_start(f2); | def __init__(self): gtk.Window.__init__(self) self.set_title("Calcoli") #f1 = gtk.Frame('Valori'); f2 = gtk.Frame('Risultati') #main_vbox.pack_start(f1); main_vbox.pack_start(f2); #tbl_valori = gtk.Table(...); tbl_risultati = gtk.Table(...) #f1.add(tbl_valori); f2.add(tbl_risultati) vbox = gtk.VBox() vbox.set_spacing(4) vbox.set_border_width(4) f1 = gtk.Frame('Valori'); f2 = gtk.Frame('Risultati') vbox.pack_start(f1); vbox.pack_start(f2); tbl_valori = gtk.Table(8, 2) tbl_valori.attach(self.new_label("Altezza:"), 0, 1, 0, 1) tbl_valori.attach(self.new_label("Lunghezza:"), 0, 1, 1, 2) tbl_valori.attach(self.new_label("Larghezza:"), 0, 1, 2, 3) self.e_altezza, self.e_lunghezza, self.e_larghezza = gtk.Entry(), gtk.Entry(), gtk.Entry() tbl_valori.attach(self.e_altezza, 1, 2, 0, 1) tbl_valori.attach(self.e_lunghezza, 1, 2, 1, 2) tbl_valori.attach(self.e_larghezza, 1, 2, 2, 3) tbl = gtk.Table(8, 2) tbl.attach(self.new_label("Volume:"), 0, 1, 2, 3) tbl.attach(self.new_label("Piante Inseribili:"), 0, 1, 3, 4) tbl.attach(self.new_label("Numero di pesci 3-4 cm:"), 0 ,1, 4, 5) self.volume = self.new_label('0', False) self.piante_inseribili = self.new_label('0', False) self.num_pesci_3_4 = self.new_label('0', False) tbl.attach(self.volume, 1, 2, 2, 3) tbl.attach(self.piante_inseribili, 1, 2, 3, 4) tbl.attach(self.num_pesci_3_4, 1, 2, 4, 5) tbl.attach(self.new_label("Numero di pesci 5-6 cm:"), 0, 1, 5, 6) tbl.attach(self.new_label("Watt per piante esigenti:"), 0, 1, 6, 7) tbl.attach(self.new_label("Watt per piante poco esigenti:"), 0, 1, 8, 9) self.num_pesci_5_6 = self.new_label('0', False) self.watt_esigenti = self.new_label('0', False) self.watt_poco_esigenti = self.new_label('0', False) tbl.attach(self.num_pesci_5_6, 1, 2, 5, 6) tbl.attach(self.watt_esigenti, 1, 2, 6, 7) tbl.attach(self.watt_poco_esigenti, 1, 2, 8, 9) #vbox.pack_start(tbl) | 8d8bc1379d769916bebc5029c801913f5f6a3abb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2406/8d8bc1379d769916bebc5029c801913f5f6a3abb/calcoli.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
3829,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
67,
2649,
2932,
3005,
1293,
77,
7923,
225,
468,
74,
21,
273,
22718,
18,
3219,
2668,
3053,
280,
77,
8284,
284,
22,
273,
22718,
18,
3219,
2668,
54,
291,
406,
270,
77,
6134,
468,
5254,
67,
90,
2147,
18,
2920,
67,
1937,
12,
74,
21,
1769,
2774,
67,
90,
2147,
18,
2920,
67,
1937,
12,
74,
22,
1769,
468,
16187,
67,
1125,
280,
77,
273,
22718,
18,
1388,
5825,
1769,
10142,
67,
18387,
406,
270,
77,
273,
22718,
18,
1388,
5825,
13,
468,
74,
21,
18,
1289,
12,
16187,
67,
1125,
280,
77,
1769,
284,
22,
18,
1289,
12,
16187,
67,
18387,
406,
270,
77,
13,
282,
331,
2147,
273,
22718,
18,
58,
3514,
1435,
331,
2147,
18,
542,
67,
14080,
12,
24,
13,
331,
2147,
18,
542,
67,
8815,
67,
2819,
12,
24,
13,
225,
284,
21,
273,
22718,
18,
3219,
2668,
3053,
280,
77,
8284,
284,
22,
273,
22718,
18,
3219,
2668,
54,
291,
406,
270,
77,
6134,
225,
10142,
67,
1125,
280,
77,
273,
22718,
18,
1388,
12,
28,
16,
576,
13,
225,
10142,
67,
1125,
280,
77,
18,
7331,
12,
2890,
18,
2704,
67,
1925,
2932,
1067,
736,
6378,
69,
2773,
3631,
374,
16,
404,
16,
374,
16,
404,
13,
10142,
67,
1125,
280,
77,
18,
7331,
12,
2890,
18,
2704,
67,
1925,
2932,
48,
20651,
580,
6378,
69,
2773,
3631,
374,
16,
404,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22718,
18,
3829,
16186,
2738,
972,
12,
2890,
13,
365,
18,
542,
67,
2649,
2932,
3005,
1293,
77,
7923,
225,
468,
74,
21,
273,
22718,
18,
3219,
2668,
3053,
280,
77,
8284,
284,
22,
273,
22718,
18,
3219,
2668,
54,
291,
406,
270,
77,
6134,
468,
5254,
67,
90,
2147,
18,
2920,
67,
1937,
12,
74,
21,
1769,
2774,
67,
90,
2147,
18,
2920,
67,
1937,
12,
74,
22,
1769,
468,
16187,
67,
1125,
280,
77,
273,
22718,
18,
1388,
5825,
1769,
10142,
67,
18387,
406,
270,
77,
273,
22718,
18,
1388,
5825,
13,
468,
74,
21,
18,
1289,
12,
16187,
67,
1125,
280,
77,
1769,
284,
22,
18,
1289,
12,
16187,
2
] |
|
def __init__(self, id, path=None, title='', automatic=None): | def __init__(self, id, path=None, title='', requestName=None): | def __init__(self, id, path=None, title='', automatic=None): self.id = id self.setContainerPath(path) self.setTitle(title) | 19985ee3fa2b5130bfb09a7ea7bf8aa014e8257c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/19985ee3fa2b5130bfb09a7ea7bf8aa014e8257c/SessionDataManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
16,
589,
33,
7036,
16,
2077,
2218,
2187,
590,
461,
33,
7036,
4672,
365,
18,
350,
273,
612,
365,
18,
542,
2170,
743,
12,
803,
13,
365,
18,
542,
4247,
12,
2649,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
612,
16,
589,
33,
7036,
16,
2077,
2218,
2187,
590,
461,
33,
7036,
4672,
365,
18,
350,
273,
612,
365,
18,
542,
2170,
743,
12,
803,
13,
365,
18,
542,
4247,
12,
2649,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.