rem
stringlengths 1
226k
| add
stringlengths 0
227k
| context
stringlengths 6
326k
| meta
stringlengths 143
403
| input_ids
listlengths 256
256
| attention_mask
listlengths 256
256
| labels
listlengths 128
128
|
|---|---|---|---|---|---|---|
self.assertRaises(TypeError, list, chain(N(s)))
|
self.assertRaises(TypeError, chain, N(s))
|
def test_chain(self): for s in ("123", "", range(1000), ('do', 1.2), xrange(2000,2200,5)): for g in (G, I, Ig, S, L, R): self.assertEqual(list(chain(g(s))), list(g(s))) self.assertEqual(list(chain(g(s), g(s))), list(g(s))+list(g(s))) self.assertRaises(TypeError, chain, X(s)) self.assertRaises(TypeError, list, chain(N(s))) self.assertRaises(ZeroDivisionError, list, chain(E(s)))
|
99670b07b3fb0f90717126730b9ee2d3f78261c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/99670b07b3fb0f90717126730b9ee2d3f78261c2/test_itertools.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5639,
12,
2890,
4672,
364,
272,
316,
7566,
12936,
3113,
23453,
1048,
12,
18088,
3631,
7707,
2896,
2187,
404,
18,
22,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
5639,
12,
75,
12,
87,
3719,
3631,
666,
12,
75,
12,
87,
20349,
365,
18,
11231,
5812,
12,
1098,
12,
5639,
12,
75,
12,
87,
3631,
314,
12,
87,
3719,
3631,
666,
12,
75,
12,
87,
3719,
15,
1098,
12,
75,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
2687,
16,
1139,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
2687,
16,
423,
12,
87,
3719,
365,
18,
11231,
12649,
6141,
12,
7170,
28223,
668,
16,
666,
16,
2687,
12,
41,
12,
87,
20349,
2,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5639,
12,
2890,
4672,
364,
272,
316,
7566,
12936,
3113,
23453,
1048,
12,
18088,
3631,
7707,
2896,
2187,
404,
18,
22,
3631,
12314,
12,
17172,
16,
3787,
713,
16,
25,
3719,
30,
364,
314,
316,
261,
43,
16,
467,
16,
467,
75,
16,
348,
16,
511,
16,
534,
4672,
365,
18,
11231,
5812,
12,
1098,
12,
5639,
12,
75,
12,
87,
3719,
3631,
666,
12,
75,
12,
87,
20349,
365,
18,
11231,
5812,
12,
1098,
12,
5639,
12,
75,
12,
87,
3631,
314,
12,
87,
3719,
3631,
666,
12,
75,
12,
87,
3719,
15,
1098,
12,
75,
12,
87,
20349,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
2687,
16,
1139,
12,
87,
3719,
365,
18,
2
] |
check_disambig = (thistxt is None)
|
def templatesWithParams(self, thistxt=None): """Return a list of templates used on this Page.
|
e209aca4a97685700a9613125cf0216fca9e1b79 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/e209aca4a97685700a9613125cf0216fca9e1b79/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5539,
19591,
12,
2890,
16,
333,
5830,
33,
7036,
4672,
3536,
990,
279,
666,
434,
5539,
1399,
603,
333,
3460,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5539,
19591,
12,
2890,
16,
333,
5830,
33,
7036,
4672,
3536,
990,
279,
666,
434,
5539,
1399,
603,
333,
3460,
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
] |
|
@return: -1 - no more fixups otherwise returns the
|
@return: -1 - no more fixups otherwise returns the
|
def GetPrevFixupEA(ea): """ Find previous address with fixup information @param ea: current address @return: -1 - no more fixups otherwise returns the previous address with fixup information """ return idaapi.get_prev_fixup_ea(ea)
|
bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3410/bf1ab9894aabbc1bcdadb6513fc5ef25283e4f52/idc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
9958,
8585,
416,
41,
37,
12,
24852,
4672,
3536,
4163,
2416,
1758,
598,
2917,
416,
1779,
225,
632,
891,
24164,
30,
783,
1758,
225,
632,
2463,
30,
300,
21,
300,
1158,
1898,
2917,
18294,
3541,
1135,
326,
2416,
1758,
598,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
9958,
8585,
416,
41,
37,
12,
24852,
4672,
3536,
4163,
2416,
1758,
598,
2917,
416,
1779,
225,
632,
891,
24164,
30,
783,
1758,
225,
632,
2463,
30,
300,
21,
300,
1158,
1898,
2917,
18294,
3541,
1135,
326,
2416,
1758,
598,
2917,
416,
1779,
3536,
327,
612,
69,
2425,
18,
588,
67,
10001,
67,
904,
416,
67,
24852,
12,
24852,
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,
-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 _offer_code(self, cr, uid, ids, name, args, context={}):
|
def _offer_step_code(self, cr, uid, ids, name, args, context={}):
|
def _offer_code(self, cr, uid, ids, name, args, context={}): result ={} print "Offer Step Context : ",context for id in ids: code='' offer_step = self.browse(cr,uid,[id])[0] code = '_'.join([offer_step.offer_id.code,(offer_step.type.code or '')]) result[id]=code return result
|
d9cbbeb742fed91f7f8dab8c2acea75718396b1f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7339/d9cbbeb742fed91f7f8dab8c2acea75718396b1f/offer_step.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23322,
67,
4119,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
1172,
315,
10513,
8693,
1772,
294,
3104,
2472,
364,
612,
316,
3258,
30,
981,
2218,
11,
10067,
67,
4119,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
63,
350,
5717,
63,
20,
65,
981,
273,
4427,
18,
5701,
3816,
23322,
67,
4119,
18,
23322,
67,
350,
18,
710,
16,
12,
23322,
67,
4119,
18,
723,
18,
710,
578,
28707,
5717,
563,
63,
350,
65,
33,
710,
327,
563,
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,
389,
23322,
67,
4119,
67,
710,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
563,
273,
2916,
1172,
315,
10513,
8693,
1772,
294,
3104,
2472,
364,
612,
316,
3258,
30,
981,
2218,
11,
10067,
67,
4119,
273,
365,
18,
25731,
12,
3353,
16,
1911,
16,
63,
350,
5717,
63,
20,
65,
981,
273,
4427,
18,
5701,
3816,
23322,
67,
4119,
18,
23322,
67,
350,
18,
710,
16,
12,
23322,
67,
4119,
18,
723,
18,
710,
578,
28707,
5717,
563,
63,
350,
65,
33,
710,
327,
563,
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
] |
slot_number = IO.decode_link(r[base+8:base+12])
|
slot_number = IO.decode_link(r[base+12:base+16])
|
def _get_document_slot(self, slot_number, document_number): """ Searches and returns the slot number for the given document, starting from the given base slot. If it is not found None is returned. """ r = self.resource while True: base = 12 + slot_number * 12 x = IO.decode_uint32(r[base:base+4]) if x == document_number: return slot_number slot_number = IO.decode_link(r[base+8:base+12]) if slot_number is None: return None raise ValueError, 'The database is corrupted!!'
|
0504ec1b99c0cca2d3256c2b3b35732faee92641 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/0504ec1b99c0cca2d3256c2b3b35732faee92641/IIndex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5457,
67,
14194,
12,
2890,
16,
4694,
67,
2696,
16,
1668,
67,
2696,
4672,
3536,
5167,
281,
471,
1135,
326,
4694,
1300,
364,
326,
864,
1668,
16,
5023,
628,
326,
864,
1026,
4694,
18,
971,
518,
353,
486,
1392,
599,
353,
2106,
18,
3536,
436,
273,
365,
18,
3146,
1323,
1053,
30,
1026,
273,
2593,
397,
4694,
67,
2696,
380,
2593,
619,
273,
1665,
18,
3922,
67,
11890,
1578,
12,
86,
63,
1969,
30,
1969,
15,
24,
5717,
309,
619,
422,
1668,
67,
2696,
30,
327,
4694,
67,
2696,
4694,
67,
2696,
273,
1665,
18,
3922,
67,
1232,
12,
86,
63,
1969,
15,
2138,
30,
1969,
15,
2313,
5717,
309,
4694,
67,
2696,
353,
599,
30,
327,
599,
1002,
2068,
16,
296,
1986,
2063,
353,
27823,
5,
5124,
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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588,
67,
5457,
67,
14194,
12,
2890,
16,
4694,
67,
2696,
16,
1668,
67,
2696,
4672,
3536,
5167,
281,
471,
1135,
326,
4694,
1300,
364,
326,
864,
1668,
16,
5023,
628,
326,
864,
1026,
4694,
18,
971,
518,
353,
486,
1392,
599,
353,
2106,
18,
3536,
436,
273,
365,
18,
3146,
1323,
1053,
30,
1026,
273,
2593,
397,
4694,
67,
2696,
380,
2593,
619,
273,
1665,
18,
3922,
67,
11890,
1578,
12,
86,
63,
1969,
30,
1969,
15,
24,
5717,
309,
619,
422,
1668,
67,
2696,
30,
327,
4694,
67,
2696,
4694,
67,
2696,
273,
1665,
18,
3922,
67,
1232,
12,
86,
63,
1969,
15,
2138,
30,
1969,
15,
2313,
5717,
309,
4694,
67,
2696,
353,
599,
2
] |
gLogger.error("SEvsLFCAgent.execute: Failed to get replica information.","%s %s" % (lfn,res['Value']['Failed'][lfn]))
|
gLogger.error( "SEvsLFCAgent.execute: Failed to get replica information.", "%s %s" % ( lfn, res['Value']['Failed'][lfn] ) )
|
def execute(self):
|
00d8a55a0d409a04efa1a3f677ff9c2bc47dd619 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/00d8a55a0d409a04efa1a3f677ff9c2bc47dd619/SEvsLFCAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
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,
-100,
-100
] |
namespace['is_owner_or_admin'] = is_owner or root.is_admin(user, object)
|
namespace['is_owner_or_admin'] = is_owner or root.is_admin(user, self)
|
def profile(self, context): root = context.root user = context.user
|
5854076b57ccff78d8d7afb653366f27b87e05e8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12681/5854076b57ccff78d8d7afb653366f27b87e05e8/users.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
12,
2890,
16,
819,
4672,
1365,
273,
819,
18,
3085,
729,
273,
819,
18,
1355,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
12,
2890,
16,
819,
4672,
1365,
273,
819,
18,
3085,
729,
273,
819,
18,
1355,
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
] |
sage: print G
|
sage: G
|
def gcs(self): """ A greedy critical set of a latin square self is found by successively removing elements in a row-wise (bottom-up) manner, checking for unique completion at each step.
|
79588eb9f6225f31a0fe90ef3cb590193d4561c1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/79588eb9f6225f31a0fe90ef3cb590193d4561c1/latin.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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24253,
12,
2890,
4672,
3536,
432,
5174,
24009,
11239,
444,
434,
279,
30486,
8576,
365,
353,
1392,
635,
2216,
4492,
9427,
2186,
316,
279,
1027,
17,
2460,
261,
9176,
17,
416,
13,
21296,
16,
6728,
364,
3089,
8364,
622,
1517,
2235,
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
] |
lis = [] for key,value in self.dict.items(): if len(value) == 1 : lis.append((key, value[0])) else: lis.append((key, value)) return lis
|
result = [] for key, value in self.dict.items(): if len(value) == 1: result.append((key, value[0])) else: result.append((key, value)) return result
|
def items(self): lis = [] for key,value in self.dict.items(): if len(value) == 1 : lis.append((key, value[0])) else: lis.append((key, value)) return lis
|
577e004d95c9196437c824fbb55b80e4410b47a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/577e004d95c9196437c824fbb55b80e4410b47a7/cgi.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
328,
291,
273,
5378,
364,
498,
16,
1132,
316,
365,
18,
1576,
18,
3319,
13332,
309,
562,
12,
1132,
13,
422,
404,
294,
328,
291,
18,
6923,
12443,
856,
16,
460,
63,
20,
22643,
469,
30,
4202,
328,
291,
18,
6923,
12443,
856,
16,
460,
3719,
327,
328,
291,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
12,
2890,
4672,
328,
291,
273,
5378,
364,
498,
16,
1132,
316,
365,
18,
1576,
18,
3319,
13332,
309,
562,
12,
1132,
13,
422,
404,
294,
328,
291,
18,
6923,
12443,
856,
16,
460,
63,
20,
22643,
469,
30,
4202,
328,
291,
18,
6923,
12443,
856,
16,
460,
3719,
327,
328,
291,
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
] |
os.mkdir(path)
|
os.makedirs(path)
|
def retrieve_pdb_file(self,pdb_code, compression='.Z', uncompress="gunzip", dir=None, exist=0): """Retrieves a PDB structure file from the PDB server and stores it in a local file tree. The PDB structure is returned as a single string. The compression should be '.Z' or '.gz'. 'uncompress' is the command called to uncompress the files.
|
09feacabd5a3d2f3244213b17b5431745b1fa01c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/09feacabd5a3d2f3244213b17b5431745b1fa01c/PDBList.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
67,
17414,
67,
768,
12,
2890,
16,
17414,
67,
710,
16,
9154,
2218,
18,
62,
2187,
12704,
1028,
1546,
19339,
4450,
3113,
1577,
33,
7036,
16,
1005,
33,
20,
4672,
3536,
6960,
279,
21601,
3695,
585,
628,
326,
21601,
1438,
471,
9064,
518,
316,
279,
1191,
585,
2151,
18,
1021,
21601,
3695,
353,
2106,
487,
279,
2202,
533,
18,
1021,
9154,
1410,
506,
2418,
62,
11,
578,
2418,
9764,
10332,
296,
551,
362,
1028,
11,
353,
326,
1296,
2566,
358,
12704,
1028,
326,
1390,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4614,
67,
17414,
67,
768,
12,
2890,
16,
17414,
67,
710,
16,
9154,
2218,
18,
62,
2187,
12704,
1028,
1546,
19339,
4450,
3113,
1577,
33,
7036,
16,
1005,
33,
20,
4672,
3536,
6960,
279,
21601,
3695,
585,
628,
326,
21601,
1438,
471,
9064,
518,
316,
279,
1191,
585,
2151,
18,
1021,
21601,
3695,
353,
2106,
487,
279,
2202,
533,
18,
1021,
9154,
1410,
506,
2418,
62,
11,
578,
2418,
9764,
10332,
296,
551,
362,
1028,
11,
353,
326,
1296,
2566,
358,
12704,
1028,
326,
1390,
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
] |
if None != os.getenv ("EDITOR", None):
|
if (config["collection"]["editable"] and None != os.getenv ("EDITOR", None)):
|
def hyltMain (meta_screen, starting_filename): """The core Hylt functionality. Contains the main input and display loops, lots of initialization, and so on. """ curses.curs_set(0) # Remember: Parameters are in the order of (y, x). meta_y, meta_x = meta_screen.getmaxyx() core_state = {"y": meta_y, "x": meta_x} # Keep the "base path", as all Hylt links are relative. base_path = core_state["base_path"] = os.path.dirname (starting_filename) filename = os.path.basename (starting_filename) core_state["curr_base_path"] = core_state["base_path"] # There are three windows: a top status bar, a primary screen, and a bottom # status bar. There is also the main screen, of course. Create them. top = meta_screen.subwin (1, meta_x, 0, 0) main = meta_screen.subwin (meta_y - 2, meta_x, 1, 0) bottom = meta_screen.subwin (1, meta_x, meta_y - 1, 0) # Read in the configuration. config = core_state["config"] = generateConfiguration (base_path) core_state["history"] = [] fresh_page = True done = False curses.def_prog_mode () main_needs_redraw = True while not done: if fresh_page: core_state["curr_base_path"] = os.path.dirname (filename) readHyltFile (filename, core_state)
|
4b1b14b3649b22084a2c1ddb1ecd4f5392eb5d16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2254/4b1b14b3649b22084a2c1ddb1ecd4f5392eb5d16/hylt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
3536,
1986,
2922,
14881,
5618,
14176,
18,
225,
8398,
326,
2774,
810,
471,
2562,
14075,
16,
328,
6968,
434,
10313,
16,
471,
1427,
603,
18,
3536,
225,
30436,
18,
2789,
67,
542,
12,
20,
13,
225,
468,
23133,
30,
7012,
854,
316,
326,
1353,
434,
261,
93,
16,
619,
2934,
2191,
67,
93,
16,
2191,
67,
92,
273,
2191,
67,
9252,
18,
588,
1896,
93,
92,
1435,
2922,
67,
2019,
273,
12528,
93,
6877,
2191,
67,
93,
16,
315,
92,
6877,
2191,
67,
92,
97,
225,
468,
10498,
326,
315,
1969,
589,
3113,
487,
777,
14881,
5618,
4716,
854,
3632,
18,
1026,
67,
803,
273,
2922,
67,
2019,
9614,
1969,
67,
803,
11929,
273,
1140,
18,
803,
18,
12287,
261,
18526,
67,
3459,
13,
1544,
273,
1140,
18,
803,
18,
13909,
261,
18526,
67,
3459,
13,
2922,
67,
2019,
9614,
17016,
67,
1969,
67,
803,
11929,
273,
2922,
67,
2019,
9614,
1969,
67,
803,
11929,
282,
468,
6149,
854,
8925,
9965,
30,
279,
1760,
1267,
4653,
16,
279,
3354,
5518,
16,
471,
279,
5469,
468,
1267,
4653,
18,
225,
6149,
353,
2546,
326,
2774,
5518,
16,
434,
4362,
18,
225,
1788,
2182,
18,
1760,
273,
2191,
67,
9252,
18,
1717,
8082,
261,
21,
16,
2191,
67,
92,
16,
374,
16,
374,
13,
2774,
273,
2191,
67,
9252,
18,
1717,
8082,
261,
3901,
67,
93,
300,
576,
16,
2191,
67,
92,
16,
404,
16,
374,
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,
4855,
5618,
6376,
261,
3901,
67,
9252,
16,
5023,
67,
3459,
4672,
3536,
1986,
2922,
14881,
5618,
14176,
18,
225,
8398,
326,
2774,
810,
471,
2562,
14075,
16,
328,
6968,
434,
10313,
16,
471,
1427,
603,
18,
3536,
225,
30436,
18,
2789,
67,
542,
12,
20,
13,
225,
468,
23133,
30,
7012,
854,
316,
326,
1353,
434,
261,
93,
16,
619,
2934,
2191,
67,
93,
16,
2191,
67,
92,
273,
2191,
67,
9252,
18,
588,
1896,
93,
92,
1435,
2922,
67,
2019,
273,
12528,
93,
6877,
2191,
67,
93,
16,
315,
92,
6877,
2191,
67,
92,
97,
225,
468,
10498,
326,
315,
1969,
589,
3113,
487,
777,
14881,
5618,
4716,
854,
3632,
18,
1026,
67,
803,
273,
2922,
2
] |
CurrentLineLen = len(self.profile.FileLinesList[self.CurrentLineNumber-1]) if self.__CurrentChar() in (T_CHAR_NULL, T_CHAR_CR, T_CHAR_SPACE, T_CHAR_TAB):
|
if self.__CurrentChar() in (T_CHAR_NULL, T_CHAR_CR, T_CHAR_LF, T_CHAR_SPACE, T_CHAR_TAB):
|
def __SkipWhiteSpace(self): Count = 0 while not self.__EndOfFile(): Count += 1 CurrentLineLen = len(self.profile.FileLinesList[self.CurrentLineNumber-1]) if self.__CurrentChar() in (T_CHAR_NULL, T_CHAR_CR, T_CHAR_SPACE, T_CHAR_TAB): self.__SkippedChars += str(self.__CurrentChar()) self.__GetOneChar() if self.__CurrentChar() == T_CHAR_LF: self.CurrentLineNumber += 1 self.CurrentOffsetWithinLine = 0 else: return Count - 1
|
2f743f829e2c9e634d3e62f83c6af106a22f6583 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/2f743f829e2c9e634d3e62f83c6af106a22f6583/FdfParser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6368,
23108,
12,
2890,
4672,
6974,
273,
374,
1323,
486,
365,
16186,
23358,
812,
13332,
6974,
1011,
404,
309,
365,
16186,
3935,
2156,
1435,
316,
261,
56,
67,
7305,
67,
8560,
16,
399,
67,
7305,
67,
5093,
16,
399,
67,
7305,
67,
9105,
16,
399,
67,
7305,
67,
6616,
16,
399,
67,
7305,
67,
28899,
4672,
365,
16186,
16425,
7803,
1011,
609,
12,
2890,
16186,
3935,
2156,
10756,
365,
16186,
967,
3335,
2156,
1435,
309,
365,
16186,
3935,
2156,
1435,
422,
399,
67,
7305,
67,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
6368,
23108,
12,
2890,
4672,
6974,
273,
374,
1323,
486,
365,
16186,
23358,
812,
13332,
6974,
1011,
404,
309,
365,
16186,
3935,
2156,
1435,
316,
261,
56,
67,
7305,
67,
8560,
16,
399,
67,
7305,
67,
5093,
16,
399,
67,
7305,
67,
9105,
16,
399,
67,
7305,
67,
6616,
16,
399,
67,
7305,
67,
28899,
4672,
365,
16186,
16425,
7803,
1011,
609,
12,
2890,
16186,
3935,
2156,
10756,
365,
16186,
967,
3335,
2156,
1435,
309,
365,
16186,
3935,
2156,
1435,
422,
399,
67,
7305,
67,
9105,
30,
365,
18,
3935,
31063,
1011,
404,
365,
18,
3935,
2335,
18949,
1670,
273,
374,
469,
30,
327,
6974,
300,
404,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.dprint("start=%d pos=%d" % (st, posn))
|
self.dprint("start=%s pos=%s" % (st, posn))
|
def OnFindN(self, evt, allow_wrap=True, help='', interactive=True, incremental=False): self._lastcall = self.OnFindN posn, st = self.service.doFindNext(incremental=incremental) self.dprint("start=%d pos=%d" % (st, posn)) if posn is None: self.cancel() return elif not isinstance(posn, int): return self.OnNotFound(posn) elif posn != -1: self.dprint("interactive=%s" % interactive) if interactive: self.showLine(posn, help) self.loop = 0 return if allow_wrap and st != 0: posn, st = self.service.doFindNext(0) self.dprint("wrapped: start=%d pos=%d" % (st, posn)) self.loop = 1 if posn != -1: if interactive: self.showLine(posn, "Reached end of document, continued from start.") return self.dprint("not found: start=%d pos=%d" % (st, posn)) self.OnNotFound()
|
d1c07e0512f246e75f6747f261ec0f421ff382ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/d1c07e0512f246e75f6747f261ec0f421ff382ab/find_replace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3125,
50,
12,
2890,
16,
6324,
16,
1699,
67,
4113,
33,
5510,
16,
2809,
2218,
2187,
12625,
33,
5510,
16,
20649,
33,
8381,
4672,
365,
6315,
2722,
1991,
273,
365,
18,
1398,
3125,
50,
225,
949,
82,
16,
384,
273,
365,
18,
3278,
18,
2896,
3125,
2134,
12,
15016,
287,
33,
15016,
287,
13,
365,
18,
72,
1188,
2932,
1937,
5095,
87,
949,
5095,
87,
6,
738,
261,
334,
16,
949,
82,
3719,
309,
949,
82,
353,
599,
30,
365,
18,
10996,
1435,
327,
1327,
486,
1549,
12,
917,
82,
16,
509,
4672,
327,
365,
18,
1398,
2768,
12,
917,
82,
13,
1327,
949,
82,
480,
300,
21,
30,
365,
18,
72,
1188,
2932,
24761,
5095,
87,
6,
738,
12625,
13,
309,
12625,
30,
365,
18,
4500,
1670,
12,
917,
82,
16,
2809,
13,
365,
18,
6498,
273,
374,
327,
225,
309,
1699,
67,
4113,
471,
384,
480,
374,
30,
949,
82,
16,
384,
273,
365,
18,
3278,
18,
2896,
3125,
2134,
12,
20,
13,
365,
18,
72,
1188,
2932,
18704,
30,
787,
5095,
72,
949,
5095,
72,
6,
738,
261,
334,
16,
949,
82,
3719,
365,
18,
6498,
273,
404,
225,
309,
949,
82,
480,
300,
21,
30,
309,
12625,
30,
365,
18,
4500,
1670,
12,
917,
82,
16,
315,
23646,
679,
434,
1668,
16,
17545,
5957,
628,
787,
1199,
13,
327,
225,
365,
18,
72,
1188,
2932,
902,
1392,
30,
787,
5095,
72,
949,
5095,
72,
6,
738,
261,
334,
16,
949,
82,
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,
2755,
3125,
50,
12,
2890,
16,
6324,
16,
1699,
67,
4113,
33,
5510,
16,
2809,
2218,
2187,
12625,
33,
5510,
16,
20649,
33,
8381,
4672,
365,
6315,
2722,
1991,
273,
365,
18,
1398,
3125,
50,
225,
949,
82,
16,
384,
273,
365,
18,
3278,
18,
2896,
3125,
2134,
12,
15016,
287,
33,
15016,
287,
13,
365,
18,
72,
1188,
2932,
1937,
5095,
87,
949,
5095,
87,
6,
738,
261,
334,
16,
949,
82,
3719,
309,
949,
82,
353,
599,
30,
365,
18,
10996,
1435,
327,
1327,
486,
1549,
12,
917,
82,
16,
509,
4672,
327,
365,
18,
1398,
2768,
12,
917,
82,
13,
1327,
949,
82,
480,
300,
21,
30,
365,
18,
72,
1188,
2932,
24761,
5095,
87,
2
] |
printAllProperties( s, ( REACTOR, '/', 'RC1' ) )
|
printAllProperties( s, ( REACTOR, '/CYTOPLASM', 'RC1' ) )
|
def printList( sim, primitivetype, systempath,list ): for i in list: printAllProperties( sim, ( primitivetype, systempath, i ) )
|
1a1fe362ec91a9aa39fe0cf3fe09ad6f5acdf133 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/1a1fe362ec91a9aa39fe0cf3fe09ad6f5acdf133/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
682,
12,
3142,
16,
846,
1038,
427,
5872,
16,
2619,
803,
16,
1098,
262,
30,
364,
277,
316,
666,
30,
1172,
1595,
2297,
12,
3142,
16,
261,
846,
1038,
427,
5872,
16,
2619,
803,
16,
277,
262,
262,
565,
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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316,
666,
30,
1172,
1595,
2297,
12,
3142,
16,
261,
846,
1038,
427,
5872,
16,
2619,
803,
16,
277,
262,
262,
565,
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
] |
rrd_dir = os.path.dirname( rrdfile ) if not os.path.exists( rrd_dir ):
|
rrd_dir = os.path.dirname( rrdfile ) if not os.path.exists( rrd_dir ):
|
def deliver(self, sub, msg, insec, rock):
|
763bd88c050d5b7c1c8035882e37b6fef3ae29fd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/763bd88c050d5b7c1c8035882e37b6fef3ae29fd/elvinrrd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11795,
12,
2890,
16,
720,
16,
1234,
16,
316,
3321,
16,
23486,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11795,
12,
2890,
16,
720,
16,
1234,
16,
316,
3321,
16,
23486,
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
] |
return _('%s section of %s') % (instructors, courses)
|
return _('%s section of %s') % (instructors, courses)
|
def _getLabel(self): instructors = " ".join([i.title for i in self.instructors]) courses = " ".join([c.title for c in self.courses]) return _('%s section of %s') % (instructors, courses)
|
1e74387bc1d1f5f201e8c785d9af774f1b41ae2e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7127/1e74387bc1d1f5f201e8c785d9af774f1b41ae2e/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
2224,
12,
2890,
4672,
316,
1697,
1383,
273,
315,
3552,
5701,
3816,
77,
18,
2649,
364,
277,
316,
365,
18,
267,
1697,
1383,
5717,
17224,
273,
315,
3552,
5701,
3816,
71,
18,
2649,
364,
276,
316,
365,
18,
15804,
5717,
327,
389,
29909,
87,
2442,
434,
738,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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,
389,
588,
2224,
12,
2890,
4672,
316,
1697,
1383,
273,
315,
3552,
5701,
3816,
77,
18,
2649,
364,
277,
316,
365,
18,
267,
1697,
1383,
5717,
17224,
273,
315,
3552,
5701,
3816,
71,
18,
2649,
364,
276,
316,
365,
18,
15804,
5717,
327,
389,
29909,
87,
2442,
434,
738,
87,
6134,
738,
261,
267,
1697,
1383,
16,
17224,
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
] |
rtList = [] for instanceId, rtId, recflag in cu.fetchall(): if rtId != roleId:
|
ugtList = [] results = cu.fetchall() instanceIds = set([ x[0] for x in results ]) for instanceId in instanceIds: permissions = [ x[2:] for x in results if x[0] == instanceId and x[1] == roleId ] if len(permissions) == 0:
|
def add(self, roleId, troveList, recursive=True): """ grant access on a troveList to a Role. If recursive = True, then access is also granted to all the children of the troves passed """ self._findInstanceIds(troveList) recursive = int(bool(recursive)) # we have now the list of instanceIds in the tmpInstanceId table. # avoid inserting duplicates cu = self.db.cursor() cu.execute(""" select distinct tmpInstanceId.instanceId, ugt.ugtId, ugt.recursive from tmpInstanceId left join UserGroupTroves as ugt using(instanceId) """) # record the new permissions rtList = [] for instanceId, rtId, recflag in cu.fetchall(): # new instanceId, left join returned a NULL rt record, or # another role has access to this instanceId if rtId != roleId: cu.execute("insert into UserGroupTroves(userGroupId, instanceId, recursive) " "values (?,?,?)", (roleId, instanceId, recursive)) rtId = cu.lastrowid elif recursive and not recflag: # granting recursive access to something that wasn't recursive before cu.execute("update UserGroupTroves set recursive = ? where rtId = ?", (recursive, rtId)) else: # not worth bothering with a rebuild rtId = None if rtId: # we have a new (or changed) acl self.rebuild(cu, rtId, roleId) rtList.append(rtId) return rtList
|
06bc2b62d119d5d89b047d93a538d8e72cf636c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/06bc2b62d119d5d89b047d93a538d8e72cf636c2/accessmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
21152,
16,
23432,
537,
682,
16,
5904,
33,
5510,
4672,
3536,
7936,
2006,
603,
279,
23432,
537,
682,
358,
279,
6204,
18,
971,
5904,
273,
1053,
16,
1508,
2006,
353,
2546,
17578,
358,
777,
326,
2325,
434,
326,
23432,
3324,
2275,
3536,
365,
6315,
4720,
1442,
2673,
12,
88,
303,
537,
682,
13,
5904,
273,
509,
12,
6430,
12,
10543,
3719,
468,
732,
1240,
2037,
326,
666,
434,
791,
2673,
316,
326,
1853,
15327,
1014,
18,
468,
4543,
21079,
11211,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
15985,
18,
8837,
2932,
3660,
2027,
10217,
1853,
15327,
18,
1336,
548,
16,
582,
4521,
18,
637,
88,
548,
16,
582,
4521,
18,
10543,
628,
1853,
15327,
2002,
1233,
30928,
56,
303,
3324,
487,
582,
4521,
1450,
12,
1336,
548,
13,
3536,
13,
468,
1409,
326,
394,
4371,
8253,
682,
273,
5378,
364,
17608,
16,
8253,
548,
16,
1950,
6420,
316,
15985,
18,
5754,
454,
13332,
468,
394,
17608,
16,
2002,
1233,
2106,
279,
3206,
8253,
1409,
16,
578,
468,
4042,
2478,
711,
2006,
358,
333,
17608,
309,
8253,
548,
480,
21152,
30,
15985,
18,
8837,
2932,
6387,
1368,
30928,
56,
303,
3324,
12,
1355,
8722,
16,
17608,
16,
5904,
13,
315,
315,
2372,
13590,
27166,
27166,
2225,
16,
261,
4615,
548,
16,
17608,
16,
5904,
3719,
8253,
548,
273,
15985,
18,
2722,
492,
350,
1327,
5904,
471,
486,
1950,
6420,
30,
468,
7936,
310,
5904,
2006,
358,
5943,
716,
14487,
1404,
5904,
1865,
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,
527,
12,
2890,
16,
21152,
16,
23432,
537,
682,
16,
5904,
33,
5510,
4672,
3536,
7936,
2006,
603,
279,
23432,
537,
682,
358,
279,
6204,
18,
971,
5904,
273,
1053,
16,
1508,
2006,
353,
2546,
17578,
358,
777,
326,
2325,
434,
326,
23432,
3324,
2275,
3536,
365,
6315,
4720,
1442,
2673,
12,
88,
303,
537,
682,
13,
5904,
273,
509,
12,
6430,
12,
10543,
3719,
468,
732,
1240,
2037,
326,
666,
434,
791,
2673,
316,
326,
1853,
15327,
1014,
18,
468,
4543,
21079,
11211,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
15985,
18,
8837,
2932,
3660,
2027,
10217,
1853,
15327,
18,
1336,
548,
16,
582,
4521,
18,
637,
88,
548,
16,
582,
4521,
18,
10543,
628,
1853,
2
] |
finalimg_width, finalimg_height = finalimg_height, finalimg_width
|
finalimg_width, finalimg_height = finalimg_height, finalimg_width
|
def put_zoom_image_to_window(self, currimg_preloaded):
|
a4d6024d09d807bd2a142bf54daca1a7d1873c7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/a4d6024d09d807bd2a142bf54daca1a7d1873c7f/mirage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
16,
4306,
6081,
67,
1484,
4230,
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,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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,
1378,
67,
14932,
67,
2730,
67,
869,
67,
5668,
12,
2890,
16,
4306,
6081,
67,
1484,
4230,
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
] |
details = 'Conflicting sections, (type: %s' % type
|
details = 'Conflicting sections (type: %s' % type
|
def __init__(self, type, name=None): self.type = type self.name = name details = 'Conflicting sections, (type: %s' % type if name is not None: details += ', name: %s' % name ConfigurationError.__init__(self, details + ')')
|
3d30cabca7ab2b6f898661a131231aa65cfb6016 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9785/3d30cabca7ab2b6f898661a131231aa65cfb6016/Common.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
508,
33,
7036,
4672,
365,
18,
723,
273,
618,
365,
18,
529,
273,
508,
3189,
273,
296,
10732,
310,
7178,
261,
723,
30,
738,
87,
11,
738,
618,
309,
508,
353,
486,
599,
30,
3189,
1011,
2265,
508,
30,
738,
87,
11,
738,
508,
27507,
16186,
2738,
972,
12,
2890,
16,
3189,
397,
5777,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
508,
33,
7036,
4672,
365,
18,
723,
273,
618,
365,
18,
529,
273,
508,
3189,
273,
296,
10732,
310,
7178,
261,
723,
30,
738,
87,
11,
738,
618,
309,
508,
353,
486,
599,
30,
3189,
1011,
2265,
508,
30,
738,
87,
11,
738,
508,
27507,
16186,
2738,
972,
12,
2890,
16,
3189,
397,
5777,
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
] |
raise RuntimeError("cannot release un-aquired lock")
|
raise RuntimeError("cannot release un-acquired lock")
|
def release(self): if self.__owner is not current_thread(): raise RuntimeError("cannot release un-aquired lock") self.__count = count = self.__count - 1 if not count: self.__owner = None self.__block.release() if __debug__: self._note("%s.release(): final release", self) else: if __debug__: self._note("%s.release(): non-final release", self)
|
f63963809fe5f7a4e8c0a0f23e6d75f8e82b8686 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/f63963809fe5f7a4e8c0a0f23e6d75f8e82b8686/threading.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3992,
12,
2890,
4672,
309,
365,
16186,
8443,
353,
486,
783,
67,
5930,
13332,
1002,
7265,
2932,
12892,
3992,
640,
17,
1077,
1402,
2176,
7923,
365,
16186,
1883,
273,
1056,
273,
365,
16186,
1883,
300,
404,
309,
486,
1056,
30,
365,
16186,
8443,
273,
599,
365,
16186,
2629,
18,
9340,
1435,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
18,
9340,
13332,
727,
3992,
3113,
365,
13,
469,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
18,
9340,
13332,
1661,
17,
6385,
3992,
3113,
365,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3992,
12,
2890,
4672,
309,
365,
16186,
8443,
353,
486,
783,
67,
5930,
13332,
1002,
7265,
2932,
12892,
3992,
640,
17,
1077,
1402,
2176,
7923,
365,
16186,
1883,
273,
1056,
273,
365,
16186,
1883,
300,
404,
309,
486,
1056,
30,
365,
16186,
8443,
273,
599,
365,
16186,
2629,
18,
9340,
1435,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
18,
9340,
13332,
727,
3992,
3113,
365,
13,
469,
30,
309,
1001,
4148,
972,
30,
365,
6315,
7652,
27188,
87,
18,
9340,
13332,
1661,
17,
6385,
3992,
3113,
365,
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
] |
"""m, name=None, globs=None, verbose=None, isprivate=None, report=1 Test examples in docstrings in functions and classes reachable from module m, starting with m.__doc__. Private names are skipped.
|
"""m=None, name=None, globs=None, verbose=None, isprivate=None, report=1 Test examples in docstrings in functions and classes reachable from module m (or the current module if m is not supplied), starting with m.__doc__. Private names are skipped.
|
def testmod(m, name=None, globs=None, verbose=None, isprivate=None, report=1): """m, name=None, globs=None, verbose=None, isprivate=None, report=1 Test examples in docstrings in functions and classes reachable from module m, starting with m.__doc__. Private names are skipped. Also test examples reachable from dict m.__test__ if it exists and is not None. m.__dict__ maps names to functions, classes and strings; function and class docstrings are tested even if the name is private; strings are tested directly, as if they were docstrings. Return (#failures, #tests). See doctest.__doc__ for an overview. Optional keyword arg "name" gives the name of the module; by default use m.__name__. Optional keyword arg "globs" gives a dict to be used as the globals when executing examples; by default, use m.__dict__. A copy of this dict is actually used for each docstring, so that each docstring's examples start with a clean slate. Optional keyword arg "verbose" prints lots of stuff if true, prints only failures if false; by default, it's true iff "-v" is in sys.argv. Optional keyword arg "isprivate" specifies a function used to determine whether a name is private. The default function is doctest.is_private; see its docs for details. Optional keyword arg "report" prints a summary at the end when true, else prints nothing at the end. In verbose mode, the summary is detailed, else very brief (in fact, empty if all tests passed). Advanced tomfoolery: testmod runs methods of a local instance of class doctest.Tester, then merges the results into (or creates) global Tester instance doctest.master. Methods of doctest.master can be called directly too, if you want to do something unusual. Passing report=0 to testmod is especially useful then, to delay displaying a summary. Invoke doctest.master.summarize(verbose) when you're done fiddling. """ global master if not _ismodule(m): raise TypeError("testmod: module required; " + `m`) if name is None: name = m.__name__ tester = Tester(m, globs=globs, verbose=verbose, isprivate=isprivate) failures, tries = tester.rundoc(m, name) f, t = tester.rundict(m.__dict__, name, m) failures = failures + f tries = tries + t if hasattr(m, "__test__"): testdict = m.__test__ if testdict: if not hasattr(testdict, "items"): raise TypeError("testmod: module.__test__ must support " ".items(); " + `testdict`) f, t = tester.run__test__(testdict, name + ".__test__") failures = failures + f tries = tries + t if report: tester.summarize() if master is None: master = tester else: master.merge(tester) return failures, tries
|
30d7b5aa38c17c0a3ee2db0de99a9fb0144d11a5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/30d7b5aa38c17c0a3ee2db0de99a9fb0144d11a5/doctest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1711,
12,
81,
16,
508,
33,
7036,
16,
4715,
87,
33,
7036,
16,
3988,
33,
7036,
16,
353,
1152,
33,
7036,
16,
2605,
33,
21,
4672,
3536,
81,
33,
7036,
16,
508,
33,
7036,
16,
4715,
87,
33,
7036,
16,
3988,
33,
7036,
16,
353,
1152,
33,
7036,
16,
2605,
33,
21,
225,
7766,
10991,
316,
997,
10219,
316,
4186,
471,
3318,
19234,
628,
1605,
312,
261,
280,
326,
783,
1605,
309,
312,
353,
486,
4580,
3631,
5023,
598,
312,
16186,
2434,
25648,
225,
8726,
1257,
854,
9700,
18,
225,
8080,
1842,
10991,
19234,
628,
2065,
312,
16186,
3813,
972,
309,
518,
1704,
471,
353,
486,
599,
18,
225,
312,
16186,
1576,
972,
7565,
1257,
358,
4186,
16,
3318,
471,
2064,
31,
445,
471,
667,
997,
10219,
854,
18432,
5456,
309,
326,
508,
353,
3238,
31,
2064,
854,
18432,
5122,
16,
487,
309,
2898,
4591,
997,
10219,
18,
225,
2000,
23885,
26268,
16,
468,
16341,
2934,
225,
2164,
31263,
395,
16186,
2434,
972,
364,
392,
18471,
18,
225,
4055,
4932,
1501,
315,
529,
6,
14758,
326,
508,
434,
326,
1605,
31,
635,
805,
999,
312,
16186,
529,
25648,
225,
4055,
4932,
1501,
315,
10581,
87,
6,
14758,
279,
2065,
358,
506,
1399,
487,
326,
10941,
1347,
11274,
10991,
31,
635,
805,
16,
999,
312,
16186,
1576,
25648,
225,
432,
1610,
434,
333,
2065,
353,
6013,
1399,
364,
1517,
14525,
16,
1427,
716,
1517,
14525,
1807,
10991,
787,
598,
279,
2721,
2020,
340,
18,
225,
4055,
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,
1711,
12,
81,
16,
508,
33,
7036,
16,
4715,
87,
33,
7036,
16,
3988,
33,
7036,
16,
353,
1152,
33,
7036,
16,
2605,
33,
21,
4672,
3536,
81,
33,
7036,
16,
508,
33,
7036,
16,
4715,
87,
33,
7036,
16,
3988,
33,
7036,
16,
353,
1152,
33,
7036,
16,
2605,
33,
21,
225,
7766,
10991,
316,
997,
10219,
316,
4186,
471,
3318,
19234,
628,
1605,
312,
261,
280,
326,
783,
1605,
309,
312,
353,
486,
4580,
3631,
5023,
598,
312,
16186,
2434,
25648,
225,
8726,
1257,
854,
9700,
18,
225,
8080,
1842,
10991,
19234,
628,
2065,
312,
16186,
3813,
972,
309,
518,
1704,
471,
353,
486,
599,
18,
225,
312,
16186,
1576,
972,
7565,
1257,
358,
4186,
2
] |
notes = self.xml.find('.//TEXT').text image = elixer.fix_filename(image, self.res_num)
|
notes = self.xml.find('.//TEXT').text or '' if image: image = elixer.fix_filename(image, self.res_num)
|
def _load(self): parts = ('FORMALTITLE', 'GIVEN', 'FAMILY') data_parts = [self.xml.find('.//%s' % p).attrib['value'] for p in parts]
|
7668dc2dcbb21799cf97dc3780efb3b8221c8f80 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12927/7668dc2dcbb21799cf97dc3780efb3b8221c8f80/bb9_course.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
4672,
2140,
273,
7707,
4983,
1013,
14123,
2187,
296,
43,
8188,
1157,
2187,
296,
25002,
25554,
6134,
501,
67,
6019,
273,
306,
2890,
18,
2902,
18,
4720,
2668,
18,
759,
9,
87,
11,
738,
293,
2934,
14588,
3292,
1132,
3546,
364,
293,
316,
2140,
65,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
945,
12,
2890,
4672,
2140,
273,
7707,
4983,
1013,
14123,
2187,
296,
43,
8188,
1157,
2187,
296,
25002,
25554,
6134,
501,
67,
6019,
273,
306,
2890,
18,
2902,
18,
4720,
2668,
18,
759,
9,
87,
11,
738,
293,
2934,
14588,
3292,
1132,
3546,
364,
293,
316,
2140,
65,
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
] |
pos = self.currpos() target_ofs = pos - target_ofs target = WORD + target_ofs + arch.PC_OFFSET/2
|
target += 2 * WORD
|
def B_offs(self, target_ofs, c=cond.AL): target = target_ofs-arch.PC_OFFSET/2 pos = self.currpos() if target_ofs > pos: raise NotImplementedError else: if target >= 0 and target <= 0xFF: pos = self.currpos() target_ofs = pos - target_ofs target = WORD + target_ofs + arch.PC_OFFSET/2 self.SUB_ri(reg.pc.value, reg.pc.value, target, cond=c) else: assert c == cond.AL self.LDR_ri(reg.ip.value, reg.pc.value, cond=c) self.SUB_rr(reg.pc.value, reg.pc.value, reg.ip.value, cond=c) pos = self.currpos() target_ofs = pos - target_ofs target = WORD + target_ofs + arch.PC_OFFSET/2 self.write32(target)
|
705623c8b64a5ecd703ed2053e1e97380d6f6584 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/705623c8b64a5ecd703ed2053e1e97380d6f6584/codebuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
605,
67,
26600,
12,
2890,
16,
1018,
67,
792,
87,
16,
276,
33,
10013,
18,
1013,
4672,
1018,
273,
1018,
67,
792,
87,
17,
991,
18,
3513,
67,
11271,
19,
22,
949,
273,
365,
18,
17016,
917,
1435,
309,
1018,
67,
792,
87,
405,
949,
30,
1002,
11206,
469,
30,
309,
1018,
1545,
374,
471,
1018,
1648,
374,
6356,
30,
1018,
1011,
576,
380,
21464,
365,
18,
8362,
67,
566,
12,
1574,
18,
2436,
18,
1132,
16,
960,
18,
2436,
18,
1132,
16,
1018,
16,
6941,
33,
71,
13,
469,
30,
1815,
276,
422,
6941,
18,
1013,
365,
18,
48,
6331,
67,
566,
12,
1574,
18,
625,
18,
1132,
16,
960,
18,
2436,
18,
1132,
16,
6941,
33,
71,
13,
365,
18,
8362,
67,
523,
12,
1574,
18,
2436,
18,
1132,
16,
960,
18,
2436,
18,
1132,
16,
960,
18,
625,
18,
1132,
16,
6941,
33,
71,
13,
1018,
1011,
576,
380,
21464,
365,
18,
2626,
1578,
12,
3299,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
605,
67,
26600,
12,
2890,
16,
1018,
67,
792,
87,
16,
276,
33,
10013,
18,
1013,
4672,
1018,
273,
1018,
67,
792,
87,
17,
991,
18,
3513,
67,
11271,
19,
22,
949,
273,
365,
18,
17016,
917,
1435,
309,
1018,
67,
792,
87,
405,
949,
30,
1002,
11206,
469,
30,
309,
1018,
1545,
374,
471,
1018,
1648,
374,
6356,
30,
1018,
1011,
576,
380,
21464,
365,
18,
8362,
67,
566,
12,
1574,
18,
2436,
18,
1132,
16,
960,
18,
2436,
18,
1132,
16,
1018,
16,
6941,
33,
71,
13,
469,
30,
1815,
276,
422,
6941,
18,
1013,
365,
18,
48,
6331,
67,
566,
12,
1574,
18,
625,
18,
1132,
16,
960,
18,
2436,
18,
1132,
16,
6941,
33,
2
] |
objFreq = self.get_freq(objName)
|
objFreq = self.obj_size(objName)['freq']
|
def read(self, name, start_date=None, end_date=None, start_case=None, end_case=None, max_string_len=65): """read specified object(s) from database
|
9a931e02283bbf6d8fe5efbf776f3c06a5418dbe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/9a931e02283bbf6d8fe5efbf776f3c06a5418dbe/fame.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
508,
16,
787,
67,
712,
33,
7036,
16,
679,
67,
712,
33,
7036,
16,
787,
67,
3593,
33,
7036,
16,
679,
67,
3593,
33,
7036,
16,
943,
67,
1080,
67,
1897,
33,
9222,
4672,
225,
3536,
896,
1269,
733,
12,
87,
13,
628,
2063,
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,
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
7036,
16,
943,
67,
1080,
67,
1897,
33,
9222,
4672,
225,
3536,
896,
1269,
733,
12,
87,
13,
628,
2063,
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
] |
schema = XMLSchema()
|
schema = schema or XMLSchema()
|
def loadFromURL(self, url): """Return an XMLSchema instance loaded from the given url. url -- URL to dereference """ reader = self.__readerClass() if self.__base_url: url = basejoin(self.__base_url,url)
|
6d201de3040319ca5a8fc16b477b596f1fb849ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/6d201de3040319ca5a8fc16b477b596f1fb849ff/XMLSchema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24935,
1785,
12,
2890,
16,
880,
4672,
3536,
990,
392,
3167,
3078,
791,
4203,
628,
326,
864,
880,
18,
880,
1493,
1976,
358,
27794,
3536,
2949,
273,
365,
16186,
10530,
797,
1435,
309,
365,
16186,
1969,
67,
718,
30,
880,
273,
1026,
5701,
12,
2890,
16186,
1969,
67,
718,
16,
718,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24935,
1785,
12,
2890,
16,
880,
4672,
3536,
990,
392,
3167,
3078,
791,
4203,
628,
326,
864,
880,
18,
880,
1493,
1976,
358,
27794,
3536,
2949,
273,
365,
16186,
10530,
797,
1435,
309,
365,
16186,
1969,
67,
718,
30,
880,
273,
1026,
5701,
12,
2890,
16186,
1969,
67,
718,
16,
718,
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
] |
name = data[pos:pos+name_length].decode("utf-16").strip("\x00")
|
name = data[pos:pos+name_length].decode("utf-16-le").strip("\x00")
|
def parse(self, asf, data, fileobj, size): super(ExtendedContentDescriptionObject, self).parse(asf, data, fileobj, size) asf.extended_content_description_obj = self num_attributes, = struct.unpack("<H", data[0:2]) pos = 2 for i in range(num_attributes): name_length, = struct.unpack("<H", data[pos:pos+2]) pos += 2 name = data[pos:pos+name_length].decode("utf-16").strip("\x00") pos += name_length value_type, value_length = struct.unpack("<HH", data[pos:pos+4]) pos += 4 value = data[pos:pos+value_length] pos += value_length attr = _attribute_types[value_type](data=value) asf.tags.append((name, attr))
|
f8045ddfb7a46abea4efd67a5303f027e3f7565a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1845/f8045ddfb7a46abea4efd67a5303f027e3f7565a/asf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
487,
74,
16,
501,
16,
17041,
16,
963,
4672,
2240,
12,
11456,
1350,
3291,
921,
16,
365,
2934,
2670,
12,
345,
74,
16,
501,
16,
17041,
16,
963,
13,
487,
74,
18,
14948,
67,
1745,
67,
3384,
67,
2603,
273,
365,
818,
67,
4350,
16,
273,
1958,
18,
17309,
2932,
32,
44,
3113,
501,
63,
20,
30,
22,
5717,
949,
273,
576,
364,
277,
316,
1048,
12,
2107,
67,
4350,
4672,
508,
67,
2469,
16,
273,
1958,
18,
17309,
2932,
32,
44,
3113,
501,
63,
917,
30,
917,
15,
22,
5717,
949,
1011,
576,
508,
273,
501,
63,
917,
30,
917,
15,
529,
67,
2469,
8009,
3922,
2932,
3158,
17,
2313,
17,
298,
20387,
6406,
31458,
92,
713,
7923,
949,
1011,
508,
67,
2469,
460,
67,
723,
16,
460,
67,
2469,
273,
1958,
18,
17309,
2932,
32,
17500,
3113,
501,
63,
917,
30,
917,
15,
24,
5717,
949,
1011,
1059,
460,
273,
501,
63,
917,
30,
917,
15,
1132,
67,
2469,
65,
949,
1011,
460,
67,
2469,
1604,
273,
389,
4589,
67,
2352,
63,
1132,
67,
723,
29955,
892,
33,
1132,
13,
487,
74,
18,
4156,
18,
6923,
12443,
529,
16,
1604,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
487,
74,
16,
501,
16,
17041,
16,
963,
4672,
2240,
12,
11456,
1350,
3291,
921,
16,
365,
2934,
2670,
12,
345,
74,
16,
501,
16,
17041,
16,
963,
13,
487,
74,
18,
14948,
67,
1745,
67,
3384,
67,
2603,
273,
365,
818,
67,
4350,
16,
273,
1958,
18,
17309,
2932,
32,
44,
3113,
501,
63,
20,
30,
22,
5717,
949,
273,
576,
364,
277,
316,
1048,
12,
2107,
67,
4350,
4672,
508,
67,
2469,
16,
273,
1958,
18,
17309,
2932,
32,
44,
3113,
501,
63,
917,
30,
917,
15,
22,
5717,
949,
1011,
576,
508,
273,
501,
63,
917,
30,
917,
15,
529,
67,
2469,
8009,
3922,
2932,
3158,
17,
2313,
17,
298,
20387,
2
] |
def __init__(self, host='', port=None, **x509):
|
def __init__(self, host='', port=None, key_file=None, cert_file=None, strict=None):
|
def __init__(self, host='', port=None, **x509): # provide a default host, pass the X509 cert info
|
10fb0cd552742f705321830d292919646e739dd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/10fb0cd552742f705321830d292919646e739dd2/httplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
498,
67,
768,
33,
7036,
16,
3320,
67,
768,
33,
7036,
16,
5490,
33,
7036,
4672,
468,
5615,
279,
805,
1479,
16,
1342,
326,
1139,
5995,
3320,
1123,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1479,
2218,
2187,
1756,
33,
7036,
16,
498,
67,
768,
33,
7036,
16,
3320,
67,
768,
33,
7036,
16,
5490,
33,
7036,
4672,
468,
5615,
279,
805,
1479,
16,
1342,
326,
1139,
5995,
3320,
1123,
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
] |
path=urllib.unquote(string.split(URL2, REQUEST.script)[1])
|
path=string.split(URL2, REQUEST.script) if len(path) > 1: path=path[1] else: path='' path=urllib.unquote(path)
|
def manage_catalogFoundItems(self, REQUEST, RESPONSE, URL2, URL1, obj_metatypes=None, obj_ids=None, obj_searchterm=None, obj_expr=None, obj_mtime=None, obj_mspec=None, obj_roles=None, obj_permission=None): """ Find object according to search criteria and Catalog them """
|
2413d142cbaa7b5b74a9907119a4e9760c3f5111 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/2413d142cbaa7b5b74a9907119a4e9760c3f5111/ZCatalog.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
7199,
2043,
3126,
12,
2890,
16,
12492,
16,
20645,
16,
1976,
22,
16,
1976,
21,
16,
1081,
67,
10578,
13373,
33,
7036,
16,
1081,
67,
2232,
33,
7036,
16,
1081,
67,
3072,
6408,
33,
7036,
16,
1081,
67,
8638,
33,
7036,
16,
1081,
67,
10838,
33,
7036,
16,
1081,
67,
959,
705,
33,
7036,
16,
1081,
67,
7774,
33,
7036,
16,
1081,
67,
9827,
33,
7036,
4672,
225,
3536,
4163,
733,
4888,
358,
1623,
3582,
471,
14953,
2182,
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,
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0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
7199,
2043,
3126,
12,
2890,
16,
12492,
16,
20645,
16,
1976,
22,
16,
1976,
21,
16,
1081,
67,
10578,
13373,
33,
7036,
16,
1081,
67,
2232,
33,
7036,
16,
1081,
67,
3072,
6408,
33,
7036,
16,
1081,
67,
8638,
33,
7036,
16,
1081,
67,
10838,
33,
7036,
16,
1081,
67,
959,
705,
33,
7036,
16,
1081,
67,
7774,
33,
7036,
16,
1081,
67,
9827,
33,
7036,
4672,
225,
3536,
4163,
733,
4888,
358,
1623,
3582,
471,
14953,
2182,
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
] |
import sage.version canonical_info['sage_version'] = sage.version.version
|
try: import sage.version canonical_info['sage_version'] = sage.version.version except ImportError: canonical_info['sage_version'] = 'unknown'
|
def canonical_info(self, platform_host_info): """ Standarize host info so we can parse it easily. """
|
5c0a9405673505359105d945ae78c56ceef970f0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5c0a9405673505359105d945ae78c56ceef970f0/hostinfo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1376,
12,
2890,
16,
4072,
67,
2564,
67,
1376,
4672,
3536,
934,
464,
297,
554,
1479,
1123,
1427,
732,
848,
1109,
518,
17997,
18,
225,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1376,
12,
2890,
16,
4072,
67,
2564,
67,
1376,
4672,
3536,
934,
464,
297,
554,
1479,
1123,
1427,
732,
848,
1109,
518,
17997,
18,
225,
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,
-100,
-100,
-100,
-100,
-100
] |
print 'Type: %r' % x.type.value
|
log_debug('HTTP -> CONTENT -> Type: %r' % x.type.value)
|
def execute(self): """Launch the report and return it""" js_obj = self.pool.get('jasper.server') js_ids = js_obj.search(self.cr, self.uid, [('enable','=',True)]) if not len(js_ids): raise Exception('Error, no JasperServer found!')
|
f760cf13165af6f709a6fae8daf39833f55b216b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6641/f760cf13165af6f709a6fae8daf39833f55b216b/report_soap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
9569,
326,
2605,
471,
327,
518,
8395,
3828,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
78,
345,
457,
18,
3567,
6134,
3828,
67,
2232,
273,
3828,
67,
2603,
18,
3072,
12,
2890,
18,
3353,
16,
365,
18,
1911,
16,
306,
2668,
7589,
17023,
33,
2187,
5510,
13,
5717,
309,
486,
562,
12,
2924,
67,
2232,
4672,
1002,
1185,
2668,
668,
16,
1158,
804,
345,
457,
2081,
1392,
5124,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
9569,
326,
2605,
471,
327,
518,
8395,
3828,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
78,
345,
457,
18,
3567,
6134,
3828,
67,
2232,
273,
3828,
67,
2603,
18,
3072,
12,
2890,
18,
3353,
16,
365,
18,
1911,
16,
306,
2668,
7589,
17023,
33,
2187,
5510,
13,
5717,
309,
486,
562,
12,
2924,
67,
2232,
4672,
1002,
1185,
2668,
668,
16,
1158,
804,
345,
457,
2081,
1392,
5124,
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
] |
filter = res_company_ldap['ldap_filter']%(login,)
|
filter = filter_format(res_company_ldap['ldap_filter'], (login,))
|
def _ldap_login(db, login, passwd): ret = oldfnc(db, login, passwd) if ret: return ret
|
c2d798c06f7cd34b8f5ed60f1c8ea20072ad9ff9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/c2d798c06f7cd34b8f5ed60f1c8ea20072ad9ff9/users_ldap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14394,
67,
5819,
12,
1966,
16,
3925,
16,
19093,
4672,
325,
273,
1592,
4293,
71,
12,
1966,
16,
3925,
16,
19093,
13,
309,
325,
30,
327,
325,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14394,
67,
5819,
12,
1966,
16,
3925,
16,
19093,
4672,
325,
273,
1592,
4293,
71,
12,
1966,
16,
3925,
16,
19093,
13,
309,
325,
30,
327,
325,
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
] |
names = [prefix + suffix for suffix in suffixes]
|
def getColorsProperty(prefix): """ takes HSV 'S' and 'V' from conf files, hue from self, returns a tuple of four RGB colors. """ names = [prefix + suffix for suffix in suffixes] def getSaturatedColors(self): return [getLozengeTypeColor(self.hue, name) for name in names]
|
244911ac583ccc75e9fed50e4d5ff72bbe5a13ac /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9228/244911ac583ccc75e9fed50e4d5ff72bbe5a13ac/CalendarCanvas.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12570,
1396,
12,
3239,
4672,
3536,
5530,
670,
23927,
296,
55,
11,
471,
296,
58,
11,
628,
2195,
1390,
16,
16846,
628,
365,
16,
1135,
279,
3193,
434,
12792,
11510,
5740,
18,
225,
3536,
1652,
1322,
270,
28480,
12570,
12,
2890,
4672,
327,
306,
588,
1504,
8396,
908,
559,
2957,
12,
2890,
18,
76,
344,
16,
508,
13,
364,
508,
316,
1257,
65,
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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
58,
11,
628,
2195,
1390,
16,
16846,
628,
365,
16,
1135,
279,
3193,
434,
12792,
11510,
5740,
18,
225,
3536,
1652,
1322,
270,
28480,
12570,
12,
2890,
4672,
327,
306,
588,
1504,
8396,
908,
559,
2957,
12,
2890,
18,
76,
344,
16,
508,
13,
364,
508,
316,
1257,
65,
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
] |
|
def __init__(self, polynomial, name=None, check=True, embedding=None, latex_name=None):
|
def __init__(self, polynomial, name=None, latex_name=None, check=True, embedding=None):
|
def __init__(self, polynomial, name=None, check=True, embedding=None, latex_name=None): """ Create a quadratic number field. EXAMPLES:: sage: k.<a> = QuadraticField(5, check=False); k Number Field in a with defining polynomial x^2 - 5 Don't do this:: sage: k.<a> = QuadraticField(4, check=False); k Number Field in a with defining polynomial x^2 - 4
|
f8a2d54cf6197e4b94c6442f8899260b5d1c4f31 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f8a2d54cf6197e4b94c6442f8899260b5d1c4f31/number_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16991,
16,
508,
33,
7036,
16,
25079,
67,
529,
33,
7036,
16,
866,
33,
5510,
16,
15853,
33,
7036,
4672,
3536,
1788,
279,
26146,
1300,
652,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
417,
22782,
69,
34,
273,
27258,
20004,
974,
12,
25,
16,
866,
33,
8381,
1769,
417,
3588,
2286,
316,
279,
598,
9364,
16991,
619,
66,
22,
300,
1381,
225,
7615,
1404,
741,
333,
2866,
225,
272,
410,
30,
417,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
16991,
16,
508,
33,
7036,
16,
25079,
67,
529,
33,
7036,
16,
866,
33,
5510,
16,
15853,
33,
7036,
4672,
3536,
1788,
279,
26146,
1300,
652,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
417,
22782,
69,
34,
273,
27258,
20004,
974,
12,
25,
16,
866,
33,
8381,
1769,
417,
3588,
2286,
316,
279,
598,
9364,
16991,
619,
66,
22,
300,
1381,
225,
7615,
1404,
741,
333,
2866,
225,
272,
410,
30,
417,
22782,
69,
34,
273,
27258,
20004,
974,
12,
24,
16,
866,
33,
8381,
1769,
417,
3588,
2286,
316,
279,
598,
9364,
16991,
619,
66,
22,
300,
1059,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sage: region_plot([x*(x-1)*(x+1)+y^2<0, x>-1], (x, -3, 2), (y, -3, 3), incol='lightblue', bordercol='gray', plot_points=50)
|
sage: region_plot([x*(x-1)*(x+1)+y^2<0, x>-1], (x, -3, 2), (y, -3, 3), incol='lightblue', plot_points=50)
|
def region_plot(f, xrange, yrange, plot_points, incol, outcol, bordercol): r""" ``region_plot`` takes a boolean function of two variables, `f(x,y)` and plots the region where f is True over the specified ``xrange`` and ``yrange`` as demonstrated below. ``region_plot(f, (xmin, xmax), (ymin, ymax), ...)`` INPUT: - ``f`` -- a boolean function of two variables - ``(xmin, xmax)`` -- 2-tuple, the range of ``x`` values OR 3-tuple ``(x,xmin,xmax)`` - ``(ymin, ymax)`` -- 2-tuple, the range of ``y`` values OR 3-tuple ``(y,ymin,ymax)`` - ``plot_points`` -- integer (default: 100); number of points to plot in each direction of the grid - ``incol`` -- a color (default: ``'blue'``), the color inside the region - ``outcol`` -- a color (default: ``'white'``), the color of the outside of the region - ``bordercol`` -- a color (default: ``None``), the color of the border (``incol`` if not specified) EXAMPLES: Here we plot a simple function of two variables:: sage: x,y = var('x,y') sage: region_plot(cos(x^2+y^2) <= 0, (x, -3, 3), (y, -3, 3)) Here we play with the colors:: sage: region_plot(x^2+y^3 < 2, (x, -2, 2), (y, -2, 2), incol='lightblue', bordercol='gray') An even more complicated plot:: sage: region_plot(sin(x)*sin(y) >= 1/4, (x,-10,10), (y,-10,10), incol='yellow', bordercol='black', plot_points=250) A disk centered at the origin:: sage: region_plot(x^2+y^2<1, (x,-1,1), (y,-1,1)).show(aspect_ratio=1) A plot with more than one condition:: sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2)) Since it doesn't look very good, let's increase plot_points:: sage: region_plot([x^2+y^2<1, x<y], (x,-2,2), (y,-2,2), plot_points=400).show(aspect_ratio=1) #long time The first quadrant of the unit circle:: sage: region_plot([y>0, x>0, x^2+y^2<1], (-1.1, 1.1), (-1.1, 1.1), plot_points = 400).show(aspect_ratio=1) Here is another plot:: sage: region_plot(x*(x-1)*(x+1)+y^2<0, (x, -3, 2), (y, -3, 3), incol='lightblue', bordercol='gray', plot_points=50) If we want to keep only the region where x is positive:: sage: region_plot([x*(x-1)*(x+1)+y^2<0, x>-1], (x, -3, 2), (y, -3, 3), incol='lightblue', bordercol='gray', plot_points=50) Here we have a cut circle:: sage: region_plot([x^2+y^2<4, x>-1], (x, -2, 2), (y, -2, 2), incol='lightblue', bordercol='gray', plot_points=200).show(aspect_ratio=1) #long time """ from sage.plot.plot import Graphics from sage.plot.misc import setup_for_eval_on_grid if not isinstance(f, (list, tuple)): f = [f] variables = reduce(lambda g1, g2: g1.union(g2), [set(g.variables()) for g in f], set([])) f = [equify(g, variables) for g in f] g, ranges = setup_for_eval_on_grid(f, [xrange, yrange], plot_points) xrange,yrange=[r[:2] for r in ranges] xy_data_arrays = map(lambda g: [[g(x, y) for x in xsrange(*ranges[0], include_endpoint=True)] for y in xsrange(*ranges[1], include_endpoint=True)], g) xy_data_array = map(lambda *rows: map(lambda *vals: mangle_neg(vals), *rows), *xy_data_arrays) from matplotlib.colors import ListedColormap incol = rgbcolor(incol) outcol = rgbcolor(outcol) cmap = ListedColormap([incol, outcol]) cmap.set_over(outcol) cmap.set_under(incol) g = Graphics() g.add_primitive(ContourPlot(xy_data_array, xrange,yrange, dict(plot_points=plot_points, contours=[-1e307, 0, 1e307], cmap=cmap, fill=True))) if bordercol is not None: bordercol = rgbcolor(bordercol) g.add_primitive(ContourPlot(xy_data_array, xrange, yrange, dict(plot_points=plot_points, contours=[0], cmap=[bordercol], fill=False))) return g
|
37d8b6eadde6db814bff49b3658e71d67e3df889 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/37d8b6eadde6db814bff49b3658e71d67e3df889/contour_plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,
434,
2795,
3152,
16,
1375,
74,
12,
92,
16,
93,
22025,
471,
17931,
326,
3020,
1625,
284,
353,
1053,
1879,
326,
1269,
12176,
92,
3676,
10335,
471,
12176,
93,
3676,
10335,
487,
302,
4758,
701,
690,
5712,
18,
225,
12176,
6858,
67,
4032,
12,
74,
16,
261,
92,
1154,
16,
14016,
3631,
261,
93,
1154,
16,
15275,
3631,
1372,
13,
10335,
225,
12943,
30,
225,
300,
12176,
74,
10335,
1493,
279,
1250,
445,
434,
2795,
3152,
225,
300,
12176,
12,
92,
1154,
16,
14016,
13,
10335,
1493,
576,
17,
8052,
16,
326,
1048,
434,
12176,
92,
10335,
924,
4869,
890,
17,
8052,
12176,
12,
92,
16,
92,
1154,
16,
92,
1896,
13,
10335,
225,
300,
12176,
12,
93,
1154,
16,
15275,
13,
10335,
1493,
576,
17,
8052,
16,
326,
1048,
434,
12176,
93,
10335,
924,
4869,
890,
17,
8052,
12176,
12,
93,
16,
93,
1154,
16,
93,
1896,
13,
10335,
225,
300,
12176,
4032,
67,
4139,
10335,
225,
1493,
3571,
261,
1886,
30,
2130,
1769,
1300,
434,
3143,
358,
3207,
316,
1517,
4068,
434,
326,
3068,
225,
300,
12176,
267,
1293,
10335,
1493,
279,
2036,
261,
1886,
30,
1375,
11294,
14081,
11,
10335,
3631,
326,
2036,
4832,
326,
3020,
225,
300,
12176,
659,
1293,
10335,
1493,
279,
2036,
261,
1886,
30,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3020,
67,
4032,
12,
74,
16,
12314,
16,
677,
3676,
16,
3207,
67,
4139,
16,
316,
1293,
16,
596,
1293,
16,
5795,
1293,
4672,
436,
8395,
12176,
6858,
67,
4032,
10335,
5530,
279,
1250,
445,
434,
2795,
3152,
16,
1375,
74,
12,
92,
16,
93,
22025,
471,
17931,
326,
3020,
1625,
284,
353,
1053,
1879,
326,
1269,
12176,
92,
3676,
10335,
471,
12176,
93,
3676,
10335,
487,
302,
4758,
701,
690,
5712,
18,
225,
12176,
6858,
67,
4032,
12,
74,
16,
261,
92,
1154,
16,
14016,
3631,
261,
93,
1154,
16,
15275,
3631,
1372,
13,
10335,
225,
12943,
30,
225,
300,
12176,
74,
10335,
1493,
279,
1250,
445,
434,
2795,
3152,
225,
300,
12176,
12,
92,
1154,
16,
2
] |
if self.IsWindows():
|
if IsWindows():
|
def Upload(self, coverage_file, upload_path, sym_path=None, src_root=None): """Upload the results to the dashboard.
|
bc410f64b906bf3a5ca7721d73b3632fcccaeae2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9392/bc410f64b906bf3a5ca7721d73b3632fcccaeae2/coverage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
18,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9414,
12,
2890,
16,
11196,
67,
768,
16,
3617,
67,
803,
16,
5382,
67,
803,
33,
7036,
16,
1705,
67,
3085,
33,
7036,
4672,
3536,
4777,
326,
1686,
358,
326,
11825,
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
] |
elif not css.get('extra_context', {}).get('prefix', None):
|
else:
|
def render(self, context): css_name = template.Variable(self.name).resolve(context)
|
6f1319078c6e35cc6c56d9c6ba7075d4fe114b05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12688/6f1319078c6e35cc6c56d9c6ba7075d4fe114b05/compressed.py
|
[
1,
8585,
326,
22398,
316,
326,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
819,
4672,
3747,
67,
529,
273,
1542,
18,
3092,
12,
2890,
18,
529,
2934,
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,
-100,
-100,
-100,
-100,
-100,
-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.answermax = 12 self.answer = 5
|
def __init__(self): super(EqualityLevelset, self).__init__() self.answermin = 5 self.answermax = 12 self.answer = 5
|
af34e64d38be11ba68a4418286816d4e15a20114 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/af34e64d38be11ba68a4418286816d4e15a20114/gnumch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
20273,
2355,
542,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
634,
91,
1035,
267,
273,
1381,
365,
18,
634,
91,
1035,
651,
273,
2593,
365,
18,
13490,
273,
1381,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
20273,
2355,
542,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
634,
91,
1035,
267,
273,
1381,
365,
18,
634,
91,
1035,
651,
273,
2593,
365,
18,
13490,
273,
1381,
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
] |
|
libraries=["zlibstat", "mylib"],
|
libraries=["zlibstat"],
|
def _removefiles(self, dstdir, srcdir): if not os.path.isdir(srcdir): return for n in os.listdir(srcdir): name = os.path.join(dstdir, n) if os.path.isfile(name): self.announce("removing '%s'" % name) if not self.dry_run: os.remove(name) if os.path.splitext(name)[1] == '.py': try: os.remove(name + 'c') except: pass try: os.remove(name + 'o') except: pass elif os.path.isdir(name): self._removefiles(name, os.path.join(srcdir, n)) if not self.dry_run: os.rmdir(name) else: self.announce("skipping removal of '%s' (does not exist)" %\ name)
|
6c0e865e7cfefd57ec3be3495edb997bb8f96e7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/6c0e865e7cfefd57ec3be3495edb997bb8f96e7f/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
2354,
12,
2890,
16,
3046,
1214,
16,
1705,
1214,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4816,
1214,
4672,
327,
364,
290,
316,
1140,
18,
1098,
1214,
12,
4816,
1214,
4672,
508,
273,
1140,
18,
803,
18,
5701,
12,
11057,
1214,
16,
290,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
529,
4672,
365,
18,
1072,
8386,
2932,
2764,
13767,
1995,
87,
4970,
738,
508,
13,
309,
486,
365,
18,
25011,
67,
2681,
30,
1140,
18,
4479,
12,
529,
13,
309,
1140,
18,
803,
18,
4939,
408,
12,
529,
25146,
21,
65,
422,
2418,
2074,
4278,
775,
30,
1140,
18,
4479,
12,
529,
397,
296,
71,
6134,
1335,
30,
1342,
775,
30,
1140,
18,
4479,
12,
529,
397,
296,
83,
6134,
1335,
30,
1342,
1327,
1140,
18,
803,
18,
291,
1214,
12,
529,
4672,
365,
6315,
4479,
2354,
12,
529,
16,
1140,
18,
803,
18,
5701,
12,
4816,
1214,
16,
290,
3719,
309,
486,
365,
18,
25011,
67,
2681,
30,
1140,
18,
8864,
1214,
12,
529,
13,
469,
30,
365,
18,
1072,
8386,
2932,
7457,
1382,
14817,
434,
1995,
87,
11,
261,
20657,
486,
1005,
2225,
738,
64,
508,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4479,
2354,
12,
2890,
16,
3046,
1214,
16,
1705,
1214,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4816,
1214,
4672,
327,
364,
290,
316,
1140,
18,
1098,
1214,
12,
4816,
1214,
4672,
508,
273,
1140,
18,
803,
18,
5701,
12,
11057,
1214,
16,
290,
13,
309,
1140,
18,
803,
18,
291,
768,
12,
529,
4672,
365,
18,
1072,
8386,
2932,
2764,
13767,
1995,
87,
4970,
738,
508,
13,
309,
486,
365,
18,
25011,
67,
2681,
30,
1140,
18,
4479,
12,
529,
13,
309,
1140,
18,
803,
18,
4939,
408,
12,
529,
25146,
21,
65,
422,
2418,
2074,
4278,
775,
30,
1140,
18,
4479,
12,
529,
397,
296,
71,
6134,
1335,
30,
1342,
775,
30,
2
] |
data = castep.read_formatted_potential('asap2.pot_fmt')
|
def test_write_electric_field(self): self.pot.calc(self.at, force=True, write_electrostatics=True, electrostatic_grid=[50,50,1]) data = castep.read_formatted_potential('asap2.pot_fmt') #self.at.write('dimer.cube', data=data)
|
a1cb4db9de2183ac3eaf58ac886c2f9faba7a6d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8914/a1cb4db9de2183ac3eaf58ac886c2f9faba7a6d7/test_asap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
67,
13759,
1512,
67,
1518,
12,
2890,
4672,
365,
18,
13130,
18,
12448,
12,
2890,
18,
270,
16,
2944,
33,
5510,
16,
1045,
67,
13759,
303,
5642,
2102,
33,
5510,
16,
17375,
303,
3845,
67,
5222,
22850,
3361,
16,
3361,
16,
21,
5717,
225,
468,
2890,
18,
270,
18,
2626,
2668,
3509,
264,
18,
21186,
2187,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2626,
67,
13759,
1512,
67,
1518,
12,
2890,
4672,
365,
18,
13130,
18,
12448,
12,
2890,
18,
270,
16,
2944,
33,
5510,
16,
1045,
67,
13759,
303,
5642,
2102,
33,
5510,
16,
17375,
303,
3845,
67,
5222,
22850,
3361,
16,
3361,
16,
21,
5717,
225,
468,
2890,
18,
270,
18,
2626,
2668,
3509,
264,
18,
21186,
2187,
501,
33,
892,
13,
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
] |
|
if arg == '-debug':
|
elif arg == '-move': moveBlockCheck = True elif arg == '-debug':
|
def main(): # Loading the comments global templateToRemove; global categoryToCheck; global comment; global project_inserted if config.mylang not in project_inserted: wikipedia.output(u"Your project is not supported by this script. You have to edit the script and add it!") wikipedia.stopme() # always, define a generator to understand if the user sets one, defining what's genFactory always = False; generator = False; debug = False; genFactory = pagegenerators.GeneratorFactory() # To prevent Infinite loops errorCount = 0 # Loading the default options. for arg in wikipedia.handleArgs(): if arg == '-always': always = True if arg == '-debug': debug = True elif arg.startswith('-page'): if len(arg) == 5: generator = [wikipedia.Page(wikipedia.getSite(), wikipedia.input(u'What page do you want to use?'))] else: generator = [wikipedia.Page(wikipedia.getSite(), arg[6:])] else: generator = genFactory.handleArg(arg) # Load the right site site = wikipedia.getSite() # Take the right templates to use, the category and the comment TTR = wikipedia.translate(site, templateToRemove) category = wikipedia.translate(site, categoryToCheck) commentUsed = wikipedia.translate(site, comment) if not generator: generator = list() wikipedia.output(u'Loading categories...') # Define the category if no other generator has been setted for CAT in category: cat = catlib.Category(site, CAT) # Define the generator gen = pagegenerators.CategorizedPageGenerator(cat) for pageCat in gen: generator.append(pageCat) wikipedia.output(u'Categories loaded, start!') # Main Loop for page in generator: pagename = page.title() wikipedia.output('Loading %s...' % pagename) try: # The same as .get() but it loads also the editRestriction var, that's what we # need to understand if the page is protected or not. (text, useless, editRestriction) = page._getEditPage() except wikipedia.NoPage: wikipedia.output("%s doesn't exist! Skipping..." % pagename) continue except wikipedia.IsRedirectPage: wikipedia.output("%s is a redirect! Skipping..." % pagename) continue if editRestriction == 'sysop': wikipedia.output(u'The page is protected to the sysop, skipping...') continue elif editRestriction == 'autoconfirmed': wikipedia.output(u'The page is editable only for the autoconfirmed users, skipping...') continue else: wikipedia.output(u'The page is editable for all, deleting the template...') # Only to see if the text is the same or not... oldtext = text # Deleting the template because the page doesn't need it. for replaceToPerform in TTR: text = re.sub('(?:<noinclude>|)%s(?:</noinclude>|)' % replaceToPerform, '', text) if oldtext != text: # Ok, asking if the change has to be performed and do it. wikipedia.output(u"\n\n>>> \03{lightpurple}%s\03{default} <<<" % page.title()) wikipedia.showDiff(oldtext, text) choice = '' while 1: if not always: choice = wikipedia.inputChoice(u'Do you want to accept these changes?', ['Yes', 'No', 'All'], ['y', 'N', 'a'], 'N') if choice.lower() in ['a', 'all']: always = True if choice.lower() in ['n', 'no']: break if choice.lower() in ['y', 'yes'] or always: try: page.put(text, commentUsed) except wikipedia.EditConflict: wikipedia.output(u'Edit conflict! skip!') break except wikipedia.ServerError: # Sometimes there is this error that's quite annoying because # can block the whole process for nothing. errorCount += 1 if errorCount < 5: wikipedia.output(u'Server Error! Wait..') time.sleep(3) continue else: # Prevent Infinite Loops raise wikipedia.ServerError(u'Fifth Server Error!') except wikipedia.SpamfilterError, e: wikipedia.output(u'Cannot change %s because of blacklist entry %s' % (page.title(), e.url)) break except wikipedia.PageNotSaved, error: wikipedia.output(u'Error putting page: %s' % (error.args,)) break except wikipedia.LockedPage: wikipedia.output(u'The page is still protected. Skipping...') break else: # Break only if the errors are one after the other errorCount = 0 break else: wikipedia.output(u'No changes! Strange! Check the regex!') if debug == True: quest = wikipedia.input(u'Do you want to open the page on your browser? [Y]es, [N]o: ') pathWiki = site.family.nicepath(site.lang) url = 'http://%s%s%s' % (wikipedia.getSite().hostname(), pathWiki, page.urlname()) while 1: if quest.lower() in ['y', 'yes']: webbrowser.open(url) break elif quest.lower() in ['n', 'no']: break else: wikipedia.output(u'wrong entry, type "yes" or "no"') continue
|
abf4497e2da74fe3bbb2c5674cc91256c5ed158b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/abf4497e2da74fe3bbb2c5674cc91256c5ed158b/blockpageschecker.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
4444,
310,
326,
5678,
2552,
1542,
12765,
31,
2552,
3150,
18126,
31,
2552,
2879,
31,
2552,
1984,
67,
6387,
329,
309,
642,
18,
4811,
4936,
486,
316,
1984,
67,
6387,
329,
30,
21137,
18,
2844,
12,
89,
6,
15446,
1984,
353,
486,
3260,
635,
333,
2728,
18,
4554,
1240,
358,
3874,
326,
2728,
471,
527,
518,
4442,
13,
21137,
18,
5681,
3501,
1435,
468,
3712,
16,
4426,
279,
4456,
358,
22413,
309,
326,
729,
1678,
1245,
16,
9364,
4121,
1807,
3157,
1733,
3712,
273,
1083,
31,
4456,
273,
1083,
31,
1198,
273,
1083,
31,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
468,
2974,
5309,
657,
9551,
14075,
555,
1380,
273,
374,
468,
4444,
310,
326,
805,
702,
18,
364,
1501,
316,
21137,
18,
4110,
2615,
13332,
309,
1501,
422,
2400,
17737,
4278,
3712,
273,
1053,
1327,
1501,
422,
2400,
8501,
4278,
3635,
1768,
1564,
273,
1053,
1327,
1501,
422,
2400,
4148,
4278,
1198,
273,
1053,
1327,
1501,
18,
17514,
1918,
2668,
17,
2433,
11,
4672,
309,
562,
12,
3175,
13,
422,
1381,
30,
4456,
273,
306,
11999,
13744,
18,
1964,
12,
11999,
13744,
18,
588,
4956,
9334,
21137,
18,
2630,
12,
89,
11,
23801,
1363,
741,
1846,
2545,
358,
999,
4899,
3719,
65,
469,
30,
4456,
273,
306,
11999,
13744,
18,
1964,
12,
11999,
13744,
18,
588,
4956,
9334,
1501,
63,
26,
30,
5717,
65,
469,
30,
4456,
273,
3157,
1733,
18,
4110,
4117,
12,
3175,
13,
468,
4444,
326,
2145,
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,
468,
4444,
310,
326,
5678,
2552,
1542,
12765,
31,
2552,
3150,
18126,
31,
2552,
2879,
31,
2552,
1984,
67,
6387,
329,
309,
642,
18,
4811,
4936,
486,
316,
1984,
67,
6387,
329,
30,
21137,
18,
2844,
12,
89,
6,
15446,
1984,
353,
486,
3260,
635,
333,
2728,
18,
4554,
1240,
358,
3874,
326,
2728,
471,
527,
518,
4442,
13,
21137,
18,
5681,
3501,
1435,
468,
3712,
16,
4426,
279,
4456,
358,
22413,
309,
326,
729,
1678,
1245,
16,
9364,
4121,
1807,
3157,
1733,
3712,
273,
1083,
31,
4456,
273,
1083,
31,
1198,
273,
1083,
31,
3157,
1733,
273,
1363,
25959,
18,
3908,
1733,
1435,
468,
2974,
5309,
657,
9551,
14075,
555,
1380,
273,
374,
468,
4444,
2
] |
self.addheaders = [('User-Agent', server_version)]
|
self.addheaders = [('User-agent', server_version)]
|
def __init__(self): server_version = "Python-urllib/%s" % __version__ self.addheaders = [('User-Agent', server_version)] # manage the individual handlers self.handlers = [] self.handle_open = {} self.handle_error = {}
|
097068a20bfbf07c00e3babb07c705119eba42ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/097068a20bfbf07c00e3babb07c705119eba42ac/urllib2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1438,
67,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
1438,
67,
1589,
273,
315,
15774,
17,
718,
2941,
5258,
87,
6,
738,
1001,
1589,
972,
365,
18,
1289,
2485,
273,
306,
2668,
1299,
17,
5629,
2187,
1438,
67,
1589,
25887,
468,
10680,
326,
7327,
4919,
365,
18,
11046,
273,
5378,
365,
18,
4110,
67,
3190,
273,
2618,
365,
18,
4110,
67,
1636,
273,
2618,
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
] |
self.groupBox_6.setGeometry(QtCore.QRect(10,200,711,131))
|
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_6.sizePolicy().hasHeightForWidth()) self.groupBox_6.setSizePolicy(sizePolicy) self.groupBox_6.setMinimumSize(QtCore.QSize(0,121))
|
def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.resize(QtCore.QSize(QtCore.QRect(0,0,776,532).size()).expandedTo(MainWindow.minimumSizeHint())) MainWindow.setWindowIcon(QtGui.QIcon(" "))
|
63111e1c9754b5d54a0f7495871ccaf05c2651b1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1108/63111e1c9754b5d54a0f7495871ccaf05c2651b1/main_ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
12740,
3829,
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
4700,
26,
16,
25,
1578,
2934,
1467,
1435,
2934,
17336,
774,
12,
6376,
3829,
18,
15903,
1225,
7002,
1435,
3719,
12740,
3829,
18,
542,
3829,
5554,
12,
23310,
18070,
18,
53,
5554,
2932,
315,
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,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
4672,
12740,
3829,
18,
542,
16707,
2932,
6376,
3829,
7923,
12740,
3829,
18,
15169,
12,
23310,
4670,
18,
53,
1225,
12,
23310,
4670,
18,
53,
6120,
12,
20,
16,
20,
16,
4700,
26,
16,
25,
1578,
2934,
1467,
1435,
2934,
17336,
774,
12,
6376,
3829,
18,
15903,
1225,
7002,
1435,
3719,
12740,
3829,
18,
542,
3829,
5554,
12,
23310,
18070,
18,
53,
5554,
2932,
315,
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
] |
solution = self.GetSolutionPath() self.Execute(['hammer', '-f', solution, '--clean'])
|
print "clean not implemented for this platform."
|
def CleanTargets(self, targets, options): """Cleans the targets.""" solution = self.GetSolutionPath() self.Execute(['hammer', '-f', solution, '--clean'])
|
a7ad4ba1c73e576e753e9483209664c779854472 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a7ad4ba1c73e576e753e9483209664c779854472/gypbuild.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9645,
9432,
12,
2890,
16,
5774,
16,
702,
4672,
3536,
31948,
326,
5774,
12123,
6959,
273,
365,
18,
967,
16135,
743,
1435,
365,
18,
5289,
12,
3292,
31698,
6592,
2187,
2400,
74,
2187,
6959,
16,
3534,
6200,
19486,
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,
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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,
9645,
9432,
12,
2890,
16,
5774,
16,
702,
4672,
3536,
31948,
326,
5774,
12123,
6959,
273,
365,
18,
967,
16135,
743,
1435,
365,
18,
5289,
12,
3292,
31698,
6592,
2187,
2400,
74,
2187,
6959,
16,
3534,
6200,
19486,
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
] |
self.conn.msg(self.target,"Failed to open weather URL!")
|
self.conn.commands.msg(self.target,"Failed to open weather URL!")
|
def fetch(self,zip): httpconn = httplib.HTTPConnection('weather.yahooapis.com') httpconn.request('GET', '/forecastrss?p=%s' % zip) r = httpconn.getresponse() if r.status != 200: self.conn.msg(self.target,"Failed to open weather URL!") return
|
2b7864e3d464c274457faacdf459f34bb381fc2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5037/2b7864e3d464c274457faacdf459f34bb381fc2b/weather.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
4450,
4672,
1062,
4646,
273,
15851,
6673,
18,
3693,
1952,
2668,
1814,
4806,
18,
93,
9795,
5161,
18590,
18,
832,
6134,
1062,
4646,
18,
2293,
2668,
3264,
2187,
1173,
1405,
6349,
313,
1049,
35,
84,
5095,
87,
11,
738,
3144,
13,
436,
273,
1062,
4646,
18,
588,
2740,
1435,
309,
436,
18,
2327,
480,
4044,
30,
365,
18,
4646,
18,
7847,
18,
3576,
12,
2890,
18,
3299,
10837,
2925,
358,
1696,
21534,
1976,
4442,
13,
327,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
4450,
4672,
1062,
4646,
273,
15851,
6673,
18,
3693,
1952,
2668,
1814,
4806,
18,
93,
9795,
5161,
18590,
18,
832,
6134,
1062,
4646,
18,
2293,
2668,
3264,
2187,
1173,
1405,
6349,
313,
1049,
35,
84,
5095,
87,
11,
738,
3144,
13,
436,
273,
1062,
4646,
18,
588,
2740,
1435,
309,
436,
18,
2327,
480,
4044,
30,
365,
18,
4646,
18,
7847,
18,
3576,
12,
2890,
18,
3299,
10837,
2925,
358,
1696,
21534,
1976,
4442,
13,
327,
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
] |
dbg('ConfigBase::get_item: found in plugin %s (%s)' % ( plugin, self.plugins[plugin][key]))
|
dbg('ConfigBase::get_item: %s found in plugin %s: %s' % ( key, plugin, self.plugins[plugin][key]))
|
def get_item(self, key, profile='default', plugin=None): """Look up a configuration item""" dbg('ConfigBase::get_item: %s:%s' % (profile, key)) if self.global_config.has_key(key): dbg('ConfigBase::get_item: found in globals: %s' % self.global_config[key]) return(self.global_config[key]) elif self.profiles[profile].has_key(key): dbg('ConfigBase::get_item: found in profile %s (%s)' % ( profile, self.profiles[profile][key])) return(self.profiles[profile][key]) elif key == 'keybindings': return(self.keybindings) elif plugin is not None and self.plugins[plugin].has_key(key): dbg('ConfigBase::get_item: found in plugin %s (%s)' % ( plugin, self.plugins[plugin][key])) return(self.plugins[plugin][key]) else: raise KeyError('ConfigBase::get_item: unknown key %s' % key)
|
14f2522a889c698e69c190644c3738bd4b08154e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6502/14f2522a889c698e69c190644c3738bd4b08154e/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
2890,
16,
498,
16,
3042,
2218,
1886,
2187,
1909,
33,
7036,
4672,
3536,
9794,
731,
279,
1664,
761,
8395,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
738,
87,
5319,
87,
11,
738,
261,
5040,
16,
498,
3719,
309,
365,
18,
6347,
67,
1425,
18,
5332,
67,
856,
12,
856,
4672,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
1392,
316,
10941,
30,
738,
87,
11,
738,
365,
18,
6347,
67,
1425,
63,
856,
5717,
327,
12,
2890,
18,
6347,
67,
1425,
63,
856,
5717,
1327,
365,
18,
18314,
63,
5040,
8009,
5332,
67,
856,
12,
856,
4672,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
1392,
316,
3042,
738,
87,
6142,
87,
2506,
738,
261,
3042,
16,
365,
18,
18314,
63,
5040,
6362,
856,
22643,
327,
12,
2890,
18,
18314,
63,
5040,
6362,
856,
5717,
1327,
498,
422,
296,
856,
15863,
4278,
327,
12,
2890,
18,
856,
15863,
13,
1327,
1909,
353,
486,
599,
471,
365,
18,
8057,
63,
4094,
8009,
5332,
67,
856,
12,
856,
4672,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
738,
87,
1392,
316,
1909,
738,
87,
30,
738,
87,
11,
738,
261,
498,
16,
1909,
16,
365,
18,
8057,
63,
4094,
6362,
856,
22643,
327,
12,
2890,
18,
8057,
63,
4094,
6362,
856,
5717,
469,
30,
1002,
4999,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
5917,
498,
738,
87,
11,
738,
498,
13,
2,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1726,
12,
2890,
16,
498,
16,
3042,
2218,
1886,
2187,
1909,
33,
7036,
4672,
3536,
9794,
731,
279,
1664,
761,
8395,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
738,
87,
5319,
87,
11,
738,
261,
5040,
16,
498,
3719,
309,
365,
18,
6347,
67,
1425,
18,
5332,
67,
856,
12,
856,
4672,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
1392,
316,
10941,
30,
738,
87,
11,
738,
365,
18,
6347,
67,
1425,
63,
856,
5717,
327,
12,
2890,
18,
6347,
67,
1425,
63,
856,
5717,
1327,
365,
18,
18314,
63,
5040,
8009,
5332,
67,
856,
12,
856,
4672,
28966,
2668,
809,
2171,
2866,
588,
67,
1726,
30,
1392,
316,
3042,
738,
87,
2
] |
os.remove(options.outfilename)
|
try: os.remove(options.outfilename) except OSError: pass
|
def main(): platform_win32 = sys.platform.startswith("win") if platform_win32: usage = """
|
53104833a64d97d369ce0376c732bb8b4695b9a7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2367/53104833a64d97d369ce0376c732bb8b4695b9a7/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4072,
67,
8082,
1578,
273,
2589,
18,
9898,
18,
17514,
1918,
2932,
8082,
7923,
225,
309,
4072,
67,
8082,
1578,
30,
4084,
273,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4072,
67,
8082,
1578,
273,
2589,
18,
9898,
18,
17514,
1918,
2932,
8082,
7923,
225,
309,
4072,
67,
8082,
1578,
30,
4084,
273,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.path.join(dir, 'lib')):
|
join(execdir, 'doc'), join(sys.prefix, 'doc/python-docs-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-' + split(sys.version)[0]), join(sys.prefix, 'doc/python-docs-' + sys.version[:3]), join(sys.prefix, 'doc/python-' + sys.version[:3]), join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(join(dir, 'lib')):
|
def __init__(self, input, output): self.input = input self.output = output self.docdir = None execdir = os.path.dirname(sys.executable) homedir = os.environ.get('PYTHONHOME') for dir in [os.environ.get('PYTHONDOCS'), homedir and os.path.join(homedir, 'doc'), os.path.join(execdir, 'doc'), '/usr/doc/python-docs-' + split(sys.version)[0], '/usr/doc/python-' + split(sys.version)[0], '/usr/doc/python-docs-' + sys.version[:3], '/usr/doc/python-' + sys.version[:3], os.path.join(sys.prefix, 'Resources/English.lproj/Documentation')]: if dir and os.path.isdir(os.path.join(dir, 'lib')): self.docdir = dir
|
15c1faa1741dc993564449cd8ec43449f7f82d06 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/15c1faa1741dc993564449cd8ec43449f7f82d06/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
17751,
13,
13995,
23210,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
14209,
6134,
364,
1577,
316,
306,
538,
18,
28684,
18,
588,
2668,
16235,
20131,
3191,
4596,
19899,
13995,
23210,
471,
1140,
18,
803,
18,
5701,
12,
17125,
23210,
16,
296,
2434,
19899,
1233,
12,
4177,
1214,
16,
296,
2434,
19899,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
2589,
18,
1589,
10531,
23,
65,
3631,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
6627,
397,
2589,
18,
1589,
10531,
23,
65,
3631,
1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398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
16,
876,
4672,
365,
18,
2630,
273,
810,
365,
18,
2844,
273,
876,
365,
18,
2434,
1214,
273,
599,
1196,
1214,
273,
1140,
18,
803,
18,
12287,
12,
9499,
18,
17751,
13,
13995,
23210,
273,
1140,
18,
28684,
18,
588,
2668,
16235,
20131,
14209,
6134,
364,
1577,
316,
306,
538,
18,
28684,
18,
588,
2668,
16235,
20131,
3191,
4596,
19899,
13995,
23210,
471,
1140,
18,
803,
18,
5701,
12,
17125,
23210,
16,
296,
2434,
19899,
1233,
12,
4177,
1214,
16,
296,
2434,
19899,
1233,
12,
9499,
18,
3239,
16,
296,
2434,
19,
8103,
17,
8532,
6627,
397,
1416,
12,
9499,
18,
1589,
25146,
20,
65,
3631,
1233,
12,
9499,
18,
3239,
2
] |
substitute_file('configure.in')
|
substitute_file('configure.ac')
|
def substitute_file(name): subst = '' f = open(name) for l in f: if '#define LIBTORRENT_VERSION_MAJOR' in l and name.endswith('.hpp'): l = '#define LIBTORRENT_VERSION_MAJOR %d\n' % version[0] elif '#define LIBTORRENT_VERSION_MINOR' in l and name.endswith('.hpp'): l = '#define LIBTORRENT_VERSION_MINOR %d\n' % version[1] elif '#define LIBTORRENT_VERSION_TINY' in l and name.endswith('.hpp'): l = '#define LIBTORRENT_VERSION_TINY %d\n' % version[2] elif '#define LIBTORRENT_VERSION' in l and name.endswith('.hpp'): l = '#define LIBTORRENT_VERSION "%d.%d.%d.%d"\n' % (version[0], version[1], version[2], version[3]) elif 'AC_INIT([libtorrent-rasterbar]' in l and name.endswith('.in'): l = 'AC_INIT([libtorrent-rasterbar], [%d.%d.%d], [arvid@cs.umu.se])\n' % (version[0], version[1], version[2]) elif 'set (VERSION ' in l and name.endswith('.in'): l = 'set (VERSION "%d.%d.%d")\n' % (version[0], version[1], version[2]) elif ':Version: ' in l and name.endswith('.rst'): l = ':Version: %d.%d.%d\n' % (version[0], version[1], version[2]) elif 'VERSION = ' in l and name.endswith('Jamfile'): l = 'VERSION = %d.%d.%d ;\n' % (version[0], version[1], version[2]) subst += l f.close() open(name, 'w+').write(subst)
|
1882de79e8ae59f151580687859959e24c1760a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8308/1882de79e8ae59f151580687859959e24c1760a7/set_version.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14811,
67,
768,
12,
529,
4672,
27750,
273,
875,
284,
273,
1696,
12,
529,
13,
364,
328,
316,
284,
30,
309,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
738,
72,
64,
82,
11,
738,
1177,
63,
20,
65,
1327,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
6236,
916,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
6236,
916,
738,
72,
64,
82,
11,
738,
1177,
63,
21,
65,
1327,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
56,
31853,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
56,
31853,
738,
72,
64,
82,
11,
738,
1177,
63,
22,
65,
1327,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
2213,
72,
7866,
72,
7866,
72,
7866,
72,
12691,
82,
11,
738,
261,
1589,
63,
20,
6487,
1177,
63,
21,
6487,
1177,
63,
22,
6487,
1177,
63,
23,
5717,
1327,
296,
2226,
67,
12919,
3816,
2941,
13039,
547,
17,
24215,
3215,
3864,
316,
328,
471,
508,
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,
14811,
67,
768,
12,
529,
4672,
27750,
273,
875,
284,
273,
1696,
12,
529,
13,
364,
328,
316,
284,
30,
309,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
26976,
916,
738,
72,
64,
82,
11,
738,
1177,
63,
20,
65,
1327,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
6236,
916,
11,
316,
328,
471,
508,
18,
5839,
1918,
2668,
18,
76,
11858,
11,
4672,
328,
273,
2946,
11255,
23983,
56,
916,
7480,
67,
5757,
67,
6236,
916,
738,
72,
64,
82,
11,
738,
1177,
63,
21,
65,
2
] |
self._record_member(tarinfo)
|
self.members.append(tarinfo)
|
def addfile(self, tarinfo, fileobj=None): """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation about the file size. """ self._check("aw")
|
d0fb0ac63c5db48d344c6e8e8dab57214f04e854 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/d0fb0ac63c5db48d344c6e8e8dab57214f04e854/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,
1376,
18,
1467,
1731,
854,
855,
628,
518,
471,
3096,
358,
326,
5052,
18,
4554,
848,
752,
20334,
966,
2184,
1450,
336,
11718,
1376,
7675,
2755,
8202,
17422,
16,
1375,
768,
2603,
11,
1410,
3712,
506,
10191,
598,
1965,
296,
6731,
11,
358,
4543,
277,
523,
8773,
2973,
326,
585,
963,
18,
3536,
365,
6315,
1893,
2932,
2219,
7923,
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,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
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,
1376,
18,
1467,
1731,
854,
855,
628,
518,
471,
3096,
358,
326,
5052,
18,
4554,
848,
752,
20334,
966,
2184,
1450,
336,
11718,
1376,
7675,
2755,
8202,
17422,
16,
1375,
768,
2603,
11,
1410,
3712,
506,
10191,
598,
1965,
296,
6731,
11,
358,
4543,
277,
523,
8773,
2973,
326,
585,
963,
18,
3536,
365,
6315,
1893,
2932,
2219,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.menu.Append(wxID_BREAKENABLED, 'Enabled', checkable = true)
|
self.menu.Append(wxID_BREAKENABLED, 'Enabled', '', true)
|
def __init__(self, parent, debugger):#, flist, browser): wxListCtrl.__init__(self, parent, wxID_BREAKVIEW, style = wxLC_REPORT | wxLC_SINGLE_SEL ) self.InsertColumn(0, 'Module', wxLIST_FORMAT_LEFT, 90) self.InsertColumn(1, 'Line', wxLIST_FORMAT_CENTER, 40) self.InsertColumn(2, 'Ignore', wxLIST_FORMAT_CENTER, 45) self.InsertColumn(3, 'Hits', wxLIST_FORMAT_CENTER, 45) self.InsertColumn(4, 'Condition', wxLIST_FORMAT_LEFT, 250)
|
5970d581342ec17c39816f0b132ba3234ca9600f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/5970d581342ec17c39816f0b132ba3234ca9600f/Debugger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
19977,
4672,
7,
16,
284,
1098,
16,
4748,
4672,
7075,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
7075,
734,
67,
27960,
12145,
16,
2154,
273,
7075,
13394,
67,
22710,
571,
7075,
13394,
67,
20184,
67,
1090,
48,
262,
365,
18,
4600,
1494,
12,
20,
16,
296,
3120,
2187,
7075,
7085,
67,
7254,
67,
10066,
16,
8566,
13,
365,
18,
4600,
1494,
12,
21,
16,
296,
1670,
2187,
7075,
7085,
67,
7254,
67,
19835,
16,
8063,
13,
365,
18,
4600,
1494,
12,
22,
16,
296,
3777,
2187,
7075,
7085,
67,
7254,
67,
19835,
16,
12292,
13,
365,
18,
4600,
1494,
12,
23,
16,
296,
20950,
2187,
7075,
7085,
67,
7254,
67,
19835,
16,
12292,
13,
365,
18,
4600,
1494,
12,
24,
16,
296,
3418,
2187,
7075,
7085,
67,
7254,
67,
10066,
16,
16927,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
982,
16,
19977,
4672,
7,
16,
284,
1098,
16,
4748,
4672,
7075,
682,
12418,
16186,
2738,
972,
12,
2890,
16,
982,
16,
7075,
734,
67,
27960,
12145,
16,
2154,
273,
7075,
13394,
67,
22710,
571,
7075,
13394,
67,
20184,
67,
1090,
48,
262,
365,
18,
4600,
1494,
12,
20,
16,
296,
3120,
2187,
7075,
7085,
67,
7254,
67,
10066,
16,
8566,
13,
365,
18,
4600,
1494,
12,
21,
16,
296,
1670,
2187,
7075,
7085,
67,
7254,
67,
19835,
16,
8063,
13,
365,
18,
4600,
1494,
12,
22,
16,
296,
3777,
2187,
7075,
7085,
67,
7254,
67,
19835,
16,
12292,
13,
365,
18,
4600,
1494,
12,
23,
16,
296,
20950,
2187,
7075,
7085,
2
] |
for i in range(plot_points):
|
for i in range(plot_points+1):
|
def _call(self, funcs, xrange, parametric=False, polar=False, label='', **kwds): options = dict(self.options) for k, v in kwds.iteritems(): options[k] = v
|
ac9b3826b125c15136ec1e4292644b1319201e07 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/ac9b3826b125c15136ec1e4292644b1319201e07/plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
15630,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
1433,
2218,
2187,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
79,
65,
273,
331,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1991,
12,
2890,
16,
15630,
16,
12314,
16,
579,
1591,
33,
8381,
16,
24244,
33,
8381,
16,
1433,
2218,
2187,
2826,
25577,
4672,
702,
273,
2065,
12,
2890,
18,
2116,
13,
364,
417,
16,
331,
316,
17149,
18,
2165,
3319,
13332,
702,
63,
79,
65,
273,
331,
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
] |
Multiplicative Abelian Group isomorphic to C2 x C3 x C5 x C729, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [c, e]
|
Multiplicative Abelian Group isomorphic to C2 x C3 x C5 x C729, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [c, e]
|
def subgroup(self, gensH, names="f"): """ Create a subgroup of this group. The "big" group must be defined using "named" generators.
|
4b76758ecf69f92f14b50ef31dd04f2252c5a26c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4b76758ecf69f92f14b50ef31dd04f2252c5a26c/abelian_group.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
1655,
12,
2890,
16,
314,
773,
44,
16,
1257,
1546,
74,
6,
4672,
3536,
1788,
279,
720,
1655,
434,
333,
1041,
18,
1021,
315,
14002,
6,
1041,
1297,
506,
2553,
1450,
315,
13188,
6,
13327,
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,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
16,
1257,
1546,
74,
6,
4672,
3536,
1788,
279,
720,
1655,
434,
333,
1041,
18,
1021,
315,
14002,
6,
1041,
1297,
506,
2553,
1450,
315,
13188,
6,
13327,
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
] |
rc = os.execl('../../src/syslog-ng', '../../src/syslog-ng', '-f', 'test.conf', '--fd-limit', '1024', '-F', verbose_opt, '-p', 'syslog-ng.pid', '-R', 'syslog-ng.persist', '--no-caps', '--enable-core', '--seed')
|
module_path = '' for (root, dirs, files) in os.walk(os.path.abspath(os.path.join(os.environ['top_builddir'], 'src'))): module_path = ':'.join(map(lambda x: root + '/' + x, dirs)) break rc = os.execl('../../src/syslog-ng', '../../src/syslog-ng', '-f', 'test.conf', '--fd-limit', '1024', '-F', verbose_opt, '-p', 'syslog-ng.pid', '-R', 'syslog-ng.persist', '--no-caps', '--enable-core', '--seed', '--module-path', module_path)
|
def start_syslogng(conf, keep_persist=False, verbose=False): global syslogng_pid os.system('rm -f test-*.log test-*.lgs test-*.db wildcard/* log-file') if not keep_persist: os.system('rm -f syslog-ng.persist') if not logstore_store_supported: conf = re.sub('logstore\(.*\);', '', conf) f = open('test.conf', 'w') f.write(conf) f.close() if verbose: verbose_opt = '-edv' else: verbose_opt = '-e' syslogng_pid = os.fork() if syslogng_pid == 0: os.putenv("RANDFILE", "rnd") rc = os.execl('../../src/syslog-ng', '../../src/syslog-ng', '-f', 'test.conf', '--fd-limit', '1024', '-F', verbose_opt, '-p', 'syslog-ng.pid', '-R', 'syslog-ng.persist', '--no-caps', '--enable-core', '--seed') sys.exit(rc) time.sleep(3) print_user("Syslog-ng started") return True
|
d280ea5be34f05434b4879c760f8939c577aefb1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1177/d280ea5be34f05434b4879c760f8939c577aefb1/control.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
9499,
1330,
3368,
12,
3923,
16,
3455,
67,
19251,
33,
8381,
16,
3988,
33,
8381,
4672,
2552,
16718,
3368,
67,
6610,
225,
1140,
18,
4299,
2668,
8864,
300,
74,
1842,
17,
11146,
1330,
1842,
17,
11146,
80,
564,
1842,
17,
11146,
1966,
8531,
20308,
613,
17,
768,
6134,
309,
486,
3455,
67,
19251,
30,
1140,
18,
4299,
2668,
8864,
300,
74,
16718,
17,
3368,
18,
19251,
6134,
225,
309,
486,
613,
2233,
67,
2233,
67,
4127,
30,
2195,
273,
283,
18,
1717,
2668,
1330,
2233,
64,
7444,
64,
1769,
2187,
10226,
2195,
13,
225,
284,
273,
1696,
2668,
3813,
18,
3923,
2187,
296,
91,
6134,
284,
18,
2626,
12,
3923,
13,
284,
18,
4412,
1435,
225,
309,
3988,
30,
3988,
67,
3838,
273,
2400,
329,
90,
11,
469,
30,
3988,
67,
3838,
273,
2400,
73,
11,
225,
16718,
3368,
67,
6610,
273,
1140,
18,
23335,
1435,
309,
16718,
3368,
67,
6610,
422,
374,
30,
1140,
18,
458,
3074,
2932,
54,
4307,
3776,
3113,
315,
86,
4880,
7923,
1605,
67,
803,
273,
875,
364,
261,
3085,
16,
7717,
16,
1390,
13,
316,
1140,
18,
11348,
12,
538,
18,
803,
18,
5113,
803,
12,
538,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
3669,
67,
70,
89,
330,
449,
481,
17337,
296,
4816,
26112,
4672,
1605,
67,
803,
273,
3921,
18,
5701,
12,
1458,
12,
14661,
619,
30,
1365,
397,
2023,
397,
619,
16,
7717,
3719,
898,
4519,
273,
1140,
18,
4177,
80,
2668,
16644,
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,
787,
67,
9499,
1330,
3368,
12,
3923,
16,
3455,
67,
19251,
33,
8381,
16,
3988,
33,
8381,
4672,
2552,
16718,
3368,
67,
6610,
225,
1140,
18,
4299,
2668,
8864,
300,
74,
1842,
17,
11146,
1330,
1842,
17,
11146,
80,
564,
1842,
17,
11146,
1966,
8531,
20308,
613,
17,
768,
6134,
309,
486,
3455,
67,
19251,
30,
1140,
18,
4299,
2668,
8864,
300,
74,
16718,
17,
3368,
18,
19251,
6134,
225,
309,
486,
613,
2233,
67,
2233,
67,
4127,
30,
2195,
273,
283,
18,
1717,
2668,
1330,
2233,
64,
7444,
64,
1769,
2187,
10226,
2195,
13,
225,
284,
273,
1696,
2668,
3813,
18,
3923,
2187,
296,
91,
6134,
284,
18,
2626,
12,
3923,
13,
284,
18,
4412,
1435,
225,
2
] |
id="%s (%s)" % (oid, d['__name__'])
|
id=d['__name__']
|
def f(con, detail=detail, rc=sys.getrefcount): for oid, ob in con._cache.items(): id=oid if hasattr(ob,'__dict__'): d=ob.__dict__ if d.has_key('id'): id="%s (%s)" % (oid, d['id']) elif d.has_key('__name__'): id="%s (%s)" % (oid, d['__name__'])
|
fb7b9b4dff99b8d898e08be3452fe6ab91e029f9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/fb7b9b4dff99b8d898e08be3452fe6ab91e029f9/DB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
591,
16,
7664,
33,
8992,
16,
4519,
33,
9499,
18,
588,
1734,
1883,
4672,
364,
7764,
16,
3768,
316,
356,
6315,
2493,
18,
3319,
13332,
612,
33,
839,
309,
3859,
12,
947,
11189,
972,
1576,
7250,
4672,
302,
33,
947,
16186,
1576,
972,
309,
302,
18,
5332,
67,
856,
2668,
350,
11,
4672,
612,
11613,
87,
6142,
87,
2225,
738,
261,
839,
16,
302,
3292,
350,
19486,
1327,
302,
18,
5332,
67,
856,
2668,
972,
529,
7250,
4672,
612,
11613,
87,
6142,
87,
2225,
738,
261,
839,
16,
302,
3292,
972,
529,
972,
19486,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
591,
16,
7664,
33,
8992,
16,
4519,
33,
9499,
18,
588,
1734,
1883,
4672,
364,
7764,
16,
3768,
316,
356,
6315,
2493,
18,
3319,
13332,
612,
33,
839,
309,
3859,
12,
947,
11189,
972,
1576,
7250,
4672,
302,
33,
947,
16186,
1576,
972,
309,
302,
18,
5332,
67,
856,
2668,
350,
11,
4672,
612,
11613,
87,
6142,
87,
2225,
738,
261,
839,
16,
302,
3292,
350,
19486,
1327,
302,
18,
5332,
67,
856,
2668,
972,
529,
7250,
4672,
612,
11613,
87,
6142,
87,
2225,
738,
261,
839,
16,
302,
3292,
972,
529,
972,
19486,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if len(Object.senders) == 0 and Object.current_source == None:
|
if not self.persistent and len(Object.senders) == 0 and \ Object.current_source == None:
|
def _name_owner_changed(self, name, old_owner, new_owner):
|
222ab4dc0dbc904dbd5c3a7150445be6c9c3f037 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2838/222ab4dc0dbc904dbd5c3a7150445be6c9c3f037/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
529,
67,
8443,
67,
6703,
12,
2890,
16,
508,
16,
1592,
67,
8443,
16,
394,
67,
8443,
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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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,
1652,
389,
529,
67,
8443,
67,
6703,
12,
2890,
16,
508,
16,
1592,
67,
8443,
16,
394,
67,
8443,
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
] |
REFERENCE: - [1] Sampo Niskanen and Patric R. J. Östergård, "Cliquer User's Guide, Version 1.0," Communications Laboratory, Helsinki University of Technology, Espoo, Finland, Tech. Rep. T48, 2003.
|
def clique_maximum(self): """ Returns the vertex set of a maximal order complete subgraph. NOTE: - Currently only implemented for undirected graphs. Use to_undirected to convert a digraph to an undirected graph. ALGORITHM: - This function is based on Cliquer, [1]. REFERENCE:
|
ff0c9f33534c3168fbe7c717cbfddb40743165ac /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ff0c9f33534c3168fbe7c717cbfddb40743165ac/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31380,
67,
15724,
12,
2890,
4672,
3536,
2860,
326,
5253,
444,
434,
279,
943,
2840,
1353,
3912,
21469,
18,
225,
5219,
30,
225,
300,
15212,
1338,
8249,
364,
640,
26830,
19422,
18,
2672,
358,
67,
1074,
867,
329,
358,
1765,
279,
3097,
1483,
358,
392,
640,
26830,
2667,
18,
225,
7981,
22548,
30,
225,
300,
1220,
445,
353,
2511,
603,
14391,
25734,
16,
306,
21,
8009,
225,
22898,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
31380,
67,
15724,
12,
2890,
4672,
3536,
2860,
326,
5253,
444,
434,
279,
943,
2840,
1353,
3912,
21469,
18,
225,
5219,
30,
225,
300,
15212,
1338,
8249,
364,
640,
26830,
19422,
18,
2672,
358,
67,
1074,
867,
329,
358,
1765,
279,
3097,
1483,
358,
392,
640,
26830,
2667,
18,
225,
7981,
22548,
30,
225,
300,
1220,
445,
353,
2511,
603,
14391,
25734,
16,
306,
21,
8009,
225,
22898,
30,
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
] |
|
del defaults[o]
|
if defaults.has_key(o): del defaults[o]
|
def parse_cmdline(argv): lineopts, args = gnu_getopt(argv, opt.GETOPT_SHORT, opt.GETOPT_LONG) opts = {} defaults = {} for o, desc in opt.OPT.items(): if len(desc) < 4: continue defaults[o] = desc[3] for o, v in lineopts: o = opt.OPTS[o] if opt.OPT[o][2] is False: v = True opts[o] = v del defaults[o] return args, opts, defaults
|
6172696777f49122b746328d84ebf512a74d243f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2855/6172696777f49122b746328d84ebf512a74d243f/main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
4172,
1369,
12,
19485,
4672,
980,
4952,
16,
833,
273,
314,
13053,
67,
588,
3838,
12,
19485,
16,
2153,
18,
3264,
15620,
67,
15993,
16,
2153,
18,
3264,
15620,
67,
14639,
13,
1500,
273,
2618,
3467,
273,
2618,
364,
320,
16,
3044,
316,
2153,
18,
15620,
18,
3319,
13332,
309,
562,
12,
5569,
13,
411,
1059,
30,
1324,
3467,
63,
83,
65,
273,
3044,
63,
23,
65,
364,
320,
16,
331,
316,
980,
4952,
30,
320,
273,
2153,
18,
15620,
55,
63,
83,
65,
309,
2153,
18,
15620,
63,
83,
6362,
22,
65,
353,
1083,
30,
331,
273,
1053,
1500,
63,
83,
65,
273,
331,
309,
3467,
18,
5332,
67,
856,
12,
83,
4672,
1464,
3467,
63,
83,
65,
327,
833,
16,
1500,
16,
3467,
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,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
13,
1500,
273,
2618,
3467,
273,
2618,
364,
320,
16,
3044,
316,
2153,
18,
15620,
18,
3319,
13332,
309,
562,
12,
5569,
13,
411,
1059,
30,
1324,
3467,
63,
83,
65,
273,
3044,
63,
23,
65,
364,
320,
16,
331,
316,
980,
4952,
30,
320,
273,
2153,
18,
15620,
55,
63,
83,
65,
309,
2153,
18,
15620,
63,
83,
6362,
22,
65,
353,
1083,
30,
331,
273,
1053,
1500,
63,
83,
65,
273,
331,
309,
3467,
18,
5332,
67,
856,
12,
83,
4672,
1464,
3467,
2
] |
prelude = readLines(f, "%~~vis", True, False, basename)
|
global currentLine prelude = ( ["// file " + basename + " line " + str(currentLine) + "\n"] + readLines(f, "%~~vis", True, False, basename) )
|
def doGen(cmd, args, f, line, basename): #print("doGen: " + cmd + " on " + "!".join(args)); prelude = readLines(f, "%~~vis", True, False, basename) body = readLines(f, "%~~siv", False, True, basename) postlude = readLines(f, "%~~neg", True, False, basename) classname = numberedName(basename) if len(args) >= 1: classname = args[0]; code = "\n".join(prelude + body + postlude) writeX10File(classname, code)
|
a1c8e2de5f4142cb4f4d63f0b54584c42e915440 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2077/a1c8e2de5f4142cb4f4d63f0b54584c42e915440/excheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
7642,
12,
4172,
16,
833,
16,
284,
16,
980,
16,
4882,
4672,
468,
1188,
2932,
2896,
7642,
30,
315,
397,
1797,
397,
315,
603,
315,
397,
23717,
18,
5701,
12,
1968,
10019,
2552,
22325,
675,
80,
1317,
273,
261,
8247,
759,
585,
315,
397,
4882,
397,
315,
980,
315,
397,
609,
12,
2972,
1670,
13,
397,
1548,
82,
11929,
397,
855,
5763,
12,
74,
16,
2213,
7650,
3516,
3113,
1053,
16,
1083,
16,
4882,
13,
262,
1417,
273,
855,
5763,
12,
74,
16,
2213,
7650,
87,
427,
3113,
1083,
16,
1053,
16,
4882,
13,
1603,
80,
1317,
273,
855,
5763,
12,
74,
16,
2213,
7650,
14518,
3113,
1053,
16,
1083,
16,
4882,
13,
7479,
273,
1300,
329,
461,
12,
13909,
13,
309,
562,
12,
1968,
13,
1545,
404,
30,
7479,
273,
833,
63,
20,
15533,
981,
273,
1548,
82,
9654,
5701,
12,
1484,
80,
1317,
397,
1417,
397,
1603,
80,
1317,
13,
1045,
60,
2163,
812,
12,
18340,
16,
981,
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,
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,
741,
7642,
12,
4172,
16,
833,
16,
284,
16,
980,
16,
4882,
4672,
468,
1188,
2932,
2896,
7642,
30,
315,
397,
1797,
397,
315,
603,
315,
397,
23717,
18,
5701,
12,
1968,
10019,
2552,
22325,
675,
80,
1317,
273,
261,
8247,
759,
585,
315,
397,
4882,
397,
315,
980,
315,
397,
609,
12,
2972,
1670,
13,
397,
1548,
82,
11929,
397,
855,
5763,
12,
74,
16,
2213,
7650,
3516,
3113,
1053,
16,
1083,
16,
4882,
13,
262,
1417,
273,
855,
5763,
12,
74,
16,
2213,
7650,
87,
427,
3113,
1083,
16,
1053,
16,
4882,
13,
1603,
80,
1317,
273,
855,
5763,
12,
74,
16,
2213,
7650,
14518,
3113,
1053,
16,
1083,
16,
4882,
13,
7479,
273,
1300,
329,
2
] |
self._data_channel.send(notification.data)
|
self._data_channel.send(notification)
|
def _NH_SIPRegistrationDidSucceed(self, notification): self._data_channel.send(notification.data)
|
1ce4656931ae7e7d6ab3871db270975707c62fc8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3449/1ce4656931ae7e7d6ab3871db270975707c62fc8/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
7843,
18250,
55,
5286,
5288,
12,
2890,
16,
3851,
4672,
365,
6315,
892,
67,
4327,
18,
4661,
12,
9927,
18,
892,
13,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
7843,
18250,
55,
5286,
5288,
12,
2890,
16,
3851,
4672,
365,
6315,
892,
67,
4327,
18,
4661,
12,
9927,
18,
892,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
sqlFlag="True"
|
sqlFlag = "True"
|
def setPersistencyFlag( self, userDN, userGroup, persistent = True ): """ Set the proxy PersistentFlag to the flag value """ if persistent: sqlFlag="True" else: sqlFlag="False" retVal = self._query( "SELECT PersistentFlag FROM `ProxyDB_Proxies` WHERE UserDN='%s' AND UserGroup='%s'" % ( userDN, userGroup ) ) sqlInsert = True if retVal[ 'OK' ]: data = retVal[ 'Value' ] if len( data ) > 0: sqlInsert = False if data[0][0] == sqlFlag: return S_OK() if sqlInsert: #If it's not in the db and we're removing the persistency then do nothing if not persistent: return S_OK() cmd = "INSERT INTO `ProxyDB_Proxies` ( UserDN, UserGroup, Pem, ExpirationTime, PersistentFlag ) VALUES " cmd += "( '%s', '%s', '', UTC_TIMESTAMP(), 'True' )" % ( userDN, userGroup ) else: cmd = "UPDATE `ProxyDB_Proxies` SET PersistentFlag='%s' WHERE UserDN='%s' AND UserGroup='%s'" % ( sqlFlag, userDN, userGroup )
|
71763bc5d615265855ff68fdb1be8903192a3f1b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/71763bc5d615265855ff68fdb1be8903192a3f1b/ProxyDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
12771,
2075,
4678,
12,
365,
16,
729,
8609,
16,
26205,
16,
9195,
273,
1053,
262,
30,
3536,
1000,
326,
2889,
11049,
4678,
358,
326,
2982,
460,
3536,
309,
9195,
30,
1847,
4678,
273,
315,
5510,
6,
469,
30,
1847,
4678,
1546,
8381,
6,
12197,
273,
365,
6315,
2271,
12,
315,
4803,
11049,
4678,
4571,
1375,
3886,
2290,
67,
21488,
68,
4852,
2177,
8609,
28713,
87,
11,
4116,
30928,
28713,
87,
4970,
738,
261,
729,
8609,
16,
26205,
262,
262,
1847,
4600,
273,
1053,
309,
12197,
63,
296,
3141,
11,
308,
30,
501,
273,
12197,
63,
296,
620,
11,
308,
309,
562,
12,
501,
262,
405,
374,
30,
1847,
4600,
273,
1083,
309,
501,
63,
20,
6362,
20,
65,
422,
1847,
4678,
30,
327,
348,
67,
3141,
1435,
309,
1847,
4600,
30,
468,
2047,
518,
1807,
486,
316,
326,
1319,
471,
732,
4565,
9427,
326,
3898,
2075,
1508,
741,
5083,
309,
486,
9195,
30,
327,
348,
67,
3141,
1435,
1797,
273,
315,
11356,
12421,
1375,
3886,
2290,
67,
21488,
68,
261,
2177,
8609,
16,
30928,
16,
453,
351,
16,
31017,
950,
16,
11049,
4678,
262,
13477,
315,
1797,
1011,
7751,
1995,
87,
2187,
1995,
87,
2187,
10226,
9951,
67,
17201,
9334,
296,
5510,
11,
28796,
738,
261,
729,
8609,
16,
26205,
262,
469,
30,
1797,
273,
315,
8217,
1375,
3886,
2290,
67,
21488,
68,
7855,
11049,
4678,
28713,
87,
11,
4852,
2177,
8609,
28713,
87,
11,
4116,
30928,
28713,
87,
4970,
738,
261,
1847,
4678,
16,
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,
444,
12771,
2075,
4678,
12,
365,
16,
729,
8609,
16,
26205,
16,
9195,
273,
1053,
262,
30,
3536,
1000,
326,
2889,
11049,
4678,
358,
326,
2982,
460,
3536,
309,
9195,
30,
1847,
4678,
273,
315,
5510,
6,
469,
30,
1847,
4678,
1546,
8381,
6,
12197,
273,
365,
6315,
2271,
12,
315,
4803,
11049,
4678,
4571,
1375,
3886,
2290,
67,
21488,
68,
4852,
2177,
8609,
28713,
87,
11,
4116,
30928,
28713,
87,
4970,
738,
261,
729,
8609,
16,
26205,
262,
262,
1847,
4600,
273,
1053,
309,
12197,
63,
296,
3141,
11,
308,
30,
501,
273,
12197,
63,
296,
620,
11,
308,
309,
562,
12,
501,
262,
405,
374,
30,
1847,
4600,
273,
1083,
309,
501,
63,
20,
6362,
20,
2
] |
(bclient['ip'], bclient['port']) = string.split(bclient['ip'], ':', 1)
|
ipPortData = string.split(bclient['ip'], ':', 1) bclient['ip'] = ipPortData[0] if len(ipPortData) > 1: bclient['port'] = ipPortData[1]
|
def OnClientuserinfo(self, action, data, match=None): #2 \ip\145.99.135.227:27960\challenge\-232198920\qport\2781\protocol\68\battleye\1\name\[SNT]^1XLR^78or\rate\8000\cg_predictitems\0\snaps\20\model\sarge\headmodel\sarge\team_model\james\team_headmodel\*james\color1\4\color2\5\handicap\100\sex\male\cl_anonymous\0\teamtask\0\cl_guid\58D4069246865BB5A85F20FB60ED6F65 bclient = self.parseUserInfo(data) # remove spaces from name bclient['name'] = bclient['name'].replace(' ','')
|
7f322aa901cee0729b2b76d63105f316340d8cc1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/7f322aa901cee0729b2b76d63105f316340d8cc1/iourt41.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1227,
31271,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
22,
521,
625,
64,
30379,
18,
2733,
18,
26612,
18,
3787,
27,
30,
5324,
29,
4848,
64,
25092,
12907,
22,
1578,
3657,
6675,
3462,
64,
85,
655,
64,
5324,
11861,
64,
8373,
64,
9470,
64,
70,
4558,
298,
20513,
64,
21,
64,
529,
64,
63,
55,
1784,
65,
66,
21,
60,
16018,
66,
8285,
280,
64,
5141,
64,
26021,
64,
26275,
67,
14491,
3319,
64,
20,
64,
28449,
87,
64,
3462,
64,
2284,
64,
87,
297,
908,
64,
1978,
2284,
64,
87,
297,
908,
64,
10035,
67,
2284,
64,
78,
753,
64,
10035,
67,
1978,
2284,
64,
14,
78,
753,
64,
3266,
21,
64,
24,
64,
3266,
22,
64,
25,
64,
2349,
335,
438,
64,
6625,
64,
20909,
64,
81,
5349,
64,
830,
67,
19070,
64,
20,
64,
10035,
4146,
64,
20,
64,
830,
67,
14066,
64,
8204,
40,
7132,
8148,
3247,
26,
5292,
25,
9676,
25,
37,
7140,
42,
3462,
22201,
4848,
2056,
26,
42,
9222,
324,
2625,
273,
365,
18,
2670,
21015,
12,
892,
13,
225,
468,
1206,
7292,
628,
508,
324,
2625,
3292,
529,
3546,
273,
324,
2625,
3292,
529,
29489,
2079,
2668,
3316,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
1227,
31271,
12,
2890,
16,
1301,
16,
501,
16,
845,
33,
7036,
4672,
468,
22,
521,
625,
64,
30379,
18,
2733,
18,
26612,
18,
3787,
27,
30,
5324,
29,
4848,
64,
25092,
12907,
22,
1578,
3657,
6675,
3462,
64,
85,
655,
64,
5324,
11861,
64,
8373,
64,
9470,
64,
70,
4558,
298,
20513,
64,
21,
64,
529,
64,
63,
55,
1784,
65,
66,
21,
60,
16018,
66,
8285,
280,
64,
5141,
64,
26021,
64,
26275,
67,
14491,
3319,
64,
20,
64,
28449,
87,
64,
3462,
64,
2284,
64,
87,
297,
908,
64,
1978,
2284,
64,
87,
297,
908,
64,
10035,
67,
2284,
64,
78,
753,
64,
10035,
67,
1978,
2284,
64,
14,
78,
753,
64,
3266,
21,
2
] |
- excample: the Example object that failed
|
- example: the Example object that failed
|
def output_difference(self, example, got, optionflags): """ Return a string describing the differences between the expected output for a given example (`example`) and the actual output (`got`). `optionflags` is the set of option flags used to compare `want` and `got`. """ want = example.want # If <BLANKLINE>s are being used, then replace blank lines # with <BLANKLINE> in the actual output string. if not (optionflags & DONT_ACCEPT_BLANKLINE): got = re.sub('(?m)^[ ]*(?=\n)', BLANKLINE_MARKER, got)
|
e6777d01d5ca3f733b4be35ed8a859e65de5a40c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e6777d01d5ca3f733b4be35ed8a859e65de5a40c/doctest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
23444,
12,
2890,
16,
3454,
16,
2363,
16,
1456,
7133,
4672,
3536,
2000,
279,
533,
16868,
326,
16440,
3086,
326,
2665,
876,
364,
279,
864,
3454,
21863,
8236,
24065,
471,
326,
3214,
876,
21863,
13212,
68,
2934,
225,
1375,
3482,
7133,
68,
353,
326,
444,
434,
1456,
2943,
1399,
358,
3400,
1375,
17369,
68,
471,
1375,
13212,
8338,
3536,
2545,
273,
3454,
18,
17369,
468,
971,
411,
38,
24307,
5997,
34,
87,
854,
3832,
1399,
16,
1508,
1453,
7052,
2362,
468,
598,
411,
38,
24307,
5997,
34,
316,
326,
3214,
876,
533,
18,
309,
486,
261,
3482,
7133,
473,
463,
10079,
67,
21417,
67,
38,
24307,
5997,
4672,
2363,
273,
283,
18,
1717,
2668,
3680,
81,
13,
66,
63,
308,
14,
3680,
18206,
82,
13,
2187,
29727,
5997,
67,
25989,
16,
2363,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
876,
67,
23444,
12,
2890,
16,
3454,
16,
2363,
16,
1456,
7133,
4672,
3536,
2000,
279,
533,
16868,
326,
16440,
3086,
326,
2665,
876,
364,
279,
864,
3454,
21863,
8236,
24065,
471,
326,
3214,
876,
21863,
13212,
68,
2934,
225,
1375,
3482,
7133,
68,
353,
326,
444,
434,
1456,
2943,
1399,
358,
3400,
1375,
17369,
68,
471,
1375,
13212,
8338,
3536,
2545,
273,
3454,
18,
17369,
468,
971,
411,
38,
24307,
5997,
34,
87,
854,
3832,
1399,
16,
1508,
1453,
7052,
2362,
468,
598,
411,
38,
24307,
5997,
34,
316,
326,
3214,
876,
533,
18,
309,
486,
261,
3482,
7133,
473,
463,
10079,
67,
21417,
67,
38,
24307,
5997,
4672,
2363,
273,
283,
18,
1717,
2668,
3680,
81,
2
] |
if self.url:
|
if url:
|
def navigate(self, url): if self.url: self._browser.get_frame().load_uri(url)
|
9cb7c3158cef773ad459114dcd0befab658dcc6f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/9cb7c3158cef773ad459114dcd0befab658dcc6f/widgetset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28479,
12,
2890,
16,
880,
4672,
309,
880,
30,
365,
6315,
11213,
18,
588,
67,
3789,
7675,
945,
67,
1650,
12,
718,
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,
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12,
718,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" fl_wincreate(label) -> window ref.
|
""" fl_wincreate(label) -> window
|
def fl_wincreate(label): """ fl_wincreate(label) -> window ref. """ retval = _fl_wincreate(label) return retval
|
8765c710f695de392f6fc7c664c746ec98668b1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/8765c710f695de392f6fc7c664c746ec98668b1d/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8082,
2640,
12,
1925,
4672,
3536,
1183,
67,
8082,
2640,
12,
1925,
13,
317,
2742,
3536,
225,
5221,
273,
389,
2242,
67,
8082,
2640,
12,
1925,
13,
327,
5221,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
8082,
2640,
12,
1925,
4672,
3536,
1183,
67,
8082,
2640,
12,
1925,
13,
317,
2742,
3536,
225,
5221,
273,
389,
2242,
67,
8082,
2640,
12,
1925,
13,
327,
5221,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
class DummySMTPServer(object): """one-time smtp server to test re-injects""" def __init__(self, config,port=11026,address="127.0.0.1"): self.logger=logging.getLogger("dummy.smtpserver") self.logger.debug('Starting dummy SMTP Server on Port %s'%port) self.port=port self.config=config self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self._socket.bind((address, port)) self._socket.listen(5) self.suspect=None def serve(self): nsd = self._socket.accept() sess=SMTPSession(nsd[0],self.config) success=sess.getincomingmail() if not success: self.logger.error('incoming smtp transfer did not finish') return sess.endsession(250, "OK - queued as 1337 ") fromaddr=sess.from_address toaddr=sess.to_address self.tempfilename=sess.tempfilename self.logger.debug("Message from %s to %s stored to %s"%(fromaddr,toaddr,self.tempfilename)) self.suspect=Suspect(fromaddr,toaddr,self.tempfilename)
|
def serve(self): threading.currentThread().name='ControlServer Thread' controller=self.controller self.logger.info('Control/Info Server running on port %s'%self.port) while self.stayalive: try: self.logger.debug('Waiting for connection...') nsd = self._socket.accept() if not self.stayalive: break engine = ControlSession(nsd[0],controller) self.logger.debug('Incoming connection from %s'%str(nsd[1])) engine.handlesession() except Exception,e: self.logger.error('Exception in serve(): %s'%str(e))
|
d9cf67144abef12545a88c1706b50a28ee7b1e30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10919/d9cf67144abef12545a88c1706b50a28ee7b1e30/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
12,
2890,
4672,
17254,
18,
2972,
3830,
7675,
529,
2218,
3367,
2081,
4884,
11,
2596,
33,
2890,
18,
5723,
225,
365,
18,
4901,
18,
1376,
2668,
3367,
19,
966,
3224,
3549,
603,
1756,
738,
87,
11,
9,
2890,
18,
655,
13,
1323,
365,
18,
334,
528,
11462,
30,
775,
30,
365,
18,
4901,
18,
4148,
2668,
15946,
364,
1459,
7821,
13,
3153,
72,
273,
365,
6315,
7814,
18,
9436,
1435,
309,
486,
365,
18,
334,
528,
11462,
30,
898,
4073,
273,
8888,
2157,
12,
2387,
72,
63,
20,
6487,
5723,
13,
365,
18,
4901,
18,
4148,
2668,
20370,
1459,
628,
738,
87,
11,
9,
701,
12,
2387,
72,
63,
21,
22643,
4073,
18,
24111,
893,
1435,
225,
1335,
1185,
16,
73,
30,
365,
18,
4901,
18,
1636,
2668,
503,
316,
12175,
13332,
738,
87,
11,
9,
701,
12,
73,
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,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,
738,
87,
11,
9,
2890,
18,
655,
13,
1323,
365,
18,
334,
528,
11462,
30,
775,
30,
365,
18,
4901,
18,
4148,
2668,
15946,
364,
1459,
7821,
13,
3153,
72,
273,
365,
6315,
7814,
18,
9436,
1435,
309,
486,
365,
18,
334,
528,
11462,
30,
898,
4073,
273,
8888,
2157,
12,
2387,
72,
63,
20,
6487,
5723,
13,
365,
18,
4901,
18,
4148,
2668,
20370,
1459,
628,
738,
87,
11,
9,
701,
12,
2387,
72,
63,
21,
22643,
4073,
18,
24111,
893,
1435,
225,
2
] |
|
sys.modules['_apache'] = _FakeApache()
|
sys.modules['mod_python._apache'] = _FakeApache() from mod_python.util import FieldStorage
|
def __init__(self, q): self.args = q self.method = "GET" return
|
9d1b5791fcf7412f4f6d48615ffe15214548d803 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2111/9d1b5791fcf7412f4f6d48615ffe15214548d803/webinterface_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1043,
4672,
365,
18,
1968,
273,
1043,
365,
18,
2039,
273,
315,
3264,
6,
327,
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,
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,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1043,
4672,
365,
18,
1968,
273,
1043,
365,
18,
2039,
273,
315,
3264,
6,
327,
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
] |
self.Draw(wxClientDC(self))
|
self.Draw(wx.ClientDC(self))
|
def ToggleLabel(self, state = None): """Toggle the label""" if state is None: self.showLabel = not self.showLabel else: self.showLabel = state self.Draw(wxClientDC(self))
|
52fcf3b1bd3b312d4bcabbeec39d749d73f7be40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/52fcf3b1bd3b312d4bcabbeec39d749d73f7be40/throbber.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
399,
9891,
2224,
12,
2890,
16,
919,
273,
599,
4672,
3536,
17986,
326,
1433,
8395,
309,
919,
353,
599,
30,
365,
18,
4500,
2224,
273,
486,
365,
18,
4500,
2224,
469,
30,
365,
18,
4500,
2224,
273,
919,
365,
18,
6493,
12,
27226,
1227,
5528,
12,
2890,
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,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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,
399,
9891,
2224,
12,
2890,
16,
919,
273,
599,
4672,
3536,
17986,
326,
1433,
8395,
309,
919,
353,
599,
30,
365,
18,
4500,
2224,
273,
486,
365,
18,
4500,
2224,
469,
30,
365,
18,
4500,
2224,
273,
919,
365,
18,
6493,
12,
27226,
1227,
5528,
12,
2890,
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
] |
states.append(lx.statestack[:])
|
if hasattr(lx, 'statestack'): states.append(lx.statestack[:]) else: states.append(None)
|
def show_token(tok): reprs = map(repr, tok) print ' ' + reprs[1] + ' ' + ' ' * (29-len(reprs[1])) + reprs[0], if debug_lexer: print ' ' + ' ' * (29-len(reprs[0])) + repr(states[i]), print
|
aa82d10c79a247547303d83826359f2a0ab11a92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2885/aa82d10c79a247547303d83826359f2a0ab11a92/find_error.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2316,
12,
17692,
4672,
8480,
87,
273,
852,
12,
12715,
16,
946,
13,
1172,
296,
282,
296,
397,
8480,
87,
63,
21,
65,
397,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
12,
12715,
87,
63,
21,
22643,
397,
8480,
87,
63,
20,
6487,
309,
1198,
67,
31731,
30,
1172,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
12,
12715,
87,
63,
20,
22643,
397,
8480,
12,
7992,
63,
77,
65,
3631,
1172,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2316,
12,
17692,
4672,
8480,
87,
273,
852,
12,
12715,
16,
946,
13,
1172,
296,
282,
296,
397,
8480,
87,
63,
21,
65,
397,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
12,
12715,
87,
63,
21,
22643,
397,
8480,
87,
63,
20,
6487,
309,
1198,
67,
31731,
30,
1172,
296,
296,
397,
296,
296,
380,
261,
5540,
17,
1897,
12,
12715,
87,
63,
20,
22643,
397,
8480,
12,
7992,
63,
77,
65,
3631,
1172,
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
] |
elif line == '':
|
elif not line:
|
def _generate_toc(self): """Generate key-to-(start, stop) table of contents.""" starts, stops = [], [] self._file.seek(0) next_pos = 0 while True: line_pos = next_pos line = self._file.readline() next_pos = self._file.tell() if line.startswith('\001\001\001\001' + os.linesep): starts.append(next_pos) while True: line_pos = next_pos line = self._file.readline() next_pos = self._file.tell() if line == '\001\001\001\001' + os.linesep: stops.append(line_pos - len(os.linesep)) break elif line == '': stops.append(line_pos) break elif line == '': break self._toc = dict(enumerate(zip(starts, stops))) self._next_key = len(self._toc) self._file.seek(0, 2) self._file_length = self._file.tell()
|
a683ec25cf1492298a60a3f938dbf636c803acef /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/a683ec25cf1492298a60a3f938dbf636c803acef/mailbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
20,
13,
1024,
67,
917,
273,
374,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
1369,
1435,
1024,
67,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
980,
18,
17514,
1918,
2668,
64,
11664,
64,
11664,
64,
11664,
64,
11664,
11,
397,
1140,
18,
3548,
881,
4672,
2542,
18,
6923,
12,
4285,
67,
917,
13,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
1369,
1435,
1024,
67,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
980,
422,
2337,
11664,
64,
11664,
64,
11664,
64,
11664,
11,
397,
1140,
18,
3548,
881,
30,
12349,
18,
6923,
12,
1369,
67,
917,
300,
562,
12,
538,
18,
3548,
881,
3719,
898,
1327,
486,
980,
30,
12349,
18,
6923,
12,
1369,
67,
917,
13,
898,
1327,
486,
980,
30,
898,
365,
6315,
1391,
273,
2065,
12,
7924,
12600,
12,
4450,
12,
17514,
16,
12349,
20349,
365,
6315,
4285,
67,
856,
273,
562,
12,
2890,
6315,
1391,
13,
365,
6315,
768,
18,
16508,
12,
20,
16,
576,
13,
365,
6315,
768,
67,
2469,
273,
365,
6315,
768,
18,
88,
1165,
1435,
2,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7163,
67,
1391,
12,
2890,
4672,
3536,
4625,
498,
17,
869,
17,
12,
1937,
16,
2132,
13,
1014,
434,
2939,
12123,
2542,
16,
12349,
273,
5378,
16,
5378,
365,
6315,
768,
18,
16508,
12,
20,
13,
1024,
67,
917,
273,
374,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
1369,
1435,
1024,
67,
917,
273,
365,
6315,
768,
18,
88,
1165,
1435,
309,
980,
18,
17514,
1918,
2668,
64,
11664,
64,
11664,
64,
11664,
64,
11664,
11,
397,
1140,
18,
3548,
881,
4672,
2542,
18,
6923,
12,
4285,
67,
917,
13,
1323,
1053,
30,
980,
67,
917,
273,
1024,
67,
917,
980,
273,
365,
6315,
768,
18,
896,
2
] |
self.assertEqual(d.items(), [])
|
self.assertEqual(set(d.items()), set())
|
def test_items(self): d = {} self.assertEqual(d.items(), [])
|
d97ef59cd009e3205fe166ecac3a2935156c382d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/d97ef59cd009e3205fe166ecac3a2935156c382d/test_dict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3319,
12,
2890,
4672,
302,
273,
2618,
365,
18,
11231,
5812,
12,
72,
18,
3319,
9334,
5378,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3319,
12,
2890,
4672,
302,
273,
2618,
365,
18,
11231,
5812,
12,
72,
18,
3319,
9334,
5378,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],x0,y0+self.ascent,t) self.theWidget.queue_draw_area(x0,y0,self.font.string_width(t),self.ascent+self.descent)
|
self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],int(x0),int(y0+self.ascent),t) self.theWidget.queue_draw_area(int(x0),int(y0),self.font.string_width(t),self.ascent+self.descent)
|
def drawtext(self,aFullPNString,x0,y0,text): t=str(text) self.pm.draw_text(self.font,self.GCFullPNMap[aFullPNString],x0,y0+self.ascent,t) self.theWidget.queue_draw_area(x0,y0,self.font.string_width(t),self.ascent+self.descent)
|
2e4e7c5daa9d6b052171f723237d43de6db2f864 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12724/2e4e7c5daa9d6b052171f723237d43de6db2f864/Plot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
955,
12,
2890,
16,
69,
5080,
15124,
780,
16,
92,
20,
16,
93,
20,
16,
955,
4672,
268,
33,
701,
12,
955,
13,
365,
18,
7755,
18,
9446,
67,
955,
12,
2890,
18,
5776,
16,
2890,
18,
15396,
5080,
15124,
863,
63,
69,
5080,
15124,
780,
6487,
92,
20,
16,
93,
20,
15,
2890,
18,
345,
2998,
16,
88,
13,
365,
18,
5787,
4609,
18,
4000,
67,
9446,
67,
5036,
12,
92,
20,
16,
93,
20,
16,
2890,
18,
5776,
18,
1080,
67,
2819,
12,
88,
3631,
2890,
18,
345,
2998,
15,
2890,
18,
5569,
319,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3724,
955,
12,
2890,
16,
69,
5080,
15124,
780,
16,
92,
20,
16,
93,
20,
16,
955,
4672,
268,
33,
701,
12,
955,
13,
365,
18,
7755,
18,
9446,
67,
955,
12,
2890,
18,
5776,
16,
2890,
18,
15396,
5080,
15124,
863,
63,
69,
5080,
15124,
780,
6487,
92,
20,
16,
93,
20,
15,
2890,
18,
345,
2998,
16,
88,
13,
365,
18,
5787,
4609,
18,
4000,
67,
9446,
67,
5036,
12,
92,
20,
16,
93,
20,
16,
2890,
18,
5776,
18,
1080,
67,
2819,
12,
88,
3631,
2890,
18,
345,
2998,
15,
2890,
18,
5569,
319,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if i == 0: return ''
|
if i == 0: return ''
|
def commonprefix(m): "Given a list of pathnames, returns the longest common leading component" if not m: return '' prefix = m[0] for item in m: for i in range(len(prefix)): if prefix[:i+1] != item[:i+1]: prefix = prefix[:i] if i == 0: return '' break return prefix
|
48d5c66045fe77d7b9b73d9a94f35f2863ee0d26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/48d5c66045fe77d7b9b73d9a94f35f2863ee0d26/posixpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
3239,
12,
81,
4672,
315,
6083,
279,
666,
434,
589,
1973,
16,
1135,
326,
12163,
2975,
7676,
1794,
6,
309,
486,
312,
30,
327,
875,
1633,
273,
312,
63,
20,
65,
364,
761,
316,
312,
30,
364,
277,
316,
1048,
12,
1897,
12,
3239,
3719,
30,
309,
1633,
10531,
77,
15,
21,
65,
480,
761,
10531,
77,
15,
21,
14542,
1633,
273,
1633,
10531,
77,
65,
309,
277,
422,
374,
30,
327,
875,
898,
327,
1633,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2975,
3239,
12,
81,
4672,
315,
6083,
279,
666,
434,
589,
1973,
16,
1135,
326,
12163,
2975,
7676,
1794,
6,
309,
486,
312,
30,
327,
875,
1633,
273,
312,
63,
20,
65,
364,
761,
316,
312,
30,
364,
277,
316,
1048,
12,
1897,
12,
3239,
3719,
30,
309,
1633,
10531,
77,
15,
21,
65,
480,
761,
10531,
77,
15,
21,
14542,
1633,
273,
1633,
10531,
77,
65,
309,
277,
422,
374,
30,
327,
875,
898,
327,
1633,
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
] |
for i in range(2,14):
|
for i in range(2,8):
|
def ajax_getshares(request): ret = [] if request.method == u'POST': for i in range(2,14): ret.append({'username' : "user" + str(i), 'percent' : i+i}) print "returning ret: ", str(ret) json = simplejson.dumps(ret) print "json object is ", str(json) return HttpResponse(json, mimetype='application/json')
|
fce57870765d26f99816f348767b6f473c9d6d7b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/fce57870765d26f99816f348767b6f473c9d6d7b/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10733,
67,
588,
30720,
12,
2293,
4672,
325,
273,
5378,
309,
590,
18,
2039,
422,
582,
11,
3798,
4278,
364,
277,
316,
1048,
12,
22,
16,
28,
4672,
325,
18,
6923,
12590,
11,
5053,
11,
294,
315,
1355,
6,
397,
609,
12,
77,
3631,
296,
8849,
11,
294,
277,
15,
77,
6792,
225,
1172,
315,
2463,
310,
325,
30,
3104,
609,
12,
1349,
13,
1163,
273,
4143,
1977,
18,
13302,
1121,
12,
1349,
13,
1172,
315,
1977,
733,
353,
3104,
609,
12,
1977,
13,
327,
9476,
12,
1977,
16,
12595,
2218,
3685,
19,
1977,
6134,
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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
294,
315,
1355,
6,
397,
609,
12,
77,
3631,
296,
8849,
11,
294,
277,
15,
77,
6792,
225,
1172,
315,
2463,
310,
325,
30,
3104,
609,
12,
1349,
13,
1163,
273,
4143,
1977,
18,
13302,
1121,
12,
1349,
13,
1172,
315,
1977,
733,
353,
3104,
609,
12,
1977,
13,
327,
9476,
12,
1977,
16,
12595,
2218,
3685,
19,
1977,
6134,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if not rc.app():
|
if not rc.app() or not skin.get_singleton().force_redraw:
|
def eventhandler(self, event, menuw=None): """ catch OSD_MESSAGE and display it, return False, maybe someone else is watching for the event. """ if event == OSD_MESSAGE: self.poll_counter = 1 self.message = event.arg if not rc.app(): skin.get_singleton().redraw() elif hasattr(rc.app(), 'im_self') and hasattr(rc.app().im_self, 'redraw'): rc.app().im_self.redraw() return False
|
7e695ed0963110d49c7d27d84f87d999639dc41a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/7e695ed0963110d49c7d27d84f87d999639dc41a/tiny_osd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
16,
3824,
91,
33,
7036,
4672,
3536,
1044,
5932,
40,
67,
8723,
471,
2562,
518,
16,
327,
1083,
16,
6944,
18626,
469,
353,
22917,
364,
326,
871,
18,
3536,
309,
871,
422,
5932,
40,
67,
8723,
30,
365,
18,
13835,
67,
7476,
273,
404,
365,
18,
2150,
273,
871,
18,
3175,
309,
486,
4519,
18,
2910,
1435,
578,
486,
18705,
18,
588,
67,
24487,
7675,
5734,
67,
1118,
1899,
30,
18705,
18,
588,
67,
24487,
7675,
1118,
1899,
1435,
1327,
3859,
12,
1310,
18,
2910,
9334,
296,
381,
67,
2890,
6134,
471,
3859,
12,
1310,
18,
2910,
7675,
381,
67,
2890,
16,
296,
1118,
1899,
11,
4672,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
871,
4176,
12,
2890,
16,
871,
16,
3824,
91,
33,
7036,
4672,
3536,
1044,
5932,
40,
67,
8723,
471,
2562,
518,
16,
327,
1083,
16,
6944,
18626,
469,
353,
22917,
364,
326,
871,
18,
3536,
309,
871,
422,
5932,
40,
67,
8723,
30,
365,
18,
13835,
67,
7476,
273,
404,
365,
18,
2150,
273,
871,
18,
3175,
309,
486,
4519,
18,
2910,
1435,
578,
486,
18705,
18,
588,
67,
24487,
7675,
5734,
67,
1118,
1899,
30,
18705,
18,
588,
67,
24487,
7675,
1118,
1899,
1435,
1327,
3859,
12,
1310,
18,
2910,
9334,
296,
381,
67,
2890,
6134,
471,
3859,
12,
1310,
18,
2910,
7675,
381,
67,
2890,
16,
296,
1118,
1899,
11,
4672,
4519,
18,
2910,
7675,
381,
2
] |
CW.exec_loop()
|
CW.exec_()
|
def OpenCraftWindow(self): self.storeItem(self.itemattrlist.get(self.currentTabLabel)) CW = CraftWindow.CraftWindow(self, '', 1) CW.loadItem(self.itemattrlist.get(self.currentTabLabel)) CW.ExpMultiplier.setValue(self.craftMultiplier) CW.exec_loop() self.craftMultiplier = int(CW.ExpMultiplier.value()) self.calculate() self.modified = 1
|
b02b1b3c3ce350ce2866d80a832fd61c5ae3b6c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/b02b1b3c3ce350ce2866d80a832fd61c5ae3b6c0/ScWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3502,
39,
5015,
3829,
12,
2890,
4672,
365,
18,
2233,
1180,
12,
2890,
18,
1726,
1747,
1098,
18,
588,
12,
2890,
18,
2972,
5661,
2224,
3719,
385,
59,
273,
11184,
3829,
18,
39,
5015,
3829,
12,
2890,
16,
10226,
404,
13,
385,
59,
18,
945,
1180,
12,
2890,
18,
1726,
1747,
1098,
18,
588,
12,
2890,
18,
2972,
5661,
2224,
3719,
385,
59,
18,
2966,
23365,
18,
542,
620,
12,
2890,
18,
71,
5015,
23365,
13,
385,
59,
18,
4177,
67,
1435,
365,
18,
71,
5015,
23365,
273,
509,
12,
12844,
18,
2966,
23365,
18,
1132,
10756,
365,
18,
11162,
1435,
365,
18,
7342,
273,
404,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3502,
39,
5015,
3829,
12,
2890,
4672,
365,
18,
2233,
1180,
12,
2890,
18,
1726,
1747,
1098,
18,
588,
12,
2890,
18,
2972,
5661,
2224,
3719,
385,
59,
273,
11184,
3829,
18,
39,
5015,
3829,
12,
2890,
16,
10226,
404,
13,
385,
59,
18,
945,
1180,
12,
2890,
18,
1726,
1747,
1098,
18,
588,
12,
2890,
18,
2972,
5661,
2224,
3719,
385,
59,
18,
2966,
23365,
18,
542,
620,
12,
2890,
18,
71,
5015,
23365,
13,
385,
59,
18,
4177,
67,
1435,
365,
18,
71,
5015,
23365,
273,
509,
12,
12844,
18,
2966,
23365,
18,
1132,
10756,
365,
18,
11162,
1435,
365,
18,
7342,
273,
404,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
str = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str += 'ZZ*1***~\n' fd = tempfile.NamedTemporaryFile() fd.write(str)
|
str1 = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str1 += 'ZZ*1***~\n' fd = tempfile.NamedTemporaryFile() fd.write(str1)
|
def test_trailing_ele_delim(self): str = 'ISA*00* *00* *ZZ*ZZ000 *ZZ*ZZ001 *030828*1128*U*00401*000010121*0*T*:~\n' str += 'ZZ*1***~\n' fd = tempfile.NamedTemporaryFile() fd.write(str) fd.seek(0) src = pyx12.x12file.X12file(fd.name) err_cde = None err_str = None for seg in src: if seg.get_seg_id() == 'ZZ': errors = src.pop_errors() if len(errors) > 0: err_cde = errors[0][1] err_str = errors[0][2] self.assertEqual(err_cde, 'SEG1', err_str)
|
1433c380fc3bf2e7c5ac05b385e1b69e19134b72 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11528/1433c380fc3bf2e7c5ac05b385e1b69e19134b72/x12file.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
26453,
67,
6516,
67,
23822,
12,
2890,
4672,
609,
21,
273,
296,
5127,
37,
14,
713,
14,
1850,
380,
713,
14,
1850,
380,
27096,
14,
27096,
3784,
1850,
380,
27096,
14,
27096,
11664,
1850,
380,
4630,
6840,
6030,
14,
21,
10392,
14,
57,
14,
26565,
1611,
14,
2787,
15168,
5340,
14,
20,
14,
56,
14,
30,
98,
64,
82,
11,
609,
21,
1011,
296,
27096,
14,
21,
14465,
98,
64,
82,
11,
5194,
273,
13275,
18,
7604,
23808,
1435,
5194,
18,
2626,
12,
701,
21,
13,
5194,
18,
16508,
12,
20,
13,
1705,
273,
2395,
92,
2138,
18,
92,
2138,
768,
18,
60,
2138,
768,
12,
8313,
18,
529,
13,
393,
67,
71,
323,
273,
599,
393,
67,
701,
273,
599,
364,
2291,
316,
1705,
30,
309,
2291,
18,
588,
67,
5680,
67,
350,
1435,
422,
296,
27096,
4278,
1334,
273,
1705,
18,
5120,
67,
4324,
1435,
309,
562,
12,
4324,
13,
405,
374,
30,
393,
67,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0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
26453,
67,
6516,
67,
23822,
12,
2890,
4672,
609,
21,
273,
296,
5127,
37,
14,
713,
14,
1850,
380,
713,
14,
1850,
380,
27096,
14,
27096,
3784,
1850,
380,
27096,
14,
27096,
11664,
1850,
380,
4630,
6840,
6030,
14,
21,
10392,
14,
57,
14,
26565,
1611,
14,
2787,
15168,
5340,
14,
20,
14,
56,
14,
30,
98,
64,
82,
11,
609,
21,
1011,
296,
27096,
14,
21,
14465,
98,
64,
82,
11,
5194,
273,
13275,
18,
7604,
23808,
1435,
5194,
18,
2626,
12,
701,
21,
13,
5194,
18,
16508,
12,
20,
13,
1705,
273,
2395,
92,
2138,
18,
92,
2138,
768,
18,
60,
2138,
768,
12,
8313,
18,
529,
13,
393,
67,
71,
323,
273,
599,
2
] |
self.assertTrue(hunk.type in self.HOST_DIFF_HUNK_TYPES)
|
self.assertTrue(isinstance(hunk, self.HOST_DIFF_HUNK_TYPES))
|
def test_state_change_unknown(self): a = Host() b = Host() a.state = "up" diff = host_diff(a, b) self.assertTrue(len(diff) > 0) for hunk in diff: self.assertTrue(hunk.type in self.HOST_DIFF_HUNK_TYPES) diff = host_diff(b, a) self.assertTrue(len(diff) > 0) for hunk in diff: self.assertTrue(hunk.type in self.HOST_DIFF_HUNK_TYPES)
|
e100fe985a91dc50454e1b16bae62fa0d722a5a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6331/e100fe985a91dc50454e1b16bae62fa0d722a5a7/ndifftest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2019,
67,
3427,
67,
8172,
12,
2890,
4672,
279,
273,
4893,
1435,
324,
273,
4893,
1435,
279,
18,
2019,
273,
315,
416,
6,
3122,
273,
1479,
67,
5413,
12,
69,
16,
324,
13,
365,
18,
11231,
5510,
12,
1897,
12,
5413,
13,
405,
374,
13,
364,
366,
1683,
316,
3122,
30,
365,
18,
11231,
5510,
12,
291,
1336,
12,
76,
1683,
16,
365,
18,
8908,
67,
2565,
2246,
67,
44,
16141,
67,
10564,
3719,
3122,
273,
1479,
67,
5413,
12,
70,
16,
279,
13,
365,
18,
11231,
5510,
12,
1897,
12,
5413,
13,
405,
374,
13,
364,
366,
1683,
316,
3122,
30,
365,
18,
11231,
5510,
12,
76,
1683,
18,
723,
316,
365,
18,
8908,
67,
2565,
2246,
67,
44,
16141,
67,
10564,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2019,
67,
3427,
67,
8172,
12,
2890,
4672,
279,
273,
4893,
1435,
324,
273,
4893,
1435,
279,
18,
2019,
273,
315,
416,
6,
3122,
273,
1479,
67,
5413,
12,
69,
16,
324,
13,
365,
18,
11231,
5510,
12,
1897,
12,
5413,
13,
405,
374,
13,
364,
366,
1683,
316,
3122,
30,
365,
18,
11231,
5510,
12,
291,
1336,
12,
76,
1683,
16,
365,
18,
8908,
67,
2565,
2246,
67,
44,
16141,
67,
10564,
3719,
3122,
273,
1479,
67,
5413,
12,
70,
16,
279,
13,
365,
18,
11231,
5510,
12,
1897,
12,
5413,
13,
405,
374,
13,
364,
366,
1683,
316,
3122,
30,
365,
18,
11231,
5510,
12,
76,
1683,
18,
723,
316,
365,
18,
8908,
67,
2
] |
("24", _("1 day")), ("72", _("3 days")), ("144", _("6 days")), ("240", _("10 days")), ("720", _("1 month")),
|
("24", _("Watched 1 day ago")), ("72", _("Watched 3 days ago")), ("144", _("Watched 6 days ago")), ("240", _("Watched 10 days ago")), ("720", _("Watched 1 month ago")),
|
def _build_video_expires(channel, grid): grid.pack_label(_("Videos expire after"), grid.ALIGN_RIGHT) expire_options = [ ("system", _("Default (%(expiration)s)", {"expiration": get_formatted_default_expiration()})), ("24", _("1 day")), ("72", _("3 days")), ("144", _("6 days")), ("240", _("10 days")), ("720", _("1 month")), ("never", _("never")) ] expire_values = [e[0] for e in expire_options] expire_combo = widgetset.OptionMenu([e[1] for e in expire_options]) if channel.expire == "system": selected = expire_values.index("system") elif channel.expire == "never": selected = expire_values.index("never") else: try: selected = expire_values.index(str(channel.expire_time)) except ValueError: selected = 0 expire_combo.set_selected(selected) def expire_changed(widget, index): value = expire_options[index][0] if value == "system": expire_type = "system" expire_time = config.get(prefs.EXPIRE_AFTER_X_DAYS) elif value == "never": expire_type = "never" expire_time = 0 else: expire_type = "feed" expire_time = int(value) messages.SetChannelExpire(channel, expire_type, expire_time).send_to_backend() expire_combo.connect('changed', expire_changed) grid.pack(expire_combo)
|
4edfff305ac9febd20e9bc487fec3f6b70150965 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/4edfff305ac9febd20e9bc487fec3f6b70150965/channelsettingspanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3510,
67,
9115,
67,
12431,
12,
4327,
16,
3068,
4672,
3068,
18,
2920,
67,
1925,
24899,
2932,
58,
19871,
6930,
1839,
6,
3631,
3068,
18,
26439,
67,
11847,
13,
6930,
67,
2116,
273,
306,
7566,
4299,
3113,
389,
2932,
1868,
6142,
12,
19519,
13,
87,
2225,
16,
12528,
19519,
6877,
336,
67,
14897,
67,
1886,
67,
19519,
1435,
6792,
3631,
7566,
3247,
3113,
389,
2932,
5234,
329,
404,
2548,
20325,
7923,
3631,
7566,
9060,
3113,
389,
2932,
5234,
329,
890,
4681,
20325,
7923,
3631,
7566,
25339,
3113,
389,
2932,
5234,
329,
1666,
4681,
20325,
7923,
3631,
7566,
28784,
3113,
389,
2932,
5234,
329,
1728,
4681,
20325,
7923,
3631,
7566,
27,
3462,
3113,
389,
2932,
5234,
329,
404,
3138,
20325,
7923,
3631,
7566,
4644,
502,
3113,
389,
2932,
4644,
502,
6,
3719,
308,
6930,
67,
2372,
273,
306,
73,
63,
20,
65,
364,
425,
316,
6930,
67,
2116,
65,
6930,
67,
25053,
273,
3604,
542,
18,
1895,
4599,
3816,
73,
63,
21,
65,
364,
425,
316,
6930,
67,
2116,
5717,
225,
309,
1904,
18,
14070,
422,
315,
4299,
6877,
3170,
273,
6930,
67,
2372,
18,
1615,
2932,
4299,
7923,
1327,
1904,
18,
14070,
422,
315,
4644,
502,
6877,
3170,
273,
6930,
67,
2372,
18,
1615,
2932,
4644,
502,
7923,
469,
30,
775,
30,
3170,
273,
6930,
67,
2372,
18,
1615,
12,
701,
12,
4327,
18,
14070,
67,
957,
3719,
1335,
2068,
30,
3170,
273,
374,
6930,
67,
25053,
18,
542,
67,
8109,
12,
8109,
13,
225,
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,
3510,
67,
9115,
67,
12431,
12,
4327,
16,
3068,
4672,
3068,
18,
2920,
67,
1925,
24899,
2932,
58,
19871,
6930,
1839,
6,
3631,
3068,
18,
26439,
67,
11847,
13,
6930,
67,
2116,
273,
306,
7566,
4299,
3113,
389,
2932,
1868,
6142,
12,
19519,
13,
87,
2225,
16,
12528,
19519,
6877,
336,
67,
14897,
67,
1886,
67,
19519,
1435,
6792,
3631,
7566,
3247,
3113,
389,
2932,
5234,
329,
404,
2548,
20325,
7923,
3631,
7566,
9060,
3113,
389,
2932,
5234,
329,
890,
4681,
20325,
7923,
3631,
7566,
25339,
3113,
389,
2932,
5234,
329,
1666,
4681,
20325,
7923,
3631,
7566,
28784,
3113,
389,
2932,
5234,
329,
1728,
4681,
20325,
7923,
3631,
7566,
27,
3462,
3113,
389,
2932,
5234,
329,
404,
2
] |
end_time.
|
end_time.
|
def WriteAnnotation(self, key, value): """Writes the annotation to the annotation file. If the key is already present with a different value, the value becomes a list and the new value is appended to it, except for start_time and end_time. """ # Initialize the annotation dict from the file (if present) if os.path.exists(self._annotationsFile): annotations = json.load(open(self._annotationsFile)) else: annotations = {} # hack because we do not have proper JSON support key, value = map(str, [key, value]) if key == "qmtest.run.start_time": # Special handling of the start time: # if we are updating a result, we have to keep the original start # time, but remove the original end time to mark the report to be # in progress. if key not in annotations: annotations[key] = value if "qmtest.run.end_time" in annotations: del annotations["qmtest.run.end_time"] else: # All other annotations are added to a list if key in annotations: old = annotations[key] if type(old) is list: if value not in old: annotations[key].append(value) elif value != old: annotations[key] = [old, value] else: annotations[key] = value # Write the new annotations file json.dump(annotations, open(self._annotationsFile, "w"), sort_keys = True)
|
2fa638037c5796105293905450ff04c814893ed4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9140/2fa638037c5796105293905450ff04c814893ed4/GaudiTest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
3257,
12,
2890,
16,
498,
16,
460,
4672,
3536,
8368,
326,
3204,
358,
326,
3204,
585,
18,
971,
326,
498,
353,
1818,
3430,
598,
279,
3775,
460,
16,
326,
460,
12724,
279,
666,
471,
326,
394,
460,
353,
12317,
358,
518,
16,
1335,
364,
787,
67,
957,
471,
679,
67,
957,
18,
3536,
468,
9190,
326,
3204,
2065,
628,
326,
585,
261,
430,
3430,
13,
309,
1140,
18,
803,
18,
1808,
12,
2890,
6315,
14670,
812,
4672,
5617,
273,
1163,
18,
945,
12,
3190,
12,
2890,
6315,
14670,
812,
3719,
469,
30,
5617,
273,
2618,
468,
11769,
2724,
732,
741,
486,
1240,
5338,
1796,
2865,
498,
16,
460,
273,
852,
12,
701,
16,
306,
856,
16,
460,
5717,
309,
498,
422,
315,
85,
1010,
395,
18,
2681,
18,
1937,
67,
957,
6877,
468,
13409,
5057,
434,
326,
787,
813,
30,
468,
309,
732,
854,
9702,
279,
563,
16,
732,
1240,
358,
3455,
326,
2282,
787,
468,
813,
16,
1496,
1206,
326,
2282,
679,
813,
358,
2267,
326,
2605,
358,
506,
468,
316,
4007,
18,
309,
498,
486,
316,
5617,
30,
5617,
63,
856,
65,
273,
460,
309,
315,
85,
1010,
395,
18,
2681,
18,
409,
67,
957,
6,
316,
5617,
30,
1464,
5617,
9614,
85,
1010,
395,
18,
2681,
18,
409,
67,
957,
11929,
469,
30,
468,
4826,
1308,
5617,
854,
3096,
358,
279,
666,
309,
498,
316,
5617,
30,
1592,
273,
5617,
63,
856,
65,
309,
618,
12,
1673,
13,
353,
666,
30,
309,
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,
2598,
3257,
12,
2890,
16,
498,
16,
460,
4672,
3536,
8368,
326,
3204,
358,
326,
3204,
585,
18,
971,
326,
498,
353,
1818,
3430,
598,
279,
3775,
460,
16,
326,
460,
12724,
279,
666,
471,
326,
394,
460,
353,
12317,
358,
518,
16,
1335,
364,
787,
67,
957,
471,
679,
67,
957,
18,
3536,
468,
9190,
326,
3204,
2065,
628,
326,
585,
261,
430,
3430,
13,
309,
1140,
18,
803,
18,
1808,
12,
2890,
6315,
14670,
812,
4672,
5617,
273,
1163,
18,
945,
12,
3190,
12,
2890,
6315,
14670,
812,
3719,
469,
30,
5617,
273,
2618,
468,
11769,
2724,
732,
741,
486,
1240,
5338,
1796,
2865,
498,
16,
460,
273,
852,
12,
701,
16,
306,
856,
16,
460,
2
] |
t = string.join(L, "")
|
t = ''.join(L)
|
def compileComponent(self, parsedText, program): import types ttext = type(parsedText) #program = self.program if ttext is types.StringType: # handle special characters here... # short cut if parsedText: stext = parsedText.strip() #string.strip(parsedText) if not stext: program.append(" ") # contract whitespace to single space else: handleSpecialCharacters(self, parsedText, program) elif ttext is types.ListType: for e in parsedText: self.compileComponent(e, program) elif ttext is types.TupleType: (tagname, attdict, content, extra) = parsedText if not attdict: attdict = {} compilername = "compile_"+tagname compiler = getattr(self, compilername, None) if compiler is not None: compiler(attdict, content, extra, program) else: # just pass the tag through if debug: L = [ "<" + tagname ] a = L.append if not attdict: attdict = {} for (k, v) in attdict.items(): a(" %s=%s" % (k,v)) if content: a(">") a(str(content)) a("</%s>" % tagname) else: a("/>") t = string.join(L, "") handleSpecialCharacters(self, t, program) else: raise ValueError, "don't know how to handle tag " + repr(tagname)
|
a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/a9fe2a25d7fcc8f510447cdecc4f6473c43d80f7/para.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
1841,
12,
2890,
16,
2707,
1528,
16,
5402,
4672,
1930,
1953,
268,
955,
273,
618,
12,
10817,
1528,
13,
468,
12890,
273,
365,
18,
12890,
309,
268,
955,
353,
1953,
18,
780,
559,
30,
468,
1640,
4582,
3949,
2674,
2777,
468,
3025,
6391,
309,
2707,
1528,
30,
384,
408,
273,
2707,
1528,
18,
6406,
1435,
468,
1080,
18,
6406,
12,
10817,
1528,
13,
309,
486,
384,
408,
30,
5402,
18,
6923,
2932,
9369,
468,
6835,
7983,
358,
2202,
3476,
469,
30,
1640,
12193,
11600,
12,
2890,
16,
2707,
1528,
16,
5402,
13,
1327,
268,
955,
353,
1953,
18,
19366,
30,
364,
425,
316,
2707,
1528,
30,
365,
18,
11100,
1841,
12,
73,
16,
5402,
13,
1327,
268,
955,
353,
1953,
18,
9038,
559,
30,
261,
2692,
529,
16,
2403,
1576,
16,
913,
16,
2870,
13,
273,
2707,
1528,
309,
486,
2403,
1576,
30,
2403,
1576,
273,
2618,
5274,
529,
273,
315,
11100,
9548,
15,
2692,
529,
5274,
273,
3869,
12,
2890,
16,
5274,
529,
16,
599,
13,
309,
5274,
353,
486,
599,
30,
5274,
12,
4558,
1576,
16,
913,
16,
2870,
16,
5402,
13,
469,
30,
468,
2537,
1342,
326,
1047,
3059,
309,
1198,
30,
511,
273,
306,
18165,
397,
25586,
308,
279,
273,
511,
18,
6923,
309,
486,
2403,
1576,
30,
2403,
1576,
273,
2618,
364,
261,
79,
16,
331,
13,
316,
2403,
1576,
18,
3319,
13332,
279,
2932,
738,
87,
5095,
87,
6,
738,
261,
79,
16,
90,
3719,
309,
913,
30,
279,
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,
4074,
1841,
12,
2890,
16,
2707,
1528,
16,
5402,
4672,
1930,
1953,
268,
955,
273,
618,
12,
10817,
1528,
13,
468,
12890,
273,
365,
18,
12890,
309,
268,
955,
353,
1953,
18,
780,
559,
30,
468,
1640,
4582,
3949,
2674,
2777,
468,
3025,
6391,
309,
2707,
1528,
30,
384,
408,
273,
2707,
1528,
18,
6406,
1435,
468,
1080,
18,
6406,
12,
10817,
1528,
13,
309,
486,
384,
408,
30,
5402,
18,
6923,
2932,
9369,
468,
6835,
7983,
358,
2202,
3476,
469,
30,
1640,
12193,
11600,
12,
2890,
16,
2707,
1528,
16,
5402,
13,
1327,
268,
955,
353,
1953,
18,
19366,
30,
364,
425,
316,
2707,
1528,
30,
365,
18,
11100,
1841,
12,
73,
16,
5402,
13,
1327,
268,
2
] |
if forceload and path in sys.modules: if path not in sys.builtin_module_names: info = inspect.getmoduleinfo(sys.modules[path].__file__) if info[3] != imp.C_EXTENSION: cache[path] = sys.modules[path] del sys.modules[path]
|
def safeimport(path, forceload=0, cache={}): """Import a module; handle errors; return None if the module isn't found. If the module *is* found but an exception occurs, it's wrapped in an ErrorDuringImport exception and reraised. Unlike __import__, if a package path is specified, the module at the end of the path is returned, not the package at the beginning. If the optional 'forceload' argument is 1, we reload the module from disk (unless it's a dynamic extension).""" if forceload and path in sys.modules: # This is the only way to be sure. Checking the mtime of the file # isn't good enough (e.g. what if the module contains a class that # inherits from another module that has changed?). if path not in sys.builtin_module_names: # Python never loads a dynamic extension a second time from the # same path, even if the file is changed or missing. Deleting # the entry in sys.modules doesn't help for dynamic extensions, # so we're not even going to try to keep them up to date. info = inspect.getmoduleinfo(sys.modules[path].__file__) if info[3] != imp.C_EXTENSION: cache[path] = sys.modules[path] # prevent module from clearing del sys.modules[path] try: module = __import__(path) except: # Did the error occur before or after the module was found? (exc, value, tb) = info = sys.exc_info() if path in sys.modules: # An error occurred while executing the imported module. raise ErrorDuringImport(sys.modules[path].__file__, info) elif exc is SyntaxError: # A SyntaxError occurred before we could execute the module. raise ErrorDuringImport(value.filename, info) elif exc is ImportError and \ split(lower(str(value)))[:2] == ['no', 'module']: # The module was not found. return None else: # Some other error occurred during the importing process. raise ErrorDuringImport(path, sys.exc_info()) for part in split(path, '.')[1:]: try: module = getattr(module, part) except AttributeError: return None return module
|
c86b1fee933b21417893cef4f73647f7a8f38768 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c86b1fee933b21417893cef4f73647f7a8f38768/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4183,
5666,
12,
803,
16,
364,
2183,
6189,
33,
20,
16,
1247,
12938,
4672,
3536,
5010,
279,
1605,
31,
1640,
1334,
31,
327,
599,
309,
326,
1605,
5177,
1404,
1392,
18,
225,
971,
326,
1605,
380,
291,
14,
1392,
1496,
392,
1520,
9938,
16,
518,
1807,
5805,
316,
392,
1068,
26424,
5010,
1520,
471,
436,
6070,
5918,
18,
225,
25448,
1001,
5666,
972,
16,
309,
279,
2181,
589,
353,
1269,
16,
326,
1605,
622,
326,
679,
434,
326,
589,
353,
2106,
16,
486,
326,
2181,
622,
326,
8435,
18,
225,
971,
326,
3129,
296,
1884,
2183,
6189,
11,
1237,
353,
404,
16,
732,
7749,
326,
1605,
628,
4234,
261,
28502,
518,
1807,
279,
5976,
2710,
13,
12123,
309,
364,
2183,
6189,
471,
589,
316,
2589,
18,
6400,
30,
468,
1220,
353,
326,
1338,
4031,
358,
506,
3071,
18,
225,
24471,
326,
13158,
434,
326,
585,
468,
5177,
1404,
7494,
7304,
261,
73,
18,
75,
18,
4121,
309,
326,
1605,
1914,
279,
667,
716,
468,
24664,
628,
4042,
1605,
716,
711,
3550,
35,
2934,
309,
589,
486,
316,
2589,
18,
24553,
67,
2978,
67,
1973,
30,
468,
6600,
5903,
6277,
279,
5976,
2710,
279,
2205,
813,
628,
326,
468,
1967,
589,
16,
5456,
309,
326,
585,
353,
3550,
578,
3315,
18,
225,
20988,
310,
468,
326,
1241,
316,
2589,
18,
6400,
3302,
1404,
2809,
364,
5976,
4418,
16,
468,
1427,
732,
4565,
486,
5456,
8554,
358,
775,
358,
3455,
2182,
731,
358,
1509,
18,
1123,
273,
5334,
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,
4183,
5666,
12,
803,
16,
364,
2183,
6189,
33,
20,
16,
1247,
12938,
4672,
3536,
5010,
279,
1605,
31,
1640,
1334,
31,
327,
599,
309,
326,
1605,
5177,
1404,
1392,
18,
225,
971,
326,
1605,
380,
291,
14,
1392,
1496,
392,
1520,
9938,
16,
518,
1807,
5805,
316,
392,
1068,
26424,
5010,
1520,
471,
436,
6070,
5918,
18,
225,
25448,
1001,
5666,
972,
16,
309,
279,
2181,
589,
353,
1269,
16,
326,
1605,
622,
326,
679,
434,
326,
589,
353,
2106,
16,
486,
326,
2181,
622,
326,
8435,
18,
225,
971,
326,
3129,
296,
1884,
2183,
6189,
11,
1237,
353,
404,
16,
732,
7749,
326,
1605,
628,
4234,
261,
28502,
518,
1807,
279,
5976,
2710,
13,
12123,
309,
2
] |
|
self.old_lock = h5py.config.RLock h5py.config.RLock = LOCKTYPE
|
self.old_lock = h5py.config.lock h5py.config.lock = LOCKTYPE()
|
def setUp(self):
|
2c7309a9b49c12fcf7bd62f7147a79ef94a81fff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10380/2c7309a9b49c12fcf7bd62f7147a79ef94a81fff/test_threads.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
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,
-100,
-100
] |
uf.userSetPassword(user.getUserName(), password)
|
uf.userSetPassword(user.getUserId(), password)
|
def resetPassword(self, userid, randomstring, password): """Set the password (in 'password') for the user who maps to the string in 'randomstring' iff the entered 'userid' is equal to the mapped userid. (This can be turned off with the 'toggleUserCheck' method.)
|
d31a0f56db36e3eba0308239b5f7d545c59880ce /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12219/d31a0f56db36e3eba0308239b5f7d545c59880ce/PasswordResetTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
3913,
12,
2890,
16,
6709,
16,
2744,
1080,
16,
2201,
4672,
3536,
694,
326,
2201,
261,
267,
296,
3664,
6134,
364,
326,
729,
10354,
7565,
358,
326,
533,
316,
296,
9188,
1080,
11,
21437,
326,
16219,
296,
8339,
11,
353,
3959,
358,
326,
5525,
6709,
18,
261,
2503,
848,
506,
21826,
3397,
598,
326,
296,
14401,
1299,
1564,
11,
707,
12998,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
3913,
12,
2890,
16,
6709,
16,
2744,
1080,
16,
2201,
4672,
3536,
694,
326,
2201,
261,
267,
296,
3664,
6134,
364,
326,
729,
10354,
7565,
358,
326,
533,
316,
296,
9188,
1080,
11,
21437,
326,
16219,
296,
8339,
11,
353,
3959,
358,
326,
5525,
6709,
18,
261,
2503,
848,
506,
21826,
3397,
598,
326,
296,
14401,
1299,
1564,
11,
707,
12998,
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
] |
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)
|
72e110c1cdf1ab187b0799cca788748484556028 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/72e110c1cdf1ab187b0799cca788748484556028/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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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
] |
cl=xmpp.Client(jid.getDomain(),debug=[])
|
cl=xmpp.Client(jid.getDomain(),debug=["dispatcher"])
|
def xmpp_presence(self, conn, presence_node): #print presence_node if presence_node.getFrom().bareMatch(self.remotejid): if presence_node.getType() == 'subscribe': replypres=xmpp.Presence(typ='subscribed',to=presence_node.getFrom()) conn.send(replypres) replypres.setType('subscribe') conn.send(replypres) elif presence_node.getType() == 'probe': replypres = xmpp.Presence(to=presence_node.getFrom(), show='chat', status=self.presencestr) conn.send(replypres) elif ((not presence_node.getShow() is None) and \ presence_node.getShow != '') : pass #sys.stdout.write("*** Status: " + presence_node.getShow() + "\n")
|
4e9a72d68317b800e23a7b28a1d97f6a98afc190 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14053/4e9a72d68317b800e23a7b28a1d97f6a98afc190/ax25xmpp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
24109,
67,
21731,
12,
2890,
16,
1487,
16,
9805,
67,
2159,
4672,
468,
1188,
9805,
67,
2159,
309,
9805,
67,
2159,
18,
588,
1265,
7675,
70,
834,
2060,
12,
2890,
18,
7222,
18252,
4672,
309,
9805,
67,
2159,
18,
588,
559,
1435,
422,
296,
9174,
4278,
6831,
879,
455,
33,
92,
24109,
18,
22590,
12,
12846,
2218,
27847,
2187,
869,
33,
21731,
67,
2159,
18,
588,
1265,
10756,
1487,
18,
4661,
12,
26745,
879,
455,
13,
6831,
879,
455,
18,
542,
559,
2668,
9174,
6134,
1487,
18,
4661,
12,
26745,
879,
455,
13,
1327,
9805,
67,
2159,
18,
588,
559,
1435,
422,
296,
27230,
4278,
6831,
879,
455,
273,
619,
24109,
18,
22590,
12,
869,
33,
21731,
67,
2159,
18,
588,
1265,
9334,
2405,
2218,
10880,
2187,
1267,
33,
2890,
18,
12202,
2369,
313,
13,
1487,
18,
4661,
12,
26745,
879,
455,
13,
1327,
14015,
902,
9805,
67,
2159,
18,
588,
5706,
1435,
353,
599,
13,
471,
225,
521,
9805,
67,
2159,
18,
588,
5706,
480,
28707,
294,
1342,
468,
9499,
18,
10283,
18,
2626,
2932,
14465,
2685,
30,
315,
397,
9805,
67,
2159,
18,
588,
5706,
1435,
397,
1548,
82,
7923,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
24109,
67,
21731,
12,
2890,
16,
1487,
16,
9805,
67,
2159,
4672,
468,
1188,
9805,
67,
2159,
309,
9805,
67,
2159,
18,
588,
1265,
7675,
70,
834,
2060,
12,
2890,
18,
7222,
18252,
4672,
309,
9805,
67,
2159,
18,
588,
559,
1435,
422,
296,
9174,
4278,
6831,
879,
455,
33,
92,
24109,
18,
22590,
12,
12846,
2218,
27847,
2187,
869,
33,
21731,
67,
2159,
18,
588,
1265,
10756,
1487,
18,
4661,
12,
26745,
879,
455,
13,
6831,
879,
455,
18,
542,
559,
2668,
9174,
6134,
1487,
18,
4661,
12,
26745,
879,
455,
13,
1327,
9805,
67,
2159,
18,
588,
559,
1435,
422,
296,
27230,
4278,
6831,
879,
455,
273,
619,
24109,
18,
22590,
12,
869,
33,
21731,
2
] |
locale_len = len(time.strftime("%x %X", time.localtime(0)))
|
locale_len = len(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(0)))
|
def debugstate(ui, repo): """show the contents of the current dirstate""" k = repo.dirstate._map.items() k.sort() for file_, ent in k: if ent[3] == -1: # Pad or slice to locale representation locale_len = len(time.strftime("%x %X", time.localtime(0))) timestr = 'unset' timestr = timestr[:locale_len] + ' '*(locale_len - len(timestr)) else: timestr = time.strftime("%x %X", time.localtime(ent[3])) if ent[1] & 020000: mode = 'lnk' else: mode = '%3o' % (ent[1] & 0777) ui.write("%c %s %10d %s %s\n" % (ent[0], mode, ent[2], timestr, file_)) for f in repo.dirstate.copies(): ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copied(f), f))
|
9b008ae7eaeb7c22612e739acd68e24587005594 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/9b008ae7eaeb7c22612e739acd68e24587005594/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1198,
2019,
12,
4881,
16,
3538,
4672,
3536,
4500,
326,
2939,
434,
326,
783,
302,
920,
340,
8395,
417,
273,
3538,
18,
72,
920,
340,
6315,
1458,
18,
3319,
1435,
417,
18,
3804,
1435,
364,
585,
67,
16,
3281,
316,
417,
30,
309,
3281,
63,
23,
65,
422,
300,
21,
30,
468,
30961,
578,
2788,
358,
2573,
4335,
2573,
67,
1897,
273,
562,
12,
957,
18,
701,
9982,
27188,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
3113,
813,
18,
3729,
957,
12,
20,
20349,
4124,
313,
273,
296,
18579,
11,
4124,
313,
273,
4124,
313,
10531,
6339,
67,
1897,
65,
397,
296,
14609,
12,
6339,
67,
1897,
300,
562,
12,
8293,
313,
3719,
469,
30,
4124,
313,
273,
813,
18,
701,
9982,
27188,
92,
738,
60,
3113,
813,
18,
3729,
957,
12,
319,
63,
23,
22643,
309,
3281,
63,
21,
65,
473,
17896,
2787,
30,
1965,
273,
296,
2370,
79,
11,
469,
30,
1965,
273,
1995,
23,
83,
11,
738,
261,
319,
63,
21,
65,
473,
16660,
13,
5915,
18,
2626,
27188,
71,
738,
87,
738,
2163,
72,
738,
87,
738,
87,
64,
82,
6,
738,
261,
319,
63,
20,
6487,
1965,
16,
3281,
63,
22,
6487,
4124,
313,
16,
585,
67,
3719,
364,
284,
316,
3538,
18,
72,
920,
340,
18,
22295,
606,
13332,
5915,
18,
2626,
24899,
2932,
3530,
30,
738,
87,
317,
738,
87,
64,
82,
7923,
738,
261,
7422,
18,
72,
920,
340,
18,
22295,
2092,
12,
74,
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,
1198,
2019,
12,
4881,
16,
3538,
4672,
3536,
4500,
326,
2939,
434,
326,
783,
302,
920,
340,
8395,
417,
273,
3538,
18,
72,
920,
340,
6315,
1458,
18,
3319,
1435,
417,
18,
3804,
1435,
364,
585,
67,
16,
3281,
316,
417,
30,
309,
3281,
63,
23,
65,
422,
300,
21,
30,
468,
30961,
578,
2788,
358,
2573,
4335,
2573,
67,
1897,
273,
562,
12,
957,
18,
701,
9982,
27188,
61,
6456,
81,
6456,
72,
738,
44,
5319,
49,
5319,
55,
3113,
813,
18,
3729,
957,
12,
20,
20349,
4124,
313,
273,
296,
18579,
11,
4124,
313,
273,
4124,
313,
10531,
6339,
67,
1897,
65,
397,
296,
14609,
12,
6339,
67,
1897,
300,
562,
12,
8293,
313,
3719,
469,
2
] |
"""Apply ModelView transformations"""
|
""" Apply ModelView transformations you will most likely want to wrap calls to this function with glPushMatrix/glPopMatrix """
|
def transform( self ): """Apply ModelView transformations""" x,y = director.get_window_size()
|
d6a2243c8d0d185e924aa6e5519cc6eb3aba2e53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7473/d6a2243c8d0d185e924aa6e5519cc6eb3aba2e53/cocosnode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
365,
262,
30,
3536,
5534,
3164,
1767,
19245,
1846,
903,
4486,
10374,
2545,
358,
2193,
4097,
358,
333,
445,
598,
5118,
7621,
4635,
19,
7043,
7049,
4635,
3536,
619,
16,
93,
273,
2657,
280,
18,
588,
67,
5668,
67,
1467,
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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,
10374,
2545,
358,
2193,
4097,
358,
333,
445,
598,
5118,
7621,
4635,
19,
7043,
7049,
4635,
3536,
619,
16,
93,
273,
2657,
280,
18,
588,
67,
5668,
67,
1467,
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
] |
m = m / max
|
m = m / flat_max
|
def createMasterFits(self,of,files): """Process acquired flat images.""" import numpy import os import pyfits
|
de2ac916b23a131fddd9179aa49e100dc5ee426e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6334/de2ac916b23a131fddd9179aa49e100dc5ee426e/flats.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
7786,
42,
1282,
12,
2890,
16,
792,
16,
2354,
4672,
3536,
2227,
20598,
3569,
4602,
12123,
1930,
3972,
1930,
1140,
1930,
2395,
18352,
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,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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,
752,
7786,
42,
1282,
12,
2890,
16,
792,
16,
2354,
4672,
3536,
2227,
20598,
3569,
4602,
12123,
1930,
3972,
1930,
1140,
1930,
2395,
18352,
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
] |
sage: QQ(1/2) * vector(ZZ[x][y],[1,2,3,4])
|
sage: QQ(1/2) * vector(ZZ['x']['y'],[1,2,3,4])
|
def is_submodule(self, other): """ Copied from FreeModule_generic_pid It only works partially since basis() is not implemented in general Trivial cases are already useful for coercion, e.g. sage: QQ(1/2) * vector(ZZ[x][y],[1,2,3,4]) (1/2, 1, 3/2, 2) sage: vector(ZZ[x][y],[1,2,3,4]) * QQ(1/2) (1/2, 1, 3/2, 2) """ if not isinstance(other, FreeModule_generic): return False if self.ambient_vector_space() != other.ambient_vector_space(): return False if other == other.ambient_vector_space(): return True if other.rank() < self.rank(): return False if self.base_ring() != other.base_ring(): try: if not self.base_ring().is_subring(other.base_ring()): return False except NotImplementedError: return False for b in self.basis(): if not (b in other): return False return True
|
ade817eb50cd7e7679a090a7aedf0b8eb213d5ba /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/ade817eb50cd7e7679a090a7aedf0b8eb213d5ba/free_module.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1717,
2978,
12,
2890,
16,
1308,
4672,
3536,
28506,
2092,
628,
15217,
3120,
67,
13540,
67,
6610,
2597,
1338,
6330,
19976,
3241,
10853,
1435,
353,
486,
8249,
316,
7470,
840,
20109,
6088,
854,
1818,
5301,
364,
1825,
12610,
285,
16,
425,
18,
75,
18,
272,
410,
30,
2238,
53,
12,
21,
19,
22,
13,
380,
3806,
12,
27096,
3292,
92,
21712,
93,
17337,
63,
21,
16,
22,
16,
23,
16,
24,
5717,
261,
21,
19,
22,
16,
404,
16,
890,
19,
22,
16,
576,
13,
272,
410,
30,
3806,
12,
27096,
63,
92,
6362,
93,
6487,
63,
21,
16,
22,
16,
23,
16,
24,
5717,
380,
2238,
53,
12,
21,
19,
22,
13,
261,
21,
19,
22,
16,
404,
16,
890,
19,
22,
16,
576,
13,
3536,
309,
486,
1549,
12,
3011,
16,
15217,
3120,
67,
13540,
4672,
327,
1083,
309,
365,
18,
2536,
1979,
67,
7737,
67,
2981,
1435,
480,
1308,
18,
2536,
1979,
67,
7737,
67,
2981,
13332,
327,
1083,
309,
1308,
422,
1308,
18,
2536,
1979,
67,
7737,
67,
2981,
13332,
327,
1053,
309,
1308,
18,
11500,
1435,
411,
365,
18,
11500,
13332,
327,
1083,
309,
365,
18,
1969,
67,
8022,
1435,
480,
1308,
18,
1969,
67,
8022,
13332,
775,
30,
309,
486,
365,
18,
1969,
67,
8022,
7675,
291,
67,
1717,
8022,
12,
3011,
18,
1969,
67,
8022,
1435,
4672,
327,
1083,
1335,
11206,
30,
327,
1083,
364,
324,
316,
365,
18,
23774,
13332,
309,
486,
261,
70,
316,
1308,
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,
353,
67,
1717,
2978,
12,
2890,
16,
1308,
4672,
3536,
28506,
2092,
628,
15217,
3120,
67,
13540,
67,
6610,
2597,
1338,
6330,
19976,
3241,
10853,
1435,
353,
486,
8249,
316,
7470,
840,
20109,
6088,
854,
1818,
5301,
364,
1825,
12610,
285,
16,
425,
18,
75,
18,
272,
410,
30,
2238,
53,
12,
21,
19,
22,
13,
380,
3806,
12,
27096,
3292,
92,
21712,
93,
17337,
63,
21,
16,
22,
16,
23,
16,
24,
5717,
261,
21,
19,
22,
16,
404,
16,
890,
19,
22,
16,
576,
13,
272,
410,
30,
3806,
12,
27096,
63,
92,
6362,
93,
6487,
63,
21,
16,
22,
16,
23,
16,
24,
5717,
380,
2238,
53,
12,
21,
19,
22,
13,
261,
21,
19,
2
] |
self.connect("confirm-overwrite", self.__cb_confirm_overwrite) def __cb_confirm_overwrite(self, widget, data = None): "Handles confirm-overwrite signals" try: FileReplace(self, io.file_normpath(self.get_uri())).run() except: return gtk.FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN else: return gtk.FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME
|
def __init__(self, parent): FileSelector.__init__( self, parent, _('Select File to Save to'), gtk.FILE_CHOOSER_ACTION_SAVE, gtk.STOCK_SAVE )
|
dd18cc846c5f3e58f6ab758e33e05fff6e16d554 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11741/dd18cc846c5f3e58f6ab758e33e05fff6e16d554/gui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
1387,
4320,
16186,
2738,
972,
12,
365,
16,
982,
16,
389,
2668,
3391,
1387,
358,
7074,
358,
19899,
22718,
18,
3776,
67,
22213,
51,
2123,
67,
12249,
67,
25242,
16,
22718,
18,
31487,
3507,
67,
25242,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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2738,
972,
12,
2890,
16,
982,
4672,
1387,
4320,
16186,
2738,
972,
12,
365,
16,
982,
16,
389,
2668,
3391,
1387,
358,
7074,
358,
19899,
22718,
18,
3776,
67,
22213,
51,
2123,
67,
12249,
67,
25242,
16,
22718,
18,
31487,
3507,
67,
25242,
262,
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
] |
|
if self.splitters.has_key(pkg.get('type')):
|
if self.splitters.has_key(pkg.get('type')) and pkg.get('file') != None:
|
def __init__(self, data, pdict, parent=None): # copy local attributes to all child nodes if no local attribute exists if not pdict.has_key('Package'): pdict['Package'] = [] for child in data.getchildren(): for attr in [key for key in data.attrib.keys() if key != 'name' and not child.attrib.has_key(key)]: child.set(attr, data.get(attr)) Bcfg2.Server.Plugin.INode.__init__(self, data, pdict, parent) if not self.contents.has_key('Package'): self.contents['Package'] = {} for pkg in data.findall('./Package'): if pkg.attrib.has_key('name') and pkg.get('name') not in pdict['Package']: pdict['Package'].append(pkg.get('name')) if pkg.attrib.has_key('simplefile'): pkg.set('url', "%s/%s" % (pkg.get('uri'), pkg.get('simplefile'))) self.contents['Package'][pkg.get('name')] = pkg.attrib else: if pkg.attrib.has_key('file'): pkg.set('url', '%s/%s' % (pkg.get('uri'), pkg.get('file'))) if self.splitters.has_key(pkg.get('type')): mdata = self.splitters[pkg.get('type')].match(pkg.get('file')) if not mdata: logger.error("Failed to match pkg %s" % pkg.get('file')) continue pkgname = mdata.group('name') self.contents['Package'][pkgname] = mdata.groupdict() if pkg.attrib.get('file'): self.contents['Package'][pkgname]['url'] = pkg.get('url') self.contents['Package'][pkgname]['type'] = pkg.get('type') if pkgname not in pdict['Package']: pdict['Package'].append(pkgname) else: self.contents['Package'][pkg.get('name')] = pkg.attrib
|
74a93ea79f568b61e17c0eddf519c895bcdb249e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/74a93ea79f568b61e17c0eddf519c895bcdb249e/Pkgmgr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
16,
293,
1576,
16,
982,
33,
7036,
4672,
468,
1610,
1191,
1677,
358,
777,
1151,
2199,
309,
1158,
1191,
1566,
1704,
309,
486,
293,
1576,
18,
5332,
67,
856,
2668,
2261,
11,
4672,
293,
1576,
3292,
2261,
3546,
273,
5378,
364,
1151,
316,
501,
18,
588,
5906,
13332,
364,
1604,
316,
306,
856,
364,
498,
316,
501,
18,
14588,
18,
2452,
1435,
309,
498,
480,
296,
529,
11,
471,
486,
1151,
18,
14588,
18,
5332,
67,
856,
12,
856,
13,
14542,
1151,
18,
542,
12,
1747,
16,
501,
18,
588,
12,
1747,
3719,
605,
7066,
22,
18,
2081,
18,
3773,
18,
23184,
16186,
2738,
972,
12,
2890,
16,
501,
16,
293,
1576,
16,
982,
13,
309,
486,
365,
18,
3980,
18,
5332,
67,
856,
2668,
2261,
11,
4672,
365,
18,
3980,
3292,
2261,
3546,
273,
2618,
364,
3475,
316,
501,
18,
4720,
454,
2668,
18,
19,
2261,
11,
4672,
309,
3475,
18,
14588,
18,
5332,
67,
856,
2668,
529,
6134,
471,
3475,
18,
588,
2668,
529,
6134,
486,
316,
293,
1576,
3292,
2261,
3546,
30,
293,
1576,
3292,
2261,
29489,
6923,
12,
10657,
18,
588,
2668,
529,
26112,
309,
3475,
18,
14588,
18,
5332,
67,
856,
2668,
9647,
768,
11,
4672,
3475,
18,
542,
2668,
718,
2187,
2213,
87,
5258,
87,
6,
738,
261,
10657,
18,
588,
2668,
1650,
19899,
3475,
18,
588,
2668,
9647,
768,
11,
20349,
365,
18,
3980,
3292,
2261,
3546,
63,
10657,
18,
588,
2668,
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,
16,
501,
16,
293,
1576,
16,
982,
33,
7036,
4672,
468,
1610,
1191,
1677,
358,
777,
1151,
2199,
309,
1158,
1191,
1566,
1704,
309,
486,
293,
1576,
18,
5332,
67,
856,
2668,
2261,
11,
4672,
293,
1576,
3292,
2261,
3546,
273,
5378,
364,
1151,
316,
501,
18,
588,
5906,
13332,
364,
1604,
316,
306,
856,
364,
498,
316,
501,
18,
14588,
18,
2452,
1435,
309,
498,
480,
296,
529,
11,
471,
486,
1151,
18,
14588,
18,
5332,
67,
856,
12,
856,
13,
14542,
1151,
18,
542,
12,
1747,
16,
501,
18,
588,
12,
1747,
3719,
605,
7066,
22,
18,
2081,
18,
3773,
18,
23184,
16186,
2738,
972,
12,
2890,
16,
501,
16,
293,
2
] |
entry = vocab2row(defn, [])
|
if 'other' in defn: entry = ['other', defn['other']] else: entry = vocab2row(defn, [])
|
def vocab2row(vocab, default=None): if vocab: if 'error' in vocab: return ['ERROR', vocab['error']] else: return [vocab['short'], vocab['long'], vocab['defn']]
|
537906f2a7418a1f0d4f2c6c7c9e323892da3e44 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12122/537906f2a7418a1f0d4f2c6c7c9e323892da3e44/metadata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9623,
22,
492,
12,
15913,
16,
805,
33,
7036,
4672,
309,
9623,
30,
309,
296,
1636,
11,
316,
9623,
30,
327,
10228,
3589,
2187,
9623,
3292,
1636,
3546,
65,
469,
30,
327,
306,
15913,
3292,
6620,
17337,
9623,
3292,
5748,
17337,
9623,
3292,
536,
82,
3546,
65,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9623,
22,
492,
12,
15913,
16,
805,
33,
7036,
4672,
309,
9623,
30,
309,
296,
1636,
11,
316,
9623,
30,
327,
10228,
3589,
2187,
9623,
3292,
1636,
3546,
65,
469,
30,
327,
306,
15913,
3292,
6620,
17337,
9623,
3292,
5748,
17337,
9623,
3292,
536,
82,
3546,
65,
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
] |
def get_media_internal (request, path, use_cache=True) :
|
def get_media_internal (request, path, use_cache=True, force_mimetype=None) :
|
def get_media_internal (request, path, use_cache=True) : # get media type mimetype = mimetypes.guess_type(path)[0] contents = get_mime_handler(mimetype)(request, file(path, "rb"), path=path) return ( contents, mimetype, 200, rfc822.formatdate(os.stat(path)[stat.ST_MTIME]), )
|
118e8e2c4fddd63f6cf6650853c68cb0b173aa7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/118e8e2c4fddd63f6cf6650853c68cb0b173aa7b/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5829,
67,
7236,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
16,
2944,
67,
22571,
33,
7036,
13,
294,
468,
336,
3539,
618,
12595,
273,
20369,
15180,
18,
20885,
67,
723,
12,
803,
25146,
20,
65,
2939,
273,
336,
67,
11757,
67,
4176,
12,
22571,
21433,
2293,
16,
585,
12,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5829,
67,
7236,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
16,
2944,
67,
22571,
33,
7036,
13,
294,
468,
336,
3539,
618,
12595,
273,
20369,
15180,
18,
20885,
67,
723,
12,
803,
25146,
20,
65,
2939,
273,
336,
67,
11757,
67,
4176,
12,
22571,
21433,
2293,
16,
585,
12,
803,
16,
315,
6731,
6,
3631,
589,
33,
803,
13,
225,
327,
261,
2939,
16,
12595,
16,
4044,
16,
16590,
24532,
18,
2139,
712,
12,
538,
18,
5642,
12,
803,
25146,
5642,
18,
882,
67,
49,
4684,
65,
3631,
262,
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
] |
if not anchor =='start':
|
if not anchor=='start':
|
def _text2PathDescription(text, x=0, y=0, fontName='Times-Roman', fontSize=1000, anchor='start', truncate=1, pathReverse=0): global _gs if not _gs: import _renderPM _gs = _renderPM.gstate(1,1) from reportlab.graphics import renderPM renderPM._setFont(_gs,fontName,fontSize) P = [] if not anchor =='start': textLen = stringWidth(text, fontName,fontSize) if text_anchor=='end': x = x-textLen elif text_anchor=='middle': x = x - textLen/2. for g in _gs._stringPath(text,x,y): P.extend(_processGlyph(g,truncate=truncate,pathReverse=pathReverse)) return P
|
0367606c39861c59a7816eada013ab3511b78c87 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7053/0367606c39861c59a7816eada013ab3511b78c87/textlabels.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
955,
22,
743,
3291,
12,
955,
16,
619,
33,
20,
16,
677,
33,
20,
16,
3512,
461,
2218,
10694,
17,
54,
362,
304,
2187,
16746,
33,
18088,
16,
6984,
2218,
1937,
2187,
10310,
33,
21,
16,
589,
12650,
33,
20,
4672,
2552,
389,
564,
309,
486,
389,
564,
30,
1930,
389,
5902,
12728,
389,
564,
273,
389,
5902,
12728,
18,
75,
2019,
12,
21,
16,
21,
13,
628,
2605,
7411,
18,
31586,
1930,
1743,
12728,
1743,
12728,
6315,
542,
5711,
24899,
564,
16,
5776,
461,
16,
5776,
1225,
13,
453,
273,
5378,
309,
486,
6984,
18920,
1937,
4278,
977,
2891,
273,
533,
2384,
12,
955,
16,
3512,
461,
16,
5776,
1225,
13,
309,
977,
67,
16215,
18920,
409,
4278,
619,
273,
619,
17,
955,
2891,
1327,
977,
67,
16215,
18920,
18661,
4278,
619,
273,
619,
300,
977,
2891,
19,
22,
18,
364,
314,
316,
389,
564,
6315,
1080,
743,
12,
955,
16,
92,
16,
93,
4672,
453,
18,
14313,
24899,
2567,
15141,
12,
75,
16,
27201,
33,
27201,
16,
803,
12650,
33,
803,
12650,
3719,
327,
453,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
955,
22,
743,
3291,
12,
955,
16,
619,
33,
20,
16,
677,
33,
20,
16,
3512,
461,
2218,
10694,
17,
54,
362,
304,
2187,
16746,
33,
18088,
16,
6984,
2218,
1937,
2187,
10310,
33,
21,
16,
589,
12650,
33,
20,
4672,
2552,
389,
564,
309,
486,
389,
564,
30,
1930,
389,
5902,
12728,
389,
564,
273,
389,
5902,
12728,
18,
75,
2019,
12,
21,
16,
21,
13,
628,
2605,
7411,
18,
31586,
1930,
1743,
12728,
1743,
12728,
6315,
542,
5711,
24899,
564,
16,
5776,
461,
16,
5776,
1225,
13,
453,
273,
5378,
309,
486,
6984,
18920,
1937,
4278,
977,
2891,
273,
533,
2384,
12,
955,
16,
3512,
461,
16,
5776,
1225,
13,
309,
977,
67,
16215,
18920,
2
] |
def get(self, key, default=None):
|
def __contains__(self, key): return self.get(key, _marker) is not _marker def __setitem__(self, key, value): foundStack = False
|
def get(self, key, default=None): for resourceManager in self.resourceResolutionOrder(): if key in resourceManager._resources: return resourceManager._resources[key] return default
|
4649aa3564f7038dfa483cff707f2603f3ac622b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12263/4649aa3564f7038dfa483cff707f2603f3ac622b/layer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12298,
972,
12,
2890,
16,
498,
4672,
327,
365,
18,
588,
12,
856,
16,
389,
11145,
13,
353,
486,
389,
11145,
225,
1652,
1001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
1392,
2624,
273,
1083,
225,
364,
1058,
1318,
316,
365,
18,
3146,
11098,
2448,
13332,
309,
498,
316,
1058,
1318,
6315,
4683,
30,
327,
1058,
1318,
6315,
4683,
63,
856,
65,
327,
805,
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,
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001,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
1392,
2624,
273,
1083,
225,
364,
1058,
1318,
316,
365,
18,
3146,
11098,
2448,
13332,
309,
498,
316,
1058,
1318,
6315,
4683,
30,
327,
1058,
1318,
6315,
4683,
63,
856,
65,
327,
805,
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
] |
print 'UnitCell not found, there are probably no atoms in ',ncfile
|
def read_only_atoms(self,ncfile): '''read only the atoms from an existing netcdf file. Used to initialize a calculator from a ncfilename.
|
1b61135a666dd666fd01da23019c007519f625f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/1b61135a666dd666fd01da23019c007519f625f4/jacapo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3700,
67,
14937,
12,
2890,
16,
14202,
768,
4672,
9163,
896,
1338,
326,
9006,
628,
392,
2062,
2901,
24799,
585,
18,
10286,
358,
4046,
279,
15497,
628,
279,
8194,
3459,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
3700,
67,
14937,
12,
2890,
16,
14202,
768,
4672,
9163,
896,
1338,
326,
9006,
628,
392,
2062,
2901,
24799,
585,
18,
10286,
358,
4046,
279,
15497,
628,
279,
8194,
3459,
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
] |
|
path = os.path.join(d, filename)
|
path = d + '/' + filename
|
def findIDL(includePath, irregularFilenames, interfaceName): filename = irregularFilenames.get(interfaceName, interfaceName) + '.idl' for d in includePath: path = os.path.join(d, filename) if os.path.exists(path): return path raise UserError("No IDL file found for interface %s " "in include path %r" % (interfaceName, includePath))
|
147d080563ae6b92c545b0d66e87634c127f3305 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/147d080563ae6b92c545b0d66e87634c127f3305/qsgen.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
734,
48,
12,
6702,
743,
16,
9482,
16819,
25579,
6809,
16,
24088,
4672,
1544,
273,
9482,
16819,
25579,
6809,
18,
588,
12,
5831,
461,
16,
24088,
13,
397,
2418,
350,
80,
11,
364,
302,
316,
2341,
743,
30,
282,
589,
273,
302,
397,
2023,
397,
1544,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
327,
589,
1002,
2177,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
734,
48,
12,
6702,
743,
16,
9482,
16819,
25579,
6809,
16,
24088,
4672,
1544,
273,
9482,
16819,
25579,
6809,
18,
588,
12,
5831,
461,
16,
24088,
13,
397,
2418,
350,
80,
11,
364,
302,
316,
2341,
743,
30,
282,
589,
273,
302,
397,
2023,
397,
1544,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
327,
589,
1002,
2177,
668,
2932,
2279,
1599,
48,
585,
1392,
364,
1560,
738,
87,
315,
315,
267,
2341,
589,
738,
86,
6,
738,
261,
5831,
461,
16,
2341,
743,
3719,
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
] |
"""
|
"""
|
def flimage_free(pImage): """ flimage_free(pImage) -> num. """ retval = _flimage_free(pImage) return retval
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
9156,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
9156,
12,
84,
2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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
2730,
67,
9156,
12,
84,
2040,
4672,
3536,
1183,
2730,
67,
9156,
12,
84,
2040,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
2242,
2730,
67,
9156,
12,
84,
2040,
13,
327,
5221,
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,
-100,
-100,
-100,
-100
] |
PROFILE = True
|
PROFILE = False
|
def print_times(self): times = [(e-s,t) for (t,s,e) in self._times] times.sort() total = sum([time for (time, task) in times]) for (time, task) in times: task = task[:31] print '%s%s %.4f secs' % (task, '.'*(35-len(task)), time), print '|'+'=' * min(30,int(50*time/total))
|
c0aafe2a557778dc005757711d589d7564d970ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/c0aafe2a557778dc005757711d589d7564d970ac/cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
8293,
12,
2890,
4672,
4124,
273,
306,
12,
73,
17,
87,
16,
88,
13,
364,
261,
88,
16,
87,
16,
73,
13,
316,
365,
6315,
8293,
65,
4124,
18,
3804,
1435,
2078,
273,
2142,
3816,
957,
364,
261,
957,
16,
1562,
13,
316,
4124,
5717,
364,
261,
957,
16,
1562,
13,
316,
4124,
30,
1562,
273,
1562,
10531,
6938,
65,
1172,
1995,
87,
9,
87,
12639,
24,
74,
18043,
11,
738,
261,
4146,
16,
2611,
21556,
4763,
17,
1897,
12,
4146,
13,
3631,
813,
3631,
1172,
8030,
6797,
2218,
380,
1131,
12,
5082,
16,
474,
12,
3361,
14,
957,
19,
4963,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
8293,
12,
2890,
4672,
4124,
273,
306,
12,
73,
17,
87,
16,
88,
13,
364,
261,
88,
16,
87,
16,
73,
13,
316,
365,
6315,
8293,
65,
4124,
18,
3804,
1435,
2078,
273,
2142,
3816,
957,
364,
261,
957,
16,
1562,
13,
316,
4124,
5717,
364,
261,
957,
16,
1562,
13,
316,
4124,
30,
1562,
273,
1562,
10531,
6938,
65,
1172,
1995,
87,
9,
87,
12639,
24,
74,
18043,
11,
738,
261,
4146,
16,
2611,
21556,
4763,
17,
1897,
12,
4146,
13,
3631,
813,
3631,
1172,
8030,
6797,
2218,
380,
1131,
12,
5082,
16,
474,
12,
3361,
14,
957,
19,
4963,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return ButlerLocation(None, None, "PickleStorage", path, None)
|
return ButlerLocation(None, None, "PickleStorage", path, {})
|
def map_satPixelSet(self, dataId): pathId = self._needFilter(dataId) path = os.path.join(self.root, self.satPixelSetTemplate % pathId) return ButlerLocation(None, None, "PickleStorage", path, None)
|
970d4cd14c0ef9f670947fce17f7e1a1c7d1857e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6940/970d4cd14c0ef9f670947fce17f7e1a1c7d1857e/cfhtMapper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
67,
12973,
9037,
694,
12,
2890,
16,
501,
548,
4672,
589,
548,
273,
365,
6315,
14891,
1586,
12,
892,
548,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3085,
16,
365,
18,
12973,
9037,
694,
2283,
738,
589,
548,
13,
327,
12484,
749,
2735,
12,
7036,
16,
599,
16,
315,
17968,
298,
3245,
3113,
589,
16,
599,
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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1586,
12,
892,
548,
13,
589,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
3085,
16,
365,
18,
12973,
9037,
694,
2283,
738,
589,
548,
13,
327,
12484,
749,
2735,
12,
7036,
16,
599,
16,
315,
17968,
298,
3245,
3113,
589,
16,
599,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.