rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
cols = string.split(line) for i in range(1, len(cols)): cols[i] = self._chomp(cols[i]) self.data.cross_references.append(tuple(cols[1:]))
|
line = line[5:] i = string.find(line, '[') if i >= 0: line = line[:i] cols = string.split(self._chomp(string.rstrip(line)), ';') for i in range(len(cols)): cols[i] = string.lstrip(cols[i]) self.data.cross_references.append(tuple(cols))
|
def database_cross_reference(self, line): cols = string.split(line) for i in range(1, len(cols)): cols[i] = self._chomp(cols[i]) self.data.cross_references.append(tuple(cols[1:]))
|
01b9154909094443f94d81f6053cdc7ec396503b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/01b9154909094443f94d81f6053cdc7ec396503b/SProt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
377,
980,
273,
980,
63,
25,
26894,
225,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
1545,
374,
30,
980,
273,
980,
10531,
77,
65,
5347,
273,
533,
18,
4939,
12,
2890,
6315,
343,
20667,
12,
1080,
18,
86,
6406,
12,
1369,
13,
3631,
7554,
13,
364,
277,
316,
1048,
12,
1897,
12,
6842,
3719,
30,
5347,
63,
77,
65,
273,
533,
18,
80,
6406,
12,
6842,
63,
77,
5717,
365,
18,
892,
18,
14653,
67,
14353,
18,
6923,
12,
8052,
12,
6842,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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652,
2063,
67,
14653,
67,
6180,
12,
2890,
16,
980,
4672,
377,
980,
273,
980,
63,
25,
26894,
225,
277,
273,
533,
18,
4720,
12,
1369,
16,
8375,
13,
309,
277,
1545,
374,
30,
980,
273,
980,
10531,
77,
65,
5347,
273,
533,
18,
4939,
12,
2890,
6315,
343,
20667,
12,
1080,
18,
86,
6406,
12,
1369,
13,
3631,
7554,
13,
364,
277,
316,
1048,
12,
1897,
12,
6842,
3719,
30,
5347,
63,
77,
65,
273,
533,
18,
80,
6406,
12,
6842,
63,
77,
5717,
365,
18,
892,
18,
14653,
67,
14353,
18,
6923,
12,
8052,
12,
6842,
3719,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if length == 2:
|
size = len(paths.split(',')) if length == 2 and length/2 == size:
|
def create_id_pairs(pairs, paths, **kwargs): """ This function takes in a string that contains pairs of numbers and turns them into a tuple (for one pair) or a list of tuples. The function checks against the number of data paths requested. If the number of paths is not equal to the number of id pairs given, the last id pair is duplicated until the number of id pairs is the same as the number of data paths Parameters: ---------- -> pairs is a string containing a list of pixel id pairs -> paths is a string containing a list of NeXus data paths and signal pairs Returns: ------- <- A tuple or list of tuples of the pixel id pairs """ mylist = pairs.split(',') length = len(mylist) if length == 2: use_extend = True else: use_extend = False size = len(paths.split(',')) id_pairs = [] for i in range(0, length, 2): if use_extend: id_pairs.extend((int(mylist[i]), int(mylist[i + 1]))) else: id_pairs.append((int(mylist[i]), int(mylist[i + 1]))) # The number of data paths and the number of id pairs is equal if length == size: if length == 2: return tuple(id_pairs) else: return id_pairs # They are not equal. Fill in the id pairs with the last one until they # are the same else: last_pair = id_pairs[-1] additions = size / length - 1 for j in range(additions): id_pairs.append(last_pair) return id_pairs
|
9619232ded0c6a536f44d91d91ad3cf50909f478 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/9619232ded0c6a536f44d91d91ad3cf50909f478/hlr_driver_helper.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
350,
67,
11545,
12,
11545,
16,
2953,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
5574,
434,
5600,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
13,
578,
279,
666,
434,
10384,
18,
1021,
445,
4271,
5314,
326,
1300,
434,
501,
2953,
3764,
18,
971,
326,
1300,
434,
2953,
353,
486,
3959,
358,
326,
1300,
434,
612,
5574,
864,
16,
326,
1142,
612,
3082,
353,
16975,
3180,
326,
1300,
434,
612,
5574,
353,
326,
1967,
487,
326,
1300,
434,
501,
2953,
225,
7012,
30,
12181,
317,
5574,
353,
279,
533,
4191,
279,
666,
434,
4957,
612,
5574,
317,
2953,
353,
279,
533,
4191,
279,
666,
434,
7455,
60,
407,
501,
2953,
471,
4277,
5574,
225,
2860,
30,
18365,
3290,
432,
3193,
578,
666,
434,
10384,
434,
326,
4957,
612,
5574,
3536,
225,
3399,
1098,
273,
5574,
18,
4939,
12,
2187,
6134,
769,
273,
562,
12,
4811,
1098,
13,
225,
963,
273,
562,
12,
4481,
18,
4939,
12,
17023,
3719,
225,
309,
769,
422,
576,
471,
769,
19,
22,
422,
963,
30,
999,
67,
14313,
273,
1053,
469,
30,
999,
67,
14313,
273,
1083,
225,
963,
273,
562,
12,
4481,
18,
4939,
12,
17023,
3719,
225,
612,
67,
11545,
273,
5378,
225,
364,
277,
316,
1048,
12,
20,
16,
769,
16,
576,
4672,
309,
999,
67,
14313,
30,
612,
67,
11545,
18,
14313,
12443,
474,
12,
4811,
1098,
63,
77,
65,
3631,
509,
12,
4811,
1098,
63,
77,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
350,
67,
11545,
12,
11545,
16,
2953,
16,
2826,
4333,
4672,
3536,
1220,
445,
5530,
316,
279,
533,
716,
1914,
5574,
434,
5600,
471,
20748,
2182,
1368,
279,
3193,
261,
1884,
1245,
3082,
13,
578,
279,
666,
434,
10384,
18,
1021,
445,
4271,
5314,
326,
1300,
434,
501,
2953,
3764,
18,
971,
326,
1300,
434,
2953,
353,
486,
3959,
358,
326,
1300,
434,
612,
5574,
864,
16,
326,
1142,
612,
3082,
353,
16975,
3180,
326,
1300,
434,
612,
5574,
353,
326,
1967,
487,
326,
1300,
434,
501,
2953,
225,
7012,
30,
12181,
317,
5574,
353,
279,
533,
4191,
279,
666,
434,
4957,
612,
5574,
317,
2953,
353,
279,
533,
4191,
279,
666,
434,
7455,
60,
407,
2
] |
if not info or info["has_instrument"].value:
|
def createFields(self): # This stupid shit gets the LSB, not the MSB... self.info("Note info: 0x%02X" % self.stream.readBits(self.absolute_address, 8, LITTLE_ENDIAN)) yield RealBit(self, "is_extended") info = None if self["is_extended"].value: info = NoteInfo(self, "info") yield info if info["has_note"].value: yield Enum(UInt8(self, "note"), NOTE_NAME) else: yield Enum(Bits(self, "note", 7), NOTE_NAME)
|
c99931bfecc0c1d1ea8ca2bff60774c9102dc066 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/c99931bfecc0c1d1ea8ca2bff60774c9102dc066/xm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2314,
12,
2890,
4672,
468,
1220,
384,
416,
350,
699,
305,
5571,
326,
511,
14541,
16,
486,
326,
9238,
38,
2777,
365,
18,
1376,
2932,
8067,
1123,
30,
374,
92,
9,
3103,
60,
6,
738,
365,
18,
3256,
18,
896,
6495,
12,
2890,
18,
12547,
67,
2867,
16,
1725,
16,
511,
30972,
900,
67,
30597,
3719,
2824,
15987,
5775,
12,
2890,
16,
315,
291,
67,
14948,
7923,
1123,
273,
599,
309,
365,
9614,
291,
67,
14948,
6,
8009,
1132,
30,
1123,
273,
3609,
966,
12,
2890,
16,
315,
1376,
7923,
2824,
1123,
309,
1123,
9614,
5332,
67,
7652,
6,
8009,
1132,
30,
2824,
6057,
12,
14342,
28,
12,
2890,
16,
315,
7652,
6,
3631,
5219,
67,
1985,
13,
469,
30,
2824,
6057,
12,
6495,
12,
2890,
16,
315,
7652,
3113,
2371,
3631,
5219,
67,
1985,
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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541,
16,
486,
326,
9238,
38,
2777,
365,
18,
1376,
2932,
8067,
1123,
30,
374,
92,
9,
3103,
60,
6,
738,
365,
18,
3256,
18,
896,
6495,
12,
2890,
18,
12547,
67,
2867,
16,
1725,
16,
511,
30972,
900,
67,
30597,
3719,
2824,
15987,
5775,
12,
2890,
16,
315,
291,
67,
14948,
7923,
1123,
273,
599,
309,
365,
9614,
291,
67,
14948,
6,
8009,
1132,
30,
1123,
273,
3609,
966,
12,
2890,
16,
315,
1376,
7923,
2824,
1123,
309,
1123,
9614,
5332,
67,
7652,
6,
8009,
1132,
30,
2824,
6057,
12,
14342,
28,
12,
2890,
16,
315,
7652,
6,
3631,
5219,
67,
1985,
2
] |
|
try:
|
try:
|
def _AsciiHexTest(text='What is the average velocity of a sparrow?'): "Do the obvious test for whether Ascii Hex encoding works" print 'Plain text:', text encoded = _AsciiHexEncode(text) print 'Encoded:', encoded decoded = _AsciiHexDecode(encoded) print 'Decoded:', decoded if decoded == text: print 'Passed' else: print 'Failed!'
|
0a6cde372a9934c6d902da62e7b8c41c00a5f2ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/0a6cde372a9934c6d902da62e7b8c41c00a5f2ab/pdfutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
21363,
7037,
4709,
12,
955,
2218,
23801,
353,
326,
8164,
14767,
434,
279,
272,
1065,
492,
4899,
4672,
315,
3244,
326,
28067,
1842,
364,
2856,
22475,
2835,
15734,
2688,
6330,
6,
1172,
296,
13360,
977,
30,
2187,
977,
3749,
273,
389,
21363,
7037,
5509,
12,
955,
13,
1172,
296,
10397,
30,
2187,
3749,
6383,
273,
389,
21363,
7037,
6615,
12,
10787,
13,
1172,
296,
24888,
30,
2187,
6383,
309,
6383,
422,
977,
30,
1172,
296,
22530,
11,
469,
30,
1172,
296,
2925,
5124,
225,
2,
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,
389,
21363,
7037,
4709,
12,
955,
2218,
23801,
353,
326,
8164,
14767,
434,
279,
272,
1065,
492,
4899,
4672,
315,
3244,
326,
28067,
1842,
364,
2856,
22475,
2835,
15734,
2688,
6330,
6,
1172,
296,
13360,
977,
30,
2187,
977,
3749,
273,
389,
21363,
7037,
5509,
12,
955,
13,
1172,
296,
10397,
30,
2187,
3749,
6383,
273,
389,
21363,
7037,
6615,
12,
10787,
13,
1172,
296,
24888,
30,
2187,
6383,
309,
6383,
422,
977,
30,
1172,
296,
22530,
11,
469,
30,
1172,
296,
2925,
5124,
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
] |
basic_doc_literal() basic_rpc_literal() authentication() perspectives() content_source()
|
rhqTest()
|
def content_source(): global subject, errors try: url = 'http://localhost:7080/rhq-rhq-enterprise-server-ejb3/ContentSourceManagerBean?wsdl' start(url) client = Client(url, xstq=False) print client # # create a configuration # configuration = client.factory.create('configuration') entry = client.factory.create('configuration.properties.entry') simple = client.factory.create('propertySimple') entry.key = 'location' simple.name = 'location' simple.stringValue = 'http://download.skype.com/linux/repos/fedora/updates/i586' entry.value = simple configuration.properties.entry.append(entry) configuration.notes = 'SkipeAdapter' configuration.version = 1234 print configuration # # create: name, description and type. # name = 'SkipeAdapter' description = 'The skipe adapter' type = 'YumSource' # # create a content source. # print 'createContentSource()' result = client.service.createContentSource( subject, name, description, type, configuration, False) print 'createContentSource: ', str(result) except WebFault, f: errors += 1 print f print f.fault except Exception, e: errors += 1 print e tb.print_exc()
|
c4abbac390eb60b04ce7093621f6b13f1a3fc218 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5377/c4abbac390eb60b04ce7093621f6b13f1a3fc218/rhq.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,
23,
19,
1350,
1830,
1318,
3381,
35,
4749,
5761,
11,
787,
12,
718,
13,
1004,
273,
2445,
12,
718,
16,
619,
334,
85,
33,
8381,
13,
1172,
1004,
468,
468,
752,
279,
1664,
468,
1664,
273,
1004,
18,
6848,
18,
2640,
2668,
7025,
6134,
1241,
273,
1004,
18,
6848,
18,
2640,
2668,
7025,
18,
4738,
18,
4099,
6134,
4143,
273,
1004,
18,
6848,
18,
2640,
2668,
4468,
5784,
6134,
1241,
18,
856,
273,
296,
3562,
11,
4143,
18,
529,
273,
296,
3562,
11,
4143,
18,
1080,
620,
273,
296,
2505,
2207,
7813,
18,
7771,
388,
18,
832,
19,
20132,
19,
15564,
19,
74,
15534,
19,
14703,
19,
77,
25,
5292,
11,
1241,
18,
1132,
273,
4143,
1664,
18,
4738,
18,
4099,
18,
6923,
12,
4099,
13,
1664,
18,
12903,
273,
296,
5925,
3151,
4216,
11,
1664,
18,
1589,
273,
30011,
1172,
1664,
468,
468,
752,
30,
508,
16,
2477,
471,
618,
18,
468,
508,
273,
296,
5925,
3151,
4216,
11,
2477,
273,
296,
1986,
4343,
3151,
4516,
11,
618,
273,
296,
61,
379,
1830,
11,
468,
468,
752,
279,
913,
1084,
18,
468,
1172,
296,
2640,
1350,
1830,
11866,
563,
273,
1004,
18,
3278,
18,
2640,
1350,
1830,
12,
3221,
16,
508,
16,
2477,
16,
618,
16,
1664,
16,
1083,
13,
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,
913,
67,
3168,
13332,
225,
2552,
3221,
16,
1334,
225,
775,
30,
880,
273,
296,
2505,
2207,
13014,
30,
7301,
3672,
19,
30138,
85,
17,
30138,
85,
17,
2328,
12113,
17,
3567,
17,
73,
10649,
23,
19,
1350,
1830,
1318,
3381,
35,
4749,
5761,
11,
787,
12,
718,
13,
1004,
273,
2445,
12,
718,
16,
619,
334,
85,
33,
8381,
13,
1172,
1004,
468,
468,
752,
279,
1664,
468,
1664,
273,
1004,
18,
6848,
18,
2640,
2668,
7025,
6134,
1241,
273,
1004,
18,
6848,
18,
2640,
2668,
7025,
18,
4738,
18,
4099,
6134,
4143,
273,
1004,
18,
6848,
18,
2640,
2668,
4468,
5784,
6134,
1241,
18,
856,
273,
296,
3562,
11,
4143,
18,
529,
273,
296,
3562,
11,
2
] |
setattr (self, 'install_' + key, scheme[key])
|
attrname = 'install_' + key if getattr(self, attrname) is None: setattr(self, attrname, scheme[key])
|
def select_scheme (self, name): # it's the caller's problem if they supply a bad name! scheme = INSTALL_SCHEMES[name] for key in ('purelib', 'platlib', 'scripts', 'data'): setattr (self, 'install_' + key, scheme[key])
|
5ee1401c5b4c962eaa412eda9dea527e68e5aea4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/5ee1401c5b4c962eaa412eda9dea527e68e5aea4/install.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
9068,
261,
2890,
16,
508,
4672,
468,
518,
1807,
326,
4894,
1807,
6199,
309,
2898,
14467,
279,
5570,
508,
5,
4355,
273,
22880,
4685,
67,
22870,
55,
63,
529,
65,
364,
498,
316,
7707,
84,
594,
2941,
2187,
296,
412,
270,
2941,
2187,
296,
12827,
2187,
296,
892,
11,
4672,
9241,
261,
2890,
16,
296,
5425,
4623,
397,
498,
16,
4355,
63,
856,
5717,
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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
67,
9068,
261,
2890,
16,
508,
4672,
468,
518,
1807,
326,
4894,
1807,
6199,
309,
2898,
14467,
279,
5570,
508,
5,
4355,
273,
22880,
4685,
67,
22870,
55,
63,
529,
65,
364,
498,
316,
7707,
84,
594,
2941,
2187,
296,
412,
270,
2941,
2187,
296,
12827,
2187,
296,
892,
11,
4672,
9241,
261,
2890,
16,
296,
5425,
4623,
397,
498,
16,
4355,
63,
856,
5717,
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
] |
@preserve def read_secondary_header(self): self._stream.seek(self.hdr_len + self.num_pieces*self.PIECE_SIZE) bytes = self._stream.read(self.sec_hdr_len)
|
def _read_secondary_header(self): offset = self.hdr_len + (self.num_pieces * self.PIECE_SIZE) bytes = self._read_raw(offset, self.sec_hdr_len)
|
def _read_content(self, offset, size): return self._read_raw(self.content_offset + offset, size)
|
006182e5f46ea8f5da43607ab530dff752a12d94 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/006182e5f46ea8f5da43607ab530dff752a12d94/reader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
1745,
12,
2890,
16,
1384,
16,
963,
4672,
327,
365,
6315,
896,
67,
1899,
12,
2890,
18,
1745,
67,
3348,
397,
1384,
16,
963,
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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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,
389,
896,
67,
1745,
12,
2890,
16,
1384,
16,
963,
4672,
327,
365,
6315,
896,
67,
1899,
12,
2890,
18,
1745,
67,
3348,
397,
1384,
16,
963,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 InvalidParameter, text
|
raise ParseError, ('invalid parameter: "%s"' % text, tag)
|
def parse_params(text, result=None, tag='', unparmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)\)'), parmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)=\([^\0- =\"]+\)\)'), qparmre=regex.compile( '\([\0- ]*\([^\0- =\"]+\)="\([^"]*\)\"\)'), **parms): """Parse tag parameters The format of tag parameters consists of 1 or more parameter specifications separated by whitespace. Each specification consists of an unnamed and unquoted value, a valueless name, or a name-value pair. A name-value pair consists of a name and a quoted or unquoted value separated by an '='. The input parameter, text, gives the text to be parsed. The keyword parameters give valid parameter names and default values. If a specification is not a name-value pair and it is not the first specification that is not a name-value pair and it is a valid parameter name, then it is treated as a name-value pair with a value as given in the keyword argument. Otherwise, if it is not a name-value pair, it is treated as an unnamed value. The data are parsed into a dictionary mapping names to values. Unnamed values are mapped from the name '""'. Only one value may be given for a name and there may be only one unnamed value. """ result=result or {} if parmre.match(text) >= 0: name=lower(parmre.group(2)) value=parmre.group(3) l=len(parmre.group(1)) elif qparmre.match(text) >= 0: name=lower(qparmre.group(2)) value=qparmre.group(3) l=len(qparmre.group(1)) elif unparmre.match(text) >= 0: name=unparmre.group(2) l=len(unparmre.group(1)) if result.has_key(''): if parms.has_key(name): if parms[name] is None: raise ParseError, ( 'Attribute %s requires a value' % name, tag) result[name]=parms[name] else: raise ParseError, ( 'Invalid attribute name, "%s"' % name, tag) else: result['']=name return apply(parse_params,(text[l:],result),parms) else: if not text or not strip(text): return result raise InvalidParameter, text if not parms.has_key(name): raise ParseError, ( 'Invalid attribute name, "%s"' % name, tag) result[name]=value text=strip(text[l:]) if text: return apply(parse_params,(text,result),parms) else: return result
|
7297a46f87b78b08d8933aab00cf8d15b4ce3db2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/7297a46f87b78b08d8933aab00cf8d15b4ce3db2/DT_Util.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2010,
12,
955,
16,
563,
33,
7036,
16,
1047,
2218,
2187,
640,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
5153,
2506,
3631,
19924,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
13,
18206,
19042,
20,
17,
273,
2412,
26446,
5153,
2506,
3631,
1043,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
13,
1546,
64,
8178,
6,
27759,
13,
31670,
2506,
3631,
2826,
29927,
4672,
225,
3536,
3201,
1047,
1472,
225,
1021,
740,
434,
1047,
1472,
20915,
434,
404,
578,
1898,
1569,
21950,
8936,
635,
7983,
18,
225,
8315,
7490,
20915,
434,
392,
640,
13188,
471,
640,
15179,
460,
16,
279,
21748,
12617,
508,
16,
578,
279,
508,
17,
1132,
3082,
18,
225,
432,
508,
17,
1132,
3082,
20915,
434,
279,
508,
471,
279,
9298,
578,
640,
15179,
460,
8936,
635,
392,
5214,
18,
225,
1021,
810,
1569,
16,
977,
16,
14758,
326,
977,
358,
506,
2707,
18,
225,
1021,
4932,
1472,
8492,
923,
1569,
1257,
471,
805,
924,
18,
225,
971,
279,
7490,
353,
486,
279,
508,
17,
1132,
3082,
471,
518,
353,
486,
326,
1122,
7490,
716,
353,
486,
279,
508,
17,
1132,
3082,
471,
518,
353,
279,
923,
1569,
508,
16,
1508,
518,
353,
13974,
487,
279,
508,
17,
1132,
3082,
598,
279,
460,
487,
864,
316,
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,
1109,
67,
2010,
12,
955,
16,
563,
33,
7036,
16,
1047,
2218,
2187,
640,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
5153,
2506,
3631,
19924,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
13,
18206,
19042,
20,
17,
273,
2412,
26446,
5153,
2506,
3631,
1043,
1065,
81,
266,
33,
7584,
18,
11100,
12,
2337,
14026,
20,
17,
308,
12174,
19042,
20,
17,
273,
2412,
26446,
13,
1546,
64,
8178,
6,
27759,
13,
31670,
2506,
3631,
2826,
29927,
4672,
225,
3536,
3201,
1047,
1472,
225,
1021,
740,
434,
1047,
1472,
20915,
434,
404,
578,
1898,
1569,
2
] |
scons: \\*\\*\\* .* is not a Builder\\.
|
scons: *** 1 is not a Builder.
|
def mkdir(env, target, source): return None
|
3ff61a15fac640a74726d42fcd5a03ddbacd6287 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12817/3ff61a15fac640a74726d42fcd5a03ddbacd6287/not-a-Builder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
327,
599,
2,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6535,
12,
3074,
16,
1018,
16,
1084,
4672,
327,
599,
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
] |
b_stat = statcache.stat(b_path)
|
b_stat = os.stat(b_path)
|
def phase2(self): # Distinguish files, directories, funnies self.common_dirs = [] self.common_files = [] self.common_funny = []
|
8eb4044f7e42af1134a6a98e52201df0a8aaa01f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/8eb4044f7e42af1134a6a98e52201df0a8aaa01f/filecmp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6855,
22,
12,
2890,
4672,
468,
19893,
14344,
1468,
1390,
16,
6402,
16,
9831,
82,
606,
365,
18,
6054,
67,
8291,
273,
5378,
365,
18,
6054,
67,
2354,
273,
5378,
365,
18,
6054,
67,
12125,
18538,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6855,
22,
12,
2890,
4672,
468,
19893,
14344,
1468,
1390,
16,
6402,
16,
9831,
82,
606,
365,
18,
6054,
67,
8291,
273,
5378,
365,
18,
6054,
67,
2354,
273,
5378,
365,
18,
6054,
67,
12125,
18538,
273,
5378,
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
] |
if depsLogConf.get("dot/compiled-class-size", True): useCompiledSize = True optimize = depsLogConf.get("dot/optimize", [])
|
useCompiledSize = depsLogConf.get("dot/compiled-class-size", True) optimize = depsLogConf.get("dot/optimize", [])
|
def addNodes(gr, st_nodes): # rather gr.add_nodes(st), go through indiviudal nodes for coloring if depsLogConf.get("dot/compiled-class-size", True): useCompiledSize = True optimize = depsLogConf.get("dot/optimize", []) for cid in st_nodes: if cid == None: # None is introduced in st continue attribs = getNodeAttribs(cid, useCompiledSize, optimize) gr.add_node(cid, attrs=attribs) return
|
55fd89f4a6521e28c7efff5191d4f4f395f5419b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/55fd89f4a6521e28c7efff5191d4f4f395f5419b/Generator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3205,
12,
3197,
16,
384,
67,
4690,
4672,
468,
9178,
3821,
18,
1289,
67,
4690,
12,
334,
3631,
1960,
3059,
6335,
77,
1100,
287,
2199,
364,
2036,
310,
999,
20733,
1225,
273,
8740,
1343,
3976,
18,
588,
2932,
9811,
19,
19397,
17,
1106,
17,
1467,
3113,
1053,
13,
10979,
3639,
273,
8740,
1343,
3976,
18,
588,
2932,
9811,
19,
29155,
3113,
5378,
13,
364,
7504,
316,
384,
67,
4690,
30,
309,
7504,
422,
599,
30,
225,
468,
599,
353,
26339,
316,
384,
1324,
11460,
273,
5973,
31292,
12,
13478,
16,
999,
20733,
1225,
16,
10979,
13,
3821,
18,
1289,
67,
2159,
12,
13478,
16,
3422,
33,
19617,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3205,
12,
3197,
16,
384,
67,
4690,
4672,
468,
9178,
3821,
18,
1289,
67,
4690,
12,
334,
3631,
1960,
3059,
6335,
77,
1100,
287,
2199,
364,
2036,
310,
999,
20733,
1225,
273,
8740,
1343,
3976,
18,
588,
2932,
9811,
19,
19397,
17,
1106,
17,
1467,
3113,
1053,
13,
10979,
3639,
273,
8740,
1343,
3976,
18,
588,
2932,
9811,
19,
29155,
3113,
5378,
13,
364,
7504,
316,
384,
67,
4690,
30,
309,
7504,
422,
599,
30,
225,
468,
599,
353,
26339,
316,
384,
1324,
11460,
273,
5973,
31292,
12,
13478,
16,
999,
20733,
1225,
16,
10979,
13,
3821,
18,
1289,
67,
2159,
12,
13478,
16,
3422,
33,
19617,
13,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if "exc" in kwargs and kwargs["exc"]: logging.exception(msg) else: logging.error(msg)
|
if "log" not in kwargs or kwargs["log"]: if "exc" in kwargs and kwargs["exc"]: logging.exception(msg) else: logging.error(msg)
|
def _Fail(msg, *args, **kwargs): """Log an error and the raise an RPCFail exception. This exception is then handled specially in the ganeti daemon and turned into a 'failed' return type. As such, this function is a useful shortcut for logging the error and returning it to the master daemon. @type msg: string @param msg: the text of the exception @raise RPCFail """ if args: msg = msg % args if "exc" in kwargs and kwargs["exc"]: logging.exception(msg) else: logging.error(msg) raise RPCFail(msg)
|
afdc3985644be8d2b91d9f0e37dfda391a30d036 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/afdc3985644be8d2b91d9f0e37dfda391a30d036/backend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3754,
12,
3576,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1343,
392,
555,
471,
326,
1002,
392,
8295,
3754,
1520,
18,
225,
1220,
1520,
353,
1508,
7681,
857,
6261,
316,
326,
314,
304,
278,
77,
8131,
471,
21826,
1368,
279,
296,
7307,
11,
327,
618,
18,
2970,
4123,
16,
333,
445,
353,
279,
5301,
10995,
364,
2907,
326,
555,
471,
5785,
518,
358,
326,
4171,
8131,
18,
225,
632,
723,
1234,
30,
533,
632,
891,
1234,
30,
326,
977,
434,
326,
1520,
632,
11628,
8295,
3754,
225,
3536,
309,
833,
30,
1234,
273,
1234,
738,
833,
309,
315,
1330,
6,
486,
316,
1205,
578,
1205,
9614,
1330,
11929,
30,
309,
315,
10075,
6,
316,
1205,
471,
1205,
9614,
10075,
11929,
30,
2907,
18,
4064,
12,
3576,
13,
469,
30,
2907,
18,
1636,
12,
3576,
13,
1002,
8295,
3754,
12,
3576,
13,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
389,
3754,
12,
3576,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
1343,
392,
555,
471,
326,
1002,
392,
8295,
3754,
1520,
18,
225,
1220,
1520,
353,
1508,
7681,
857,
6261,
316,
326,
314,
304,
278,
77,
8131,
471,
21826,
1368,
279,
296,
7307,
11,
327,
618,
18,
2970,
4123,
16,
333,
445,
353,
279,
5301,
10995,
364,
2907,
326,
555,
471,
5785,
518,
358,
326,
4171,
8131,
18,
225,
632,
723,
1234,
30,
533,
632,
891,
1234,
30,
326,
977,
434,
326,
1520,
632,
11628,
8295,
3754,
225,
3536,
309,
833,
30,
1234,
273,
1234,
738,
833,
309,
315,
1330,
6,
486,
316,
1205,
578,
1205,
9614,
1330,
11929,
30,
309,
315,
10075,
6,
316,
1205,
471,
2
] |
self.var = SingleChoice(attrs['name']) if self.var.name in self.context.environ: self.var.value = self.context.environ[self.var.name]
|
choiceValue = None if attrs['name'] in self.context.environ: choiceValue = str(self.context.environ[attrs['name']]) self.var = SingleChoice(attrs['name'],choiceValue,None,[])
|
def startElement(self, name, attrs): '''Start populating an element.''' self.text = '' if name == self.tagAlternate: self.tagIndices += [ len(self.tags) ] self.locIndices += [ len(self.locals) ] elif name == self.tagAlternates: self.locals += [ Alternates() ] self.tagIndices += [ len(self.tags) ] self.locIndices += [ len(self.locals) ] elif name == self.tagConstrain: self.constrain = attrs['name'] self.constrainValues = [] elif name == self.tagFetch: self.filename = attrs['name'] elif name == self.tagProject: self.var = None self.project = Project(attrs['name']) elif name == self.tagMaintainer: self.project.maintainer = Maintainer(attrs['name'],attrs['email']) elif name in [ self.tagPackage, self.tagPatch, self.tagRepository ]: # We manage an explicit stack of local dependencies # in order to build alternates. self.tagIndices = [] self.locIndices = [] self.tags = [] self.fetches = {} self.locals = [] self.vars = [] self.sync = None elif name == self.tagDepend: self.depName = attrs['name'] self.deps = {} self.excludes = [] elif name == self.tagMultiple: self.constrain = None self.var = MultipleChoice(attrs['name']) if self.var.name in self.context.environ: self.var.value = self.context.environ[self.var.name] elif name == self.tagPathname: self.constrain = None self.var = Pathname(attrs['name']) if self.var.name in self.context.environ: self.var.value = self.context.environ[self.var.name] elif name == self.tagSingle: self.constrain = None self.var = SingleChoice(attrs['name']) if self.var.name in self.context.environ: self.var.value = self.context.environ[self.var.name] elif name == self.tagValue: if not self.constrain: self.choice = [ attrs['name'] ] elif name in [ 'bin', 'include', 'lib', 'etc', 'share' ]: if 'excludes' in attrs: self.excludes += attrs['excludes'].split(',')
|
a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/a32fd692dd1e30de835cd0c6d09d9bec8f3ccf92/dws.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
9163,
1685,
3650,
1776,
392,
930,
1093,
6309,
365,
18,
955,
273,
875,
309,
508,
422,
365,
18,
2692,
25265,
30,
365,
18,
2692,
8776,
1011,
306,
562,
12,
2890,
18,
4156,
13,
308,
365,
18,
1829,
8776,
1011,
306,
562,
12,
2890,
18,
17977,
13,
308,
1327,
508,
422,
365,
18,
2692,
11719,
815,
30,
365,
18,
17977,
1011,
306,
21498,
815,
1435,
308,
365,
18,
2692,
8776,
1011,
306,
562,
12,
2890,
18,
4156,
13,
308,
365,
18,
1829,
8776,
1011,
306,
562,
12,
2890,
18,
17977,
13,
308,
1327,
508,
422,
365,
18,
2692,
442,
27568,
30,
365,
18,
591,
27568,
273,
3422,
3292,
529,
3546,
365,
18,
591,
27568,
1972,
273,
5378,
1327,
508,
422,
365,
18,
2692,
5005,
30,
365,
18,
3459,
273,
3422,
3292,
529,
3546,
1327,
508,
422,
365,
18,
2692,
4109,
30,
365,
18,
1401,
273,
599,
365,
18,
4406,
273,
5420,
12,
7039,
3292,
529,
19486,
1327,
508,
422,
365,
18,
2692,
49,
1598,
1521,
30,
365,
18,
4406,
18,
81,
1598,
1521,
273,
490,
1598,
1521,
12,
7039,
3292,
529,
17337,
7039,
3292,
3652,
19486,
1327,
508,
316,
306,
365,
18,
2692,
2261,
16,
365,
18,
2692,
7332,
16,
365,
18,
2692,
3305,
308,
30,
468,
1660,
10680,
392,
5515,
2110,
434,
1191,
5030,
468,
316,
1353,
358,
1361,
6416,
815,
18,
365,
18,
2692,
8776,
273,
5378,
365,
18,
1829,
8776,
273,
5378,
365,
18,
4156,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
3422,
4672,
9163,
1685,
3650,
1776,
392,
930,
1093,
6309,
365,
18,
955,
273,
875,
309,
508,
422,
365,
18,
2692,
25265,
30,
365,
18,
2692,
8776,
1011,
306,
562,
12,
2890,
18,
4156,
13,
308,
365,
18,
1829,
8776,
1011,
306,
562,
12,
2890,
18,
17977,
13,
308,
1327,
508,
422,
365,
18,
2692,
11719,
815,
30,
365,
18,
17977,
1011,
306,
21498,
815,
1435,
308,
365,
18,
2692,
8776,
1011,
306,
562,
12,
2890,
18,
4156,
13,
308,
365,
18,
1829,
8776,
1011,
306,
562,
12,
2890,
18,
17977,
13,
308,
1327,
508,
422,
365,
18,
2692,
442,
27568,
30,
365,
18,
591,
27568,
273,
3422,
3292,
529,
3546,
365,
2
] |
where k_i is the degree of node i, [1]. A coefficient for
|
where k_i is the degree of vertex i, [1]. A coefficient for
|
def clustering_average(self): r""" Returns the average clustering coefficient. The clustering coefficient of a graph is the fraction of possible triangles that are triangles, c_i = triangles_i / (k_i*(k_i-1)/2) where k_i is the degree of node i, [1]. A coefficient for the whole graph is the average of the c_i. Transitivity is the fraction of all possible triangles which are triangles, T = 3*triangles/triads, [1]. REFERENCE: [1] Aric Hagberg, Dan Schult and Pieter Swart. NetworkX documentation. [Online] Available: https://networkx.lanl.gov/reference/networkx/ EXAMPLES: sage: (graphs.FruchtGraph()).clustering_average() 0.25 """ import networkx return networkx.average_clustering(self._nxg)
|
e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e18c70bce8ce7ee3fa2314ee3c87879177e3b7a1/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18743,
67,
15621,
12,
2890,
4672,
436,
8395,
2860,
326,
8164,
18743,
16554,
18,
225,
1021,
18743,
16554,
434,
279,
2667,
353,
326,
8330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
77,
273,
19959,
67,
77,
342,
261,
79,
67,
77,
21556,
79,
67,
77,
17,
21,
13176,
22,
13,
1625,
417,
67,
77,
353,
326,
10782,
434,
5253,
277,
16,
306,
21,
8009,
225,
432,
16554,
364,
326,
7339,
2667,
353,
326,
8164,
434,
326,
276,
67,
77,
18,
225,
2604,
20862,
353,
326,
8330,
434,
777,
3323,
19959,
1492,
854,
19959,
16,
399,
273,
890,
14,
16857,
12356,
19,
16857,
17318,
16,
306,
21,
8009,
225,
22898,
30,
306,
21,
65,
1201,
335,
670,
346,
31317,
16,
463,
304,
348,
343,
406,
471,
13380,
847,
5434,
485,
18,
5128,
60,
7323,
18,
306,
16860,
65,
15633,
30,
2333,
2207,
5185,
92,
18,
6115,
80,
18,
75,
1527,
19,
6180,
19,
5185,
92,
19,
225,
5675,
8900,
11386,
30,
272,
410,
30,
261,
30016,
18,
7167,
2648,
88,
4137,
1435,
2934,
7967,
310,
67,
15621,
1435,
374,
18,
2947,
3536,
1930,
2483,
92,
327,
2483,
92,
18,
15621,
67,
7967,
310,
12,
2890,
6315,
16769,
75,
13,
225,
2,
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330,
434,
3323,
19959,
716,
854,
19959,
16,
276,
67,
77,
273,
19959,
67,
77,
342,
261,
79,
67,
77,
21556,
79,
67,
77,
17,
21,
13176,
22,
13,
1625,
417,
67,
77,
353,
326,
10782,
434,
5253,
277,
16,
306,
21,
8009,
225,
432,
16554,
364,
326,
7339,
2667,
353,
326,
8164,
434,
326,
276,
67,
77,
18,
225,
2604,
20862,
353,
326,
8330,
434,
777,
3323,
19959,
1492,
854,
19959,
16,
399,
273,
890,
14,
16857,
12356,
19,
16857,
17318,
16,
306,
21,
8009,
225,
22898,
30,
306,
21,
65,
1201,
335,
670,
2
] |
str = "FUNCTION: %s -- Inverse: %s" % (self.calibrations[0][1], self.calibrations[0][2])
|
str = "FUNCTION: %s -- Inverse: %s" % (self.calibrations[channel][1], self.calibrations[channel][2])
|
def printCalibration(self, channel): str = '' try: if self.calibrations[channel][0] == INTERPOLATION: str = "INTERPOLATION -- Resistances: %s -- Temperatures: %s" % (self.calibrations[0][1], self.calibrations[0][2]) elif self.calibrations[channel][0] == FUNCTION: str = "FUNCTION: %s -- Inverse: %s" % (self.calibrations[0][1], self.calibrations[0][2]) elif self.calibrations[channel][0] == DEFAULT: str = "DEFAULT" else: raise Exception('Invalid calibration for channel %s: "%s"' % (channel, str)) except Exception, e: str += e.__str__() return str
|
bfa17a9b643b196aedc945097b1907e5fb39d8c3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/bfa17a9b643b196aedc945097b1907e5fb39d8c3/lakeshore370.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
3005,
11723,
12,
2890,
16,
1904,
4672,
609,
273,
875,
775,
30,
309,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
11391,
14232,
2689,
30,
609,
273,
315,
9125,
14232,
2689,
1493,
225,
1124,
376,
6872,
30,
738,
87,
1493,
3955,
457,
2790,
30,
738,
87,
6,
738,
261,
2890,
18,
771,
495,
86,
1012,
63,
20,
6362,
21,
6487,
365,
18,
771,
495,
86,
1012,
63,
20,
6362,
22,
5717,
1327,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
13690,
30,
609,
273,
315,
7788,
30,
738,
87,
1493,
657,
2476,
30,
738,
87,
6,
738,
261,
2890,
18,
771,
495,
86,
1012,
63,
4327,
6362,
21,
6487,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
22,
5717,
1327,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
3331,
30,
609,
273,
315,
5280,
6,
469,
30,
1002,
1185,
2668,
1941,
15344,
364,
1904,
738,
87,
30,
2213,
87,
5187,
738,
261,
4327,
16,
609,
3719,
1335,
1185,
16,
425,
30,
609,
1011,
425,
16186,
701,
972,
1435,
225,
327,
609,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
3005,
11723,
12,
2890,
16,
1904,
4672,
609,
273,
875,
775,
30,
309,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
11391,
14232,
2689,
30,
609,
273,
315,
9125,
14232,
2689,
1493,
225,
1124,
376,
6872,
30,
738,
87,
1493,
3955,
457,
2790,
30,
738,
87,
6,
738,
261,
2890,
18,
771,
495,
86,
1012,
63,
20,
6362,
21,
6487,
365,
18,
771,
495,
86,
1012,
63,
20,
6362,
22,
5717,
1327,
365,
18,
771,
495,
86,
1012,
63,
4327,
6362,
20,
65,
422,
13690,
30,
609,
273,
315,
7788,
30,
738,
87,
1493,
657,
2476,
30,
738,
87,
6,
738,
261,
2890,
18,
771,
495,
86,
1012,
63,
4327,
6362,
21,
6487,
2
] |
os.appendChild(kernel)
|
opSys.appendChild(kernel)
|
def bootElement(bootDict): """ Creates a libvirt <os> element, a child of L{domain element <domainElement>}, that describes the operating system boot protocol for the Virtual Machine, specifically values to enable booting from the BIOS. @param bootDict: dictionary of boot arguments @type bootDict: dictionary @note: bootDict has specific key values for boot type: bootloader: - bootloader: path to bootloader - bootloader_args(optional): arguments to bootloader bios: - arch(optional): VM CPU architecture, e.g. i686 - devices: ordered boot device list: cdrom, hd, fd, or network - loader(optional): path to Xen loader - machine(optional): VM type, e.g. pc - type: hvm or linux kernel: - arch(optional): VM CPU architecture, e.g. i686 - cmdline(optional): arguments to kernel - initrd(optional): path to optional ramdisk image - kernel: path to kernel image - loader(optional): path to Xen loader - machine(optional): VM type, e.g. pc - type: hvm or linux @return: Ovf boot element tuple @rtype: DOM Element tuple """ document = Document() bootList = () # Bootloader if bootDict.has_key('bootloader'): if(bootDict.has_key('devices') | bootDict.has_key('kernel')): raise TypeError else: bootloader = document.createElement('bootloader') bootloaderText = document.createTextNode(bootDict['bootloader']) bootloader.appendChild(bootloaderText) bootList += (bootloader,) if bootDict.has_key('arguments'): arguments = document.createElement('bootloader_args') argumentsText = \ document.createTextNode(bootDict['bootloader_args']) arguments.appendChild(argumentsText) bootList += (arguments,) elif(bootDict.has_key('devices') ^ bootDict.has_key('kernel')): os = document.createElement('os') bootType = document.createElement('type') if bootDict.has_key('arch'): bootType.setAttribute('arch', bootDict['arch']) if bootDict.has_key('machine'): bootType.setAttribute('machine', bootDict['machine']) bootType.appendChild(document.createTextNode(bootDict['type'])) os.appendChild(bootType) if bootDict.has_key('loader'): loader = document.createElement('loader') loader.appendChild(document.createTextNode(bootDict['loader'])) os.appendChild(loader) # BIOS if bootDict.has_key('devices'): for device in bootDict['devices']: boot = document.createElement('boot') boot.setAttribute('dev', device) os.appendChild(boot) # Kernel else: kernel = document.createElement('kernel') kernel.appendChild(document.createTextNode(bootDict['kernel'])) os.appendChild(kernel) if bootDict.has_key('initrd'): initrd = document.createElement('initrd') initrdText = document.createTextNode(bootDict['initrd']) initrd.appendChild(initrdText) os.appendChild(initrd) if bootDict.has_key('cmdline'): cmdline = document.createElement('cmdline') cmdlineText = document.createTextNode(bootDict['cmdline']) cmdline.appendChild(cmdlineText) os.appendChild(cmdline) bootList += (os,) else: raise TypeError return bootList
|
b19e865d32d9ed2915eaa051855e86e8037b151c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9789/b19e865d32d9ed2915eaa051855e86e8037b151c/OvfLibvirt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,
364,
326,
7269,
12026,
16,
21195,
924,
358,
4237,
4835,
310,
628,
326,
605,
30520,
18,
225,
632,
891,
4835,
5014,
30,
3880,
434,
4835,
1775,
632,
723,
4835,
5014,
30,
3880,
225,
632,
7652,
30,
4835,
5014,
711,
2923,
498,
924,
364,
4835,
618,
30,
225,
4835,
6714,
30,
300,
4835,
6714,
30,
589,
358,
4835,
6714,
300,
4835,
6714,
67,
1968,
12,
10444,
4672,
1775,
358,
4835,
6714,
225,
324,
7441,
30,
300,
6637,
12,
10444,
4672,
8251,
12154,
27418,
16,
425,
18,
75,
18,
277,
26,
5292,
300,
7166,
30,
5901,
4835,
2346,
666,
30,
7976,
520,
16,
15921,
16,
5194,
16,
578,
2483,
300,
4088,
12,
10444,
4672,
589,
358,
1139,
275,
4088,
300,
5228,
12,
10444,
4672,
8251,
618,
16,
425,
18,
75,
18,
6125,
300,
618,
30,
366,
3489,
578,
19725,
225,
5536,
30,
300,
6637,
12,
10444,
4672,
8251,
12154,
27418,
16,
425,
18,
75,
18,
277,
26,
5292,
300,
22877,
12,
10444,
4672,
1775,
358,
5536,
300,
1208,
13623,
12,
10444,
4672,
589,
358,
3129,
24975,
10863,
1316,
300,
5536,
30,
589,
358,
5536,
1316,
300,
4088,
12,
10444,
4672,
589,
358,
1139,
275,
4088,
300,
5228,
12,
10444,
4672,
8251,
618,
16,
425,
18,
75,
18,
6125,
300,
618,
30,
366,
3489,
578,
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,
4835,
1046,
12,
7137,
5014,
4672,
3536,
10210,
279,
16388,
411,
538,
34,
930,
16,
279,
1151,
434,
511,
95,
4308,
930,
411,
4308,
1046,
34,
5779,
716,
19605,
326,
16929,
2619,
4835,
1771,
364,
326,
7269,
12026,
16,
21195,
924,
358,
4237,
4835,
310,
628,
326,
605,
30520,
18,
225,
632,
891,
4835,
5014,
30,
3880,
434,
4835,
1775,
632,
723,
4835,
5014,
30,
3880,
225,
632,
7652,
30,
4835,
5014,
711,
2923,
498,
924,
364,
4835,
618,
30,
225,
4835,
6714,
30,
300,
4835,
6714,
30,
589,
358,
4835,
6714,
300,
4835,
6714,
67,
1968,
12,
10444,
4672,
1775,
358,
4835,
6714,
225,
324,
7441,
30,
300,
6637,
12,
10444,
4672,
8251,
12154,
27418,
16,
425,
2
] |
commands.getstatusoutput('start %s' %tmpfile)
|
os.system('start %s' %tmpfile)
|
def play(soundfile): """ Play a file with name soundfile or an array soundfile. (The array is first written to file using the write function so the data type can be arbitrary.) The player is chosen by the programs open on Mac/Linux and start on Windows. """ tmpfile = 'tmp.wav' if isinstance(soundfile, numpy.ndarray): write(soundfile, tmpfile) elif isinstance(soundfile, str): tmpfile = soundfile if sys.platform[:5] == 'linux': status, output = commands.getstatusoutput('open %s' % tmpfile) if status != 0: # Only for gnome: commands.getstatusoutput('gnome-open %s' % tmpfile) elif sys.platform == 'darwin': commands.getstatusoutput('open %s' %tmpfile) else: # assume windows commands.getstatusoutput('start %s' %tmpfile)
|
a32f393beb9035e6e01e6f42eda1164eecaebf45 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4727/a32f393beb9035e6e01e6f42eda1164eecaebf45/sound.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
12,
29671,
768,
4672,
3536,
19592,
279,
585,
598,
508,
14190,
768,
578,
392,
526,
14190,
768,
18,
261,
1986,
526,
353,
1122,
5941,
358,
585,
1450,
326,
1045,
445,
1427,
326,
501,
618,
848,
506,
11078,
12998,
1021,
7291,
353,
10447,
635,
326,
25038,
1696,
603,
13217,
19,
19475,
471,
787,
603,
8202,
18,
3536,
25613,
273,
296,
5645,
18,
24801,
11,
309,
1549,
12,
29671,
768,
16,
3972,
18,
25681,
4672,
1045,
12,
29671,
768,
16,
25613,
13,
1327,
1549,
12,
29671,
768,
16,
609,
4672,
25613,
273,
14190,
768,
225,
309,
2589,
18,
9898,
10531,
25,
65,
422,
296,
20132,
4278,
1267,
16,
876,
273,
4364,
18,
588,
2327,
2844,
2668,
3190,
738,
87,
11,
738,
25613,
13,
309,
1267,
480,
374,
30,
468,
5098,
364,
22908,
1742,
30,
4364,
18,
588,
2327,
2844,
2668,
1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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,
6599,
12,
29671,
768,
4672,
3536,
19592,
279,
585,
598,
508,
14190,
768,
578,
392,
526,
14190,
768,
18,
261,
1986,
526,
353,
1122,
5941,
358,
585,
1450,
326,
1045,
445,
1427,
326,
501,
618,
848,
506,
11078,
12998,
1021,
7291,
353,
10447,
635,
326,
25038,
1696,
603,
13217,
19,
19475,
471,
787,
603,
8202,
18,
3536,
25613,
273,
296,
5645,
18,
24801,
11,
309,
1549,
12,
29671,
768,
16,
3972,
18,
25681,
4672,
1045,
12,
29671,
768,
16,
25613,
13,
1327,
1549,
12,
29671,
768,
16,
609,
4672,
25613,
273,
14190,
768,
225,
309,
2589,
18,
9898,
10531,
25,
65,
422,
296,
20132,
4278,
1267,
16,
876,
273,
4364,
18,
588,
2327,
2844,
2668,
3190,
738,
87,
2
] |
f = urllib2.urlopen("http://www.python.org/")
|
f = _urlopen_with_retry("http://www.python.org/")
|
def testURLread(self): f = urllib2.urlopen("http://www.python.org/") x = f.read()
|
77becf87a4ab41f96c4ed8c8bd87c21fb457be95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/77becf87a4ab41f96c4ed8c8bd87c21fb457be95/test_urllib2net.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
284,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
4898,
13,
619,
273,
284,
18,
896,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1785,
896,
12,
2890,
4672,
284,
273,
389,
295,
18589,
67,
1918,
67,
9620,
2932,
2505,
2207,
5591,
18,
8103,
18,
3341,
4898,
13,
619,
273,
284,
18,
896,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
dev = get_child_by_name(vif_sxp, "vifname", "eth0")
|
dev = get_child_by_name(vif_sxp, "vifname", None) if dev is None: dev = self.getFreshEthDevice()
|
def extract_vif(self, vif_sxp, document):
|
2ef80cbdcaabb5ca2cfb2a004b11a40e65ec494d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6195/2ef80cbdcaabb5ca2cfb2a004b11a40e65ec494d/xenapi_create.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2608,
67,
90,
430,
12,
2890,
16,
331,
430,
67,
87,
23829,
16,
1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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,
2608,
67,
90,
430,
12,
2890,
16,
331,
430,
67,
87,
23829,
16,
1668,
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
] |
bodydata += struct.pack("=fff", face.normal[0], face.normal[1], face.normal[2])
|
bodydata += struct.pack("=fff", face.normal[1], -face.normal[2], face.normal[0])
|
def mapvertex(index, u, v): for mv in xrange(0, len(vertexmap)): if vertexmap[mv] == index and uvs[mv] == (u, v): return mv vertexmap.append(index) uvs.append( (u, v) ) return len(vertexmap)-1
|
518be49390d480a73bb0056bcc330075dd3e0794 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2372/518be49390d480a73bb0056bcc330075dd3e0794/windstille_export.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
65,
422,
261,
89,
16,
331,
4672,
327,
7701,
5253,
1458,
18,
6923,
12,
1615,
13,
582,
6904,
18,
6923,
12,
261,
89,
16,
331,
13,
262,
327,
562,
12,
15281,
1458,
24950,
21,
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,
852,
15281,
12,
1615,
16,
582,
16,
331,
4672,
364,
7701,
316,
12314,
12,
20,
16,
562,
12,
15281,
1458,
3719,
30,
309,
5253,
1458,
63,
17509,
65,
422,
770,
471,
582,
6904,
63,
17509,
65,
422,
261,
89,
16,
331,
4672,
327,
7701,
5253,
1458,
18,
6923,
12,
1615,
13,
582,
6904,
18,
6923,
12,
261,
89,
16,
331,
13,
262,
327,
562,
12,
15281,
1458,
24950,
21,
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
] |
repos = self.env.get_repository(req.authname)
|
def process_request(self, req): """The appropriate mode of operation is inferred from the request parameters:
|
fcd502a0c741dcc0b7ee9715e8d07897e2188f35 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9317/fcd502a0c741dcc0b7ee9715e8d07897e2188f35/changeset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
3536,
1986,
5505,
1965,
434,
1674,
353,
13662,
628,
326,
590,
1472,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
logmsg = "<scan time=\"%s\">" % time.strftime('%Y%m%d%H%M%S', time.gmtime(tstamp)) + \
|
logmsg = "<scan time=\"%s\">" % date + \
|
def write_obm_log(self, date, tstamp, servingCell, lng, lat, alt, spe, heading, hdop, vdop, pdop, neighbourCells): """Format and stores in memory given data, possibly triggers writing in log file.""" # From Python doc: %f -> The precision determines the number of digits after the decimal point and defaults to 6. # A difference of the sixth digit in lat/long leads to a difference of under a meter of precision. # Maximum error by rounding is 5. GPS precision is at best 10m. 2 x (maxError x error) = 2 x (5 x 1) # introduces an error of 10m! Thus we settle to 9. latLonPrecision = 9 # http://gpsd.berlios.de/gpsd.html: # Altitude determination is more sensitive to variability to atmospheric signal lag than latitude/longitude, # and is also subject to errors in the estimation of local mean sea level; base error is 12 meters at 66% # confidence, 23 meters at 95% confidence. Again, this will be multiplied by a vertical dilution of # precision (VDOP). # Altitude is in meter. altitudePrecision = 1 # speed is in km/h. speedPrecision = 3 # Precision of 2 digits after the decimal point for h/p/v-dop is enough. hvpdopPrecision = 2 # heading in decimal degrees headingPrecision = 9 # log format, for release 0.2.0 # "<gsm mcc=\"%s\" mnc=\"%s\" lac=\"%s\" id=\"%s\" ss=\"%i\"/>" % servingCell[:5] logmsg = "<scan time=\"%s\">" % time.strftime('%Y%m%d%H%M%S', time.gmtime(tstamp)) + \ "<gsmserving mcc=\"%s\" mnc=\"%s\" lac=\"%s\" id=\"%s\" ss=\"%i\" act=\"%s\" />" % servingCell for cell in neighbourCells: # the best answer we could get was: it is highly probable that the neighbour cells have # the same MCC and MNC as the serving one, but this is not absolutely sure. logmsg += "<gsmneighbour mcc=\"%s\" mnc=\"%s\" lac=\"%s\"" % (servingCell[:2] + (cell['lac'],)) +\ " id=\"%s\"" % cell['cid'] + \ " rxlev=\"%i\"" % cell['rxlev'] + \ " c1=\"%i\"" % cell['c1'] + \ " c2=\"%i\"" % cell['c2'] + \ "/>" #" ctype=\"%s\"" % cell['ctype'] + \ logmsg += "<gps time=\"%s\"" % date + \ " lng=\"%s\"" % ( ('%.*f' % (latLonPrecision, lng)).rstrip('0').rstrip('.') ) + \ " lat=\"%s\"" % ( ('%.*f' % (latLonPrecision, lat)).rstrip('0').rstrip('.') ) + \ " alt=\"%s\"" % ( ('%.*f' % (altitudePrecision, alt)).rstrip('0').rstrip('.') ) + \ " hdg=\"%s\"" % ( ('%.*f' % (headingPrecision, heading)).rstrip('0').rstrip('.') ) + \ " spe=\"%s\"" % ( ('%.*f' % (speedPrecision, spe)).rstrip('0').rstrip('.') ) + \ " hdop=\"%s\"" % ( ('%.*f' % (hvpdopPrecision, hdop)).rstrip('0').rstrip('.') ) + \ " vdop=\"%s\"" % ( ('%.*f' % (hvpdopPrecision, vdop)).rstrip('0').rstrip('.') ) + \ " pdop=\"%s\"" % ( ('%.*f' % (hvpdopPrecision, pdop)).rstrip('0').rstrip('.') ) + \ "/>" + \ "</scan>\n" logging.debug(logmsg) self.fileToSendLock.acquire() logging.info('OpenBmap log file lock acquired.') #debug #self._gsm._call_ongoing = True #end of debug if self._gsm.call_ongoing(): # see comments in log() about not logging in a call. logging.info('write_obm_log() canceled because a call is ongoing.') self.fileToSendLock.release() logging.info('OpenBmap log file lock released.') return
|
0beae68f1c062fd16cefaf46cf4f038a246b5dd1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12211/0beae68f1c062fd16cefaf46cf4f038a246b5dd1/logger.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
947,
81,
67,
1330,
12,
2890,
16,
1509,
16,
268,
14317,
16,
20505,
4020,
16,
12662,
16,
2516,
16,
3770,
16,
17785,
16,
11053,
16,
15921,
556,
16,
21161,
556,
16,
4863,
556,
16,
16497,
10505,
4672,
3536,
1630,
471,
9064,
316,
3778,
864,
501,
16,
10016,
11752,
7410,
316,
613,
585,
12123,
468,
6338,
6600,
997,
30,
738,
74,
317,
1021,
6039,
12949,
326,
1300,
434,
6815,
1839,
326,
6970,
1634,
471,
3467,
358,
1666,
18,
468,
432,
7114,
434,
326,
5050,
451,
8035,
316,
2516,
19,
5748,
5871,
87,
358,
279,
7114,
434,
3613,
279,
16565,
434,
6039,
18,
468,
18848,
555,
635,
13885,
353,
1381,
18,
29783,
6039,
353,
622,
3796,
1728,
81,
18,
576,
619,
261,
1896,
668,
619,
555,
13,
273,
576,
619,
261,
25,
619,
404,
13,
468,
16658,
764,
392,
555,
434,
1728,
81,
5,
22073,
732,
444,
5929,
358,
2468,
18,
2516,
15927,
15410,
273,
2468,
468,
1062,
2207,
75,
1121,
72,
18,
744,
549,
538,
18,
323,
19,
75,
1121,
72,
18,
2620,
30,
468,
27116,
3540,
6328,
367,
353,
1898,
16692,
358,
1394,
2967,
358,
622,
26719,
844,
3036,
4277,
17241,
2353,
8904,
19,
16867,
16,
468,
471,
353,
2546,
3221,
358,
1334,
316,
326,
29284,
434,
1191,
3722,
695,
69,
1801,
31,
1026,
555,
353,
2593,
27169,
622,
22342,
9,
468,
15588,
16,
10213,
27169,
622,
16848,
9,
15588,
18,
5495,
530,
16,
333,
903,
506,
27789,
635,
279,
9768,
302,
330,
1421,
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,
1045,
67,
947,
81,
67,
1330,
12,
2890,
16,
1509,
16,
268,
14317,
16,
20505,
4020,
16,
12662,
16,
2516,
16,
3770,
16,
17785,
16,
11053,
16,
15921,
556,
16,
21161,
556,
16,
4863,
556,
16,
16497,
10505,
4672,
3536,
1630,
471,
9064,
316,
3778,
864,
501,
16,
10016,
11752,
7410,
316,
613,
585,
12123,
468,
6338,
6600,
997,
30,
738,
74,
317,
1021,
6039,
12949,
326,
1300,
434,
6815,
1839,
326,
6970,
1634,
471,
3467,
358,
1666,
18,
468,
432,
7114,
434,
326,
5050,
451,
8035,
316,
2516,
19,
5748,
5871,
87,
358,
279,
7114,
434,
3613,
279,
16565,
434,
6039,
18,
468,
18848,
555,
635,
13885,
353,
1381,
18,
29783,
6039,
353,
622,
3796,
1728,
81,
2
] |
ext_outputs = cmd._mutate_outputs( self.distribution.has_ext_modules(), 'build_ext', 'build_lib', '' )
|
ext_outputs = self.get_ext_outputs()
|
def run(self): # Generate metadata first self.run_command("egg_info")
|
4ac1c4a9cccadb04d7cf193f008ac7aa5cab3412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8186/4ac1c4a9cccadb04d7cf193f008ac7aa5cab3412/bdist_egg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
6654,
1982,
1122,
365,
18,
2681,
67,
3076,
2932,
23171,
67,
1376,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def waitiing(self):
|
def waiting(self):
|
def waitiing(self): return len(self._waiters)
|
315b570820ba80d6323db5b292e0b91999334fdb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10423/315b570820ba80d6323db5b292e0b91999334fdb/coros.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7336,
12,
2890,
4672,
327,
562,
12,
2890,
6315,
7048,
414,
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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672,
327,
562,
12,
2890,
6315,
7048,
414,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
gLogger.info("SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len(urls))
|
gLogger.debug("SRM2Storage.getFileMetadata: Obtaining metadata for %s file(s)." % len(urls))
|
def getFileMetadata(self,path): """ Get metadata associated to the file """ if type(path) in types.StringTypes: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.getFileMetadata: Supplied path must be string or list of strings")
|
65f6eeefcc68513bb80614609dded77332a53729 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/65f6eeefcc68513bb80614609dded77332a53729/SRM2Storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
306,
803,
65,
1327,
618,
12,
803,
13,
422,
1953,
18,
19366,
30,
6903,
273,
589,
469,
30,
327,
348,
67,
3589,
2932,
55,
8717,
22,
3245,
18,
29925,
2277,
30,
3425,
3110,
589,
1297,
506,
533,
578,
666,
434,
2064,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6034,
2277,
12,
2890,
16,
803,
4672,
3536,
225,
968,
1982,
3627,
358,
326,
585,
3536,
309,
618,
12,
803,
13,
316,
1953,
18,
780,
2016,
30,
6903,
273,
306,
803,
65,
1327,
618,
12,
803,
13,
422,
1953,
18,
19366,
30,
6903,
273,
589,
469,
30,
327,
348,
67,
3589,
2932,
55,
8717,
22,
3245,
18,
29925,
2277,
30,
3425,
3110,
589,
1297,
506,
533,
578,
666,
434,
2064,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
arg.WriteClientSideValidationCode(file)
|
arg.WriteClientSideValidationCode(file, func)
|
def WriteGLES2ImplementationHeader(self, func, file): """Writes the GLES2 Implemention.""" impl_func = func.GetInfo('impl_func') impl_decl = func.GetInfo('impl_decl') if (func.can_auto_generate and (impl_func == None or impl_func == True) and (impl_decl == None or impl_decl == True)): file.Write("%s %s(%s) {\n" % (func.return_type, func.original_name, func.MakeTypedOriginalArgString(""))) for arg in func.GetOriginalArgs(): arg.WriteClientSideValidationCode(file) code = """ if (Is%(type)sReservedId(%(id)s)) { SetGLError(GL_INVALID_OPERATION); return;
|
bda273cb982a1cc60958aa574bc939271a82f552 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/bda273cb982a1cc60958aa574bc939271a82f552/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
12123,
9380,
67,
644,
273,
1326,
18,
967,
966,
2668,
11299,
67,
644,
6134,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
67,
8840,
6134,
309,
261,
644,
18,
4169,
67,
6079,
67,
7163,
471,
261,
11299,
67,
644,
422,
599,
578,
9380,
67,
644,
422,
1053,
13,
471,
261,
11299,
67,
8840,
422,
599,
578,
9380,
67,
8840,
422,
1053,
3719,
30,
585,
18,
3067,
27188,
87,
738,
87,
9275,
87,
13,
18890,
82,
6,
738,
261,
644,
18,
2463,
67,
723,
16,
1326,
18,
8830,
67,
529,
16,
1326,
18,
6464,
11985,
8176,
4117,
780,
2932,
6,
20349,
364,
1501,
316,
1326,
18,
967,
8176,
2615,
13332,
1501,
18,
3067,
1227,
8895,
4354,
1085,
12,
768,
16,
1326,
13,
981,
273,
3536,
225,
309,
261,
2520,
17105,
723,
13,
87,
10435,
548,
9275,
12,
350,
13,
87,
3719,
288,
1000,
11261,
668,
12,
11261,
67,
9347,
67,
22040,
1769,
327,
31,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
43,
11386,
22,
13621,
1864,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
8368,
326,
611,
11386,
22,
10886,
285,
12123,
9380,
67,
644,
273,
1326,
18,
967,
966,
2668,
11299,
67,
644,
6134,
9380,
67,
8840,
273,
1326,
18,
967,
966,
2668,
11299,
67,
8840,
6134,
309,
261,
644,
18,
4169,
67,
6079,
67,
7163,
471,
261,
11299,
67,
644,
422,
599,
578,
9380,
67,
644,
422,
1053,
13,
471,
261,
11299,
67,
8840,
422,
599,
578,
9380,
67,
8840,
422,
1053,
3719,
30,
585,
18,
3067,
27188,
87,
738,
87,
9275,
87,
13,
18890,
82,
6,
738,
261,
644,
18,
2463,
67,
723,
16,
1326,
18,
8830,
67,
529,
16,
1326,
18,
6464,
11985,
8176,
2
] |
installed_items = [item for item in installinfo.get('managed_installs',[])
|
installed_items = [item for item in installinfo.get('managed_installs',[])
|
def check(id=''): '''Checks for available new or updated managed software, downloading installer items if needed. Returns 1 if there are available updates, 0 if there are no available updates, and -1 if there were errors.''' getMachineFacts() munkicommon.report['MachineInfo'] = machine ManagedInstallDir = munkicommon.pref('ManagedInstallDir') if munkicommon.munkistatusoutput: munkistatus.activate() munkistatus.message("Checking for available updates...") munkistatus.detail("") munkistatus.percent("-1") munkicommon.log("### Beginning managed software check ###") mainmanifestpath = getPrimaryManifest(id) if munkicommon.stopRequested(): return 0 installinfo = {} if mainmanifestpath: # initialize our installinfo record installinfo['managed_installs'] = [] installinfo['removals'] = [] munkicommon.display_detail("**Checking for installs**") installinfo = processManifestForInstalls(mainmanifestpath, installinfo) if munkicommon.stopRequested(): return 0 if munkicommon.munkistatusoutput: # reset progress indicator and detail field munkistatus.message("Checking for additional changes...") munkistatus.percent("-1") munkistatus.detail('') # now generate a list of items to be uninstalled munkicommon.display_detail("**Checking for removals**") if munkicommon.stopRequested(): return 0 installinfo = processManifestForRemovals(mainmanifestpath, installinfo) # filter managed_installs to get items already installed installed_items = [item for item in installinfo.get('managed_installs',[]) if item.get('installed')] # filter managed_installs to get problem items: # not installed, but no installer item problem_items = [item for item in installinfo.get('managed_installs',[]) if item.get('installed') == False and not item.get('installer_item')] # filter removals to get items already removed (or never installed) removed_items = [item for item in installinfo.get('removals',[]) if item.get('installed') == False] # filter managed_installs and removals lists # so they have only items that need action installinfo['managed_installs'] = \ [item for item in installinfo.get('managed_installs',[]) if item.get('installer_item')] installinfo['removals'] = \ [item for item in installinfo.get('removals',[]) if item.get('installed')] munkicommon.report['ManagedInstalls'] = installed_items munkicommon.report['ProblemInstalls'] = problem_items munkicommon.report['RemovedItems'] = removed_items munkicommon.report['ItemsToInstall'] = installinfo['managed_installs'] munkicommon.report['ItemsToRemove'] = installinfo['removals'] # clean up cache dir # remove any item in the cache that isn't scheduled # to be used for an install or removal # this could happen if an item is downloaded on one # updatecheck run, but later removed from the manifest # before it is installed or removed - so the cached item # is no longer needed. cache_list = [item["installer_item"] for item in installinfo.get('managed_installs',[])] cache_list.extend([item["uninstaller_item"] for item in installinfo.get('removals',[]) if item.get('uninstaller_item')]) cachedir = os.path.join(ManagedInstallDir, "Cache") for item in os.listdir(cachedir): if item.endswith(".download"): # we have a partial download here # remove the ".download" from the end of the filename fullitem = os.path.splitext(item)[0] if os.path.exists(os.path.join(cachedir, fullitem)): # we have a partial and a full download # for the same item. (This shouldn't happen.) # remove the partial download. os.unlink(os.path.join(cachedir, item)) elif problem_items == []: # problem items is our list of items # that need to be installed but are missing # the installer_item; these might be partial # downloads. So if we have no problem items, it's # OK to get rid of any partial downloads hanging around. os.unlink(os.path.join(cachedir, item)) elif item not in cache_list: munkicommon.display_detail("Removing %s from cache" % item) os.unlink(os.path.join(cachedir, item)) # write out install list so our installer # can use it to install things in the right order installinfochanged = True installinfopath = os.path.join(ManagedInstallDir, "InstallInfo.plist") if os.path.exists(installinfopath): oldinstallinfo = FoundationPlist.readPlist(installinfopath) if oldinstallinfo == installinfo: installinfochanged = False munkicommon.display_detail("No change in InstallInfo.") if installinfochanged: FoundationPlist.writePlist(installinfo, os.path.join(ManagedInstallDir, "InstallInfo.plist")) else: # couldn't get a primary manifest. Check to see if we have a valid # install/remove list from an earlier run. munkicommon.display_error( "Could not retrieve managed install primary manifest.") installinfopath = os.path.join(ManagedInstallDir, "InstallInfo.plist") if os.path.exists(installinfopath): try: installinfo = FoundationPlist.readPlist(installinfopath) except FoundationPlist.NSPropertyListSerializationException: installinfo = {} else: munkicommon.report['ItemsToInstall'] = \ installinfo.get('managed_installs',[]) munkicommon.report['ItemsToRemove'] = \ installinfo.get('removals',[]) installcount = len(installinfo.get("managed_installs",[])) removalcount = len(installinfo.get("removals",[])) munkicommon.log("") if installcount: munkicommon.display_info( "The following items will be installed or upgraded:") for item in installinfo.get('managed_installs',[]): if item.get('installer_item'): munkicommon.display_info(" + %s-%s" % (item.get('name',''), item.get('version_to_install',''))) if item.get('description'): munkicommon.display_info(" %s" % item['description']) if item.get('RestartAction') == 'RequireRestart' or \ item.get('RestartAction') == 'RecommendRestart': munkicommon.display_info(" *Restart required") munkicommon.report['RestartRequired'] = True if item.get('RestartAction') == 'RequireLogout': munkicommon.display_info(" *Logout required") munkicommon.report['LogoutRequired'] = True if removalcount: munkicommon.display_info("The following items will be removed:") for item in installinfo.get('removals',[]): if item.get('installed'): munkicommon.display_info(" - %s" % item.get('name')) if item.get('RestartAction') == 'RequireRestart' or \ item.get('RestartAction') == 'RecommendRestart': munkicommon.display_info(" *Restart required") munkicommon.report['RestartRequired'] = True if item.get('RestartAction') == 'RequireLogout': munkicommon.display_info(" *Logout required") munkicommon.report['LogoutRequired'] = True if installcount == 0 and removalcount == 0: munkicommon.display_info( "No changes to managed software are available.") munkicommon.savereport() munkicommon.log("### End managed software check ###") if installcount or removalcount: return 1 else: return 0
|
5350042f4ddfb098468c8d75b15dfa28757b9321 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6241/5350042f4ddfb098468c8d75b15dfa28757b9321/updatecheck.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
1915,
854,
1158,
2319,
4533,
16,
471,
300,
21,
309,
1915,
4591,
1334,
1093,
6309,
2108,
3093,
9766,
87,
1435,
312,
1683,
335,
362,
2586,
18,
6006,
3292,
6981,
966,
3546,
273,
5228,
225,
10024,
6410,
1621,
273,
312,
1683,
335,
362,
2586,
18,
25724,
2668,
10055,
6410,
1621,
6134,
225,
309,
312,
1683,
335,
362,
2586,
18,
81,
1683,
376,
996,
2844,
30,
312,
1683,
376,
996,
18,
10014,
1435,
312,
1683,
376,
996,
18,
2150,
2932,
14294,
364,
2319,
4533,
7070,
13,
312,
1683,
376,
996,
18,
8992,
2932,
7923,
312,
1683,
376,
996,
18,
8849,
2932,
17,
21,
7923,
225,
312,
1683,
335,
362,
2586,
18,
1330,
2932,
13151,
14323,
2093,
7016,
17888,
866,
11849,
7923,
225,
2774,
14357,
803,
273,
11398,
9121,
12,
350,
13,
309,
312,
1683,
335,
362,
2586,
18,
5681,
11244,
13332,
327,
374,
225,
3799,
1376,
273,
2618,
225,
309,
2774,
14357,
803,
30,
468,
4046,
3134,
3799,
1376,
1409,
3799,
1376,
3292,
19360,
67,
5425,
87,
3546,
273,
5378,
3799,
1376,
3292,
2764,
1527,
1031,
3546,
273,
5378,
312,
1683,
335,
362,
2586,
18,
5417,
67,
8992,
2932,
636,
14294,
364,
31011,
636,
7923,
3799,
1376,
273,
1207,
9121,
1290,
6410,
87,
12,
5254,
14357,
803,
16,
3799,
1376,
13,
309,
312,
1683,
335,
362,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
350,
2218,
11,
4672,
9163,
4081,
364,
2319,
394,
578,
3526,
7016,
17888,
16,
23742,
16050,
1516,
309,
3577,
18,
2860,
404,
309,
1915,
854,
2319,
4533,
16,
374,
309,
1915,
854,
1158,
2319,
4533,
16,
471,
300,
21,
309,
1915,
4591,
1334,
1093,
6309,
2108,
3093,
9766,
87,
1435,
312,
1683,
335,
362,
2586,
18,
6006,
3292,
6981,
966,
3546,
273,
5228,
225,
10024,
6410,
1621,
273,
312,
1683,
335,
362,
2586,
18,
25724,
2668,
10055,
6410,
1621,
6134,
225,
309,
312,
1683,
335,
362,
2586,
18,
81,
1683,
376,
996,
2844,
30,
312,
1683,
376,
996,
18,
10014,
1435,
312,
1683,
376,
996,
18,
2150,
2932,
14294,
364,
2319,
4533,
7070,
13,
312,
1683,
2
] |
cu.execute("DROP INDEX PermissionsIdx") cu.execute("CREATE UNIQUE INDEX PermissionsIdx ON "
|
self.cu.execute("DROP INDEX PermissionsIdx") self.cu.execute("CREATE UNIQUE INDEX PermissionsIdx ON "
|
def migrate(self): ## First insert the new Item and Label keys self.cu.execute("INSERT INTO Items (itemId, item) VALUES(0, 'ALL')") self.cu.execute("INSERT INTO Labels (labelId, label) VALUES(0, 'ALL')")
|
9f7aecf66de99744c3a8610c4f5dddd93a7956e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9f7aecf66de99744c3a8610c4f5dddd93a7956e4/schema.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
7541,
5783,
2243,
326,
394,
4342,
471,
5287,
1311,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
10240,
261,
1726,
548,
16,
761,
13,
13477,
12,
20,
16,
296,
4685,
23291,
13,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
12395,
261,
1925,
548,
16,
1433,
13,
13477,
12,
20,
16,
296,
4685,
23291,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13187,
12,
2890,
4672,
7541,
5783,
2243,
326,
394,
4342,
471,
5287,
1311,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
10240,
261,
1726,
548,
16,
761,
13,
13477,
12,
20,
16,
296,
4685,
23291,
13,
365,
18,
6319,
18,
8837,
2932,
11356,
12421,
12395,
261,
1925,
548,
16,
1433,
13,
13477,
12,
20,
16,
296,
4685,
23291,
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
] |
raise TypeError('%r is not a module, class, method, ' 'function, traceback, frame, or code object' % object)
|
raise TypeError('{!r} is not a module, class, method, ' 'function, traceback, frame, or code object'.format(object))
|
def getfile(object): """Work out which source or compiled file an object was defined in.""" if ismodule(object): if hasattr(object, '__file__'): return object.__file__ raise TypeError('%r is a built-in module' % object) if isclass(object): object = sys.modules.get(object.__module__) if hasattr(object, '__file__'): return object.__file__ raise TypeError('%r is a built-in class' % object) if ismethod(object): object = object.im_func if isfunction(object): object = object.func_code if istraceback(object): object = object.tb_frame if isframe(object): object = object.f_code if iscode(object): return object.co_filename raise TypeError('%r is not a module, class, method, ' 'function, traceback, frame, or code object' % object)
|
4b941017d7d1f338edaaca77d3e613717ece0b68 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/4b941017d7d1f338edaaca77d3e613717ece0b68/inspect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
12,
1612,
4672,
3536,
2421,
596,
1492,
1084,
578,
7743,
585,
392,
733,
1703,
2553,
316,
12123,
309,
353,
2978,
12,
1612,
4672,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
4672,
327,
733,
16186,
768,
972,
1002,
3580,
29909,
86,
353,
279,
6650,
17,
267,
1605,
11,
738,
733,
13,
309,
28209,
12,
1612,
4672,
733,
273,
2589,
18,
6400,
18,
588,
12,
1612,
16186,
2978,
972,
13,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
4672,
327,
733,
16186,
768,
972,
1002,
3580,
29909,
86,
353,
279,
6650,
17,
267,
667,
11,
738,
733,
13,
309,
353,
2039,
12,
1612,
4672,
733,
273,
733,
18,
381,
67,
644,
309,
353,
915,
12,
1612,
4672,
733,
273,
733,
18,
644,
67,
710,
309,
353,
21696,
12,
1612,
4672,
733,
273,
733,
18,
18587,
67,
3789,
309,
353,
3789,
12,
1612,
4672,
733,
273,
733,
18,
74,
67,
710,
309,
353,
710,
12,
1612,
4672,
327,
733,
18,
2894,
67,
3459,
1002,
3580,
2668,
95,
5,
86,
97,
353,
486,
279,
1605,
16,
667,
16,
707,
16,
296,
296,
915,
16,
10820,
16,
2623,
16,
578,
981,
733,
10332,
2139,
12,
1612,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
768,
12,
1612,
4672,
3536,
2421,
596,
1492,
1084,
578,
7743,
585,
392,
733,
1703,
2553,
316,
12123,
309,
353,
2978,
12,
1612,
4672,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
4672,
327,
733,
16186,
768,
972,
1002,
3580,
29909,
86,
353,
279,
6650,
17,
267,
1605,
11,
738,
733,
13,
309,
28209,
12,
1612,
4672,
733,
273,
2589,
18,
6400,
18,
588,
12,
1612,
16186,
2978,
972,
13,
309,
3859,
12,
1612,
16,
4940,
768,
7250,
4672,
327,
733,
16186,
768,
972,
1002,
3580,
29909,
86,
353,
279,
6650,
17,
267,
667,
11,
738,
733,
13,
309,
353,
2039,
12,
1612,
4672,
733,
273,
733,
18,
381,
67,
644,
309,
353,
915,
12,
1612,
4672,
2
] |
xhtml = parsers.XHTML(html) data = xhtml.translate(po) assert data == '<p>hola mundo</p>'
|
p = parsers.PO.PO(memory.File(po)) html = memory.File(html) xhtml = parsers.XHTML.Document(html) html = xhtml.translate(p) result = self.template % '<p>hola mundo </p>' assert html == result
|
def test_case4(self): """Test translation of an element content""" html = '<p>hello world</p>' po = 'msgid "hello world"\n' \ 'msgstr "hola mundo"'
|
a3c81c1d735ba1868ba3eb465b674f362e597962 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/a3c81c1d735ba1868ba3eb465b674f362e597962/test_parsers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
24,
12,
2890,
4672,
3536,
4709,
4794,
434,
392,
930,
913,
8395,
1729,
273,
2368,
84,
34,
23711,
9117,
1757,
84,
1870,
8275,
273,
296,
3576,
350,
315,
23711,
9117,
12691,
82,
11,
521,
296,
27439,
313,
315,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3593,
24,
12,
2890,
4672,
3536,
4709,
4794,
434,
392,
930,
913,
8395,
1729,
273,
2368,
84,
34,
23711,
9117,
1757,
84,
1870,
8275,
273,
296,
3576,
350,
315,
23711,
9117,
12691,
82,
11,
521,
296,
27439,
313,
315,
76,
355,
69,
312,
31226,
5187,
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
] |
win = MPDDatabase(self, parent) return win def createPostHook(self):
|
self.default_font = self.GetFont() self.font = wx.Font(self.classprefs.list_font_size, self.default_font.GetFamily(), self.default_font.GetStyle(), self.default_font.GetWeight()) self.sizer = wx.BoxSizer(wx.VERTICAL) self.SetSizer(self.sizer) self.notebook = wx.Notebook(self) self.sizer.Add(self.notebook, 1, wx.EXPAND) self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.OnTabChanged) self.pathname = MPDListByPath(self.notebook, self) self.pathname.SetFont(self.font) self.notebook.AddPage(self.pathname, "Pathname Browser") self.genre = MPDListByGenre(self.notebook, self) self.genre.SetFont(self.font) self.notebook.AddPage(self.genre, "Genre Browser") self.search = MPDListSearch(self.notebook, self) self.search.SetFont(self.font) self.notebook.AddPage(self.search, "Search") self.shown = 0 self.dirtree = [] self.Layout() def OnTabChanged(self, evt): val = evt.GetSelection() page = self.notebook.GetPage(val) page.reset() evt.Skip() def reset(self): page = self.notebook.GetCurrentPage() page.reset() def createListenerPostHook(self):
|
def createEditWindow(self,parent): """Create the main MPD music search window.
|
f9c3a6a22ee997ebd7775e7552ae043d1312a735 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/f9c3a6a22ee997ebd7775e7552ae043d1312a735/mpd_major_mode.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4666,
3829,
12,
2890,
16,
2938,
4672,
3536,
1684,
326,
2774,
13480,
40,
26225,
1623,
2742,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
4666,
3829,
12,
2890,
16,
2938,
4672,
3536,
1684,
326,
2774,
13480,
40,
26225,
1623,
2742,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (CXXINCLUDECACHE.has_key(path)):
|
if (path in CXXINCLUDECACHE):
|
def CxxGetIncludes(path): date = GetTimestamp(path) if (CXXINCLUDECACHE.has_key(path)): cached = CXXINCLUDECACHE[path] if (cached[0]==date): return cached[1] try: sfile = open(path, 'rb') except: exit("Cannot open source file \""+path+"\" for reading.") include = [] for line in sfile: match = CxxIncludeRegex.match(line,0) if (match): incname = match.group(1) include.append(incname) sfile.close() CXXINCLUDECACHE[path] = [date, include] return include
|
e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/e0e3ede644b14dcbdc2136d9a8ff5730ebaa32a7/makepandacore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
5279,
967,
16815,
12,
803,
4672,
1509,
273,
968,
4921,
12,
803,
13,
309,
261,
803,
316,
385,
5619,
26003,
8495,
4672,
3472,
273,
385,
5619,
26003,
8495,
63,
803,
65,
309,
261,
7097,
63,
20,
65,
631,
712,
4672,
327,
3472,
63,
21,
65,
775,
30,
272,
768,
273,
1696,
12,
803,
16,
296,
6731,
6134,
1335,
30,
2427,
2932,
4515,
1696,
1084,
585,
11843,
15,
803,
9078,
2412,
364,
6453,
1199,
13,
2341,
273,
5378,
364,
980,
316,
272,
768,
30,
845,
273,
385,
5279,
8752,
6628,
18,
1916,
12,
1369,
16,
20,
13,
309,
261,
1916,
4672,
7290,
529,
273,
845,
18,
1655,
12,
21,
13,
2341,
18,
6923,
12,
9523,
529,
13,
272,
768,
18,
4412,
1435,
385,
5619,
26003,
8495,
63,
803,
65,
273,
306,
712,
16,
2341,
65,
327,
2341,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
385,
5279,
967,
16815,
12,
803,
4672,
1509,
273,
968,
4921,
12,
803,
13,
309,
261,
803,
316,
385,
5619,
26003,
8495,
4672,
3472,
273,
385,
5619,
26003,
8495,
63,
803,
65,
309,
261,
7097,
63,
20,
65,
631,
712,
4672,
327,
3472,
63,
21,
65,
775,
30,
272,
768,
273,
1696,
12,
803,
16,
296,
6731,
6134,
1335,
30,
2427,
2932,
4515,
1696,
1084,
585,
11843,
15,
803,
9078,
2412,
364,
6453,
1199,
13,
2341,
273,
5378,
364,
980,
316,
272,
768,
30,
845,
273,
385,
5279,
8752,
6628,
18,
1916,
12,
1369,
16,
20,
13,
309,
261,
1916,
4672,
7290,
529,
273,
845,
18,
1655,
12,
21,
13,
2341,
18,
6923,
12,
9523,
529,
13,
272,
2
] |
component = SplitQName(contents[indx].getTagName())[1] if component == 'annotation': self.annotation = Annotation(self) self.annotation.fromDom(contents[indx]) indx += 1
|
if num:
|
def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node)
|
cb449fc0180b4b19d99c50f3984e5fe5b9e8f9d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/cb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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
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
] |
xlim=self.xlim, z= r.t(r.matrix( self.data[rep].flatData(),axes=self.axes, byrow=True, ncol=len(self.data[rep].data[0]))),xlab=self.xlab,
|
xlim=self.xlim, z= r.t(r.matrix(self.data[rep].flatData(), byrow=True, ncol=len(self.data[rep].data[0]))), xlab=self.xlab, axes=self.axes,
|
def plot(self, pop, expr): gen = pop.gen() rep = pop.rep() data = pop.evaluate(expr) _data = data # now start! if type(_data) == type(0) or type(_data) == type(0.): _data = [_data]
|
0731ae08adccf41d053f6aa3359994cd77496a34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/0731ae08adccf41d053f6aa3359994cd77496a34/simuRPy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
1843,
16,
3065,
4672,
3157,
273,
1843,
18,
4507,
1435,
2071,
273,
1843,
18,
14462,
1435,
501,
273,
1843,
18,
21024,
12,
8638,
13,
389,
892,
273,
501,
468,
2037,
787,
5,
309,
618,
24899,
892,
13,
422,
618,
12,
20,
13,
578,
618,
24899,
892,
13,
422,
618,
12,
20,
18,
4672,
389,
892,
273,
306,
67,
892,
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,
0,
0,
0,
0,
0,
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
1435,
501,
273,
1843,
18,
21024,
12,
8638,
13,
389,
892,
273,
501,
468,
2037,
787,
5,
309,
618,
24899,
892,
13,
422,
618,
12,
20,
13,
578,
618,
24899,
892,
13,
422,
618,
12,
20,
18,
4672,
389,
892,
273,
306,
67,
892,
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
] |
self.exitPlayback()
|
self.exitPlayback(switchDisplay)
|
def stop(self): videoDisplay = Controller.instance.videoDisplay if self.currentDisplay == videoDisplay: videoDisplay.stop() self.exitPlayback()
|
168ea1e3359fc4fd8e4be351eaaa4c453b89d0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/168ea1e3359fc4fd8e4be351eaaa4c453b89d0a2/app.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
6191,
4236,
273,
6629,
18,
1336,
18,
9115,
4236,
309,
365,
18,
2972,
4236,
422,
6191,
4236,
30,
6191,
4236,
18,
5681,
1435,
365,
18,
8593,
30569,
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,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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,
2132,
12,
2890,
4672,
6191,
4236,
273,
6629,
18,
1336,
18,
9115,
4236,
309,
365,
18,
2972,
4236,
422,
6191,
4236,
30,
6191,
4236,
18,
5681,
1435,
365,
18,
8593,
30569,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"""Delete menu items between INDEX1 and INDEX2 (not included)."""
|
"""Delete menu items between INDEX1 and INDEX2 (included)."""
|
def delete(self, index1, index2=None): """Delete menu items between INDEX1 and INDEX2 (not included).""" if index2 is None: index2 = index1 cmds = [] (num_index1, num_index2) = (self.index(index1), self.index(index2)) if (num_index1 is not None) and (num_index2 is not None): for i in range(num_index1, num_index2 + 1): if 'command' in self.entryconfig(i): c = str(self.entrycget(i, 'command')) if c in self._tclCommands: cmds.append(c) self.tk.call(self._w, 'delete', index1, index2) for c in cmds: self.deletecommand(c)
|
b9828f67b8d012093cd67e8b0679dc55864cf94e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/b9828f67b8d012093cd67e8b0679dc55864cf94e/Tkinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
770,
21,
13446,
273,
5378,
261,
2107,
67,
1615,
21,
16,
818,
67,
1615,
22,
13,
273,
261,
2890,
18,
1615,
12,
1615,
21,
3631,
365,
18,
1615,
12,
1615,
22,
3719,
309,
261,
2107,
67,
1615,
21,
353,
486,
599,
13,
471,
261,
2107,
67,
1615,
22,
353,
486,
599,
4672,
364,
277,
316,
1048,
12,
2107,
67,
1615,
21,
16,
818,
67,
1615,
22,
397,
404,
4672,
309,
296,
3076,
11,
316,
365,
18,
4099,
1425,
12,
77,
4672,
276,
273,
609,
12,
2890,
18,
4099,
71,
588,
12,
77,
16,
296,
3076,
26112,
309,
276,
316,
365,
6315,
88,
830,
9127,
30,
13446,
18,
6923,
12,
71,
13,
365,
18,
16099,
18,
1991,
12,
2890,
6315,
91,
16,
296,
3733,
2187,
770,
21,
16,
770,
22,
13,
364,
276,
316,
13446,
30,
365,
18,
19003,
30433,
889,
12,
71,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
12,
2890,
16,
770,
21,
16,
770,
22,
33,
7036,
4672,
3536,
2613,
3824,
1516,
3086,
12425,
21,
471,
12425,
22,
261,
20405,
13,
12123,
309,
770,
22,
353,
599,
30,
770,
22,
273,
770,
21,
13446,
273,
5378,
261,
2107,
67,
1615,
21,
16,
818,
67,
1615,
22,
13,
273,
261,
2890,
18,
1615,
12,
1615,
21,
3631,
365,
18,
1615,
12,
1615,
22,
3719,
309,
261,
2107,
67,
1615,
21,
353,
486,
599,
13,
471,
261,
2107,
67,
1615,
22,
353,
486,
599,
4672,
364,
277,
316,
1048,
12,
2107,
67,
1615,
21,
16,
818,
67,
1615,
22,
397,
404,
4672,
309,
296,
3076,
11,
316,
365,
18,
4099,
1425,
12,
77,
4672,
276,
273,
2
] |
except DistutilsExecError, msg:
|
except DistutilsExecError as msg:
|
def compile(self, sources, output_dir=None, macros=None, include_dirs=None, debug=0, extra_preargs=None, extra_postargs=None, depends=None):
|
61e8a9bab03dc9a3a74c3aa70c4c42c2894f287d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/61e8a9bab03dc9a3a74c3aa70c4c42c2894f287d/msvc9compiler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
10935,
33,
7036,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4074,
12,
2890,
16,
5550,
16,
876,
67,
1214,
33,
7036,
16,
24302,
33,
7036,
16,
2341,
67,
8291,
33,
7036,
16,
1198,
33,
20,
16,
2870,
67,
1484,
1968,
33,
7036,
16,
2870,
67,
2767,
1968,
33,
7036,
16,
10935,
33,
7036,
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
] |
'gopher://gopher.lib.ncsu.edu/11/library/stacks/Alex', 'gopher://gopher.vt.edu:10010/10/33',
|
'gopher://gopher.lib.ncsu.edu./11/library/stacks/Alex', 'gopher://gopher.vt.edu.:10010/10/33',
|
def test_gopher(self): import warnings warnings.filterwarnings("ignore", "the gopherlib module is deprecated", DeprecationWarning, "urllib2$") urls = [ # Thanks to Fred for finding these! 'gopher://gopher.lib.ncsu.edu/11/library/stacks/Alex', 'gopher://gopher.vt.edu:10010/10/33', ] self._test_urls(urls, self._extra_handlers())
|
0633c3792b01834e7615d678c36a3afee5954a01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0633c3792b01834e7615d678c36a3afee5954a01/test_urllib2net.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
75,
556,
1614,
12,
2890,
4672,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
315,
5787,
22096,
1614,
2941,
1605,
353,
6849,
3113,
24041,
16,
315,
718,
2941,
22,
8,
7923,
6903,
273,
306,
468,
935,
19965,
358,
478,
1118,
364,
13727,
4259,
5,
296,
75,
556,
1614,
2207,
75,
556,
1614,
18,
2941,
18,
82,
2143,
89,
18,
28049,
18,
19,
2499,
19,
12083,
19,
3772,
87,
19,
37,
4149,
2187,
296,
75,
556,
1614,
2207,
75,
556,
1614,
18,
11734,
18,
28049,
29710,
6625,
2163,
19,
2163,
19,
3707,
2187,
308,
365,
6315,
3813,
67,
10518,
12,
10518,
16,
365,
6315,
7763,
67,
11046,
10756,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
75,
556,
1614,
12,
2890,
4672,
1930,
5599,
5599,
18,
2188,
12103,
2932,
6185,
3113,
315,
5787,
22096,
1614,
2941,
1605,
353,
6849,
3113,
24041,
16,
315,
718,
2941,
22,
8,
7923,
6903,
273,
306,
468,
935,
19965,
358,
478,
1118,
364,
13727,
4259,
5,
296,
75,
556,
1614,
2207,
75,
556,
1614,
18,
2941,
18,
82,
2143,
89,
18,
28049,
18,
19,
2499,
19,
12083,
19,
3772,
87,
19,
37,
4149,
2187,
296,
75,
556,
1614,
2207,
75,
556,
1614,
18,
11734,
18,
28049,
29710,
6625,
2163,
19,
2163,
19,
3707,
2187,
308,
365,
6315,
3813,
67,
10518,
12,
10518,
16,
365,
6315,
7763,
67,
11046,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" if not self._directed or ignore_direction: neighbors=self.neighbor_iterator
|
""" if neighbors is None: if not self._directed or ignore_direction: neighbors=self.neighbor_iterator else: neighbors=self.successor_iterator seen=set([]) if isinstance(start, list): queue=[(v,0) for v in start]
|
def breadth_first_search(self, u, ignore_direction=False): """ Returns an iterator over vertices in a breadth-first ordering.
|
9d535ef33940ee3901e4b9966c012168cfeef72c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/9d535ef33940ee3901e4b9966c012168cfeef72c/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
25254,
67,
3645,
67,
3072,
12,
2890,
16,
582,
16,
2305,
67,
9855,
33,
8381,
4672,
3536,
2860,
392,
2775,
1879,
6928,
316,
279,
324,
25254,
17,
3645,
9543,
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
] |
for calendar in vobject.readComponents(text, validate=True,
|
for calendar in vobject.readComponents(text, validate=False,
|
def itemsFromVObject(view, text, coerceTzinfo = None, filters = None, monolithic = True, updateCallback=None, stats=None): """ Take a string, create or update items from that stream. The filters argument is an optional sequence of attributes to not populate. monolithic is True for calendars that may contain multiple events, for CalDAV shares calendars will always contain one event (modulo recurrence) so monolithic will be False for CalDAV. Return is a tuple (itemlist, calname). """ newItemParent = view.findPath("//userdata") countNew = 0 countUpdated = 0 itemlist = [] calname = None # iterate over calendars, usually only one, but more are allowed for calendar in vobject.readComponents(text, validate=True, ignoreUnreadable=True): modificationQueue = [] # just grab the first calendar name if calname is None: calname = calendar.getChildValue('x_wr_calname') rawVevents = getattr(calendar, 'vevent_list', []) numVevents = len(rawVevents) if updateCallback and monolithic: updateCallback(msg=_(u"Calendar contains %d events") % numVevents, totalWork=numVevents) vevents = ((-1, event) for event in rawVevents) for i, event in itertools.chain(vevents, enumerate(modificationQueue)): # Queue modifications to recurring events so modifications are # processed after master events in the iCalendar stream. recurrenceID = event.getChildValue('recurrence_id') if recurrenceID is not None and i < 0: # only add to modificationQueue in initial processing modificationQueue.append(event) continue try: if DEBUG: logger.debug("got VEVENT") summary = event.getChildValue('summary', u"") description = event.getChildValue('description') location = event.getChildValue('location') status = event.getChildValue('status', "").lower() duration = event.getChildValue('duration') dtstart = event.getChildValue('dtstart') dtend = event.getChildValue('dtend') due = event.getChildValue('due') uid = event.getChildValue('uid') if status in ('confirmed', 'tentative'): pass elif status == 'cancelled': #Chandler doesn't have CANCELLED status = 'fyi' else: status = 'confirmed' isDate = type(dtstart) == date # RFC2445 allows VEVENTs without DTSTART, but it's hard to guess # what that would mean, so we won't catch an exception if there's no # dtstart. anyTime = getattr(event.dtstart, 'x_osaf_anytime_param', None) == 'TRUE' reminderDelta = None reminderAbsoluteTime = None try: reminderValue = event.valarm.trigger.value except AttributeError: pass else: if type(reminderValue) is datetime.datetime: reminderAbsoluteTime = reminderValue else: assert type(reminderValue) is datetime.timedelta reminderDelta = reminderValue if duration is None: if dtend is not None: duration = dtend - dtstart elif due is not None: #VTODO case duration = due - dtstart elif anyTime or isDate: duration = oneDay else: duration = datetime.timedelta(0) if isDate: dtstart = TimeZone.forceToDateTime(dtstart) # convert to Chandler's notion of all day duration duration -= oneDay # coerce timezones based on coerceTzinfo def convertDatetime(dt): if coerceTzinfo is not None: dt = TimeZone.coerceTimeZone(dt, coerceTzinfo) return convertToICUtzinfo(dt, view) dtstart = convertDatetime(dtstart) if reminderAbsoluteTime is not None: reminderAbsoluteTime = convertDatetime(reminderAbsoluteTime) # Because of restrictions on dateutil.rrule, we're going # to have to make sure all the datetimes we create have # the same naivete as dtstart tzinfo = dtstart.tzinfo # by default, we'll create a new item, not change existing items itemChangeCallback = None # See if we have a corresponding item already uidMatchItem = Calendar.findUID(view, uid) if uidMatchItem is not None: if DEBUG: logger.debug("matched UID") if recurrenceID: if type(recurrenceID) == date: recurrenceID = datetime.datetime.combine( recurrenceID, time(tzinfo=tzinfo)) else: recurrenceID = convertToICUtzinfo( makeNaiveteMatch(recurrenceID, tzinfo), view) eventItem = uidMatchItem.getRecurrenceID(recurrenceID) if eventItem == None: # Some calendars, notably Oracle, serialize # recurrence-id as UTC, which wreaks havoc with # noTZ mode. So move recurrenceID to the same tzinfo # as dtstart, bug 6830 tweakedID = recurrenceID.astimezone(ICUtzinfo.default) eventItem = uidMatchItem.getRecurrenceID(tweakedID) if eventItem == None: # our recurrenceID didn't match an item we know # about. This may be because the item is created # by a later modification, a case we're not dealing # with. For now, just skip it. logger.info("RECURRENCE-ID didn't match rule. " \ "RECURRENCE-ID = %s" % recurrenceID) continue recurrenceLine = event.contents['recurrence-id'][0] range = recurrenceLine.params.get('RANGE', ['THIS'])[0] if range == 'THISANDPRIOR': # ignore THISANDPRIOR changes for now logger.info("RECURRENCE-ID RANGE of THISANDPRIOR " \ "not supported") continue elif range == 'THIS': itemChangeCallback = EventStamp.changeThis # check if this is a modification to a master event # if so, avoid changing the master's UUID when # creating a modification if eventItem.getMaster() == eventItem: mod = eventItem._cloneEvent() mod.modificationFor = mod.occurrenceFor = eventItem.itsItem if eventItem.itsItem.hasLocalAttributeValue( EventStamp.occurrenceFor.name): del eventItem.occurrenceFor eventItem = mod elif range == 'THISANDFUTURE': itemChangeCallback = EventStamp.changeThisAndFuture else: logger.info("RECURRENCE-ID RANGE not recognized. " \ "RANGE = %s" % range) continue else: eventItem = uidMatchItem if eventItem.rruleset is not None: # re-creating a recurring item from scratch, delete # old recurrence information # uidMatchItem might not be the master, though, so # get the master, or eventItem will be a deleted # event eventItem = eventItem.getMaster() # delete modifications the master has, to avoid # changing the master to a modification with a # different UUID for mod in itertools.imap(EventStamp, eventItem.modifications or []): # [Bug 7019] # We need to del these because, in the deferred # delete case, we would have deferred items # living on, in the manner of the undead, in # master.modifications (and occurrences). This # would ultimately cause .getNextOccurrence() # to terminate prematurely. del mod.modificationFor del mod.occurrenceFor mod.itsItem.delete() eventItem.removeRecurrence(deleteOccurrences=False) itemChangeCallback = EventStamp.changeThis # Mark this event as an update (modified) countUpdated += 1 uuid = eventItem.itsItem.itsUUID if stats and uuid not in stats['modified']: stats['modified'].append(uuid) if DEBUG: logger.debug("Changing eventItem: %s" % str(eventItem)) changesDict = {} def change(key, value): try: key = getattr(EventStamp, key).name except AttributeError: pass changesDict[key] = value change('summary', summary) if anyTime: change('anyTime', True) change('allDay', False) elif isDate: # allDay events should have anyTime True, so if the user # unselects allDay, the time isn't set to midnight change('anyTime', True) change('allDay', True) else: change('allDay', False) change('anyTime', False) change('startTime', dtstart) change('duration', duration) if not filters or EventStamp.transparency.name not in filters: change('transparency', status) # DESCRIPTION <-> body if description is not None: change('body', description) if location: change('location', Calendar.Location.getLocation(view, location)) # rruleset and userReminderInterval/userReminderTime must be set last changeLast = [] # Need to update this for Remindable if not filters or Remindable.reminders.name not in filters: if reminderDelta is not None: changeLast.append((Remindable.userReminderInterval.name, reminderDelta)) elif reminderAbsoluteTime is not None: changeLast.append((Remindable.userReminderTime.name, reminderAbsoluteTime)) rruleset = event.rruleset if rruleset is not None: # fix for Bug 6994, exdate and rdate timezones need to be # converted to ICUtzinfo instances for typ in '_rdate', '_exdate': setattr(rruleset, typ, [convertDatetime(d) for d in getattr(rruleset, typ, []) ]) ruleSetItem = RecurrenceRuleSet(None, itsView=view) ruleSetItem.setRuleFromDateUtil(rruleset) changeLast.append((EventStamp.rruleset.name, ruleSetItem)) ignoredProperties = {} ignoredParameters = {} for line in event.lines(): name = line.name.lower() if name not in attributesUnderstood: line.transformFromNative() ignoredProperties[name] = line.value params=u'' for key, paramvals in line.params.iteritems(): if key.lower() not in parametersUnderstood: vals = map(vobject.base.dquoteEscape, paramvals) params += ';' + key + '=' + ','.join(vals) if len(params) > 0: ignoredParameters[name] = params change('icalendarProperties', ignoredProperties) change('icalendarParameters', ignoredParameters) if itemChangeCallback is None: # create a new item try: # See if uid is a valid repository UUID, if so we'll # go ahead and use it for the new item's UUID. uuid = UUID(uid) except ValueError: # Not in valid UUID format, so hash the icaluid to # generate a 16-byte string we can use for uuid uuid = UUID(md5.new(uid).digest()) logger.info("Converted icalUID '%s' to UUID '%s'", uid, str(uuid)) parent = schema.Item.getDefaultParent(view) kind = Note.getKind(view) # If there is already an item with this UUID, use it, # otherwise create one. item = view.findUUID(uuid) if item is None: item = kind.instantiateItem(None, parent, uuid, withInitialValues=True, **changesDict) countNew += 1 if stats and item.itsUUID not in stats['added']: stats['added'].append(item.itsUUID) else: countUpdated += 1 if stats and item.itsUUID not in stats['modified']: stats['modified'].append(item.itsUUID) eventItem = EventStamp(item) eventItem.add() eventItem.icalUID = uid for tup in changeLast: eventItem.changeThis(*tup) else: # update an existing item if rruleset is None and recurrenceID is None \ and eventItem.rruleset is not None: # no recurrenceId or rruleset, but the existing item # may have recurrence, so delete it eventItem.removeRecurrence() for attr, val in changesDict.iteritems(): # Only change a datetime if it's really different # from what the item already has: if type(val) is datetime.datetime: oldValue = getattr(eventItem.itsItem, attr, None) if (oldValue is not None and oldValue == val and oldValue.tzinfo == val.tzinfo): continue itemChangeCallback(eventItem, attr, val) for (attr, val) in changeLast: itemChangeCallback(eventItem, attr, val) if DEBUG: logger.debug(u"Imported %s %s" % (eventItem.summary, eventItem.startTime)) if updateCallback: msg="'%s'" % eventItem.itsItem.displayName # the work parameter tells the callback whether progress # should be tracked, this only makes sense if we might have # more than one event. cancelled = updateCallback(msg=msg, work=monolithic) if cancelled: raise errors.SharingError(_(u"Cancelled by user")) # finished creating the item itemlist.append(eventItem) except errors.SharingError: raise except Exception, e: if __debug__: raise else: logger.exception("import failed to import one event with \ exception: %s" % str(e)) else: # an empty ics file, what to do? pass logger.info("...iCalendar import of %d new items, %d updated" % \ (countNew, countUpdated)) return itemlist, calname
|
910fb088cbae4110331d1d5156af17d02e461fdf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/910fb088cbae4110331d1d5156af17d02e461fdf/ICalendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
1265,
58,
921,
12,
1945,
16,
977,
16,
12270,
56,
94,
1376,
273,
599,
16,
3415,
273,
599,
16,
6921,
355,
483,
335,
273,
1053,
16,
1089,
2428,
33,
7036,
16,
3177,
33,
7036,
4672,
3536,
17129,
279,
533,
16,
752,
578,
1089,
1516,
628,
716,
1407,
18,
225,
1021,
3415,
1237,
353,
392,
3129,
3102,
434,
1677,
358,
486,
6490,
18,
225,
6921,
355,
483,
335,
353,
1053,
364,
5686,
87,
716,
2026,
912,
3229,
2641,
16,
364,
3596,
17735,
24123,
5686,
87,
903,
3712,
912,
1245,
871,
261,
1711,
26478,
25939,
13,
1427,
6921,
355,
483,
335,
903,
506,
1083,
364,
3596,
17735,
18,
225,
2000,
353,
279,
3193,
261,
1726,
1098,
16,
1443,
529,
2934,
225,
3536,
26536,
3054,
273,
1476,
18,
4720,
743,
2932,
759,
1355,
892,
7923,
225,
1056,
1908,
273,
374,
1056,
7381,
273,
374,
225,
761,
1098,
273,
5378,
225,
1443,
529,
273,
599,
225,
468,
7401,
1879,
5686,
87,
16,
11234,
1338,
1245,
16,
1496,
1898,
854,
2935,
364,
5686,
316,
331,
1612,
18,
896,
7171,
12,
955,
16,
1954,
33,
8381,
16,
2305,
984,
11018,
33,
5510,
4672,
11544,
3183,
273,
5378,
225,
468,
2537,
11086,
326,
1122,
5686,
508,
309,
1443,
529,
353,
599,
30,
1443,
529,
273,
5686,
18,
588,
1763,
620,
2668,
92,
67,
91,
86,
67,
771,
529,
6134,
225,
1831,
58,
5989,
273,
3869,
12,
11650,
16,
296,
537,
616,
67,
1098,
2187,
5378,
13,
818,
58,
5989,
273,
562,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1516,
1265,
58,
921,
12,
1945,
16,
977,
16,
12270,
56,
94,
1376,
273,
599,
16,
3415,
273,
599,
16,
6921,
355,
483,
335,
273,
1053,
16,
1089,
2428,
33,
7036,
16,
3177,
33,
7036,
4672,
3536,
17129,
279,
533,
16,
752,
578,
1089,
1516,
628,
716,
1407,
18,
225,
1021,
3415,
1237,
353,
392,
3129,
3102,
434,
1677,
358,
486,
6490,
18,
225,
6921,
355,
483,
335,
353,
1053,
364,
5686,
87,
716,
2026,
912,
3229,
2641,
16,
364,
3596,
17735,
24123,
5686,
87,
903,
3712,
912,
1245,
871,
261,
1711,
26478,
25939,
13,
1427,
6921,
355,
483,
335,
903,
506,
1083,
364,
3596,
17735,
18,
225,
2000,
353,
279,
3193,
261,
1726,
1098,
16,
1443,
529,
2
] |
'rise_time', 'rise_az', 'transit_time', 'transit_alt', 'set_time', 'set_az')),
|
'circumpolar', 'neverup', 'rise_time', 'rise_az', 'transit_time', 'transit_alt', 'set_time', 'set_az')),
|
def test_date_triple_value(self): self.assertEqual(self.date.tuple(), (2004, 9, 4, 0, 17, 15.799999977461994))
|
29e273d0578cb8697386bc3cfef1ac3c53b22c84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10979/29e273d0578cb8697386bc3cfef1ac3c53b22c84/run.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
712,
67,
313,
2444,
67,
1132,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
712,
18,
8052,
9334,
261,
6976,
24,
16,
2468,
16,
1059,
16,
374,
16,
8043,
16,
4711,
18,
27,
22866,
4700,
8749,
19818,
24,
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,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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,
1842,
67,
712,
67,
313,
2444,
67,
1132,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2890,
18,
712,
18,
8052,
9334,
261,
6976,
24,
16,
2468,
16,
1059,
16,
374,
16,
8043,
16,
4711,
18,
27,
22866,
4700,
8749,
19818,
24,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cr.execute('select c.id from crm_case c left join project_task t on c.id=t.case_id left join project_project p on p.id=t.project_id where c.section_id=p.section_feature_id and p.id=%s',(project_id,))
|
cr.execute('select c.id from crm_case c left join project_project p on p.id=c.project_id where c.section_id=p.section_feature_id and p.id=%s',(project_id,))
|
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False): if context is None: context = {} if context.has_key('project_id') and context['project_id']: project_id = context['project_id'] else: project_ids = self.pool.get('project.project').search(cr, uid, [('manager', '=', uid)]) project_id = project_ids and project_ids[0]
|
63aca3f99a9c76ca2e99c049a801f7d6f1039030 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/63aca3f99a9c76ca2e99c049a801f7d6f1039030/portal_project.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
819,
18,
5332,
67,
856,
2668,
4406,
67,
350,
6134,
471,
819,
3292,
4406,
67,
350,
3546,
30,
1984,
67,
350,
273,
819,
3292,
4406,
67,
350,
3546,
469,
30,
1984,
67,
2232,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4406,
16063,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
4181,
2187,
15196,
2187,
4555,
13,
5717,
1984,
67,
350,
273,
1984,
67,
2232,
471,
1984,
67,
2232,
63,
20,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1623,
12,
2890,
16,
4422,
16,
4555,
16,
833,
16,
1384,
33,
20,
16,
1800,
33,
7036,
16,
1353,
33,
7036,
16,
819,
33,
7036,
16,
1056,
33,
8381,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
309,
819,
18,
5332,
67,
856,
2668,
4406,
67,
350,
6134,
471,
819,
3292,
4406,
67,
350,
3546,
30,
1984,
67,
350,
273,
819,
3292,
4406,
67,
350,
3546,
469,
30,
1984,
67,
2232,
273,
365,
18,
6011,
18,
588,
2668,
4406,
18,
4406,
16063,
3072,
12,
3353,
16,
4555,
16,
306,
2668,
4181,
2187,
15196,
2187,
4555,
13,
5717,
1984,
67,
350,
273,
1984,
67,
2232,
471,
1984,
67,
2232,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100
] |
del self.edges[self.data.getIndex(item)]
|
self.edges[self.data.getIndex(item)] = set()
|
def deleteEdges(self, item): del self.edges[self.data.getIndex(item)]
|
9d088ba22bc6a4b1157137ad462a17729911accd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/9d088ba22bc6a4b1157137ad462a17729911accd/graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1430,
10697,
12,
2890,
16,
761,
4672,
1464,
365,
18,
8746,
63,
2890,
18,
892,
18,
588,
1016,
12,
1726,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1430,
10697,
12,
2890,
16,
761,
4672,
1464,
365,
18,
8746,
63,
2890,
18,
892,
18,
588,
1016,
12,
1726,
25887,
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
] |
if not self.pnav.playService(ref):
|
if self.pnav and not self.pnav.playService(ref):
|
def playService(self, ref): print "playing", ref.toString() self.currentlyPlayingServiceReference = None self.currentlyPlayingService = None if ref is None: self.stopService() return 0 if not self.pnav.playService(ref): self.currentlyPlayingServiceReference = ref return 0 return 1
|
0056054b80fede7d4c92f83033ba33159ea861ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/0056054b80fede7d4c92f83033ba33159ea861ef/Navigation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6599,
1179,
12,
2890,
16,
1278,
4672,
1172,
315,
1601,
310,
3113,
1278,
18,
10492,
1435,
365,
18,
2972,
715,
11765,
310,
1179,
2404,
273,
599,
365,
18,
2972,
715,
11765,
310,
1179,
273,
599,
309,
1278,
353,
599,
30,
365,
18,
5681,
1179,
1435,
327,
374,
225,
309,
365,
18,
7449,
842,
471,
486,
365,
18,
7449,
842,
18,
1601,
1179,
12,
1734,
4672,
365,
18,
2972,
715,
11765,
310,
1179,
2404,
273,
1278,
327,
374,
327,
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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309,
1278,
353,
599,
30,
365,
18,
5681,
1179,
1435,
327,
374,
225,
309,
365,
18,
7449,
842,
471,
486,
365,
18,
7449,
842,
18,
1601,
1179,
12,
1734,
4672,
365,
18,
2972,
715,
11765,
310,
1179,
2404,
273,
1278,
327,
374,
327,
404,
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
] |
manufacturer_name = currLnb.unicableLnbManufacturer.value manufacturer = currLnb.unicableLnb[manufacturer_name] product_name = manufacturer.product.value sec.setLNBSatCR(manufacturer.scr[product_name].index) sec.setLNBSatCRvco(manufacturer.vco[product_name][manufacturer.scr[product_name].index].value*1000) sec.setLNBSatCRpositions(manufacturer.positions[product_name][0].value) sec.setLNBLOFL(manufacturer.lofl[product_name][0].value * 1000) sec.setLNBLOFH(manufacturer.lofh[product_name][0].value * 1000) sec.setLNBThreshold(manufacturer.loft[product_name][0].value * 1000) currLnb.unicableLnbManufacturer.save_forced = True manufacturer.product.save_forced = True manufacturer.vco[product_name][manufacturer.scr[product_name].index].save_forced = True
|
setupUnicable(currLnb.unicableLnbManufacturer, currLnb.unicableLnb)
|
def updateAdvanced(self, sec, slotid): try: if config.Nims[slotid].advanced.unicableconnected is not None: if config.Nims[slotid].advanced.unicableconnected.value == True: config.Nims[slotid].advanced.unicableconnectedTo.save_forced = True self.linkNIMs(sec, slotid, int(config.Nims[slotid].advanced.unicableconnectedTo.value)) connto = self.getRoot(slotid, int(config.Nims[slotid].advanced.unicableconnectedTo.value)) if not self.linked.has_key(connto): self.linked[connto] = [] self.linked[connto].append(slotid) else: config.Nims[slotid].advanced.unicableconnectedTo.save_forced = False except: pass
|
a39ea95f5376d25874ebfbae8f10b9e6761f368b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6652/a39ea95f5376d25874ebfbae8f10b9e6761f368b/NimManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
1428,
16,
4694,
350,
4672,
775,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
353,
486,
599,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
18,
1132,
422,
1053,
30,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
5688,
67,
19778,
273,
1053,
365,
18,
1232,
50,
3445,
87,
12,
3321,
16,
4694,
350,
16,
509,
12,
1425,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
1132,
3719,
356,
496,
83,
273,
365,
18,
588,
2375,
12,
14194,
350,
16,
509,
12,
1425,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
1132,
3719,
309,
486,
365,
18,
17738,
18,
5332,
67,
856,
12,
591,
496,
83,
4672,
365,
18,
17738,
63,
591,
496,
83,
65,
273,
5378,
365,
18,
17738,
63,
591,
496,
83,
8009,
6923,
12,
14194,
350,
13,
469,
30,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
5688,
67,
19778,
273,
1083,
1335,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
1428,
16,
4694,
350,
4672,
775,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
353,
486,
599,
30,
309,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
18,
1132,
422,
1053,
30,
642,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
5688,
67,
19778,
273,
1053,
365,
18,
1232,
50,
3445,
87,
12,
3321,
16,
4694,
350,
16,
509,
12,
1425,
18,
50,
12097,
63,
14194,
350,
8009,
27080,
18,
318,
335,
429,
8537,
774,
18,
1132,
3719,
356,
496,
83,
273,
365,
18,
588,
2375,
12,
14194,
350,
16,
509,
12,
2
] |
self.model.updateHDF('GatedData', array(results), self.model.GetCurrentData())
|
self.model.updateHDF('GatedData', array(results), self.data)
|
def Gate(self, event): """Capture events inside drawn gates.""" results = [] for i, d in enumerate(self.data): if self.widget.p.PointInPoly((self.widget.x[i], self.widget.y[i])): results.append(d) self.model.updateHDF('GatedData', array(results), self.model.GetCurrentData())
|
bd65074dba40f66821484c6b67decd8d89c6cd29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9486/bd65074dba40f66821484c6b67decd8d89c6cd29/Main.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31045,
12,
2890,
16,
871,
4672,
3536,
12372,
2641,
4832,
19377,
314,
815,
12123,
1686,
273,
5378,
364,
277,
16,
302,
316,
4241,
12,
2890,
18,
892,
4672,
309,
365,
18,
6587,
18,
84,
18,
2148,
382,
12487,
12443,
2890,
18,
6587,
18,
92,
63,
77,
6487,
365,
18,
6587,
18,
93,
63,
77,
22643,
30,
1686,
18,
6923,
12,
72,
13,
365,
18,
2284,
18,
2725,
44,
4577,
2668,
43,
690,
751,
2187,
526,
12,
4717,
3631,
365,
18,
2284,
18,
967,
3935,
751,
10756,
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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12443,
2890,
18,
6587,
18,
92,
63,
77,
6487,
365,
18,
6587,
18,
93,
63,
77,
22643,
30,
1686,
18,
6923,
12,
72,
13,
365,
18,
2284,
18,
2725,
44,
4577,
2668,
43,
690,
751,
2187,
526,
12,
4717,
3631,
365,
18,
2284,
18,
967,
3935,
751,
10756,
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
] |
while True:
|
while 1:
|
def gammavariate(self, alpha, beta): """Gamma distribution. Not the gamma function!
|
4aa9408036856a9acf52e0804055e17317b4e3e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4aa9408036856a9acf52e0804055e17317b4e3e6/random.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23411,
20689,
297,
3840,
12,
2890,
16,
4190,
16,
6796,
4672,
3536,
31300,
7006,
18,
225,
2288,
326,
9601,
445,
5,
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,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890,
16,
4190,
16,
6796,
4672,
3536,
31300,
7006,
18,
225,
2288,
326,
9601,
445,
5,
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
] |
@property
|
@LazyProperty
|
def parents(self): return tuple(GitCommit.from_git(c, self._repo) for c in self._impl.parents)
|
070f74b5fddedf2600b11432b466e911e5ca2165 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1036/070f74b5fddedf2600b11432b466e911e5ca2165/git_repo.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6298,
12,
2890,
4672,
327,
3193,
12,
11540,
5580,
18,
2080,
67,
6845,
12,
71,
16,
365,
6315,
7422,
13,
364,
276,
316,
365,
6315,
11299,
18,
12606,
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,
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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,
6298,
12,
2890,
4672,
327,
3193,
12,
11540,
5580,
18,
2080,
67,
6845,
12,
71,
16,
365,
6315,
7422,
13,
364,
276,
316,
365,
6315,
11299,
18,
12606,
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
] |
self.streams.get_selection().set_mode(gtk.SELECTION_MULTIPLE)
|
self.streams_selection.set_mode(gtk.SELECTION_MULTIPLE)
|
def __init__(self):
|
8cbdded67d2cd4af1d043eab95abc449dd591f9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2312/8cbdded67d2cd4af1d043eab95abc449dd591f9b/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.struct is None:
|
if not self.hasValidStructure():
|
def provideParamsForTemporaryMode(self, temporaryModeName): """ NOTE: This needs to be a general API method. There are situations when
|
5700be2a572d5c22a1bab6dab2a69ae2dd1cb005 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/5700be2a572d5c22a1bab6dab2a69ae2dd1cb005/BuildDna_EditCommand.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5615,
1370,
1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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5615,
1370,
1290,
11685,
2309,
12,
2890,
16,
6269,
2309,
461,
4672,
3536,
5219,
30,
1220,
4260,
358,
506,
279,
7470,
1491,
707,
18,
6149,
854,
28474,
1347,
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
] |
def __imul__(self, q2):
|
def __imul__(self, n):
|
def __imul__(self, q2): if type(n) in numTypes: self.setangle(n*self.angle) self.__reset() return self else: raise MulQuat
|
04ed189f6b763336eabc2aabefc37347c008ee88 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/04ed189f6b763336eabc2aabefc37347c008ee88/VQT.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
381,
332,
972,
12,
2890,
16,
290,
4672,
225,
309,
618,
12,
82,
13,
316,
818,
2016,
30,
365,
18,
542,
4341,
12,
82,
14,
2890,
18,
4341,
13,
365,
16186,
6208,
1435,
327,
365,
469,
30,
1002,
21640,
928,
270,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
381,
332,
972,
12,
2890,
16,
290,
4672,
225,
309,
618,
12,
82,
13,
316,
818,
2016,
30,
365,
18,
542,
4341,
12,
82,
14,
2890,
18,
4341,
13,
365,
16186,
6208,
1435,
327,
365,
469,
30,
1002,
21640,
928,
270,
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
] |
None, c_int
|
_ret_lc_concord()
|
# typedef void (*lc_callback)(uint32_t, uint32_t, uint32_t, void*);
|
252469d959d952d07c6c2b796be96c97a8628abc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3138/252469d959d952d07c6c2b796be96c97a8628abc/libconcord.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
618,
536,
918,
261,
14,
17704,
67,
3394,
21433,
11890,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
2254,
1578,
67,
88,
16,
918,
14,
1769,
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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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.content.close()
|
def lineReceived(self, line): if self.debug: print '<<< ' + line[0:10], self.state
|
6ead6621eb892376303c2cd683a7c082744f2f1d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/6ead6621eb892376303c2cd683a7c082744f2f1d/test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
980,
8872,
12,
2890,
16,
980,
4672,
309,
365,
18,
4148,
30,
1172,
2368,
17685,
296,
397,
980,
63,
20,
30,
2163,
6487,
365,
18,
2019,
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,
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
18,
4148,
30,
1172,
2368,
17685,
296,
397,
980,
63,
20,
30,
2163,
6487,
365,
18,
2019,
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
] |
|
st = obspy.read(fseedfile)
|
st = read(fseedfile)
|
def test_saveCompressedWaveform(self): """ """ mseedfile = NamedTemporaryFile().name fseedfile = NamedTemporaryFile().name # initialize client client = Client() start = UTCDateTime(2008, 1, 1) end = start + 1 # MiniSEED client.saveWaveform(mseedfile, 'BW', 'MANZ', '', 'EHZ', start, end, compressed=False) stats = os.stat(mseedfile) st = obspy.read(mseedfile) self.assertEquals(stats.st_size, 1024) # ArcLink cuts on record base self.assertTrue(st[0].stats.starttime <= start) self.assertTrue(st[0].stats.endtime >= end) self.assertEquals(st[0].stats.network, 'BW') self.assertEquals(st[0].stats.station, 'MANZ') self.assertEquals(st[0].stats.location, '') self.assertEquals(st[0].stats.channel, 'EHZ') os.remove(mseedfile) # Full SEED client.saveWaveform(fseedfile, 'BW', 'MANZ', '', 'EHZ', start, end, format='FSEED') stats = os.stat(fseedfile) st = obspy.read(fseedfile) self.assertTrue(stats.st_size > 1024) self.assertEquals(open(fseedfile).read(8), "000001V ") # ArcLink cuts on record base self.assertTrue(st[0].stats.starttime <= start) self.assertTrue(st[0].stats.endtime >= end) self.assertEquals(st[0].stats.network, 'BW') self.assertEquals(st[0].stats.station, 'MANZ') self.assertEquals(st[0].stats.location, '') self.assertEquals(st[0].stats.channel, 'EHZ') os.remove(fseedfile)
|
947320f8ec777bd92bf28a04ec93bbc08a261511 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/947320f8ec777bd92bf28a04ec93bbc08a261511/test_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5688,
16841,
22368,
687,
12,
2890,
4672,
3536,
3536,
312,
12407,
768,
273,
27555,
7675,
529,
284,
12407,
768,
273,
27555,
7675,
529,
468,
4046,
1004,
1004,
273,
2445,
1435,
787,
273,
9951,
5096,
12,
6976,
28,
16,
404,
16,
404,
13,
679,
273,
787,
397,
404,
468,
27987,
1090,
2056,
1004,
18,
5688,
22368,
687,
12,
81,
12407,
768,
16,
296,
38,
59,
2187,
296,
9560,
62,
2187,
10226,
296,
41,
44,
62,
2187,
787,
16,
679,
16,
8968,
33,
8381,
13,
3177,
273,
1140,
18,
5642,
12,
81,
12407,
768,
13,
384,
273,
3768,
30884,
18,
896,
12,
81,
12407,
768,
13,
365,
18,
11231,
8867,
12,
5296,
18,
334,
67,
1467,
16,
6250,
13,
468,
24881,
2098,
6391,
87,
603,
1409,
1026,
365,
18,
11231,
5510,
12,
334,
63,
20,
8009,
5296,
18,
1937,
957,
1648,
787,
13,
365,
18,
11231,
5510,
12,
334,
63,
20,
8009,
5296,
18,
409,
957,
1545,
679,
13,
365,
18,
11231,
8867,
12,
334,
63,
20,
8009,
5296,
18,
5185,
16,
296,
38,
59,
6134,
365,
18,
11231,
8867,
12,
334,
63,
20,
8009,
5296,
18,
17894,
16,
296,
9560,
62,
6134,
365,
18,
11231,
8867,
12,
334,
63,
20,
8009,
5296,
18,
3562,
16,
28707,
365,
18,
11231,
8867,
12,
334,
63,
20,
8009,
5296,
18,
4327,
16,
296,
41,
44,
62,
6134,
1140,
18,
4479,
12,
81,
12407,
768,
13,
468,
11692,
3174,
2056,
1004,
18,
5688,
22368,
687,
12,
74,
12407,
768,
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,
67,
5688,
16841,
22368,
687,
12,
2890,
4672,
3536,
3536,
312,
12407,
768,
273,
27555,
7675,
529,
284,
12407,
768,
273,
27555,
7675,
529,
468,
4046,
1004,
1004,
273,
2445,
1435,
787,
273,
9951,
5096,
12,
6976,
28,
16,
404,
16,
404,
13,
679,
273,
787,
397,
404,
468,
27987,
1090,
2056,
1004,
18,
5688,
22368,
687,
12,
81,
12407,
768,
16,
296,
38,
59,
2187,
296,
9560,
62,
2187,
10226,
296,
41,
44,
62,
2187,
787,
16,
679,
16,
8968,
33,
8381,
13,
3177,
273,
1140,
18,
5642,
12,
81,
12407,
768,
13,
384,
273,
3768,
30884,
18,
896,
12,
81,
12407,
768,
13,
365,
18,
11231,
8867,
12,
5296,
18,
334,
67,
1467,
16,
6250,
2
] |
FILE.write("export LD_LIBRARY_PATH")
|
FILE.write("export LD_LIBRARY_PATH\n")
|
def progress(blocks, blocksize, total): ESC = chr(27); sys.stdout.write(ESC + '[2K' + ESC+'[G') text = " %i of %i bytes (%.0f percent) complete" % (blocks*blocksize, total, float(blocks*blocksize*100)/total) sys.stdout.write(text + '\x08'*len(text)) sys.stdout.flush()
|
5ff66dc64e37f9a7c6636b5707a4985d48a30bea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5491/5ff66dc64e37f9a7c6636b5707a4985d48a30bea/getbuildtest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
977,
273,
315,
738,
77,
434,
738,
77,
1731,
6142,
18,
20,
74,
5551,
13,
3912,
6,
738,
261,
7996,
14,
2629,
1467,
16,
2078,
16,
1431,
12,
7996,
14,
2629,
1467,
14,
6625,
13176,
4963,
13,
2589,
18,
10283,
18,
2626,
12,
955,
397,
2337,
92,
6840,
11,
14,
1897,
12,
955,
3719,
2589,
18,
10283,
18,
11330,
1435,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4007,
12,
7996,
16,
18440,
16,
2078,
4672,
512,
2312,
273,
4513,
12,
5324,
1769,
2589,
18,
10283,
18,
2626,
12,
41,
2312,
397,
5271,
22,
47,
11,
397,
512,
2312,
6797,
63,
43,
6134,
977,
273,
315,
738,
77,
434,
738,
77,
1731,
6142,
18,
20,
74,
5551,
13,
3912,
6,
738,
261,
7996,
14,
2629,
1467,
16,
2078,
16,
1431,
12,
7996,
14,
2629,
1467,
14,
6625,
13176,
4963,
13,
2589,
18,
10283,
18,
2626,
12,
955,
397,
2337,
92,
6840,
11,
14,
1897,
12,
955,
3719,
2589,
18,
10283,
18,
11330,
1435,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
logging.info('Found %d entries', len(d))
|
def read_rss(self, url): logging.info('Read RSS: %s', url) if url not in rss_cache: logging.info('Feed URL not in cache, requesting...') xml = httpget(url) progs = listparser.parse(xml) if not progs: return [] d = [] for entry in progs.entries: pid = parse_entry_id(entry.id) p = programme(pid) d.append(p) logging.info('Found %d entries', len(d)) rss_cache[url] = d else: logging.info('RSS found in cache') return rss_cache[url]
|
e9308323abd7d76cee674599e87bde273bc1afa0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11070/e9308323abd7d76cee674599e87bde273bc1afa0/iplayer2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
25151,
12,
2890,
16,
880,
4672,
2907,
18,
1376,
2668,
1994,
31481,
30,
738,
87,
2187,
880,
13,
309,
880,
486,
316,
18817,
67,
2493,
30,
2907,
18,
1376,
2668,
8141,
1976,
486,
316,
1247,
16,
18709,
7821,
13,
2025,
273,
1062,
588,
12,
718,
13,
450,
564,
273,
666,
4288,
18,
2670,
12,
2902,
13,
309,
486,
450,
564,
30,
327,
5378,
302,
273,
5378,
364,
1241,
316,
450,
564,
18,
8219,
30,
4231,
273,
1109,
67,
4099,
67,
350,
12,
4099,
18,
350,
13,
293,
273,
5402,
3501,
12,
6610,
13,
302,
18,
6923,
12,
84,
13,
225,
18817,
67,
2493,
63,
718,
65,
273,
302,
469,
30,
2907,
18,
1376,
2668,
31211,
1392,
316,
1247,
6134,
327,
18817,
67,
2493,
63,
718,
65,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
25151,
12,
2890,
16,
880,
4672,
2907,
18,
1376,
2668,
1994,
31481,
30,
738,
87,
2187,
880,
13,
309,
880,
486,
316,
18817,
67,
2493,
30,
2907,
18,
1376,
2668,
8141,
1976,
486,
316,
1247,
16,
18709,
7821,
13,
2025,
273,
1062,
588,
12,
718,
13,
450,
564,
273,
666,
4288,
18,
2670,
12,
2902,
13,
309,
486,
450,
564,
30,
327,
5378,
302,
273,
5378,
364,
1241,
316,
450,
564,
18,
8219,
30,
4231,
273,
1109,
67,
4099,
67,
350,
12,
4099,
18,
350,
13,
293,
273,
5402,
3501,
12,
6610,
13,
302,
18,
6923,
12,
84,
13,
225,
18817,
67,
2493,
63,
718,
65,
273,
302,
469,
30,
2907,
18,
1376,
2668,
31211,
1392,
2
] |
|
True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain`
|
Returns ``True`` if the last :meth:`two_descent()` call provably correctly computed the rank. If :meth:`two_descent()` hasn't been called, then it is first called by :meth:`certain()`
|
def certain(self): r""" True if the last :meth:`two_descent` call provably correctly computed the rank. If :meth:`two_descent` hasn't been called, then it is first called by :meth:`certain` using the default parameters.
|
8b53e056cc765e689493ec9632c441ee03a3206a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/8b53e056cc765e689493ec9632c441ee03a3206a/interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8626,
12,
2890,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
13342,
1404,
2118,
2566,
16,
1508,
518,
353,
1122,
2566,
635,
294,
27305,
28288,
7593,
530,
20338,
1450,
326,
805,
1472,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8626,
12,
2890,
4672,
436,
8395,
2860,
12176,
5510,
10335,
309,
326,
1142,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
745,
17197,
6906,
8783,
8470,
326,
6171,
18,
225,
971,
294,
27305,
28288,
15415,
67,
5569,
319,
20338,
13342,
1404,
2118,
2566,
16,
1508,
518,
353,
1122,
2566,
635,
294,
27305,
28288,
7593,
530,
20338,
1450,
326,
805,
1472,
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
] |
if isinstance(obj, (bool, int, type(None), str)):
|
if isinstance(obj, (int, type(None), str)):
|
def writelisp(gen, obj): if isinstance(obj, (bool, int, type(None), str)): return gen.conv(obj) if isinstance(obj, (tuple, list)): content = ' '.join([writelisp(gen, elt) for elt in obj]) content = '(' + content + ')' if isinstance(obj, list): content = '#' + content elif isinstance(obj, tuple): content = "'" + content # quote Lisp list return content
|
46b28c8726a105cc59a8bd0d02e62eaa5959c42d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/46b28c8726a105cc59a8bd0d02e62eaa5959c42d/buildcl.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6004,
23831,
12,
4507,
16,
1081,
4672,
225,
309,
1549,
12,
2603,
16,
261,
474,
16,
618,
12,
7036,
3631,
609,
3719,
30,
327,
3157,
18,
4896,
12,
2603,
13,
309,
1549,
12,
2603,
16,
261,
8052,
16,
666,
3719,
30,
913,
273,
296,
2418,
5701,
3816,
5363,
12138,
84,
12,
4507,
16,
11572,
13,
364,
11572,
316,
1081,
5717,
913,
273,
7321,
397,
913,
397,
5777,
309,
1549,
12,
2603,
16,
666,
4672,
913,
273,
6501,
397,
913,
1327,
1549,
12,
2603,
16,
3193,
4672,
913,
273,
5862,
397,
913,
468,
3862,
511,
23831,
666,
327,
913,
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,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16,
618,
12,
7036,
3631,
609,
3719,
30,
327,
3157,
18,
4896,
12,
2603,
13,
309,
1549,
12,
2603,
16,
261,
8052,
16,
666,
3719,
30,
913,
273,
296,
2418,
5701,
3816,
5363,
12138,
84,
12,
4507,
16,
11572,
13,
364,
11572,
316,
1081,
5717,
913,
273,
7321,
397,
913,
397,
5777,
309,
1549,
12,
2603,
16,
666,
4672,
913,
273,
6501,
397,
913,
1327,
1549,
12,
2603,
16,
3193,
4672,
913,
273,
5862,
397,
913,
468,
3862,
511,
23831,
666,
327,
913,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.__usertag = job.get_config('pipeline','user-tag')
|
try: self.__usertag = job.get_config('pipeline','user-tag') self.add_var_opt("user-tag", self.__usertag) except: self.__usertag = None def set_user_tag(self, tag): self.__usertag = tag self.add_var_opt("user-tag", self.__usertag) def get_user_tag(self): return self.__usertag
|
def __init__(self,job): """ job = A CondorDAGJob that can run an instance of lalapps_power. """ pipeline.CondorDAGNode.__init__(self,job) pipeline.AnalysisNode.__init__(self) self.__usertag = job.get_config('pipeline','user-tag')
|
504dbdcdef43a70205d21b8d04e8ea73ca5cabfa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/504dbdcdef43a70205d21b8d04e8ea73ca5cabfa/power.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
3536,
1719,
273,
432,
735,
72,
280,
40,
1781,
2278,
716,
848,
1086,
392,
791,
434,
328,
287,
11411,
67,
12238,
18,
3536,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
2890,
16,
4688,
13,
5873,
18,
9418,
907,
16186,
2738,
972,
12,
2890,
13,
365,
16186,
407,
1051,
346,
273,
1719,
18,
588,
67,
1425,
2668,
14511,
17023,
1355,
17,
2692,
6134,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4688,
4672,
3536,
1719,
273,
432,
735,
72,
280,
40,
1781,
2278,
716,
848,
1086,
392,
791,
434,
328,
287,
11411,
67,
12238,
18,
3536,
5873,
18,
12441,
280,
40,
1781,
907,
16186,
2738,
972,
12,
2890,
16,
4688,
13,
5873,
18,
9418,
907,
16186,
2738,
972,
12,
2890,
13,
365,
16186,
407,
1051,
346,
273,
1719,
18,
588,
67,
1425,
2668,
14511,
17023,
1355,
17,
2692,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.setFaceType( KPageDialog.Tabbed )
|
def __init__(self,parent,admincontext): #KDialogBase.__init__(self,KJanusWidget.Tabbed,i18n("User Account"),KDialogBase.Ok|KDialogBase.Cancel, #KDialogBase.Cancel,parent) KPageDialog.__init__( self, parent ) if os.path.exists('ui/userproperties.ui'): self.up = uic.loadUi('ui/userproperties.ui', self) self.setFaceType( KPageDialog.Tabbed ) #self.setObjectName( name ) self.up.setModal( True )
|
eb812f938fe74be7d359e6fa9fcc28e3d8c3b025 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1669/eb812f938fe74be7d359e6fa9fcc28e3d8c3b025/user.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
3666,
2472,
4672,
468,
47,
6353,
2171,
16186,
2738,
972,
12,
2890,
16,
47,
46,
304,
407,
4609,
18,
5661,
2992,
16,
77,
2643,
82,
2932,
1299,
6590,
6,
3631,
47,
6353,
2171,
18,
8809,
96,
47,
6353,
2171,
18,
6691,
16,
468,
47,
6353,
2171,
18,
6691,
16,
2938,
13,
1475,
1964,
6353,
16186,
2738,
972,
12,
365,
16,
982,
262,
309,
1140,
18,
803,
18,
1808,
2668,
4881,
19,
1355,
4738,
18,
4881,
11,
4672,
365,
18,
416,
273,
582,
335,
18,
945,
13943,
2668,
4881,
19,
1355,
4738,
18,
4881,
2187,
365,
13,
468,
2890,
18,
542,
16707,
12,
508,
262,
365,
18,
416,
18,
542,
20191,
12,
1053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2938,
16,
3666,
2472,
4672,
468,
47,
6353,
2171,
16186,
2738,
972,
12,
2890,
16,
47,
46,
304,
407,
4609,
18,
5661,
2992,
16,
77,
2643,
82,
2932,
1299,
6590,
6,
3631,
47,
6353,
2171,
18,
8809,
96,
47,
6353,
2171,
18,
6691,
16,
468,
47,
6353,
2171,
18,
6691,
16,
2938,
13,
1475,
1964,
6353,
16186,
2738,
972,
12,
365,
16,
982,
262,
309,
1140,
18,
803,
18,
1808,
2668,
4881,
19,
1355,
4738,
18,
4881,
11,
4672,
365,
18,
416,
273,
582,
335,
18,
945,
13943,
2668,
4881,
19,
1355,
4738,
18,
4881,
2187,
365,
13,
468,
2890,
18,
542,
16707,
12,
508,
262,
365,
18,
416,
18,
542,
20191,
2
] |
|
relTime = g_Player.getFrameTime() - self.__startTime
|
relTime = g_Player.getFrameTime() - self.__startTime - self.__holdDelay
|
def __onFrame(self): relTime = g_Player.getFrameTime() - self.__startTime if self.__state == HoldProcessor.DOWN: if relTime > self.__holdDelay: self.__changeState(HoldProcessor.HOLDING) if self.__state == HoldProcessor.HOLDING: if relTime > self.__activateDelay: self.__changeState(HoldProcessor.ACTIVE) else: self.__holdHandler(float(relTime)/self.__activateDelay)
|
b969b635def3d57083c9940a64e56e65a7fad331 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7300/b969b635def3d57083c9940a64e56e65a7fad331/manipulation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
265,
3219,
12,
2890,
4672,
1279,
950,
273,
314,
67,
12148,
18,
588,
3219,
950,
1435,
300,
365,
16186,
1937,
950,
300,
365,
16186,
21056,
6763,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
12711,
30,
309,
1279,
950,
405,
365,
16186,
21056,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
44,
11846,
1360,
13,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
44,
11846,
1360,
30,
309,
1279,
950,
405,
365,
16186,
10014,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
13301,
13,
469,
30,
365,
16186,
21056,
1503,
12,
5659,
12,
2878,
950,
13176,
2890,
16186,
10014,
6763,
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,
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16186,
1937,
950,
300,
365,
16186,
21056,
6763,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
12711,
30,
309,
1279,
950,
405,
365,
16186,
21056,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
44,
11846,
1360,
13,
309,
365,
16186,
2019,
422,
670,
1673,
5164,
18,
44,
11846,
1360,
30,
309,
1279,
950,
405,
365,
16186,
10014,
6763,
30,
365,
16186,
3427,
1119,
12,
20586,
5164,
18,
13301,
13,
469,
30,
365,
16186,
21056,
1503,
12,
5659,
12,
2878,
950,
13176,
2890,
16186,
10014,
6763,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.windowOffset = 0 self.windowLength = 0 self.titleOffset = 0 self.statusOffset = 0
|
def Setup(self, stack): Shell.Setup(self, stack)
|
2feab6381d2f848f7922d4f6309d8eab71ea112c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8026/2feab6381d2f848f7922d4f6309d8eab71ea112c/roguelike.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
12,
2890,
16,
2110,
4672,
19433,
18,
7365,
12,
2890,
16,
2110,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10939,
12,
2890,
16,
2110,
4672,
19433,
18,
7365,
12,
2890,
16,
2110,
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,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "bundled_files=", bundled_files
|
def find_libraries(library_dirs, libraries): files = [] for lib in libraries: for dir in library_dirs: if OP.exists(OP.join(dir, lib)): D.copy_file(OP.join(dir, lib), 'pyopencv') files.append(lib) break else: raise IOError("Library %s not found." % lib) return files
|
2edd5ea4850ecff5420885980b88542e4ecf7924 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4310/2edd5ea4850ecff5420885980b88542e4ecf7924/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
31417,
12,
12083,
67,
8291,
16,
14732,
4672,
1390,
273,
5378,
364,
2561,
316,
14732,
30,
364,
1577,
316,
5313,
67,
8291,
30,
309,
7247,
18,
1808,
12,
3665,
18,
5701,
12,
1214,
16,
2561,
3719,
30,
463,
18,
3530,
67,
768,
12,
3665,
18,
5701,
12,
1214,
16,
2561,
3631,
296,
2074,
556,
1331,
90,
6134,
1390,
18,
6923,
12,
2941,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
31417,
12,
12083,
67,
8291,
16,
14732,
4672,
1390,
273,
5378,
364,
2561,
316,
14732,
30,
364,
1577,
316,
5313,
67,
8291,
30,
309,
7247,
18,
1808,
12,
3665,
18,
5701,
12,
1214,
16,
2561,
3719,
30,
463,
18,
3530,
67,
768,
12,
3665,
18,
5701,
12,
1214,
16,
2561,
3631,
296,
2074,
556,
1331,
90,
6134,
1390,
18,
6923,
12,
2941,
13,
898,
469,
30,
1002,
8340,
2932,
9313,
738,
87,
486,
1392,
1199,
738,
2561,
13,
327,
1390,
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
] |
|
verify(complex(a).__class__ is complex)
|
veris(complex(a).__class__, complex)
|
def __repr__(self): return "%.17gj%+.17g" % (self.imag, self.real)
|
9479174c90f03a075db9a923423b21776350dabe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/9479174c90f03a075db9a923423b21776350dabe/test_descr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
26209,
4033,
75,
78,
9,
15,
18,
4033,
75,
6,
738,
261,
2890,
18,
15374,
16,
365,
18,
7688,
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
] |
if e.errno != EISDIR:
|
if e.errno not in (EISDIR, EINVAL, EACCES):
|
def loadTestsFromURL(self, url=None, file=None): if debug: print('loading url:', url)
|
45d6a82d48306bb446330e439e16eb3d28ab122d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7717/45d6a82d48306bb446330e439e16eb3d28ab122d/barcodetest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14650,
1265,
1785,
12,
2890,
16,
880,
33,
7036,
16,
585,
33,
7036,
4672,
309,
1198,
30,
1172,
2668,
15174,
880,
30,
2187,
880,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
14650,
1265,
1785,
12,
2890,
16,
880,
33,
7036,
16,
585,
33,
7036,
4672,
309,
1198,
30,
1172,
2668,
15174,
880,
30,
2187,
880,
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
] |
of all members of the group, according to the content of the
|
of all members of the group, according to the content of the
|
def skel(req, name, sure = False, apply_skel = configuration.users.default_skel): """ TO BE IMPLEMENTED ! reapply a user's skel with confirmation.""" users.reload() profiles.reload() groups.reload() title = _("Skeleton reapplying for group %s") % name data = '%s%s' % (w.backto(), __groups_actions(title)) if not sure: allusers = u.UsersList(configuration) allgroups = g.GroupsList(configuration, allusers) description = _('''This will reset the desktops, icons and menus of all members of the group, according to the content of the skel you choose. This will NOT alter any of the user personnal data, nor the group shared data.''') pri_group = allgroups.groups[allusers.users[users.UsersList.login_to_uid(login)]['gid']]['name'] # liste des skels du profile en cours. def filter_skels(pri_group, sk_list): ''' TODO: to be converted to licorn model if pri_group == configuration.mNames['RESPONSABLES_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['RESPONSABLES_GROUP']) != -1, sk_list) elif pri_group == configuration.mNames['USAGERS_GROUP']: return filter(lambda x: x.rfind("/%s/" % configuration.mNames['USAGERS_GROUP']) != -1, sk_list) else: ''' return sk_list form_options = _("Which skel do you wish to reapply to members of this group? %s") \ % w.select("apply_skel", filter_skels(pri_group, configuration.users.skels), func = os.path.basename) data += w.question( _("Are you sure you want to reapply this skel to all of the members of %s?") % login, description, yes_values = [ _("Apply") + ' >>', "/users/skel/%s/sure" % login, _("A") ], no_values = [ '<< ' + _("Cancel"), "/groups/list", _("N") ], form_options = form_options) return w.page(title, data) else: # we are sure, do it ! command = [ "sudo", "mod", "user", "--quiet", "--no-colors", "--login", login, '--apply-skel', skel ] return w.page(title, data + w.run(command, req, successfull_redirect = "/groups/list", err_msg = _("Failed to apply skel %s to members of group %s.") % (os.path.basename(apply_skel), login)))
|
e74a9415e90d5a3af83e10abed2f1876ae4e528a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/e74a9415e90d5a3af83e10abed2f1876ae4e528a/groups.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4343,
292,
12,
3658,
16,
508,
16,
3071,
273,
1083,
16,
2230,
67,
7771,
292,
273,
1664,
18,
5577,
18,
1886,
67,
7771,
292,
4672,
3536,
8493,
9722,
15694,
28485,
6404,
401,
283,
9010,
279,
729,
1807,
4343,
292,
598,
14296,
12123,
225,
3677,
18,
17517,
1435,
11788,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
28070,
283,
9010,
310,
364,
1041,
738,
87,
7923,
738,
508,
501,
225,
273,
1995,
87,
9,
87,
11,
738,
261,
91,
18,
823,
869,
9334,
1001,
4650,
67,
4905,
12,
2649,
3719,
225,
309,
486,
3071,
30,
777,
5577,
225,
273,
582,
18,
6588,
682,
12,
7025,
13,
777,
4650,
273,
314,
18,
3621,
682,
12,
7025,
16,
777,
5577,
13,
225,
2477,
273,
389,
2668,
6309,
2503,
903,
2715,
326,
21304,
87,
16,
17455,
471,
21374,
434,
777,
4833,
434,
326,
1041,
16,
4888,
358,
326,
913,
434,
326,
4343,
292,
1846,
9876,
18,
1220,
903,
4269,
10182,
1281,
434,
326,
729,
6175,
82,
287,
501,
16,
12517,
326,
1041,
5116,
501,
1093,
11,
6134,
225,
14705,
67,
1655,
273,
777,
4650,
18,
4650,
63,
454,
5577,
18,
5577,
63,
5577,
18,
6588,
682,
18,
5819,
67,
869,
67,
1911,
12,
5819,
13,
23962,
15780,
3546,
23962,
529,
3546,
225,
468,
31614,
2832,
4343,
10558,
9978,
3042,
570,
276,
4390,
18,
1652,
1034,
67,
7771,
10558,
12,
29112,
67,
1655,
16,
4343,
67,
1098,
4672,
9163,
2660,
30,
358,
506,
5970,
358,
328,
335,
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,
4343,
292,
12,
3658,
16,
508,
16,
3071,
273,
1083,
16,
2230,
67,
7771,
292,
273,
1664,
18,
5577,
18,
1886,
67,
7771,
292,
4672,
3536,
8493,
9722,
15694,
28485,
6404,
401,
283,
9010,
279,
729,
1807,
4343,
292,
598,
14296,
12123,
225,
3677,
18,
17517,
1435,
11788,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
2077,
273,
389,
2932,
28070,
283,
9010,
310,
364,
1041,
738,
87,
7923,
738,
508,
501,
225,
273,
1995,
87,
9,
87,
11,
738,
261,
91,
18,
823,
869,
9334,
1001,
4650,
67,
4905,
12,
2649,
3719,
225,
309,
486,
3071,
30,
777,
5577,
225,
273,
582,
18,
6588,
682,
12,
7025,
13,
777,
4650,
273,
314,
18,
3621,
682,
12,
7025,
2
] |
print """low confidence encoding detection, use utf8 encoding""" encoding = 'utf8' utest = test.decode(encoding) except UnicodeDecodeError, e: print "can't recognize your language, set to sys.stdout.encoding" utest = test.decode('utf8') except ImportError, e: if verbose: print "proceed no chardet mode" utest = test.decode('utf8') result = pythonWord.transformString(utest)
|
print "chardet", det if det['confidence'] >= 0.8: encoding = chardet.detect(text)['encoding'] else: if verbose: print """low confidence encoding detection, use utf8 encoding""" encoding = 'utf8' utext = text.decode(encoding) except UnicodeDecodeError, e: print "can't recognize your language, \ set to sys.stdout.encoding" utext = text.decode('utf8') except ImportError, e: if verbose: print "proceed no chardet mode" utext = text.decode('utf8') else: utext = text result = pythonWord.transformString(utext)
|
def convertor(test, verbose=False, encoding="", outcoding=""): """ convert zhpy source (Chinese) to Python Source. annotator will be called automatically.
|
544d69129cabeb48f747adc9fdf3d01ef7030fab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1969/544d69129cabeb48f747adc9fdf3d01ef7030fab/zhpy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
280,
12,
3813,
16,
3988,
33,
8381,
16,
2688,
1546,
3113,
596,
2014,
1546,
6,
4672,
3536,
1765,
30484,
2074,
1084,
261,
782,
25331,
13,
358,
6600,
4998,
18,
225,
6545,
639,
903,
506,
2566,
6635,
18,
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,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
280,
12,
3813,
16,
3988,
33,
8381,
16,
2688,
1546,
3113,
596,
2014,
1546,
6,
4672,
3536,
1765,
30484,
2074,
1084,
261,
782,
25331,
13,
358,
6600,
4998,
18,
225,
6545,
639,
903,
506,
2566,
6635,
18,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
box.apply(printer)
|
def test_box(): box = Box(Vector3(1,1,1)) box.apply(printer) eval_code(box)
|
5af742fb7bba9aa7cc5692e378c2cd775320b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/799/5af742fb7bba9aa7cc5692e378c2cd775320b880/test_pyprinter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2147,
13332,
3919,
273,
8549,
12,
5018,
23,
12,
21,
16,
21,
16,
21,
3719,
5302,
67,
710,
12,
2147,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2147,
13332,
3919,
273,
8549,
12,
5018,
23,
12,
21,
16,
21,
16,
21,
3719,
5302,
67,
710,
12,
2147,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.prev_boldrow <> -1: self.currentdata[self.prev_boldrow] = [self.currentdata[self.prev_boldrow][0], make_bold(self.currentdata[self.prev_boldrow][1])]
|
def searchfilter_loop(self): while self.filterbox_visible: # copy the last command or pattern safely self.filterbox_cond.acquire() while(self.filterbox_cmd_buf == '$$$DONE###'): self.filterbox_cond.wait() todo = self.filterbox_cmd_buf self.filterbox_cond.release() matches = gtk.ListStore(int, str) matches.clear() self.filterposition = self.current.get_visible_rect()[1] # Mapping between matches and self.currentdata rownum = 0 self.songs_filter_rownums = [] if todo == '$$$QUIT###': # bold current song, if there is one.. if self.prev_boldrow <> -1: self.currentdata[self.prev_boldrow] = [self.currentdata[self.prev_boldrow][0], make_bold(self.currentdata[self.prev_boldrow][1])] self.current.set_model(self.currentdata) gobject.idle_add(self.keep_song_visible_in_list) return elif len(todo) == 0: for row in self.currentdata: self.songs_filter_rownums.append(rownum) rownum = rownum + 1 matches = self.currentdata.filter_new() # unbold current song, if there is one.. if self.prev_boldrow <> -1: matches[self.prev_boldrow] = [matches[self.prev_boldrow][0], make_unbold(matches[self.prev_boldrow][1])] else: # this make take some seconds... todo = '.*' + todo.replace(' ', ' .*').lower() regexp = re.compile(todo) rownum = 0 if self.prevtodo in todo and len(self.prevtodo) > 0: # If the user's current filter is a subset of the # previous selection (e.g. "h" -> "ha"), search # for files only in the current model, not the # entire self.currentdata use_data = self.current.get_model() else: use_data = self.currentdata for row in use_data: song_id = row[0] song_name = make_unbold(row[1]) if regexp.match(song_name.lower()): matches.append([song_id, song_name]) self.songs_filter_rownums.append(rownum) rownum = rownum + 1 if self.prevtodo == todo: # mpd update, retain view of treeview: retain_top_pos = True else: retain_top_pos = False self.filterbox_cond.acquire() self.filterbox_cmd_buf='$$$DONE###' self.filterbox_cond.release() gobject.idle_add(self.searchfilter_set_matches, matches, retain_top_pos) self.prevtodo = todo
|
19ea9c9d8238dd2a787965ed962a5c16ea21d13c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2312/19ea9c9d8238dd2a787965ed962a5c16ea21d13c/sonata.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
1323,
12,
2890,
18,
2188,
2147,
67,
4172,
67,
4385,
422,
3365,
16547,
26875,
1189,
10038,
4672,
365,
18,
2188,
2147,
67,
10013,
18,
7048,
1435,
10621,
273,
365,
18,
2188,
2147,
67,
4172,
67,
4385,
365,
18,
2188,
2147,
67,
10013,
18,
9340,
1435,
1885,
273,
22718,
18,
682,
2257,
12,
474,
16,
609,
13,
1885,
18,
8507,
1435,
365,
18,
2188,
3276,
273,
365,
18,
2972,
18,
588,
67,
8613,
67,
2607,
1435,
63,
21,
65,
468,
9408,
3086,
1885,
471,
365,
18,
2972,
892,
1027,
2107,
273,
374,
365,
18,
816,
564,
67,
2188,
67,
492,
21180,
273,
5378,
309,
10621,
422,
3365,
16547,
3500,
1285,
13151,
4278,
468,
13068,
783,
17180,
16,
309,
1915,
353,
1245,
838,
2890,
18,
2972,
18,
542,
67,
2284,
12,
2890,
18,
2972,
892,
13,
314,
1612,
18,
20390,
67,
1289,
12,
2890,
18,
10102,
67,
816,
75,
67,
8613,
67,
267,
67,
1098,
13,
327,
1327,
562,
12,
9012,
13,
422,
374,
30,
364,
1027,
316,
365,
18,
2972,
892,
30,
365,
18,
816,
564,
67,
2188,
67,
492,
21180,
18,
6923,
12,
492,
2107,
13,
1027,
2107,
273,
1027,
2107,
397,
404,
1885,
273,
365,
18,
2972,
892,
18,
2188,
67,
2704,
1435,
468,
640,
16390,
783,
17180,
16,
309,
1915,
353,
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,
1623,
2188,
67,
6498,
12,
2890,
4672,
1323,
365,
18,
2188,
2147,
67,
8613,
30,
468,
1610,
326,
1142,
1296,
578,
1936,
15303,
365,
18,
2188,
2147,
67,
10013,
18,
1077,
1039,
1435,
1323,
12,
2890,
18,
2188,
2147,
67,
4172,
67,
4385,
422,
3365,
16547,
26875,
1189,
10038,
4672,
365,
18,
2188,
2147,
67,
10013,
18,
7048,
1435,
10621,
273,
365,
18,
2188,
2147,
67,
4172,
67,
4385,
365,
18,
2188,
2147,
67,
10013,
18,
9340,
1435,
1885,
273,
22718,
18,
682,
2257,
12,
474,
16,
609,
13,
1885,
18,
8507,
1435,
365,
18,
2188,
3276,
273,
365,
18,
2972,
18,
588,
67,
8613,
67,
2607,
1435,
63,
21,
65,
468,
9408,
3086,
1885,
471,
365,
18,
2
] |
|
continuation_ws=' '):
|
continuation_ws=' ', errors='strict'):
|
def __init__(self, s=None, charset=None, maxlinelen=None, header_name=None, continuation_ws=' '): """Create a MIME-compliant header that can contain many character sets.
|
f4fdff715af7a9d595444065c523f8de5303895d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f4fdff715af7a9d595444065c523f8de5303895d/Header.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
33,
7036,
16,
4856,
33,
7036,
16,
943,
7511,
292,
275,
33,
7036,
16,
1446,
67,
529,
33,
7036,
16,
17378,
67,
4749,
2218,
2265,
1334,
2218,
13948,
11,
4672,
3536,
1684,
279,
13195,
17,
832,
18515,
1446,
716,
848,
912,
4906,
3351,
1678,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
33,
7036,
16,
4856,
33,
7036,
16,
943,
7511,
292,
275,
33,
7036,
16,
1446,
67,
529,
33,
7036,
16,
17378,
67,
4749,
2218,
2265,
1334,
2218,
13948,
11,
4672,
3536,
1684,
279,
13195,
17,
832,
18515,
1446,
716,
848,
912,
4906,
3351,
1678,
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
] |
visit_revision = depart_revision = lambda self,node: None
|
def visit_revision(self, node): raise nodes.SkipNode
|
def depart_reference(self, node): self.body.append('</%s>' % (self.context.pop(),))
|
d2ea2631a31ca67e6d03da659353adf4e941a9bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/d2ea2631a31ca67e6d03da659353adf4e941a9bc/docbook.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26000,
67,
6180,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
9,
87,
1870,
738,
261,
2890,
18,
2472,
18,
5120,
9334,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26000,
67,
6180,
12,
2890,
16,
756,
4672,
365,
18,
3432,
18,
6923,
2668,
1757,
9,
87,
1870,
738,
261,
2890,
18,
2472,
18,
5120,
9334,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""") expectedFullMessage = 'None\n%s%s' % (expectedOutMessage, expectedErrMessage)
|
""").replace('\n', os.linesep) expectedFullMessage = 'None%s%s%s' % (os.linesep, expectedOutMessage, expectedErrMessage)
|
def testBufferOutputAddErrorOrFailure(self): for message_attr, add_attr, include_error in [ ('errors', 'addError', True), ('failures', 'addFailure', False), ('errors', 'addError', True), ('failures', 'addFailure', False) ]: result = self.getStartedResult() buffered_out = sys.stdout buffered_err = sys.stderr result._original_stderr = StringIO() result._original_stdout = StringIO() print >> sys.stdout, 'foo' if include_error: print >> sys.stderr, 'bar' addFunction = getattr(result, add_attr) addFunction(self, (None, None, None)) result.stopTest(self) result_list = getattr(result, message_attr) self.assertEqual(len(result_list), 1) test, message = result_list[0] expectedOutMessage = textwrap.dedent(""" Stdout: foo """) expectedErrMessage = '' if include_error: expectedErrMessage = textwrap.dedent(""" Stderr: bar """) expectedFullMessage = 'None\n%s%s' % (expectedOutMessage, expectedErrMessage)
|
52d784712d3f8166a42a5f0fa0b668d8ae77f594 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7464/52d784712d3f8166a42a5f0fa0b668d8ae77f594/test_result.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
26268,
2187,
296,
1289,
5247,
2187,
1083,
3631,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
26268,
2187,
296,
1289,
5247,
2187,
1083,
13,
308,
30,
563,
273,
365,
18,
588,
9217,
1253,
1435,
11445,
67,
659,
273,
2589,
18,
10283,
11445,
67,
370,
273,
2589,
18,
11241,
563,
6315,
8830,
67,
11241,
273,
15777,
1435,
563,
6315,
8830,
67,
10283,
273,
15777,
1435,
225,
1172,
1671,
2589,
18,
10283,
16,
296,
11351,
11,
309,
2341,
67,
1636,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
3215,
11,
225,
527,
2083,
273,
3869,
12,
2088,
16,
527,
67,
1747,
13,
527,
2083,
12,
2890,
16,
261,
7036,
16,
599,
16,
599,
3719,
563,
18,
5681,
4709,
12,
2890,
13,
225,
563,
67,
1098,
273,
3869,
12,
2088,
16,
883,
67,
1747,
13,
365,
18,
11231,
5812,
12,
1897,
12,
2088,
67,
1098,
3631,
404,
13,
225,
1842,
16,
883,
273,
563,
67,
1098,
63,
20,
65,
2665,
1182,
1079,
273,
30271,
18,
785,
319,
2932,
3660,
13973,
30,
8431,
3536,
13,
2665,
2524,
1079,
273,
875,
309,
2341,
67,
1636,
30,
2665,
2524,
1079,
273,
30271,
18,
785,
319,
2932,
3660,
11708,
30,
4653,
3536,
13,
2665,
5080,
1079,
273,
296,
7036,
64,
82,
9,
87,
9,
87,
11,
738,
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,
1892,
1447,
986,
668,
1162,
5247,
12,
2890,
4672,
364,
883,
67,
1747,
16,
527,
67,
1747,
16,
2341,
67,
1636,
316,
306,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
26268,
2187,
296,
1289,
5247,
2187,
1083,
3631,
7707,
4324,
2187,
296,
1289,
668,
2187,
1053,
3631,
7707,
26268,
2187,
296,
1289,
5247,
2187,
1083,
13,
308,
30,
563,
273,
365,
18,
588,
9217,
1253,
1435,
11445,
67,
659,
273,
2589,
18,
10283,
11445,
67,
370,
273,
2589,
18,
11241,
563,
6315,
8830,
67,
11241,
273,
15777,
1435,
563,
6315,
8830,
67,
10283,
273,
15777,
1435,
225,
1172,
1671,
2589,
18,
10283,
16,
296,
11351,
11,
309,
2341,
67,
1636,
30,
1172,
1671,
2589,
2
] |
if self._cmd(output, self._buildDirname, self._dict['Post-install-command']): return "post-install %s: running \"%s\" failed" % \
|
if _cmd(output, self._buildDirname, self._dict['Post-install-command']): return "%s: post-install: running \"%s\" failed" % \
|
def installPackageOnly(self, output=None): """Install a single source package. If output is given it should be a file-like object and it will receive a log of what happened.""" print 'PimpPackage_binary installPackageOnly' msgs = [] if self._dict.has_key('Pre-install-command'): msg.append("%s: Pre-install-command ignored" % self.fullname()) if self._dict.has_key('Install-command'): msgs.append("%s: Install-command ignored" % self.fullname()) if self._dict.has_key('Post-install-command'): msgs.append("%s: Post-install-command ignored" % self.fullname()) self.beforeInstall()
|
f8bf4615a43803c5eb5e55f9fb649d1cfda0a270 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/f8bf4615a43803c5eb5e55f9fb649d1cfda0a270/pimp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
2261,
3386,
12,
2890,
16,
876,
33,
7036,
4672,
3536,
6410,
279,
2202,
1084,
2181,
18,
225,
971,
876,
353,
864,
518,
1410,
506,
279,
585,
17,
5625,
733,
471,
518,
903,
6798,
279,
613,
434,
4121,
17497,
12123,
1172,
296,
52,
14532,
2261,
67,
8578,
3799,
2261,
3386,
11,
225,
8733,
273,
5378,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
1386,
17,
5425,
17,
3076,
11,
4672,
1234,
18,
6923,
27188,
87,
30,
2962,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
6410,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
10284,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
3349,
17,
5425,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
5616,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
225,
365,
18,
5771,
6410,
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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5625,
733,
471,
518,
903,
6798,
279,
613,
434,
4121,
17497,
12123,
1172,
296,
52,
14532,
2261,
67,
8578,
3799,
2261,
3386,
11,
225,
8733,
273,
5378,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
1386,
17,
5425,
17,
3076,
11,
4672,
1234,
18,
6923,
27188,
87,
30,
2962,
17,
5425,
17,
3076,
5455,
6,
738,
365,
18,
21885,
10756,
309,
365,
6315,
1576,
18,
5332,
67,
856,
2668,
6410,
17,
3076,
11,
4672,
8733,
18,
6923,
27188,
87,
30,
10284,
17,
3076,
5455,
6,
738,
365,
18,
21885,
2
] |
ballBody.setLinearVel((ax,ay,(az+mouseAy[1])/2))
|
ballBody.setLinearVel((ax,ay, (az+mouseAy[1])/2))
|
def near_callback(args, geom1, geom2): ##TODO: 4P generalization global BLOCK, kicker, mouseAy #global called #called = called + 1 contacts=ode.collide(geom1, geom2) world, contactgroup = args for c in contacts: #if not ((geom1 == ballGeom) or (geom2 == ballGeom)): # print "rong collision!" if (geom1 in kickerGeom) or (geom2 in kickerGeom) or (geom1 in kickerGeom2) or (geom2 in kickerGeom2): c.setMu(1E5) #kickers have high friction, minimal bounce - FIXME: does not work. you still can't stop balls c.setBounce(1) if (geom1 in kickerGeom and geom2 in kickerGeom2) or (geom1 in kickerGeom2 and geom2 in kickerGeom2): pass else: bx, by, bz = ballBody.getPosition() ax, ay, az = ballBody.getLinearVel() px, py, pz = c.getContactGeomParams()[0] angle = 0 if geom1 in kickerGeom or geom2 in kickerGeom: if abs(pz-bz)<0.1: #if the ball touches the kicker on its left or right if (bx<-10): ballBody.setLinearVel((ax,ay,(az+mouseAy[0])/2)) #causes some stickiness in the vertical axis angle = kicker[0].getH() else: ballBody.setLinearVel((ax,ay,(az+mouseAy[1])/2)) #causes some stickiness in the vertical axis angle = kicker[1].getH() if (by>py) and (((angle < -45) and (angle>-90)) or ((angle > 45) and (angle<90))): BLOCK[0] = True ballBody.setLinearVel((ax/3, ay, mouseAy[0])) else: if abs(pz-bz)<0.1: #if the ball touches the kicker on its left or right if (bx>10): ballBody.setLinearVel((ax, ay, (az+mouseAy[2])/2)) #causes some stickiness in the vertical axis angle = kicker[2].getH() else: ballBody.setLinearVel((ax, ay, (az+mouseAy[2])/2)) #causes some stickiness in the vertical axis angle = kicker[3].getH() if (by>py) and (((angle < -45) and (angle>-90)) or ((angle > 45) and (angle<90))): BLOCK[2] = True ballBody.setLinearVel((ax/3, ay, mouseAy[2])) elif (geom1 == tableGeom) or (geom2 == tableGeom): c.setMu(4) #table has little bounce, noticeable friction c.setBounce(1.5) elif (geom1 in wallGeom) or (geom2 in wallGeom): c.setMu(1) #walls have ok bounce, noticeable friction c.setBounce(2) else: #ignore anything else. I have no idea what that could be print "something unidentified collided with my balls. ouch." continue j=ode.ContactJoint(world, contactgroup, c) j.attach(geom1.getBody(), geom2.getBody())
|
88ad57454a30ced9525eee1f3216c7e1b45ef7fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12834/88ad57454a30ced9525eee1f3216c7e1b45ef7fb/kickern.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
225,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364,
22,
13,
9117,
16,
5388,
1655,
273,
833,
364,
276,
316,
14841,
30,
225,
468,
430,
486,
14015,
10049,
21,
422,
26503,
16972,
13,
578,
261,
10049,
22,
422,
26503,
16972,
3719,
30,
468,
225,
1172,
315,
5424,
17740,
4442,
225,
309,
261,
10049,
21,
316,
417,
5448,
16972,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
22,
4672,
276,
18,
542,
12982,
12,
21,
41,
25,
13,
377,
468,
79,
1200,
414,
1240,
3551,
284,
566,
349,
16,
16745,
324,
8386,
300,
9852,
30,
1552,
486,
1440,
18,
1846,
4859,
848,
1404,
2132,
26503,
87,
276,
18,
542,
38,
8386,
12,
21,
13,
309,
261,
10049,
21,
316,
417,
5448,
16972,
471,
7364,
22,
316,
417,
5448,
16972,
22,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
471,
7364,
22,
316,
417,
5448,
16972,
22,
4672,
1342,
469,
30,
24356,
16,
635,
16,
24788,
273,
26503,
2250,
18,
588,
2555,
1435,
1740,
16,
26179,
16,
10562,
273,
26503,
2250,
18,
588,
15982,
58,
292,
1435,
10318,
16,
2395,
16,
293,
94,
273,
276,
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,
13378,
67,
3394,
12,
1968,
16,
7364,
21,
16,
7364,
22,
4672,
7541,
6241,
30,
1059,
52,
7470,
1588,
2552,
14073,
16,
417,
5448,
16,
7644,
37,
93,
468,
6347,
2566,
225,
468,
11777,
273,
2566,
397,
404,
225,
14841,
33,
390,
18,
1293,
8130,
12,
10049,
21,
16,
7364,
22,
13,
9117,
16,
5388,
1655,
273,
833,
364,
276,
316,
14841,
30,
225,
468,
430,
486,
14015,
10049,
21,
422,
26503,
16972,
13,
578,
261,
10049,
22,
422,
26503,
16972,
3719,
30,
468,
225,
1172,
315,
5424,
17740,
4442,
225,
309,
261,
10049,
21,
316,
417,
5448,
16972,
13,
578,
261,
10049,
22,
316,
417,
5448,
16972,
13,
578,
261,
10049,
21,
316,
417,
5448,
16972,
22,
2
] |
gnome2openhatch = {'general': 'GNOME (general)'
|
gnome2openhatch = {'general': 'GNOME (general)',
|
def project_finder_plugin(bug_elt): import mysite.search.models project_name = bug_elt.xpath('product')[0].text
|
f08172f40696bf16276ccd395518ac0ec77fc655 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/f08172f40696bf16276ccd395518ac0ec77fc655/gnome_love.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
15356,
67,
4094,
12,
925,
67,
20224,
4672,
1930,
312,
1900,
1137,
18,
3072,
18,
7665,
1984,
67,
529,
273,
7934,
67,
20224,
18,
18644,
2668,
5896,
6134,
63,
20,
8009,
955,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1984,
67,
15356,
67,
4094,
12,
925,
67,
20224,
4672,
1930,
312,
1900,
1137,
18,
3072,
18,
7665,
1984,
67,
529,
273,
7934,
67,
20224,
18,
18644,
2668,
5896,
6134,
63,
20,
8009,
955,
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
] |
try: icache = open("makepanda-icache",'rb')
|
iCachePath=PREFIX+"/makepanda-icache" try: icache = open(iCachePath,'rb')
|
def PkgSelected(pkglist, pkg): if (pkglist.count(pkg)==0): return(0); if (OMIT.count(pkg)): return(0); return(1);
|
aa9700942409f59dfc63d4542d0bad0a01230726 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/aa9700942409f59dfc63d4542d0bad0a01230726/makepanda.py
|
[
1,
8585,
326,
22398,
316,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
453,
14931,
7416,
12,
10657,
1098,
16,
3475,
4672,
309,
261,
10657,
1098,
18,
1883,
12,
10657,
13,
631,
20,
4672,
327,
12,
20,
1769,
309,
261,
1872,
1285,
18,
1883,
12,
10657,
3719,
30,
327,
12,
20,
1769,
327,
12,
21,
1769,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
f.write(" def getSoundLocation()\n")
|
f.write(" def getSoundLocations()\n")
|
f.write(" def getSoundLocation()\n")
|
92411da2071ae39ec9c72e75b49199c3abce88dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2792/92411da2071ae39ec9c72e75b49199c3abce88dc/NewModuleWizard.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
284,
18,
2626,
2932,
565,
1652,
1322,
772,
2735,
1435,
64,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
284,
18,
2626,
2932,
565,
1652,
1322,
772,
2735,
1435,
64,
82,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 tuple(self.attribute.transpose().ravel())
|
intermediate = tuple(value.transpose().ravel())
|
def read_from_attribute(self): if self.transpose: return tuple(self.attribute.transpose().ravel()) else: return tuple(self.attribute.ravel())
|
769a8ce503eb66a044fef2c363ed484a6a209b55 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11052/769a8ce503eb66a044fef2c363ed484a6a209b55/composed.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
4589,
12,
2890,
4672,
309,
365,
18,
2338,
4150,
30,
12110,
273,
3193,
12,
1132,
18,
2338,
4150,
7675,
354,
941,
10756,
469,
30,
327,
3193,
12,
2890,
18,
4589,
18,
354,
941,
10756,
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,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
12,
2890,
18,
4589,
18,
354,
941,
10756,
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
] |
We can change the interpolation type
|
We can change the interpolation type.
|
def list_plot3d(v, interpolation_type='default', texture="automatic", point_list=None,**kwds): """ A 3-dimensional plot of a surface defined by the list $v$ of points in 3-dimensional space. INPUT: v -- something that defines a set of points in 3 space, for example: * a matrix * a list of 3-tuples * a list of lists (all of the same length) -- this is treated the same as a matrix. texture -- (default: "automatic"), solid light blue OPTIONAL KEYWORDS: interpolation_type - 'linear', 'nn' (nearest neighbor), 'spline' 'linear' will perform linear interpolation The option 'nn' will interpolate by averaging the value of the nearest neighbors, this produces an interpolating function that is smoother than a linear interpolation, it has one derivative everywhere except at the sample points. The option 'spline' interpolates using a bivariate B-spline. When v is a matrix the default is to use linear interpolation, when v is a list of points the default is nearest neighbor. degree - an integer between 1 and 5, controls the degree of spline used for spline interpolation. For data that is highly oscillatory use higher values point_list - If point_list=True is passed, then if the array is a list of lists of length three, it will be treated as an array of points rather than a 3xn array. num_points - Number of points to sample interpolating function in each direction. By default for an nxn array this is n. **kwds -- all other arguments are passed to the surface function OUTPUT: a 3d plot EXAMPLES: We plot a matrix that illustrates summation modulo $n$. sage: n = 5; list_plot3d(matrix(RDF,n,[(i+j)%n for i in [1..n] for j in [1..n]])) We plot a matrix of values of sin. sage: pi = float(pi) sage: m = matrix(RDF, 6, [sin(i^2 + j^2) for i in [0,pi/5,..,pi] for j in [0,pi/5,..,pi]]) sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3]) Though it doesn't change the shap of the graph, increasing num_points can increase the clarity of the graph sage: list_plot3d(m, texture='yellow', frame_aspect_ratio=[1,1,1/3],num_points=40) We can change the interpolation type sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3]) We can make this look better by increasing the number of samples sage: list_plot3d(m, texture='yellow', interpolation_type='nn',frame_aspect_ratio=[1,1,1/3],num_points=40) Lets try a spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline',frame_aspect_ratio=[1,1,1/3]) That spline doesn't capture the oscillation very well, lets try a higher degree spline sage: list_plot3d(m, texture='yellow', interpolation_type='spline', degree=5, frame_aspect_ratio=[1,1,1/3]) We plot a list of lists: sage: show(list_plot3d([[1, 1, 1, 1], [1, 2, 1, 2], [1, 1, 3, 1], [1, 2, 1, 4]])) We plot a list of points: As a first example we can extract the (x,y,z) coordinates from the above example and make a list plot out of it. By default we do linear interpolation. sage: l=[] sage: for i in range(6): ... for j in range(6): ... l.append((float(i*pi/5),float(j*pi/5),m[i,j])) sage: list_plot3d(l,texture='yellow') Note that the points do not have to be regularly sampled. For example sage: l=[] sage: for i in range(-5,5): ... for j in range(-5,5): ... l.append((normalvariate(0,1),normalvariate(0,1),normalvariate(0,1))) sage: list_plot3d(l,interpolation_type='nn',texture='yellow',num_points=100) TESTS: We plot 0, 1, and 2 points: sage: list_plot3d([]) sage: list_plot3d([(2,3,4)]) sage: list_plot3d([(0,0,1), (2,3,4)]) However, if two points with the same x,y coordinates are given and different z coordinates an exception will be raised sage: pts =[(-4/5, -2/5, -2/5), (-4/5, -2/5, 2/5), (-4/5, 2/5, -2/5), (-4/5, 2/5, 2/5), (-2/5, -4/5, -2/5), (-2/5, -4/5, 2/5), (-2/5, -2/5, -4/5), (-2/5, -2/5, 4/5), (-2/5, 2/5, -4/5), (-2/5, 2/5, 4/5), (-2/5, 4/5, -2/5), (-2/5, 4/5, 2/5), (2/5, -4/5, -2/5), (2/5, -4/5, 2/5), (2/5, -2/5, -4/5), (2/5, -2/5, 4/5), (2/5, 2/5, -4/5), (2/5, 2/5, 4/5), (2/5, 4/5, -2/5), (2/5, 4/5, 2/5), (4/5, -2/5, -2/5), (4/5, -2/5, 2/5), (4/5, 2/5, -2/5), (4/5, 2/5, 2/5)] sage: show(list_plot3d(pts, interpolation_type='nn')) Traceback (most recent call last): ... ValueError: Two points with same x,y coordinates and different z coordinates were given. Interpolation cannot handle this. Additionally we need at least 3 points to do the interpolation sage: pts=[(0,0,0)] sage: show(list_plot3d(pts,interpolation_type='nn')) Traceback (most recent call last): ... ValueError: We need at least 3 points to perform the interpolation """ import numpy if texture == "automatic": texture = "lightblue" if is_Matrix(v): if interpolation_type=='default' or interpolation_type=='linear' and not kwds.has_key('num_points'): return list_plot3d_matrix(v, texture=texture, **kwds) else: l=[] for i in xrange(v.nrows()): for j in xrange(v.ncols()): l.append((i,j,v[i,j])) return list_plot3d_tuples(l,interpolation_type,texture,**kwds) if type(v)==numpy.ndarray: return list_plot3d(matrix(v),interpolation_type,texture,**kwds) if isinstance(v, list): if len(v) == 0: # return empty 3d graphic from base import Graphics3d return Graphics3d() elif len(v) == 1: # return a point from shapes2 import point3d return point3d(v[0], **kwds) elif len(v) == 2: # return a line from shapes2 import line3d return line3d(v, **kwds) elif isinstance(v[0],tuple) or point_list==True and len(v[0]) == 3: return list_plot3d_tuples(v,interpolation_type,texture=texture, **kwds) else: return list_plot3d_array_of_arrays(v, interpolation_type,texture, **kwds) raise TypeError, "v must be a matrix or list"
|
d0f0fc2115cde9e1670bebb42ac1add0bbca76c1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/d0f0fc2115cde9e1670bebb42ac1add0bbca76c1/list_plot3d.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434,
279,
9034,
2553,
635,
326,
666,
271,
90,
8,
434,
3143,
316,
890,
17,
31236,
3476,
18,
225,
12943,
30,
331,
1493,
5943,
716,
11164,
279,
444,
434,
3143,
316,
890,
3476,
16,
364,
3454,
30,
380,
279,
3148,
380,
279,
666,
434,
890,
17,
17705,
380,
279,
666,
434,
6035,
261,
454,
434,
326,
1967,
769,
13,
1493,
333,
353,
13974,
326,
1967,
487,
279,
3148,
18,
11428,
1493,
261,
1886,
30,
315,
5854,
4941,
6,
3631,
18035,
9052,
8024,
225,
14930,
5311,
23287,
30,
225,
12851,
67,
723,
300,
296,
12379,
2187,
296,
9074,
11,
261,
25785,
10553,
3631,
296,
13106,
558,
11,
225,
296,
12379,
11,
225,
903,
3073,
9103,
12851,
225,
1021,
1456,
296,
9074,
11,
903,
13156,
635,
23713,
5755,
326,
460,
434,
326,
11431,
11003,
16,
333,
15505,
392,
7326,
1776,
445,
716,
353,
3029,
1632,
1614,
2353,
279,
9103,
12851,
16,
518,
711,
1245,
16417,
3614,
6051,
1335,
622,
326,
3296,
3143,
18,
225,
1021,
1456,
296,
13106,
558,
11,
7326,
815,
1450,
279,
324,
27693,
605,
17,
13106,
558,
18,
225,
5203,
331,
353,
279,
3148,
326,
805,
353,
358,
999,
9103,
12851,
16,
1347,
331,
353,
279,
666,
434,
3143,
326,
805,
353,
11431,
10553,
18,
225,
10782,
300,
392,
3571,
3086,
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,
666,
67,
4032,
23,
72,
12,
90,
16,
12851,
67,
723,
2218,
1886,
2187,
11428,
1546,
5854,
4941,
3113,
1634,
67,
1098,
33,
7036,
16,
636,
25577,
4672,
3536,
432,
890,
17,
31236,
3207,
434,
279,
9034,
2553,
635,
326,
666,
271,
90,
8,
434,
3143,
316,
890,
17,
31236,
3476,
18,
225,
12943,
30,
331,
1493,
5943,
716,
11164,
279,
444,
434,
3143,
316,
890,
3476,
16,
364,
3454,
30,
380,
279,
3148,
380,
279,
666,
434,
890,
17,
17705,
380,
279,
666,
434,
6035,
261,
454,
434,
326,
1967,
769,
13,
1493,
333,
353,
13974,
326,
1967,
487,
279,
3148,
18,
11428,
1493,
261,
1886,
30,
315,
5854,
4941,
6,
3631,
18035,
9052,
8024,
225,
14930,
2
] |
return nargs, ndefaults
|
return nargs, ndefaults
|
def _get_nargs(obj): if not callable(obj): raise TypeError, "Object is not callable." if hasattr(obj,'func_code'): fcode = obj.func_code nargs = fcode.co_argcount if obj.func_defaults is not None: ndefaults = len(obj.func_defaults) else: ndefaults = 0 if isinstance(obj, types.MethodType): nargs -= 1 return nargs, ndefaults terr = re.compile(r'.*? takes exactly (?P<exargs>\d+) argument(s|) \((?P<gargs>\d+) given\)') try: obj() return 0, 0 except TypeError, msg: m = terr.match(str(msg)) if m: nargs = int(m.group('exargs')) ndefaults = int(m.group('gargs')) if isinstance(obj, types.MethodType): nargs -= 1 return nargs, ndefaults raise ValueError, 'failed to determine the number of arguments for %s' % (obj)
|
c7737e63883e9ca4392f372d5a55978ed99dc23e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/c7737e63883e9ca4392f372d5a55978ed99dc23e/function_base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
82,
1968,
12,
2603,
4672,
309,
486,
4140,
12,
2603,
4672,
1002,
3580,
16,
315,
921,
353,
486,
4140,
1199,
309,
3859,
12,
2603,
11189,
644,
67,
710,
11,
4672,
284,
710,
273,
1081,
18,
644,
67,
710,
14440,
273,
284,
710,
18,
2894,
67,
3175,
1883,
309,
1081,
18,
644,
67,
7606,
353,
486,
599,
30,
290,
7606,
273,
562,
12,
2603,
18,
644,
67,
7606,
13,
469,
30,
290,
7606,
273,
374,
309,
1549,
12,
2603,
16,
1953,
18,
21988,
4672,
14440,
3947,
404,
327,
14440,
16,
290,
7606,
27428,
273,
283,
18,
11100,
12,
86,
11,
23498,
5530,
8950,
13590,
52,
32,
338,
1968,
5333,
72,
6975,
1237,
12,
87,
96,
13,
30103,
3680,
52,
32,
75,
1968,
5333,
72,
6975,
864,
64,
2506,
13,
775,
30,
1081,
1435,
327,
374,
16,
374,
1335,
3580,
16,
1234,
30,
312,
273,
27428,
18,
1916,
12,
701,
12,
3576,
3719,
309,
312,
30,
14440,
273,
509,
12,
81,
18,
1655,
2668,
338,
1968,
26112,
290,
7606,
273,
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1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
82,
1968,
12,
2603,
4672,
309,
486,
4140,
12,
2603,
4672,
1002,
3580,
16,
315,
921,
353,
486,
4140,
1199,
309,
3859,
12,
2603,
11189,
644,
67,
710,
11,
4672,
284,
710,
273,
1081,
18,
644,
67,
710,
14440,
273,
284,
710,
18,
2894,
67,
3175,
1883,
309,
1081,
18,
644,
67,
7606,
353,
486,
599,
30,
290,
7606,
273,
562,
12,
2603,
18,
644,
67,
7606,
13,
469,
30,
290,
7606,
273,
374,
309,
1549,
12,
2603,
16,
1953,
18,
21988,
4672,
14440,
3947,
404,
327,
14440,
16,
290,
7606,
27428,
273,
283,
18,
11100,
12,
86,
11,
23498,
5530,
8950,
13590,
52,
32,
338,
1968,
5333,
72,
6975,
1237,
12,
87,
96,
13,
2
] |
tableString+=emptyRowString%myColor
|
tableString+=emptyRowString
|
def generateMOINMOINTable(self,tableType="BOTH"): """ Return a MOINMOIN table. """ ligo=["L1","H1","H2","V1"] channelWiki="https://ldas-jobs.ligo.caltech.edu/cgi-bin/chanwiki?%s" if self.triggerTime==int(-1): return "" myColor="grey" tableString="" titleString="" emptyRowString="" rowString="" for i,col in enumerate(self.__columns__): if i == 0: titleString+="""||<rowbgcolor="%s"> %s """%(myColor,col) rowString+="""||<rowbgcolor="%s"> %s """ emptyRowString+="""||<rowbgcolor="%s"> None """%myColor else: titleString+="""|| %s """%col rowString+="""|| %s """ emptyRowString+="""|| None """ titleString+="""||\n""" rowString+="""||\n""" emptyRowString+="""||\n""" tableString+=titleString #Extract only DQ row or only VETO rows tmpResultList=list() for myRow in self.resultList: ifo,name,version,comment,start,stop=myRow #Select base on table type if ((tableType.upper() == "DQ") and \ (not name.strip().upper().startswith("UPV"))): tmpResultList.append(myRow) elif ((tableType.upper() == "VETO") and \ (name.strip().upper().startswith("UPV"))): tmpResultList.append(myRow) elif tableType.upper().strip() not in ["VETO","DQ"]: tmpResultList.append(myRow) if len(tmpResultList) == 0: tableString+=emptyRowString%myColor for ifo,name,version,comment,start,stop in tmpResultList: #If we have background information fetch it if self.__haveBackgroundDict__: myBackgroundRank=str("%3.1f"%(100.0*self.__backgroundResults__[ifo][name])).rjust(5) else: myBackgroundRank="None" if self.__havecategories__: myCategory=self.__category__[ifo][name] else: myCategory="None" offset1=start-self.triggerTime offset2=stop-self.triggerTime size=int(stop-start) if (offset1>=0) and (offset2>=0): myColor="green" if (offset1<=0) and (offset2<=0): myColor="yellow" if (offset1<=0) and (offset2>=0): myColor="red" if name.lower().__contains__('science'): myColor="skyblue" tableString+=rowString%(myColor,str(ifo).strip(),name,version,\ start,offset1,stop,offset2,size,\ myBackgroundRank,myCategory) tableString+="\n" return tableString
|
5800af6be75ac2540e1e98d21cc7afadf15bf2aa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/5800af6be75ac2540e1e98d21cc7afadf15bf2aa/fu_utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
5980,
706,
5980,
706,
1388,
12,
2890,
16,
2121,
559,
1546,
38,
18307,
6,
4672,
3536,
2000,
279,
490,
6266,
5980,
706,
1014,
18,
3536,
16917,
83,
33,
9614,
48,
21,
15937,
44,
21,
15937,
44,
22,
15937,
58,
21,
11929,
1904,
25438,
1546,
4528,
2207,
1236,
345,
17,
10088,
18,
80,
17626,
18,
771,
28012,
18,
28049,
19,
19062,
17,
4757,
19,
7472,
13044,
35,
9,
87,
6,
309,
365,
18,
10668,
950,
631,
474,
19236,
21,
4672,
327,
1408,
3399,
2957,
1546,
11556,
93,
6,
1014,
780,
1546,
6,
2077,
780,
1546,
6,
1008,
1999,
780,
1546,
6,
1027,
780,
1546,
6,
364,
277,
16,
1293,
316,
4241,
12,
2890,
16186,
5112,
972,
4672,
309,
277,
422,
374,
30,
2077,
780,
15,
1546,
3660,
20081,
32,
492,
12370,
3266,
11613,
87,
6441,
738,
87,
3536,
17105,
4811,
2957,
16,
1293,
13,
1027,
780,
15,
1546,
3660,
20081,
32,
492,
12370,
3266,
11613,
87,
6441,
738,
87,
3536,
1008,
1999,
780,
15,
1546,
3660,
20081,
32,
492,
12370,
3266,
11613,
87,
6441,
599,
3536,
9,
4811,
2957,
469,
30,
2077,
780,
15,
1546,
3660,
20081,
738,
87,
3536,
9,
1293,
1027,
780,
15,
1546,
3660,
20081,
738,
87,
3536,
1008,
1999,
780,
15,
1546,
3660,
20081,
599,
3536,
2077,
780,
15,
1546,
3660,
96,
8960,
82,
8395,
1027,
780,
15,
1546,
3660,
96,
8960,
82,
8395,
1008,
1999,
780,
15,
1546,
3660,
96,
8960,
82,
8395,
1014,
780,
15,
33,
2649,
780,
468,
4976,
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,
2103,
5980,
706,
5980,
706,
1388,
12,
2890,
16,
2121,
559,
1546,
38,
18307,
6,
4672,
3536,
2000,
279,
490,
6266,
5980,
706,
1014,
18,
3536,
16917,
83,
33,
9614,
48,
21,
15937,
44,
21,
15937,
44,
22,
15937,
58,
21,
11929,
1904,
25438,
1546,
4528,
2207,
1236,
345,
17,
10088,
18,
80,
17626,
18,
771,
28012,
18,
28049,
19,
19062,
17,
4757,
19,
7472,
13044,
35,
9,
87,
6,
309,
365,
18,
10668,
950,
631,
474,
19236,
21,
4672,
327,
1408,
3399,
2957,
1546,
11556,
93,
6,
1014,
780,
1546,
6,
2077,
780,
1546,
6,
1008,
1999,
780,
1546,
6,
1027,
780,
1546,
6,
364,
277,
16,
1293,
316,
4241,
12,
2890,
16186,
5112,
972,
4672,
309,
2
] |
def decode(cls, value): return uri.get_reference(value) decode = classmethod(decode)
|
def decode(cls, value): return uri.get_reference(value)
|
8bbb2a3fb14f7652affdf75eb3a99e780e8e2232 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/8bbb2a3fb14f7652affdf75eb3a99e780e8e2232/IO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
460,
4672,
327,
2003,
18,
588,
67,
6180,
12,
1132,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
6429,
16,
460,
4672,
327,
2003,
18,
588,
67,
6180,
12,
1132,
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,
-100,
-100,
-100,
-100,
-100
] |
|
def replace(self, filename, arcname=None, compress_type=None): """Delete arcname, and put the bytes from filename into the archive under the name arcname.""" deleteName = arcname if deleteName is None: deleteName = filename self.delete(deleteName) self.write(filename, arcname, compress_type) def replacestr(self, zinfo, bytes): """Delete zinfo.filename, and write a new file into the archive. The contents is the string 'bytes'.""" self.delete(zinfo.filename) self.writestr(zinfo, bytes) def delete(self, name): """Delete the file from the archive. If it appears multiple times only the first instance will be deleted.""" for i in range (0, len(self.filelist)): if self.filelist[i].filename == name: if self.debug: print "Removing", name deleted_offset = self.filelist[i].header_offset
|
def replace(self, filename, arcname=None, compress_type=None): """Delete arcname, and put the bytes from filename into the archive under the name arcname.""" deleteName = arcname if deleteName is None: deleteName = filename self.delete(deleteName) self.write(filename, arcname, compress_type) def replacestr(self, zinfo, bytes): """Delete zinfo.filename, and write a new file into the archive. The contents is the string 'bytes'.""" self.delete(zinfo.filename) self.writestr(zinfo, bytes) def delete(self, name): """Delete the file from the archive. If it appears multiple times only the first instance will be deleted.""" for i in range (0, len(self.filelist)): if self.filelist[i].filename == name: if self.debug: print "Removing", name deleted_offset = self.filelist[i].header_offset
|
def _calculate_file_offsets(self): for zip_info in self.filelist: self.fp.seek(zip_info.header_offset, 0) fheader = self.fp.read(30) if fheader[0:4] != stringFileHeader: raise BadZipfile, "Bad magic number for file header" fheader = struct.unpack(structFileHeader, fheader) # file_offset is computed here, since the extra field for # the central directory and for the local file header # refer to different fields, and they can have different # lengths file_offset = (zip_info.header_offset + 30 + fheader[_FH_FILENAME_LENGTH] + fheader[_FH_EXTRA_FIELD_LENGTH]) fname = self.fp.read(fheader[_FH_FILENAME_LENGTH]) if fname != zip_info.orig_filename: raise RuntimeError( 'File name in directory "%s" and header "%s" differ.' % ( zip_info.orig_filename, fname)) zip_info.file_offset = file_offset
|
8bfffc74e2e9204fb08d82466a9875db9b91dddd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/8bfffc74e2e9204fb08d82466a9875db9b91dddd/zipfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
768,
67,
16542,
12,
2890,
4672,
364,
3144,
67,
1376,
316,
365,
18,
7540,
5449,
30,
365,
18,
7944,
18,
16508,
12,
4450,
67,
1376,
18,
3374,
67,
3348,
16,
374,
13,
284,
3374,
273,
365,
18,
7944,
18,
896,
12,
5082,
13,
309,
284,
3374,
63,
20,
30,
24,
65,
480,
533,
812,
1864,
30,
1002,
6107,
9141,
768,
16,
315,
6434,
8146,
1300,
364,
585,
1446,
6,
284,
3374,
273,
1958,
18,
17309,
12,
1697,
812,
1864,
16,
284,
3374,
13,
468,
585,
67,
3348,
353,
8470,
2674,
16,
3241,
326,
2870,
652,
364,
468,
326,
18291,
1867,
471,
364,
326,
1191,
585,
1446,
468,
8884,
358,
3775,
1466,
16,
471,
2898,
848,
1240,
3775,
468,
10917,
585,
67,
3348,
273,
261,
4450,
67,
1376,
18,
3374,
67,
3348,
397,
5196,
397,
284,
3374,
63,
67,
42,
44,
67,
16080,
67,
7096,
65,
397,
284,
3374,
63,
67,
42,
44,
67,
22639,
67,
6776,
67,
7096,
5717,
5299,
273,
365,
18,
7944,
18,
896,
12,
74,
3374,
63,
67,
42,
44,
67,
16080,
67,
7096,
5717,
309,
5299,
480,
3144,
67,
1376,
18,
4949,
67,
3459,
30,
1002,
7265,
12,
296,
812,
508,
316,
1867,
2213,
87,
6,
471,
1446,
2213,
87,
6,
15221,
1093,
738,
261,
3144,
67,
1376,
18,
4949,
67,
3459,
16,
5299,
3719,
225,
3144,
67,
1376,
18,
768,
67,
3348,
273,
585,
67,
3348,
225,
2,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
67,
768,
67,
16542,
12,
2890,
4672,
364,
3144,
67,
1376,
316,
365,
18,
7540,
5449,
30,
365,
18,
7944,
18,
16508,
12,
4450,
67,
1376,
18,
3374,
67,
3348,
16,
374,
13,
284,
3374,
273,
365,
18,
7944,
18,
896,
12,
5082,
13,
309,
284,
3374,
63,
20,
30,
24,
65,
480,
533,
812,
1864,
30,
1002,
6107,
9141,
768,
16,
315,
6434,
8146,
1300,
364,
585,
1446,
6,
284,
3374,
273,
1958,
18,
17309,
12,
1697,
812,
1864,
16,
284,
3374,
13,
468,
585,
67,
3348,
353,
8470,
2674,
16,
3241,
326,
2870,
652,
364,
468,
326,
18291,
1867,
471,
364,
326,
1191,
585,
1446,
468,
8884,
358,
3775,
1466,
16,
471,
2898,
848,
2
] |
analyzeNodeDeps (self.tree(variants), classDeps)
|
analyzeNodeDeps (self.tree(variants), classDeps, False)
|
def buildShallowDeps(variants):
|
e75c23a655ca9ec96cd3e7688c44053910d135e8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/e75c23a655ca9ec96cd3e7688c44053910d135e8/Class.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
1555,
5965,
14430,
12,
15886,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1361,
1555,
5965,
14430,
12,
15886,
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
] |
r"""
|
"""
|
def polynomials(self, X=None, Y=None, degree=2, groebner=False): r""" Return a list of polynomials satisfying this S-box.
|
dd81b4a97db8b232434d8623d237dba45e418834 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/dd81b4a97db8b232434d8623d237dba45e418834/sbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
17,
2147,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16991,
87,
12,
2890,
16,
1139,
33,
7036,
16,
1624,
33,
7036,
16,
10782,
33,
22,
16,
314,
303,
24008,
1224,
33,
8381,
4672,
3536,
2000,
279,
666,
434,
16991,
87,
9281,
14946,
333,
348,
17,
2147,
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
] |
(rc,u) = semanage_user_query(self.sh, k)
|
(rc, u) = semanage_user_query(self.sh, k)
|
def __modify(self, name, roles = [], selevel = "", serange = "", prefix = ""):
|
8ad29a27255b6eb5a4f8e1083ce9832034f3e205 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7147/8ad29a27255b6eb5a4f8e1083ce9832034f3e205/seobject.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
508,
16,
4900,
273,
5378,
16,
357,
73,
941,
273,
23453,
703,
726,
273,
23453,
1633,
273,
1408,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
17042,
12,
2890,
16,
508,
16,
4900,
273,
5378,
16,
357,
73,
941,
273,
23453,
703,
726,
273,
23453,
1633,
273,
1408,
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
] |
for localeName, localizedStrings in project.locales.iteritems(): if not focusedLocaleName or focusedLocaleName == localeName: if localizedStrings.name in translations: translation = translations[localizedStrings.name] else: translation = Translation(localizedStrings.name) translation.open(".", "2") translations[localizedStrings.name] = translation if translation.strings: if verbose: localizedStrings.mergeReport(sourceStrings, translation) localizedStrings.mergeTranslation(sourceStrings, translation) if not dryRun: localizedStrings.save()
|
sourceStrings.save()
|
def mergeProjects(projects, sourceLocaleName, focusedLocaleName=None, verbose=False, dryRun=False): translations = {} for project in projects: sourceStrings = project.condenseStringSourceFiles() for localeName, localizedStrings in project.locales.iteritems(): if not focusedLocaleName or focusedLocaleName == localeName: if localizedStrings.name in translations: translation = translations[localizedStrings.name] else: translation = Translation(localizedStrings.name) translation.open(".", "2") translations[localizedStrings.name] = translation if translation.strings: if verbose: localizedStrings.mergeReport(sourceStrings, translation) localizedStrings.mergeTranslation(sourceStrings, translation) if not dryRun: localizedStrings.save()
|
adf957b6324ba06ddeb6c4044ea1f2ce6d93bda9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11667/adf957b6324ba06ddeb6c4044ea1f2ce6d93bda9/diffstrings.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
15298,
12,
13582,
16,
1084,
3916,
461,
16,
22397,
3916,
461,
33,
7036,
16,
3988,
33,
8381,
16,
26147,
33,
8381,
4672,
7863,
273,
2618,
225,
364,
1984,
316,
10137,
30,
1084,
7957,
273,
1984,
18,
10013,
3558,
780,
1830,
2697,
1435,
1084,
7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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
15298,
12,
13582,
16,
1084,
3916,
461,
16,
22397,
3916,
461,
33,
7036,
16,
3988,
33,
8381,
16,
26147,
33,
8381,
4672,
7863,
273,
2618,
225,
364,
1984,
316,
10137,
30,
1084,
7957,
273,
1984,
18,
10013,
3558,
780,
1830,
2697,
1435,
1084,
7957,
18,
5688,
1435,
10402,
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
] |
elif len(args) == 0:
|
elif len(args) == 0 or len(args) == 1 and type(args[0]) == types.NoneType:
|
def __createOnSequence(self, args): if len(args) == 1 and isSequence(args[0]): self.__createOnSequence(args[0]) elif len(args) == 2: if Orientation.canCreateOn(args[0]) \ and Vector.canCreateOn(args[1]): self._o = Orientation(args[0]) self._v = Vector(args[1]) elif Orientation.canCreateOn(args[1]) \ and Vector.canCreateOn(args[0]): self._o = Orientation(args[1]) self._v = Vector(args[0]) else: raise self.Error, \ "Could not create Transform on arguments : ", str(args) elif len(args) == 4: self._o = Orientation(args[:3]) self._v = Vector(args[3]) elif len(args) == 12: self._o = Orientation(args[:9]) self._v = Vector(args[9:]) elif len(args) == 0: self._v = Vector() self._o = Orientation() else: raise self.Error, \ "Could not create Transform on arguments : ", str(args)
|
4f95a538834856b8ceb34e88385a1b0e8cf6a699 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1736/4f95a538834856b8ceb34e88385a1b0e8cf6a699/transform.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
1398,
4021,
12,
2890,
16,
833,
4672,
309,
562,
12,
1968,
13,
422,
404,
471,
353,
4021,
12,
1968,
63,
20,
65,
4672,
365,
16186,
2640,
1398,
4021,
12,
1968,
63,
20,
5717,
1327,
562,
12,
1968,
13,
422,
576,
30,
309,
531,
12556,
18,
4169,
1684,
1398,
12,
1968,
63,
20,
5717,
521,
471,
5589,
18,
4169,
1684,
1398,
12,
1968,
63,
21,
65,
4672,
365,
6315,
83,
273,
531,
12556,
12,
1968,
63,
20,
5717,
365,
6315,
90,
273,
5589,
12,
1968,
63,
21,
5717,
1327,
531,
12556,
18,
4169,
1684,
1398,
12,
1968,
63,
21,
5717,
521,
471,
5589,
18,
4169,
1684,
1398,
12,
1968,
63,
20,
65,
4672,
365,
6315,
83,
273,
531,
12556,
12,
1968,
63,
21,
5717,
365,
6315,
90,
273,
5589,
12,
1968,
63,
20,
5717,
469,
30,
1002,
365,
18,
668,
16,
521,
315,
4445,
486,
752,
11514,
603,
1775,
294,
3104,
609,
12,
1968,
13,
1327,
562,
12,
1968,
13,
422,
1059,
30,
365,
6315,
83,
273,
531,
12556,
12,
1968,
10531,
23,
5717,
365,
6315,
90,
273,
5589,
12,
1968,
63,
23,
5717,
1327,
562,
12,
1968,
13,
422,
2593,
30,
365,
6315,
83,
273,
531,
12556,
12,
1968,
10531,
29,
5717,
365,
6315,
90,
273,
5589,
12,
1968,
63,
29,
30,
5717,
1327,
562,
12,
1968,
13,
422,
374,
578,
562,
12,
1968,
13,
422,
404,
471,
618,
12,
1968,
63,
20,
5717,
422,
1953,
18,
7036,
559,
30,
365,
6315,
90,
273,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2640,
1398,
4021,
12,
2890,
16,
833,
4672,
309,
562,
12,
1968,
13,
422,
404,
471,
353,
4021,
12,
1968,
63,
20,
65,
4672,
365,
16186,
2640,
1398,
4021,
12,
1968,
63,
20,
5717,
1327,
562,
12,
1968,
13,
422,
576,
30,
309,
531,
12556,
18,
4169,
1684,
1398,
12,
1968,
63,
20,
5717,
521,
471,
5589,
18,
4169,
1684,
1398,
12,
1968,
63,
21,
65,
4672,
365,
6315,
83,
273,
531,
12556,
12,
1968,
63,
20,
5717,
365,
6315,
90,
273,
5589,
12,
1968,
63,
21,
5717,
1327,
531,
12556,
18,
4169,
1684,
1398,
12,
1968,
63,
21,
5717,
521,
471,
5589,
18,
4169,
1684,
1398,
12,
1968,
63,
20,
65,
4672,
365,
6315,
83,
273,
2
] |
statusText = '[Folder view]: %s\t%d item(s)' \ % (os.getcwd (), len (self.model.items) - 1)
|
statusText = u'[Folder view]: %s\t%d item(s)' \ % (os.getcwdu (), len (self.model.items) - 1)
|
def afterDirChange (self): self.setSelectionOnCurrItem () # in the line below, I'm subtracting 1 from number of items because # of '..' pseudoitem statusText = '[Folder view]: %s\t%d item(s)' \ % (os.getcwd (), len (self.model.items) - 1) self.view.getFrame ().statusBar.SetStatusText (statusText)
|
5f003fa66305ac8935c5608a773efc5e9baee6db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9028/5f003fa66305ac8935c5608a773efc5e9baee6db/candy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
1621,
3043,
261,
2890,
4672,
365,
18,
542,
6233,
1398,
20143,
1180,
1832,
468,
316,
326,
980,
5712,
16,
467,
17784,
10418,
310,
404,
628,
1300,
434,
1516,
2724,
468,
434,
13222,
12454,
1726,
26206,
273,
582,
11,
63,
3899,
1476,
14542,
738,
87,
64,
88,
9,
72,
761,
12,
87,
2506,
521,
738,
261,
538,
18,
588,
71,
91,
2544,
1832,
16,
562,
261,
2890,
18,
2284,
18,
3319,
13,
300,
404,
13,
365,
18,
1945,
18,
588,
3219,
1832,
18,
2327,
5190,
18,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
1621,
3043,
261,
2890,
4672,
365,
18,
542,
6233,
1398,
20143,
1180,
1832,
468,
316,
326,
980,
5712,
16,
467,
17784,
10418,
310,
404,
628,
1300,
434,
1516,
2724,
468,
434,
13222,
12454,
1726,
26206,
273,
582,
11,
63,
3899,
1476,
14542,
738,
87,
64,
88,
9,
72,
761,
12,
87,
2506,
521,
738,
261,
538,
18,
588,
71,
91,
2544,
1832,
16,
562,
261,
2890,
18,
2284,
18,
3319,
13,
300,
404,
13,
365,
18,
1945,
18,
588,
3219,
1832,
18,
2327,
5190,
18,
20547,
1528,
261,
2327,
1528,
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
] |
try:
|
try:
|
def find_site(): """Find the site by looking at the environment.""" try: settings_module = os.environ['DJANGO_SETTINGS_MODULE'] except KeyError: raise AssertionError("DJANGO_SETTINGS_MODULE not set.") settingsl = settings_module.split('.') site = __import__(settingsl[0]) settings = __import__(settings_module, {}, {}, settingsl[-1]) return site, settings
|
6bb4ee4e3413db8bff6866226b96bc305a1c8cd3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/171/6bb4ee4e3413db8bff6866226b96bc305a1c8cd3/load_data.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4256,
13332,
3536,
3125,
326,
2834,
635,
7849,
622,
326,
3330,
12123,
775,
30,
1947,
67,
2978,
273,
1140,
18,
28684,
3292,
40,
46,
31630,
67,
19428,
67,
12194,
3546,
1335,
4999,
30,
1002,
12068,
2932,
40,
46,
31630,
67,
19428,
67,
12194,
486,
444,
1199,
13,
225,
1947,
80,
273,
1947,
67,
2978,
18,
4939,
2668,
1093,
13,
2834,
273,
1001,
5666,
972,
12,
4272,
80,
63,
20,
5717,
1947,
273,
1001,
5666,
972,
12,
4272,
67,
2978,
16,
10615,
10615,
1947,
80,
18919,
21,
5717,
327,
2834,
16,
1947,
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,
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,
1104,
67,
4256,
13332,
3536,
3125,
326,
2834,
635,
7849,
622,
326,
3330,
12123,
775,
30,
1947,
67,
2978,
273,
1140,
18,
28684,
3292,
40,
46,
31630,
67,
19428,
67,
12194,
3546,
1335,
4999,
30,
1002,
12068,
2932,
40,
46,
31630,
67,
19428,
67,
12194,
486,
444,
1199,
13,
225,
1947,
80,
273,
1947,
67,
2978,
18,
4939,
2668,
1093,
13,
2834,
273,
1001,
5666,
972,
12,
4272,
80,
63,
20,
5717,
1947,
273,
1001,
5666,
972,
12,
4272,
67,
2978,
16,
10615,
10615,
1947,
80,
18919,
21,
5717,
327,
2834,
16,
1947,
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
] |
dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\
|
dispCPKActionText =\ "<u><b>Display CPK</b></u><br>"\ "<p>"\ "<img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms "\ "or chunks to <b>CPK</b> mode. Atoms are rendered as "\ "spheres with a size equal to 0.78 of their VdW radius, "\ "corresponding to a contact force of approximately "\ "0.1 nN with neighboring nonbonded atoms. Bonds are not "\ "rendered."\
|
def createWhatsThisTextForMainWindowWidgets(win): """ Adds the "What's This" help text to items found in the NE1 mainwindow toolbars and menus . @param win: NE1's mainwindow object. @type win: U{B{QMainWindow}<http://doc.trolltech.com/4/qmainwindow.html>} @note: Property Managers specify "What's This" text for their own widgets, usually in a method called add_whats_this_text(), not in this file. """ # # File Toolbar # # Open File fileOpenText = "<u><b>Open File</b></u> (Ctrl + O)<br> "\ "<p><img source=\"ui/actions/File/Open.png\"><br> "\ "Opens a new file."\ "</p>" win.fileOpenAction.setWhatsThis( fileOpenText ) # Import File fileImportText = "<u><b>Import File</b></u><br>"\ "Inserts a file of any chemical file format supported by "\ "<b>Openbabel</b> into the current Part" win.fileImportAction.setWhatsThis(fileImportText) #Export File fileExportText = "<u><b>Export File</b></u><br>"\ "Save the current Part in any chemical file format supported by "\ "<b>Openbabel</b>. Note that exclusive features of NanoEngineer-1 "\ "are not saved to the exported file" win.fileExportAction.setWhatsThis(fileExportText) # Save File fileSaveText = "<u><b>Save File</b></u> (Ctrl + S)<br> "\ "<p><img source=\"ui/actions//Save.png\"><br> "\ "Saves the current file."\ "</p>" win.fileSaveAction.setWhatsThis( fileSaveText ) # # Edit Toolbar # # Make Checkpoint ### editMakeCheckpointText = \ "<u><b>Make Checkpoint</b></u>"\ "<p>"\ "<img source=\"ui/actions/Edit/Make_CheckPoint.png\"><br> "\ "Make Undo checkpoint."\ "</p>" win.editMakeCheckpointAction.setWhatsThis( editMakeCheckpointText ) # Automatic Checkpointing ### [minor changes, bruce 060319] editAutoCheckpointingText = \ "<u><b>Automatic Checkpointing</b></u>"\ "<p>"\ "Enables/Disables <b>Automatic Checkpointing</b>. When enabled, "\ "the program maintains the Undo stack automatically. When disabled, "\ "the user is required to manually create Undo checkpoints using the "\ "<b>Make Checkpoint</b> button: "\ "</p>"\ "<p><img source=\"ui/actions/Edit/Make_CheckPoint.png\">"\ "</p>"\ "<p><b>Automatic Checkpointing</b> can impact program performance. "\ "By disabling Automatic Checkpointing, the program will run faster. "\ "</p>"\ "<p><b><i>Remember that you must make your own Undo checkpoints "\ "manually when Automatic Checkpointing is disabled.</i></b>"\ "</p>" win.editAutoCheckpointingAction.setWhatsThis( editAutoCheckpointingText ) # Clear Undo Stack ### [minor changes, bruce 060319] editClearUndoStackText = "<u><b>Clear Undo Stack</b></u>"\ "<p>Clears all checkpoints on the Undo and Redo stacks, freeing up memory."\ "</p>" win.editClearUndoStackAction.setWhatsThis( editClearUndoStackText ) # Undo editUndoText = "<u><b>Undo</b></u> (Ctrl + Z)<br> "\ "<p><img source=\"ui/actions/Undo.png\"><br> "\ "Reverses the last edit or command which changed structure or selection. "\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Undo "\ "only works if you got this popup from the Edit menu item for Undo, "\ "not from the Undo toolbutton."\ "</font>"\ "</p>" #bruce 060317 revised this text to reflect what it does in A7; 060320 added 1421-not-fixed warning win.editUndoAction.setWhatsThis( editUndoText ) win.editUndoText = editUndoText #bruce 060317 to help fix bug 1421 in Undo whatsthis wiki help link # Redo from PlatformDependent import is_macintosh if is_macintosh(): redo_accel = "(Ctrl + Shift + Z)" # note: this is further modified (Ctrl -> Cmd) by other code # changing this is partly redundant with code in undo*.py, but as of 060317 it's desirable in editRedoText too else: redo_accel = "(Ctrl + Y)" editRedoText = "<u><b>Redo</b></u> %s<br> "\ "<p><img source=\"ui/actions/Edit/Redo.png\"> <br>"\ "Restores a change which was undone using the Undo command."\ "<br><font color=\"#808080\">"\ "Known bug: the link to wiki help for Redo "\ "only works if you got this popup from the Edit menu item for Redo, "\ "not from the Redo toolbutton."\ "</font>"\ "</p>" % redo_accel #bruce 060317 revised this text to be more accurate, and split out redo_accel; 060320 added 1421-not-fixed warning win.editRedoAction.setWhatsThis( editRedoText ) win.editRedoText = editRedoText #bruce 060317 to help fix bug 1421 in Redo whatsthis wiki help link # Cut editCutText = "<u><b>Cut</b></u> (Ctrl + X)<br> "\ "<p><img source=\"ui/actions/Edit/Cut.png\"><br> "\ "Removes the selected object(s) and stores the cut data on the"\ "clipboard."\ "</p>" win.editCutAction.setWhatsThis( editCutText ) # Copy editCopyText = "<u><b>Copy</b></u> (Ctrl + C)<br> "\ "<p><img source=\"ui/actions/Edit/Copy.png\"><br> "\ "Places a copy of the selected chunk(s) on the clipboard "\ "while leaving the original chunk(s) unaffected."\ "</p>" win.editCopyAction.setWhatsThis( editCopyText ) # Paste editPasteText = "<u><b>Paste</b></u> (Ctrl + V)<br> "\ "<p><img source=\"ui/actions/Edit/Paste_On.png\"><br> "\ "<b>Paste</b> places the user in <b>Build</b> mode where copied chunks on "\ "the clipboard can be pasted into the model by double clicking in empty space. "\ "If the current clipboard chunk has a <b><i>hotspot</i></b>, it can be bonded to "\ "another chunk by single clicking on one of the chunk's bondpoints."\ "</p>"\ "<p>A <b><i>Hotspot</i></b> is a green bondpoint on a clipboard chunk indicating "\ "it will be the active bondpoint which will connect to another chunk's bondpoint. "\ "To specify a hotspot on the clipboard chunk, click on one of its bondpoints in the "\ "<b><i>MMKit's Thumbview</i></b>."\ "</p>" win.editPasteAction.setWhatsThis( editPasteText ) # Delete editDeleteText = "<u><b>Delete</b></u> (DEL)<br> "\ "<p><img source=\"ui/actions/Delete.png\"><br> "\ "Deletes the selected object(s). "\ "For this Alpha release, deleted objects may be permanently lost, or they might be recoverable using Undo.</p>" #bruce 060212 revised above text (and fixed spelling error); should be revised again before A7 release win.editDeleteAction.setWhatsThis( editDeleteText ) #Preferences Dialog editPrefsText = "<u><b>Preferences Dialog</b></u>"\ "<p>Allows you to edit various user preferences "\ "such as changing atom, bond display properties,"\ "lighting, background color, window position and"\ "size, plugins etc. </p>" win.editPrefsAction.setWhatsThis( editPrefsText ) # # View Toolbar # # Home View setViewHomeActionText = \ "<u><b>Home</b></u> (Home)<br>"\ "<p>"\ "<img source=\"ui/actions/View/Modify/Home.png\"><br>"\ "When you create a new model, it appears in a "\ "default view orientation (FRONT view). When you "\ "open an existing model, it appears in the "\ "orientation it was last saved. You can change the "\ "default orientation by selecting <b>Set Home View "\ "to Current View</b> from the <b>View</b> menu."\ "</p>" win.setViewHomeAction.setWhatsThis( setViewHomeActionText ) # Fit to Window setViewFitToWindowActionText = "<u><b>Fit To Window</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom_To_Fit.png\"><br> "\ "Refits the model to the screen so you can view the entire model."\ "</p>" win.setViewFitToWindowAction.setWhatsThis( setViewFitToWindowActionText ) # Recenter setViewRecenterActionText = "<u><b>Recenter</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Recenter.png\"><br> "\ "Changes the view center and zoom factor so that the origin is in the "\ "center of the view and you can view the entire model."\ "</p>" win.setViewRecenterAction.setWhatsThis( setViewRecenterActionText ) # Zoom Tool setzoomToolActionText = "<u><b>Zoom Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Zoom.png\"><br> "\ "Allows the user to zoom into a specific area of the model by specifying a rectangular area. "\ "This is done by holding down the left button and dragging the mouse.</p>"\ "<p>A mouse with a mouse wheel can also be used to zoom in and out "\ "at any time, without using the Zoom Tool.</p>" win.zoomToolAction.setWhatsThis( setzoomToolActionText ) # Pan Tool setpanToolActionText = "<u><b>Pan Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Pan.png\"><br> "\ "Allows X-Y panning using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can pan the model at any time by pressing "\ "the middle mouse button while holding down the Shift key.</p>" win.panToolAction.setWhatsThis( setpanToolActionText ) # Rotate Tool setrotateToolActionText = "<u><b>Rotate Tool</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Rotate.png\"><br> "\ "Allows free rotation using the left mouse button.</p>"\ "<p>Users with a 3-button mouse can rotate the model at any time by pressing "\ "the middle mouse button and dragging the mouse.</p>" win.rotateToolAction.setWhatsThis( setrotateToolActionText ) # Orthographic Projection setViewOrthoActionText = "<u><b>Orthographic Projection</b></u><br>"\ "<p>Sets nonperspective (or parallel) projection, with no foreshortening."\ "</p>" win.setViewOrthoAction.setWhatsThis( setViewOrthoActionText ) # Perspective Projection setViewPerspecActionText = "<u><b>Perspective Projection</b></u><br>"\ "<p>Set perspective projection, drawing objects slightly larger "\ "that are closer to the viewer."\ "</p>" win.setViewPerspecAction.setWhatsThis( setViewPerspecActionText ) # Normal To viewNormalToActionText = "<u><b>Set View Normal To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Normal_To.png/\"><br> "\ "Orients view to the normal vector of the plane defined by "\ "3 or more selected atoms, or a jig's axis."\ "</p>" win.viewNormalToAction.setWhatsThis( viewNormalToActionText ) # Parallel To viewParallelToActionText = "<u><b>Set View Parallel To</b></u><br>"\ "<p><img source=\"ui/actions/View/Set_View_Parallel_To.png\"><br> "\ "Orients view parallel to the vector defined by 2 selected atoms."\ "</p>" win.viewParallelToAction.setWhatsThis( viewParallelToActionText ) # Save Named View saveNamedViewActionText = "<u><b>Save Named View</b></u><br>"\ "<p><img source=\"ui/actions/View/Modify/Save_Named_View.png\"><br> "\ "Saves the current view as a custom <b>named view</b> and places it in the Model Tree.</p>" \ "<p>The view can be restored by selecting <b>Change View</b> from its context menu in the Model Tree."\ "</p>" win.saveNamedViewAction.setWhatsThis( saveNamedViewActionText ) # Front View viewFrontActionText = "<u><b>Front View</b></u><br>"\ "<p><img source=\"ui/actions/View/Front.png\"><br> "\ "Orients the view to the Front View."\ "</p>" win.viewFrontAction.setWhatsThis( viewFrontActionText ) # Back View viewBackActionText = "<u><b>Back View</b></u><br>"\ "<p><img source=\"ui/actions/View/Back.png\"><br> "\ "Orients the view to the Back View."\ "</p>" win.viewBackAction.setWhatsThis( viewBackActionText ) # Top View viewTopActionText = "<u><b>Top View</b></u><br>"\ "<p><img source=\"ui/actions/View/Top.png\"><br> "\ "Orients the view to the Top View."\ "</p>" win.viewTopAction.setWhatsThis( viewTopActionText ) # Bottom View viewBottomActionText = "<u><b>Bottom View</b></u><br>"\ "<p><img source=\"ui/actions/View/Bottom.png\"><br> "\ "Orients the view to the Bottom View."\ "</p>" win.viewBottomAction.setWhatsThis( viewBottomActionText ) # Left View viewLeftActionText = "<u><b>Left View</b></u><br>"\ "<p><img source=\"ui/actions/View/Left.png\"><br> "\ "Orients the view to the Left View."\ "</p>" win.viewLeftAction.setWhatsThis( viewLeftActionText ) # Right View viewRightActionText = "<u><b>Right View</b></u><br>"\ "<p><img source=\"ui/actions/View/Right.png\"><br> "\ "Orients the view to the Right View."\ "</p>" win.viewRightAction.setWhatsThis( viewRightActionText ) #Isometric View viewIsometricActionText = "<u><b>IsometricView</b></u><br>"\ "<p><img source=\"ui/actions/View/Isometric.png\"><br> "\ "Orients the view to the Isometric View."\ "</p>" win.viewIsometricAction.setWhatsThis( viewIsometricActionText ) # Rotate View 180 viewRotate180ActionText = "<u><b>Rotate View 180</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_180.png.png\"><br> "\ "Rotates the view 180 degrees."\ "</p>" win.viewRotate180Action.setWhatsThis( viewRotate180ActionText ) # Rotate View +90 viewRotatePlus90ActionText = "<u><b>Rotate View +90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_+90.png\"><br> "\ "Increment the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotatePlus90Action.setWhatsThis( viewRotatePlus90ActionText ) # Rotate View -90 viewRotateMinus90ActionText = "<u><b>Rotate View -90</b></u><br>"\ "<p><img source=\"ui/actions/View/Rotate_View_-90.png\"><br> "\ "Decrement the current view by 90 degrees around the vertical axis."\ "</p>" win.viewRotateMinus90Action.setWhatsThis( viewRotateMinus90ActionText ) # QuteMol viewQuteMolActionText = \ "<u><b>QuteMol</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/QuteMol.png\"><br> "\ "Starts QuteMol and loads a PDB file of the current model."\ "</p>" \ "QuteMol must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewQuteMolAction.setWhatsThis( viewQuteMolActionText ) # POV-Ray (was Raytrace Scene) viewRaytraceSceneActionText = "<u><b>POV-Ray</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Raytrace_Scene.png\"><br> "\ "Raytrace the current scene using POV-Ray. "\ "</p>" \ "POV-Ray must be installed and enabled as a plug-in from "\ "<b>Preferences > Plug-ins</b> for this feature to work." \ "</p>" win.viewRaytraceSceneAction.setWhatsThis( viewRaytraceSceneActionText ) # # Grids Toolbar # # Surface 100 orient100ActionText = "<u><b>Surface 100</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface100.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,0,0) surface of a diamond lattice."\ "</p>" win.orient100Action.setWhatsThis(orient100ActionText ) # Surface 110 orient110ActionText = "<u><b>Surface 110</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface110.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,0) surface of a diamond lattice."\ "</p>" win.orient110Action.setWhatsThis(orient110ActionText ) # Surface 111 orient111ActionText = "<u><b>Surface 111</b></u><br>"\ "<p><img source=\"ui\actions\Properties Manager/Surface111.png\"><br> "\ "Reorients the view to the nearest angle that would "\ "look straight into a (1,1,1) surface of a diamond lattice."\ "</p>" win.orient111Action.setWhatsThis(orient111ActionText ) # # Insert toolbar # # Graphene insertGrapheneActionText = \ "<u><b>Build Graphene</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Graphene.png\"><br> "\ "Inserts a 2D sheet of graphene in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertGrapheneAction.setWhatsThis(insertGrapheneActionText ) # Build Nanotube insertNanotubeActionText = \ "<u><b>Build Nanotube</b></u>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Nanotube.png\"> <br>"\ "Inserts a carbon or boron nitride nanotube in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.insertNanotubeAction.setWhatsThis(insertNanotubeActionText ) # Build DNA buildDnaActionText = \ "<u><b>Build DNA</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/DNA.png\"><br> "\ "Inserts DNA in the model "\ "based on the current parameters in the Property Manager. "\ "To preview the structure based on the current parameters, "\ "click the Preview button located at the top of the "\ "Property Manager :<br> "\ "<img source=\"ui/actions/Properties Manager/Preview.png\"> "\ "</p>" win.buildDnaAction.setWhatsThis(buildDnaActionText ) # POV-Ray Scene insertPovraySceneActionText = "<u><b>Insert POV-Ray Scene</b></u><br>"\ "<p><img source=\"ui/actions/POV-Ray_Scene.png\"><br> "\ "Inserts a POV-Ray Scene file based on the current model and viewpoint. "\ "</p>" win.insertPovraySceneAction.setWhatsThis(insertPovraySceneActionText ) # Comment insertCommentActionText = "<u><b>Insert Comment</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Comment.png\"><br> "\ "Inserts a comment in the current part. "\ "</p>" win.insertCommentAction.setWhatsThis(insertCommentActionText ) # # Display toolbar # # Display Default dispDefaultActionText = "<u><b>Display Default</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Default.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Default</b> , rendering them in the <b>Current Display Mode</b>."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to the <b>Default Display Mode</b>. " \ "All chunks with their display setting set to <b>Default</b> will be rendered in the "\ "<b>Default Display Mode</b>."\ "</p>"\ "<p>The <b>Default Display Mode</b> can be changed via the "\ "<b>Edit > Preferences</b> menu and selecting the <b>Modes</b> tab."\ "</p>"\ "<p>The <b>Current or Default Display Mode</b> is displayed in the status bar in the "\ "lower right corner of the main window."\ "</p>" win.dispDefaultAction.setWhatsThis(dispDefaultActionText ) # Display Invisible dispInvisActionText = "<u><b>Display Invisible</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Invisible.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Invisible</b>, making them invisible."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Invisible</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispInvisAction.setWhatsThis(dispInvisActionText ) # Display Lines dispLinesActionText = "<u><b>Display Lines</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Lines.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ " <b>Lines</b>. Only bonds are rendered as colored lines."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Lines</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispLinesAction.setWhatsThis(dispLinesActionText ) # Display Tubes dispTubesActionText = "<u><b>Display Tubes</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Tubes.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Tubes</b>. Atoms and bonds are rendered as colored tubes."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Tubes</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispTubesAction.setWhatsThis(dispTubesActionText ) # Display Ball and Stick dispBallActionText = "<u><b>Display Ball and Stick</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Ball_and_Stick.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>Ball and Stick</b> mode. Atoms are rendered "\ "as spheres and bonds are rendered as narrow cylinders."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Ball and Stick</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres and cylinders can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispBallAction.setWhatsThis(dispBallActionText ) # Display CPK # [bruce extended and slightly corrected text, 060307] dispCPKActionText = "<u><b>Display CPK</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/CPK.png\"><br> "\ "Changes the <i>display setting</i> of selected atoms or chunks to "\ "<b>CPK</b> mode. Atoms are rendered as spheres with "\ "a size equal to 0.78 of their VdW radius, corresponding "\ "to a contact force of approximately 0.1 nN with neighboring "\ "nonbonded atoms. Bonds are not rendered."\ "</p>"\ "<p>If no atoms or chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>CPK</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>"\ "<p>The scale of the spheres can be changed from the "\ "<b>Atoms</b> and <b>Bonds</b> pages of the <b>Preferences</b> dialog."\ "</p>" win.dispCPKAction.setWhatsThis(dispCPKActionText ) # Display Cylinder dispCylinderActionText = "<u><b>Display Cylinder</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Cylinder.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Cylinder</b> mode. Chunks are rendered as cylinders."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Cylinder</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispCylinderAction.setWhatsThis(dispCylinderActionText ) # Display Surface dispSurfaceActionText = "<u><b>Display Surface</b></u><br>"\ "<p><img source=\"ui/actions/View/Display/Surface.png\"><br> "\ "Changes the <i>display setting</i> of selected chunks to "\ "<b>Surface</b> mode. Chunks are rendered as a smooth surface."\ "</p>"\ "<p>If no chunks are selected, then this action will change the "\ "<b>Current Display Mode</b> of the 3D workspace to <b>Surface</b>. " \ "All chunks with their display setting set to <b>Default</b> will inherit "\ "this display property."\ "</p>" win.dispSurfaceAction.setWhatsThis(dispSurfaceActionText ) #Reset Chunk Color dispResetChunkColorText = "<u><b>Reset Chunk Color</b></u><br>"\ "Resets the user defined chunk color and renders the atoms " \ "(in the chunk) with their own element colors" win.dispResetChunkColorAction.setWhatsThis(dispResetChunkColorText ) #Reset Atoms Display dispResetAtomsDisplayText = "<u><b>Reset Atoms Display</b></u><br>"\ "Renders the selected atoms (or the atoms in the"\ "selected chunks) with the same display style as "\ "that of their parent chunk" win.dispResetAtomsDisplayAction.setWhatsThis(dispResetAtomsDisplayText) #Show Invisible Atoms dispShowInvisAtomsText = "<u><b>Show Invisible Atoms</b></u><br>"\ "Renders the selected atoms (or the atoms in the selected "\ "chunks) with the same display style as their parent chunk. "\ "However, if the parent chunk is set as invisible, this feature " \ "will not work. " win.dispShowInvisAtomsAction.setWhatsThis(dispShowInvisAtomsText) #Element Color Settings Dialog dispElementColorSettingsText = "<u><b>Element Color Settings Dialog</b></u><br>"\ "Element colors can be manually changed " \ "using this dialog. Also, the user can load"\ "or save the element colors" win.dispElementColorSettingsAction.setWhatsThis(dispElementColorSettingsText) # # Select toolbar # # Select All selectAllActionText = "<u><b>Select All</b></u> (Ctrl + A)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_All.png\"><br> "\ "When in <b>Build</b> mode, this will select all the atoms in "\ "the model. Otherwise, this will select all the chunks in the model."\ "</p>" win.selectAllAction.setWhatsThis(selectAllActionText ) # Select None selectNoneActionText = "<u><b>Select None</b></u></p><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_None.png\"><br> "\ "Unselects everything currently selected.</p>" win.selectNoneAction.setWhatsThis(selectNoneActionText ) # InvertSelection selectInvertActionText = "<u><b>Invert Selection</b></u> (Ctrl + Shift + I)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Invert.png\"><br> "\ "Inverts the current selection.</p>" win.selectInvertAction.setWhatsThis(selectInvertActionText ) # Select Connected selectConnectedActionText = "<u><b>Select Connected</b></u> (Ctrl + Shift + C)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Connected.png\"><br> "\ "Selects all the atoms that can be reached by the currently selected atom "\ "via an unbroken chain of bonds. </p>"\ "<p>You can also select all connected atoms by double clicking on an atom or bond "\ "while in <b>Build</b> mode.</p>" win.selectConnectedAction.setWhatsThis(selectConnectedActionText ) # Select Doubly selectDoublyActionText = "<u><b>Select Doubly</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Select/Select_Doubly.png\"><br> "\ "Selects all the atoms that can be reached from a currently selected "\ "atom through two disjoint unbroken chains of bonds. Atoms singly "\ "connected to this group and unconnected to anything else are also "\ "included in the selection."\ "</p>" win.selectDoublyAction.setWhatsThis(selectDoublyActionText ) # Expand Selection selectExpandActionText = "<u><b>Expand Selection</b></u> (Ctrl + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Expand.png\"><br> "\ "Selects any atom that is a neighbor of a currently selected atom."\ "</p>" win.selectExpandAction.setWhatsThis(selectExpandActionText ) # Contract Selection selectContractActionText = "<u><b>Contract Selection</b></u> (Ctrl + Shift + D)<br>"\ "<p><img source=\"ui/actions/Tools/Select/Contract.png\"><br> "\ "Deselects any atom that is a neighbor of a non-picked atom or has a bondpoint."\ "</p>" win.selectContractAction.setWhatsThis(selectContractActionText ) # # Modify Toolbar # # Adjust Selection modifyAdjustSelActionText = "<u><b>Adjust Selection</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_Selection.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the selection</i>) to make the geometry more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustSelAction.setWhatsThis(modifyAdjustSelActionText ) # Adjust All modifyAdjustAllActionText = "<u><b>Adjust All</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Adjust_All.png\"><br> "\ "Adjusts the atom and bond positions (<i>of the entire part</i>) to make the geometry of the part more realistic. "\ "The operations used to move the atoms and bonds approximate molecular mechanics methods."\ "</p>" win.modifyAdjustAllAction.setWhatsThis(modifyAdjustAllActionText ) # Hydrogenate modifyHydrogenateActionText = "<u><b>Hydrogenate</b></u> <br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Hydrogenate.png\"><br> "\ "Adds hydrogen atoms to all the bondpoints in the selection.</p>" win.modifyHydrogenateAction.setWhatsThis(modifyHydrogenateActionText ) # Dehydrogenate modifyDehydrogenateActionText = "<u><b>Dehydrogenate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Dehydrogenate.png\"><br> "\ "Removes all hydrogen atoms from the selection.</p>" win.modifyDehydrogenateAction.setWhatsThis(modifyDehydrogenateActionText ) # Passivate modifyPassivateActionText = "<u><b>Passivate</b></u> (Ctrl + P)<br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Passivate.png\"><br> "\ "Changes the types of incompletely bonded atoms to atoms with the "\ "right number of bonds, using atoms with the best atomic radius."\ "</p>" win.modifyPassivateAction.setWhatsThis(modifyPassivateActionText ) # Stretch modifyStretchActionText = "<u><b>Stretch</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Stretch.png\"><br> "\ "Stretches the bonds of the selected chunk(s).</p>" win.modifyStretchAction.setWhatsThis(modifyStretchActionText ) # Delete Bonds modifyDeleteBondsActionText = "<u><b>Cut Bonds</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Delete_Bonds.png\"><br> "\ "Delete all bonds between selected and unselected atoms or chunks.</p>" win.modifyDeleteBondsAction.setWhatsThis(modifyDeleteBondsActionText ) # Separate/New Chunk modifySeparateActionText = "<u><b>Separate</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Separate.png\"><br> "\ "Creates a new chunk(s) from the currently selected atoms. "\ "If the selected atoms belong to different chunks, multiple new "\ "chunks are created.</p>" win.modifySeparateAction.setWhatsThis(modifySeparateActionText ) # New Chunk makeChunkFromSelectedAtomsActionText = "<u><b>New Chunk</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/New_Chunk.png\"><br> "\ "Creates a new chunk from the currently selected atoms. "\ "All atoms end up in a single chunk.</p>" win.makeChunkFromSelectedAtomsAction.setWhatsThis(makeChunkFromSelectedAtomsActionText ) # Merge Chunks modifyMergeActionText = "<u><b>Merge Chunks</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Merge.png\"><br> "\ "Merges two or more chunks into a single chunk.</p>" win.modifyMergeAction.setWhatsThis(modifyMergeActionText ) # Invert Chunks modifyInvertActionText = "<u><b>Invert</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Invert.png\"><br> "\ "Inverts the atoms of the selected chunks.</p>" win.modifyInvertAction.setWhatsThis(modifyInvertActionText ) # Mirror Selected Chunks #Note that the the feature name is intentionally kept "Mirror" instead of "Mirror Chunks" because # in future we will support mirrroing atoms as well. -- ninad060814 modifyMirrorActionText = "<u><b>Mirror</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Mirror.png\"><br> "\ "Mirrors the selected <b> chunks </b> about a reference Grid Plane.<br>"\ "<font color=\"#808080\">Note: In this version, it doesn't mirror jigs or individual atoms.</font> </p>" win.modifyMirrorAction.setWhatsThis(modifyMirrorActionText ) # Align to Common Axis modifyAlignCommonAxisActionText = "<u><b>Align To Common Axis</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/AlignToCommonAxis.png\"><br> "\ "Aligns one or more chunks to the axis of the first selected chunk."\ "You must select two or more chunks before using this feature."\ "</p>" win. modifyAlignCommonAxisAction.setWhatsThis( modifyAlignCommonAxisActionText ) #Center on Common Axis modifyCenterCommonAxisActionText= "<u><b>Center On Common Axis</b></u><br>"\ "<p><b> Moves</b> all selected chunks to the center of the <b> first </b> selected chunk "\ "and also <b>aligns</b> them to the axis of the first one ."\ "You must select two or more chunks before using this feature. </p>" win.modifyCenterCommonAxisAction.setWhatsThis(modifyCenterCommonAxisActionText) # # Tools Toolbar # # Select Chunks toolsSelectMoleculesActionText = "<u><b>Select Chunks</b></u><!-- [[Feature:Select Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/63.png\"><br> "\ "<b>Select Chunks</b> allows you to select/unselect chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Click/Drag</b> - selects a chunk(s).</p>"\ "<p><b>Ctrl+Left Click/Drag</b> - removes chunk(s) from selection.</p>"\ "<p><b>Shift+Left Click/Drag</b> - adds chunk(s) to selection."\ "</p>" win. toolsSelectMoleculesAction.setWhatsThis( toolsSelectMoleculesActionText ) # Move Chunks toolsMoveMoleculeActionText = "<u><b>Move Chunks</b></u><!-- [[Feature:Move Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Toolbars/Standard/64.png\"><br> "\ "Activates <b>Move Chunks</b> mode, allowing you to select, "\ "move and rotate one of more chunks with the mouse.</p>"\ "<p><b><u>Mouse/Key Combinations</u></b></p>"\ "<p><b>Left Drag</b> - moves the selected chunk(s).</p>"\ "<p><b>Ctrl+Left Drag</b> - freely rotates selected chunk(s).</p>"\ "<p><b>Shift+Left Drag</b> - constrained movement and rotation of a chunk about its own axis."\ "</p>" win. toolsMoveMoleculeAction.setWhatsThis( toolsMoveMoleculeActionText ) # Build Atoms toolsDepositAtomActionText = \ "<u><b>Build Atoms</b></u><!-- [[Feature:Build Atoms]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Structures/Atoms.png\"><br> "\ "<b>Build Atoms</b> allows you to build structures one atom at a time or by depositing objects "\ "that are on the paste clipboard. You can also insert structures from the "\ "NanoEngineer-1 Parts Library.</p>"\ "<p>It is also possible to change bond types between atoms using the <b>Bond Tool</b> or by "\ "simply dragging and dropping one bondpoint onto another."\ "</p>" win. toolsDepositAtomAction.setWhatsThis( toolsDepositAtomActionText ) # Build Crystal (was Cookie Cutter Mode) toolsCookieCutActionText = "<u><b>Build Crystal</b></u><!-- [[Feature:Build Crystal]] --><br>"\ "<p><><img source=\"ui/actions/Tools/Build Structures/Cookie_Cutter.png\"><br> "\ "<b>Build Crystal</b> provides tools for cutting out multi-layered shapes from "\ "slabs of diamond or lonsdaleite lattice.</p>" win. toolsCookieCutAction.setWhatsThis( toolsCookieCutActionText ) # Tools > Extrude toolsExtrudeActionText = "<u><b>Extrude</b></u><!-- [[Feature:Extrude Mode]] --><br>"\ "<p><img source=\"ui/actions/Insert/Features/Extrude.png\"><br> "\ "Activates <b>Extrude</b> mode, allowing you to create a rod or ring using a chunk as "\ "a repeating unit.</p>" win. toolsExtrudeAction.setWhatsThis( toolsExtrudeActionText ) # Fuse Chunks Mode toolsFuseChunksActionText = "<u><b>Fuse Chunks Mode</b></u><!-- [[Feature:Fuse Chunks Mode]] --><br>"\ "<p><img source=\"ui/actions/Tools/Build Tools/Fuse.png\"><br> "\ "<b>Fuse Chunks</b> can be used to interactively join two or more "\ "chunks by dragging chunks around and fusing them together. "\ "Two fusing options are supported:<br><br>"\ "<b>Make Bonds</b> creates bonds between the existing bondpoints "\ "of two or more chunks. Bondpoints are highlighted and lines are drawn (and undrawn) as chunks "\ "are dragged to indicate bonding relationships between bondpoints. Bondpoints with "\ "multiple bonding relationships are highlighted in magenta to indicate that they cannot "\ "make bonds.<br><br>"\ "<b>Fuse Atoms</b> fuses pairs of overlapping atoms between chunks. The set of overlapping "\ "atoms in the selected chunk(s) are highlighted in green while the set of atoms that will be deleted "\ "in non-selected chunks are highlighted in dark red. It is possible that deleted atoms will not fuse "\ "properly, leaving bondpoints on the selected chunk(s) atoms. This is a bug. To help "\ "minimize this problem, try to get the bonds of overlapping atoms oriented similarly.<br>"\ "</p>" win.toolsFuseChunksAction.setWhatsThis( toolsFuseChunksActionText ) # # Simulator Toolbar # # Minimize Energy simMinimizeEnergyActionText = "<u><b>Minimize Energy</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Minimize_Energy.png\"><br> "\ "The potential energy of a chemical structure is a function of the relative positions of its atoms. " \ "To obtain this energy with complete accuracy involves a lot of computer time spent on quantum " \ "mechanical calculations, which cannot be practically done on a desktop computer. "\ "To get an approximate potential energy without all that, we represent the energy as a series of " \ "terms involving geometric properties of the structure: lengths of chemical bonds, angles between " \ "pairs and triples of chemical bonds, etc. </p>" \ "<p>" \ "As is generally the case with physical systems, the gradient of the potential energy represents " \ "the forces acting on various particles. The atoms want to move in the direction that most reduces " \ "the potential energy. Energy minimization is a process of adjusting the atom positions to try to find " \ "a global minimum of the potential energy. Each atom contributes three variables (its x, y, and z " \ "coordinates) so the search space is multi-dimensional. The global minimum is the configuration " \ "that the atoms will settle into if lowered to zero Kelvin. </p>" win. simMinimizeEnergyAction.setWhatsThis( simMinimizeEnergyActionText ) # Run Dynamics (was NanoDynamics-1). Mark 060807. simSetupActionText = "<u><b>Run Dynamics</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Run_Dynamics.png\"><br> "\ "This is the interface to the NanoEngineer-1 molecular dynamics simulator. "\ "Enter the parameters of the simulation and click <b>Run Simulation</b>."\ "The simulator creates a trajectory (movie) file by calculating the inter-atomic potentials and bonding "\ "of the entire model.</p>" win. simSetupAction.setWhatsThis( simSetupActionText ) # Play Movie (was Movie Player) Mark 060807. simMoviePlayerActionText = "<u><b>Play Movie</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Play_Movie.png\"><br> "\ "Plays the most recent trajectory (movie) file created by the NanoEngineer-1 molecular dynamics simulator."\ "To create a movie file, select <b>Run Dynamics</b>.</p>" win. simMoviePlayerAction.setWhatsThis( simMoviePlayerActionText ) # Make Graphs (was Plot Tool) Mark 060807. simPlotToolActionText = "<u><b>Make Graphs</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Make_Graphs.png\"><br> "\ "Make a graph of a simulator trace file using GNUplot. A simulation must be run to create "\ "the trace file and the part must have a jig that writes output to the trace file. <br><br>"\ "The following list of jigs write data to the trace file:<br>"\ "<b>Rotary Motors:</b> speed (GHz) and torque (nn-nm)<br>"\ "<b>Linear Motors:</b> displacement (pm)<br>"\ "<b>Anchors:</b> torque (nn-nm)<br>"\ "<b>Thermostats:</b> energy added (zJ)<br>"\ "<b>Thermometer:</b> temperature (K)<br>"\ "<b>Measure Distance:</b> distance(angstroms)<br>"\ "<b>Measure Angle:</b> angle (degrees)<br>"\ "<b>Measure Dihedral:</b> dihedral(degrees)<br>"\ "</p>" win. simPlotToolAction.setWhatsThis( simPlotToolActionText ) # # Dashboard Buttons # # Done toolsDoneActionText = "<u><b>Done</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Done.png\"><br> "\ "Completes the current operation and enters the default mode."\ "</p>" win. toolsDoneAction.setWhatsThis( toolsDoneActionText ) # Cancel toolsCancelActionText = "<u><b>Cancel</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/Cancel.png\"><br> "\ "Cancels the current operation and enters the default mode."\ "</p>" win. toolsCancelAction.setWhatsThis( toolsCancelActionText ) # Back up toolsBackUpActionText = "<u><b>Back Up</b></u><br>"\ "Undoes the previous operation."\ "</p>" win. toolsBackUpAction.setWhatsThis( toolsBackUpActionText ) # Start Over toolsStartOverActionText = "<u><b>Start Over</b></u><br>"\ "Cancels the current operation, leaving the user in the current mode."\ "</p>" win.toolsStartOverAction.setWhatsThis(toolsStartOverActionText ) # Add Layers ccAddLayerActionText = "<u><b>Add Layer</b></u><br>"\ "<p><img source=\"ui/actions/Properties Manager/addlayer.png\"><br> "\ "Adds a new layer of diamond lattice to the existing layer."\ "</p>" win.ccAddLayerAction.setWhatsThis(ccAddLayerActionText ) # # Jigs # # Anchor jigsAnchorActionText = "<u><b>Anchor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Anchor.png\"><br> "\ "Attaches an <b>Anchor</b> to the selected atom(s), which "\ "constrains its motion during a minimization or simulation."\ "</p>"\ "<p>To create an Anchor, enter <b>Build</b> mode, "\ "select the atom(s) you want to anchor and then select this action. "\ "Anchors are drawn as a black wireframe box around each selected atom."\ "</p>" win.jigsAnchorAction.setWhatsThis(jigsAnchorActionText ) # Rotary Motor jigsMotorActionText = "<u><b>Rotary Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Rotary_Motor.png\"><br> "\ "Attaches a <b>Rotary Motor</b> to the selected atoms. The Rotary Motor is used by "\ "the simulator to apply rotary motion to a set of atoms during a simulation run. You may "\ "specify the <b>torque (in nN*nm)</b> and <b>speed (in Ghz)</b> of the motor."\ "</p>"\ "<p>To create a Rotary Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsMotorAction.setWhatsThis(jigsMotorActionText ) # Linear Motor jigsLinearMotorActionText = "<u><b>Linear Motor</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Linear_Motor.png\"><br> "\ "Attaches a <b>Linear Motor</b> to the selected atoms. The Linear Motor is used by "\ "the simulator to apply linear motion to a set of atoms during a simulation run. You may "\ "specify the <b>force (in nN*nm)</b> and <b>stiffness (in N/m)</b> of the motor."\ "</p>"\ "<p>To create a Linear Motor, enter <b>Build</b> mode, "\ "select the atoms you want to attach the motor to and then select this action."\ "</p>" win.jigsLinearMotorAction.setWhatsThis(jigsLinearMotorActionText ) # Thermostat jigsStatActionText = "<u><b>Thermostat</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Thermostat.png\"><br> "\ "Attaches a <b>Langevin Thermostat</b> to a single selected atom, thereby associating "\ "the themostat to the entire molecule of which the selected atom is a member. The user "\ "specifies the temperature (in Kelvin)."\ "</p>"\ "<p>The Langevin Thermostat is used to set and hold the temperature "\ "of a molecule during a simulation run."\ "</p>"\ "<p>To create a Langevin Thermostat, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermostat is drawn as a "\ "blue wireframe box around the selected atom."\ "</p>" win.jigsStatAction.setWhatsThis(jigsStatActionText ) # Thermometer jigsThermoActionText = "<u><b>Thermometer</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Thermometer.png\"><br> "\ "Attaches a <b>Thermometer</b> to a single selected atom, thereby associating "\ "the themometer to the entire molecule of which the selected atom is a member. "\ "<p>The temperature of the molecule will be recorded and written to a trace file "\ "during a simulation run."\ "</p>"\ "<p>To create a Thermometer, enter <b>Build</b> mode, "\ "select a single atom and then select this action. The thermometer is drawn as a "\ "dark red wireframe box around the selected atom."\ "</p>" win.jigsThermoAction.setWhatsThis(jigsThermoActionText ) # ESP Image jigsESPImageActionText = "<u><b>ESP Image</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/ESP_Image.png\"><br> "\ "An <b>ESP Image</b> allows the user to visualize the electrostatic potential "\ "of points on the face of a square 2D surface. Nano-Hive's MPQC ESP Plane plug-in "\ "is used to calculate the electrostatic potential."\ "</p>"\ "<p>To create an ESP Image, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. The ESP Image is drawn as a "\ "plane with a bounding volume."\ "</p>" win.jigsESPImageAction.setWhatsThis(jigsESPImageActionText ) # Atom Set jigsAtomSetActionText = "<u><b>Atom Set</b></u><br>"\ "<p><img source=\"ui/actions/Tools/Atom_Set.png\"><br> "\ "An <b>Atom Set</b> jig provides a convienient way to save an atom "\ "selection which can be reselected later."\ "</p>"\ "<p>To create an Atom Set, enter <b>Build</b> mode, "\ "select any number of atoms and then select this jig. The Atom Set is "\ "drawn as a set of wireframe boxes around each atom in the selection."\ "</p>"\ "<p>To reselect the atoms in an Atom Set, select it's context "\ "menu in the Model Tree and click the menu item that states "\ "<b>Select this jig's atoms</b>."\ "</p>" win.jigsAtomSetAction.setWhatsThis(jigsAtomSetActionText ) # Measure Distance jigsDistanceActionText = "<u><b>Measure Distance Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Distance.png\"><br> "\ "A <b>Measure Distance Jig</b> functions as a dimension to display the "\ "distance between two atoms."\ "</p>"\ "<p>To create the Measure Distance Jig, enter <b>Build</b> mode, "\ "select two atoms and then select this jig. The Measure Distance Jig is "\ "drawn as a pair of wireframe boxes around each atom connected by "\ "a line and a pair of numbers. The first number is the distance between the "\ "VdW radii (this can be a negative number for atoms that are close together). "\ "The second number is the distance between the nuclei."\ "</p>"\ "<p>The Measure Distance Jig will write the two distance values to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDistanceAction.setWhatsThis(jigsDistanceActionText ) # Measure Angle jigsAngleActionText = "<u><b>Measure Angle Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Angle.png\"><br> "\ "A <b>Measure Angle Jig</b> functions as a dimension to display the "\ "angle between three atoms.</p>"\ "<p>To create the Measure Angle Jig, enter <b>Build</b> mode, "\ "select three atoms and then select this jig. The Measure Angle Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the angle between the three atoms."\ "</p>"\ "<p>The Measure Angle Jig will write the angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsAngleAction.setWhatsThis(jigsAngleActionText ) # Measure Dihedral jigsDihedralActionText = "<u><b>Measure Dihedral Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Measurements/Measure_Dihedral.png\"><br> "\ "A <b>Measure Dihedral Jig</b> functions as a dimension to display the "\ "dihedral angle of a four atom sequence.</p>"\ "<p>To create the Measure Dihedral Jig, enter <b>Build</b> mode, "\ "select four atoms and then select this jig. The Measure Dihedral Jig is "\ "drawn as a set of wireframe boxes around each atom and a number "\ "which is the dihedral angle value."\ "</p>"\ "<p>The Measure Dihedral Jig will write the dihedral angle value to the trace file "\ "for each frame of a simulation run and can be plotted using the Plot Tool."\ "</p>" win.jigsDihedralAction.setWhatsThis(jigsDihedralActionText ) # GAMESS Jig jigsGamessActionText = "<u><b>GAMESS Jig</b></u><br>"\ "<p><img source=\"ui/actions/Simulation/Gamess.png\"><br> "\ "A <b>GAMESS Jig</b> is used to tag a set of atoms for running a GAMESS "\ "calculation. <b>Energy</b> and <b>Geometry Optimization</b> calculations are supported."\ "</p>"\ "<p>To create the GAMESS Jig, enter <b>Build</b> mode, "\ "select the atoms to tag and then select this jig. The GAMESS Jig is drawn as a "\ "set of magenta wireframe boxes around each atom."\ "</p>" win.jigsGamessAction.setWhatsThis(jigsGamessActionText ) # Grid Plane Jig jigsGridPlaneActionText = "<u><b>Grid Plane</b></u><br>"\ "<p><img source=\"ui/actions/Insert/Reference Geometry/Grid_Plane.png\"><br> "\ "A <b>Grid Plane</b> jig is a rectanglar plane that can display a square or SiC grid "\ "within its boundary. It is often used as an aid in constructing large lattice "\ "structures made of silicon carbide (SiC). It is also used as a visual aid in estimating "\ "distances between atoms and/or other structures."\ "</p>"\ "<p>To create the Grid Plane jig, enter <b>Build</b> mode, "\ "select three or more atoms and then select this jig. "\ "</p>"\ "<p>The Grid Plane jig is drawn as a rectanglar plane with a grid."\ "</p>" win.jigsGridPlaneAction.setWhatsThis(jigsGridPlaneActionText ) # # Help Toolbar # # What's This helpWhatsThisText = "<u><b>What's This</b></u><br>"\ "<p><img source=\"ui/actions/Help/WhatsThis.png\"><br> "\ "Click this option to invoke a small question mark that is attached to the mouse pointer. "\ "Click on a feature which you would like more information about. "\ "A popup box appears with information about the feature.</p>" win.helpWhatsThisAction.setWhatsThis( helpWhatsThisText ) win.helpMouseControlsAction.setWhatsThis('Displays help for mouse controls') win.helpKeyboardShortcutsAction.setWhatsThis('Displays help for keyboard shortcuts')
|
596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
471,
21374,
263,
225,
632,
891,
5657,
30,
12901,
21,
1807,
2774,
5668,
733,
18,
632,
723,
225,
5657,
30,
587,
95,
38,
95,
53,
6376,
3829,
97,
32,
2505,
2207,
2434,
18,
88,
2693,
28012,
18,
832,
19,
24,
19,
85,
5254,
5668,
18,
2620,
26114,
225,
632,
7652,
30,
4276,
490,
11113,
4800,
315,
23801,
1807,
1220,
6,
977,
364,
3675,
4953,
10965,
16,
11234,
316,
279,
707,
2566,
527,
67,
3350,
2323,
67,
2211,
67,
955,
9334,
486,
316,
333,
585,
18,
3536,
225,
468,
468,
1387,
13288,
3215,
468,
225,
468,
3502,
1387,
585,
3678,
1528,
273,
3532,
89,
4438,
70,
34,
3678,
1387,
1757,
70,
4695,
89,
34,
565,
261,
12418,
397,
531,
13,
32,
2848,
34,
1548,
3532,
84,
4438,
6081,
1084,
5189,
4881,
19,
4905,
19,
812,
19,
3678,
18,
6446,
2412,
4438,
2848,
34,
1548,
315,
17778,
279,
394,
585,
1199,
64,
6823,
84,
2984,
225,
5657,
18,
768,
3678,
1803,
18,
542,
2888,
2323,
2503,
12,
585,
3678,
1528,
262,
468,
6164,
1387,
225,
585,
5010,
1528,
273,
3532,
89,
4438,
70,
34,
5010,
1387,
1757,
70,
4695,
89,
4438,
2848,
2984,
64,
315,
14214,
279,
585,
434,
1281,
19028,
1706,
585,
740,
3260,
635,
1548,
3532,
70,
34,
3678,
70,
873,
1757,
70,
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,
752,
2888,
2323,
2503,
1528,
1290,
6376,
3829,
16166,
12,
8082,
4672,
3536,
15605,
326,
315,
23801,
1807,
1220,
6,
2809,
977,
358,
1516,
1392,
316,
326,
12901,
21,
2774,
5668,
12748,
87,
471,
21374,
263,
225,
632,
891,
5657,
30,
12901,
21,
1807,
2774,
5668,
733,
18,
632,
723,
225,
5657,
30,
587,
95,
38,
95,
53,
6376,
3829,
97,
32,
2505,
2207,
2434,
18,
88,
2693,
28012,
18,
832,
19,
24,
19,
85,
5254,
5668,
18,
2620,
26114,
225,
632,
7652,
30,
4276,
490,
11113,
4800,
315,
23801,
1807,
1220,
6,
977,
364,
3675,
4953,
10965,
16,
11234,
316,
279,
707,
2566,
527,
67,
3350,
2323,
67,
2211,
67,
955,
9334,
486,
316,
333,
585,
18,
2
] |
language='c++'
|
depends = ['sage/combinat/partitions_c.h'], language='c++'
|
def is_newer(file1, file2): """ Return True if either file2 does not exist or is older than file1. If file1 does not exist, always return False. """ if not os.path.exists(file1): return False if not os.path.exists(file2): return True if os.path.getmtime(file2) < os.path.getmtime(file1): return True return False
|
12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/12aff705aa1e2b2dc6e401b763fe2e9e51bdf02d/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
2704,
264,
12,
768,
21,
16,
585,
22,
4672,
3536,
2000,
1053,
309,
3344,
585,
22,
1552,
486,
1005,
578,
353,
12156,
2353,
585,
21,
18,
225,
971,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
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,
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,
585,
21,
1552,
486,
1005,
16,
3712,
327,
1083,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
21,
4672,
327,
1083,
309,
486,
1140,
18,
803,
18,
1808,
12,
768,
22,
4672,
327,
1053,
309,
1140,
18,
803,
18,
588,
10838,
12,
768,
22,
13,
411,
1140,
18,
803,
18,
588,
10838,
12,
768,
21,
4672,
327,
1053,
327,
1083,
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
] |
"""Panel for PeopleTank.""" mainMenu = Links() itemMenu = Links() def __init__(self,parent): """Initialize.""" data = bosh.PeopleData() SashTankPanel.__init__(self,data,parent) left,right = self.left,self.right self.gList = balt.Tank(left,data, karmacons, PeoplePanel.mainMenu, PeoplePanel.itemMenu, details=self, style=wx.LC_REPORT) self.gList.SetSizeHints(100,100) self.gName = wx.TextCtrl(right,-1,style=wx.TE_READONLY) self.gText = wx.TextCtrl(right,-1,style=wx.TE_MULTILINE) self.gKarma = spinCtrl(right,'0',min=-5,max=5,onSpin=self.OnSpin) self.gKarma.SetSizeHints(40,-1) self.Bind(wx.EVT_SIZE,self.OnSize) right.SetSizer(vSizer( (hSizer( (self.gName,1,wx.GROW), (self.gKarma,0,wx.GROW), ),0,wx.GROW), (self.gText,1,wx.GROW|wx.TOP,4), )) wx.LayoutAlgorithm().LayoutWindow(self, right) def SetStatusCount(self): """Sets status bar count field.""" text = _('People: %d') % (len(self.data.data),) statusBar.SetStatusText(text,2) def OnSpin(self,event): """Karma spin.""" if not self.detailsItem: return karma = int(self.gKarma.GetValue()) text = self.data[self.detailsItem][2] self.data[self.detailsItem] = (time.time(),karma,text) self.gList.UpdateItem(self.gList.GetIndex(self.detailsItem)) self.data.setChanged() def SaveDetails(self): """Saves details if they need saving.""" if not self.gText.IsModified(): return if not self.detailsItem or self.detailsItem not in self.data: return mtime,karma,text = self.data[self.detailsItem] self.data[self.detailsItem] = (time.time(),karma,self.gText.GetValue().strip()) self.gList.UpdateItem(self.gList.GetIndex(self.detailsItem)) self.data.setChanged() def RefreshDetails(self,item=None): """Refreshes detail view associated with data from item.""" item = item or self.detailsItem if item not in self.data: item = None self.SaveDetails() if item is None: self.gKarma.SetValue(0) self.gName.SetValue('') self.gText.Clear() else: karma,text = self.data[item][1:3] self.gName.SetValue(item) self.gKarma.SetValue(karma) self.gText.SetValue(text) self.detailsItem = item
|
"""Panel for PeopleTank.""" mainMenu = Links() itemMenu = Links() def __init__(self,parent): """Initialize.""" data = bosh.PeopleData() SashTankPanel.__init__(self,data,parent) left,right = self.left,self.right self.gList = balt.Tank(left,data, karmacons, PeoplePanel.mainMenu, PeoplePanel.itemMenu, details=self, style=wx.LC_REPORT) self.gList.SetSizeHints(100,100) self.gName = wx.TextCtrl(right,-1,style=wx.TE_READONLY) self.gText = wx.TextCtrl(right,-1,style=wx.TE_MULTILINE) self.gKarma = spinCtrl(right,'0',min=-5,max=5,onSpin=self.OnSpin) self.gKarma.SetSizeHints(40,-1) self.Bind(wx.EVT_SIZE,self.OnSize) right.SetSizer(vSizer( (hSizer( (self.gName,1,wx.GROW), (self.gKarma,0,wx.GROW), ),0,wx.GROW), (self.gText,1,wx.GROW|wx.TOP,4), )) wx.LayoutAlgorithm().LayoutWindow(self, right) def SetStatusCount(self): """Sets status bar count field.""" text = _('People: %d') % (len(self.data.data),) statusBar.SetStatusText(text,2) def OnSpin(self,event): """Karma spin.""" if not self.detailsItem: return karma = int(self.gKarma.GetValue()) text = self.data[self.detailsItem][2] self.data[self.detailsItem] = (time.time(),karma,text) self.gList.UpdateItem(self.gList.GetIndex(self.detailsItem)) self.data.setChanged() def SaveDetails(self): """Saves details if they need saving.""" if not self.gText.IsModified(): return if not self.detailsItem or self.detailsItem not in self.data: return mtime,karma,text = self.data[self.detailsItem] self.data[self.detailsItem] = (time.time(),karma,self.gText.GetValue().strip()) self.gList.UpdateItem(self.gList.GetIndex(self.detailsItem)) self.data.setChanged() def RefreshDetails(self,item=None): """Refreshes detail view associated with data from item.""" item = item or self.detailsItem if item not in self.data: item = None self.SaveDetails() if item is None: self.gKarma.SetValue(0) self.gName.SetValue('') self.gText.Clear() else: karma,text = self.data[item][1:3] self.gName.SetValue(item) self.gKarma.SetValue(karma) self.gText.SetValue(text) self.detailsItem = item
|
def OnCloseWindow(self): """To be called when containing frame is closing. Use for saving data, scrollpos, etc.""" if bosh.messages: bosh.messages.save() settings['bash.messages.scrollPos'] = gMessageList.vScrollPos
|
3ac43907fa076fea1e8d682219e2b28fc7419f7b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/3ac43907fa076fea1e8d682219e2b28fc7419f7b/basher.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4605,
3829,
12,
2890,
4672,
3536,
774,
506,
2566,
1347,
4191,
2623,
353,
7647,
18,
2672,
364,
12392,
501,
16,
5532,
917,
16,
5527,
12123,
309,
324,
17636,
18,
6833,
30,
324,
17636,
18,
6833,
18,
5688,
1435,
1947,
3292,
28734,
18,
6833,
18,
12033,
1616,
3546,
273,
314,
1079,
682,
18,
90,
6806,
1616,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
18,
2672,
364,
12392,
501,
16,
5532,
917,
16,
5527,
12123,
309,
324,
17636,
18,
6833,
30,
324,
17636,
18,
6833,
18,
5688,
1435,
1947,
3292,
28734,
18,
6833,
18,
12033,
1616,
3546,
273,
314,
1079,
682,
18,
90,
6806,
1616,
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
] |
opts.update(url.query) util.coerce_kw_type(opts, 'use_ansi', bool)
|
if 'mode' in url.query: opts['mode'] = url.query['mode'] if isinstance(opts['mode'], basestring): mode = opts['mode'].upper() if mode == 'SYSDBA': opts['mode'] = self.dbapi.SYSDBA elif mode == 'SYSOPER': opts['mode'] = self.dbapi.SYSOPER else: util.coerce_kw_type(opts, 'mode', int)
|
def create_connect_args(self, url): if url.database: # if we have a database, then we have a remote host port = url.port if port: port = int(port) else: port = 1521 dsn = self.dbapi.makedsn(url.host,port,url.database) else: # we have a local tnsname dsn = url.host opts = dict( user=url.username, password=url.password, dsn = dsn, threaded = self.threaded, twophase = self.allow_twophase, ) opts.update(url.query) util.coerce_kw_type(opts, 'use_ansi', bool) return ([], opts)
|
d3fb340bc2a3729ed142b1e3211d018e688aa385 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1074/d3fb340bc2a3729ed142b1e3211d018e688aa385/oracle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3612,
67,
1968,
12,
2890,
16,
880,
4672,
309,
880,
18,
6231,
30,
468,
309,
732,
1240,
279,
2063,
16,
1508,
732,
1240,
279,
2632,
1479,
1756,
273,
880,
18,
655,
309,
1756,
30,
1756,
273,
509,
12,
655,
13,
469,
30,
1756,
273,
4711,
5340,
11676,
273,
365,
18,
1966,
2425,
18,
81,
9477,
8134,
12,
718,
18,
2564,
16,
655,
16,
718,
18,
6231,
13,
469,
30,
468,
732,
1240,
279,
1191,
268,
2387,
529,
11676,
273,
880,
18,
2564,
1500,
273,
2065,
12,
729,
33,
718,
18,
5053,
16,
2201,
33,
718,
18,
3664,
16,
11676,
273,
11676,
16,
286,
20528,
273,
365,
18,
451,
20528,
16,
2339,
23169,
448,
273,
365,
18,
5965,
67,
11246,
23169,
448,
16,
262,
309,
296,
3188,
11,
316,
880,
18,
2271,
30,
1500,
3292,
3188,
3546,
273,
880,
18,
2271,
3292,
3188,
3546,
309,
1549,
12,
4952,
3292,
3188,
17337,
10699,
4672,
1965,
273,
1500,
3292,
3188,
29489,
5797,
1435,
309,
1965,
422,
296,
30664,
2290,
37,
4278,
1500,
3292,
3188,
3546,
273,
365,
18,
1966,
2425,
18,
30664,
2290,
37,
1327,
1965,
422,
296,
7474,
3584,
3194,
4278,
1500,
3292,
3188,
3546,
273,
365,
18,
1966,
2425,
18,
7474,
3584,
3194,
469,
30,
1709,
18,
2894,
2765,
67,
9987,
67,
723,
12,
4952,
16,
296,
3188,
2187,
509,
13,
282,
327,
23265,
6487,
1500,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3612,
67,
1968,
12,
2890,
16,
880,
4672,
309,
880,
18,
6231,
30,
468,
309,
732,
1240,
279,
2063,
16,
1508,
732,
1240,
279,
2632,
1479,
1756,
273,
880,
18,
655,
309,
1756,
30,
1756,
273,
509,
12,
655,
13,
469,
30,
1756,
273,
4711,
5340,
11676,
273,
365,
18,
1966,
2425,
18,
81,
9477,
8134,
12,
718,
18,
2564,
16,
655,
16,
718,
18,
6231,
13,
469,
30,
468,
732,
1240,
279,
1191,
268,
2387,
529,
11676,
273,
880,
18,
2564,
1500,
273,
2065,
12,
729,
33,
718,
18,
5053,
16,
2201,
33,
718,
18,
3664,
16,
11676,
273,
11676,
16,
286,
20528,
273,
365,
18,
451,
20528,
16,
2339,
23169,
448,
273,
365,
18,
2
] |
'shortdescr': short_descr, 'longdescr': long_descr,
|
'descr': descr,
|
def __edit_update_patch(pname, options): """Edit the given patch interactively. """ patch = crt_series.get_patch(pname) if options.diff_opts: if not options.diff: raise CmdException, '--diff-opts only available with --diff' diff_flags = options.diff_opts.split() else: diff_flags = [] # generate the file to be edited descr = patch.get_description().strip() descr_lines = descr.split('\n') authdate = patch.get_authdate() short_descr = descr_lines[0].rstrip() long_descr = reduce(lambda x, y: x + '\n' + y, descr_lines[1:], '').strip() tmpl = '%(shortdescr)s\n\n' \ 'From: %(authname)s <%(authemail)s>\n' if authdate: tmpl += 'Date: %(authdate)s\n' tmpl += '\n%(longdescr)s\n' tmpl_dict = { 'shortdescr': short_descr, 'longdescr': long_descr, 'authname': patch.get_authname(), 'authemail': patch.get_authemail(), 'authdate': patch.get_authdate() } if options.diff: # add the patch diff to the edited file bottom = patch.get_bottom() top = patch.get_top() tmpl += '---\n\n' \ '%(diffstat)s\n' \ '%(diff)s' tmpl_dict['diffstat'] = git.diffstat(rev1 = bottom, rev2 = top) tmpl_dict['diff'] = git.diff(rev1 = bottom, rev2 = top, diff_flags = diff_flags) for key in tmpl_dict: # make empty strings if key is not available if tmpl_dict[key] is None: tmpl_dict[key] = '' text = tmpl % tmpl_dict if options.diff: fname = '.stgit-edit.diff' else: fname = '.stgit-edit.txt' # write the file to be edited f = open(fname, 'w+') f.write(text) f.close() # invoke the editor call_editor(fname) __update_patch(pname, fname, options)
|
7e301a7348d0b3006ffa7b2309aa6f40cc29a292 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12366/7e301a7348d0b3006ffa7b2309aa6f40cc29a292/edit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4619,
67,
2725,
67,
2272,
12,
84,
529,
16,
702,
4672,
3536,
4666,
326,
864,
4729,
16592,
4492,
18,
3536,
4729,
273,
30677,
67,
10222,
18,
588,
67,
2272,
12,
84,
529,
13,
225,
309,
702,
18,
5413,
67,
4952,
30,
309,
486,
702,
18,
5413,
30,
1002,
13328,
503,
16,
3534,
5413,
17,
4952,
1338,
2319,
598,
1493,
5413,
11,
3122,
67,
7133,
273,
702,
18,
5413,
67,
4952,
18,
4939,
1435,
469,
30,
3122,
67,
7133,
273,
5378,
225,
468,
2103,
326,
585,
358,
506,
18532,
18426,
273,
4729,
18,
588,
67,
3384,
7675,
6406,
1435,
18426,
67,
3548,
273,
18426,
18,
4939,
2668,
64,
82,
6134,
1357,
712,
273,
4729,
18,
588,
67,
1944,
712,
1435,
225,
3025,
67,
28313,
273,
18426,
67,
3548,
63,
20,
8009,
86,
6406,
1435,
1525,
67,
28313,
273,
5459,
12,
14661,
619,
16,
677,
30,
619,
397,
2337,
82,
11,
397,
677,
16,
18426,
67,
3548,
63,
21,
30,
6487,
875,
2934,
6406,
1435,
225,
10720,
273,
21063,
6620,
28313,
13,
87,
64,
82,
64,
82,
11,
521,
296,
1265,
30,
8975,
1944,
529,
13,
87,
411,
17105,
1944,
3652,
13,
87,
5333,
82,
11,
309,
1357,
712,
30,
10720,
1011,
296,
1626,
30,
8975,
1944,
712,
13,
87,
64,
82,
11,
10720,
1011,
2337,
82,
17105,
5748,
28313,
13,
87,
64,
82,
11,
225,
10720,
67,
1576,
273,
288,
296,
28313,
4278,
18426,
16,
296,
1944,
529,
4278,
4729,
18,
588,
67,
1944,
529,
9334,
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,
4619,
67,
2725,
67,
2272,
12,
84,
529,
16,
702,
4672,
3536,
4666,
326,
864,
4729,
16592,
4492,
18,
3536,
4729,
273,
30677,
67,
10222,
18,
588,
67,
2272,
12,
84,
529,
13,
225,
309,
702,
18,
5413,
67,
4952,
30,
309,
486,
702,
18,
5413,
30,
1002,
13328,
503,
16,
3534,
5413,
17,
4952,
1338,
2319,
598,
1493,
5413,
11,
3122,
67,
7133,
273,
702,
18,
5413,
67,
4952,
18,
4939,
1435,
469,
30,
3122,
67,
7133,
273,
5378,
225,
468,
2103,
326,
585,
358,
506,
18532,
18426,
273,
4729,
18,
588,
67,
3384,
7675,
6406,
1435,
18426,
67,
3548,
273,
18426,
18,
4939,
2668,
64,
82,
6134,
1357,
712,
273,
4729,
18,
588,
67,
1944,
2
] |
exts.append( Extension('pyexpat', ['pyexpat.c'], libraries = ['expat']) )
|
defs = None if find_file(inc_dirs, 'expat.h'): defs = [('HAVE_EXPAT_H', 1)] elif find_file(inc_dirs, 'xmlparse.h'): defs = [] if defs is not None: exts.append( Extension('pyexpat', ['pyexpat.c'], define_macros = defs, libraries = ['expat']) )
|
def detect_modules(self): # XXX this always gets an empty list -- hardwiring to # a fixed list lib_dirs = self.compiler.library_dirs[:] lib_dirs += ['/lib', '/usr/lib', '/usr/local/lib'] exts = []
|
fa7e368ba0a97191af6ffa96902ef92acab87183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/fa7e368ba0a97191af6ffa96902ef92acab87183/setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
10531,
65,
2561,
67,
8291,
1011,
10228,
19,
2941,
2187,
1173,
13640,
19,
2941,
2187,
1173,
13640,
19,
3729,
19,
2941,
3546,
20793,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5966,
67,
6400,
12,
2890,
4672,
468,
11329,
333,
3712,
5571,
392,
1008,
666,
1493,
7877,
91,
11256,
358,
468,
279,
5499,
666,
2561,
67,
8291,
273,
365,
18,
9576,
18,
12083,
67,
8291,
10531,
65,
2561,
67,
8291,
1011,
10228,
19,
2941,
2187,
1173,
13640,
19,
2941,
2187,
1173,
13640,
19,
3729,
19,
2941,
3546,
20793,
273,
5378,
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
] |
if child is not None: return child.text and construct(child.text) or None
|
if child is not None and child.text: return construct(child.text)
|
def get_child_text(parent, tag, construct=unicode): """Find a child node by tag; pass its text through a constructor. Returns None if no matching child is found. """ child = parent.find(_ns(tag)) if child is not None: return child.text and construct(child.text) or None
|
6e2eac9612f600507491c3bb45fc19ffdc987169 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7167/6e2eac9612f600507491c3bb45fc19ffdc987169/PhyloXMLIO.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3624,
67,
955,
12,
2938,
16,
1047,
16,
4872,
33,
9124,
4672,
3536,
3125,
279,
1151,
756,
635,
1047,
31,
1342,
2097,
977,
3059,
279,
3885,
18,
225,
2860,
599,
309,
1158,
3607,
1151,
353,
1392,
18,
3536,
1151,
273,
982,
18,
4720,
24899,
2387,
12,
2692,
3719,
309,
1151,
353,
486,
599,
471,
1151,
18,
955,
30,
327,
4872,
12,
3624,
18,
955,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
1047,
31,
1342,
2097,
977,
3059,
279,
3885,
18,
225,
2860,
599,
309,
1158,
3607,
1151,
353,
1392,
18,
3536,
1151,
273,
982,
18,
4720,
24899,
2387,
12,
2692,
3719,
309,
1151,
353,
486,
599,
471,
1151,
18,
955,
30,
327,
4872,
12,
3624,
18,
955,
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
] |
unicode_me = False, default='auto')
|
unicode_me = False, default='auto', prefix=prefix)
|
def import_projects(parsed_data): # This could prompt the user, asking: # "Want us to import projects? Say no if you have already # added the projects to the new Pootle DB in the web UI." data = parsed_data.__root__._assignments # Is this really the right way? prefix = 'Pootle.projects.' # Filter out unrelated keys keys = [key for key in data if key.startswith(prefix)] # Clean up 'pootle.fullname' into 'pootle' projs = set([key[len(prefix):].split('.')[0] for key in keys]) for proj in map(lambda s: unicode(s, 'utf-8'), projs): # id, for free # code: try: db_proj = Project.objects.get(code=proj) logging.log(logging.INFO, 'Already found a project named %s. '\ 'Data for this project are not imported.', proj) continue except Project.DoesNotExist: db_proj = Project(code=proj) # fullname db_proj.fullname = _get_attribute(data, proj, 'fullname') # description db_proj.description = _get_attribute(data, proj, 'description') # checkstyle db_proj.checkstyle = _get_attribute(data, proj, 'checkstyle', unicode_me = False) # localfiletype db_proj.localfiletype = _get_attribute(data, proj, 'localfiletype', default='po') # createmofiles? db_proj.createmofiles = try_type(bool, _get_attribute(data, proj, 'createmofiles', unicode_me=False, default=0)) # treestyle db_proj.treestyle = _get_attribute(data, proj, 'treestyle', unicode_me = False, default='auto') # ignoredfiles db_proj.ignoredfiles = _get_attribute(data, proj, 'ignoredfiles', default=u'') db_proj.save()
|
b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11388/b258c8ea0266b77ff7c47a2a0f3ddc79f40a8dc8/import_old_prefs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
13582,
12,
10817,
67,
892,
4672,
468,
1220,
3377,
6866,
326,
729,
16,
29288,
30,
468,
315,
59,
970,
584,
358,
1930,
10137,
35,
348,
528,
1158,
309,
1846,
1240,
1818,
468,
3096,
326,
10137,
358,
326,
394,
453,
1632,
298,
2383,
316,
326,
3311,
6484,
1199,
225,
501,
273,
2707,
67,
892,
16186,
3085,
972,
6315,
24326,
468,
2585,
333,
8654,
326,
2145,
4031,
35,
1633,
273,
296,
52,
1632,
298,
18,
13582,
1093,
225,
468,
4008,
596,
640,
9243,
1311,
1311,
273,
306,
856,
364,
498,
316,
501,
309,
498,
18,
17514,
1918,
12,
3239,
25887,
225,
468,
9645,
731,
296,
1631,
352,
298,
18,
21885,
11,
1368,
296,
1631,
352,
298,
11,
450,
2924,
273,
444,
3816,
856,
63,
1897,
12,
3239,
4672,
8009,
4939,
2668,
1093,
25146,
20,
65,
364,
498,
316,
1311,
5717,
225,
364,
10296,
316,
852,
12,
14661,
272,
30,
5252,
12,
87,
16,
296,
3158,
17,
28,
19899,
450,
2924,
4672,
468,
612,
16,
364,
4843,
468,
981,
30,
775,
30,
1319,
67,
17995,
273,
5420,
18,
6911,
18,
588,
12,
710,
33,
17995,
13,
2907,
18,
1330,
12,
11167,
18,
5923,
16,
296,
9430,
1392,
279,
1984,
4141,
738,
87,
18,
2337,
296,
751,
364,
333,
1984,
854,
486,
9101,
1093,
16,
10296,
13,
1324,
1335,
5420,
18,
15264,
30,
1319,
67,
17995,
273,
5420,
12,
710,
33,
17995,
13,
225,
468,
13321,
1319,
67,
17995,
18,
21885,
273,
389,
588,
67,
4589,
12,
892,
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,
1930,
67,
13582,
12,
10817,
67,
892,
4672,
468,
1220,
3377,
6866,
326,
729,
16,
29288,
30,
468,
315,
59,
970,
584,
358,
1930,
10137,
35,
348,
528,
1158,
309,
1846,
1240,
1818,
468,
3096,
326,
10137,
358,
326,
394,
453,
1632,
298,
2383,
316,
326,
3311,
6484,
1199,
225,
501,
273,
2707,
67,
892,
16186,
3085,
972,
6315,
24326,
468,
2585,
333,
8654,
326,
2145,
4031,
35,
1633,
273,
296,
52,
1632,
298,
18,
13582,
1093,
225,
468,
4008,
596,
640,
9243,
1311,
1311,
273,
306,
856,
364,
498,
316,
501,
309,
498,
18,
17514,
1918,
12,
3239,
25887,
225,
468,
9645,
731,
296,
1631,
352,
298,
18,
21885,
11,
1368,
296,
1631,
352,
298,
11,
450,
2
] |
union_foo.append(a_records.where(whereclause))
|
if a_records: union_foo.append(a_records.where(whereclause))
|
def _get_dns_records( self, tid=None, typename=None, id=None, name=None, content=None, mac=None, changed=None, address=None ): """ Get DNS Records @param tid: a database DNS record type ID @param name: the name of this DNS record for filtering @param content: the content field @param mac: filter on a mac address @param changed: if given, will return the DNS records changed after this datetime. @param address: return the A or AAAA record for this IP address @return: filtered DNS records """ # A: A record -> IP -> mac # CNAME: content=A record name -> IP -> mac, # MX: name = A record -> ip -> mac # SRV: content = '% <A record name>' -> IP -> mac # PTR: name = A record ip_content reverse self.require_perms( perms.READ ) columns = [obj.dns_records] whereclause = [] if id: if type(id) is types.IntType or type(id) is types.StringType: whereclause.append( obj.dns_records.c.id == id ) elif type(id) is types.TupleType or type(id) is types.ListType: whereclause.append( obj.dns_records.c.id.in_(id) ) else: raise Exception("Invalid type for id: %s" % type(id)) if address: if type(address) == types.ListType: whereclause.append( obj.dns_records.c.ip_content.in_( address ) ) else: whereclause.append( obj.dns_records.c.ip_content == address ) if tid: if type(tid) == types.ListType: whereclause.append( obj.dns_records.c.tid.in_( tid ) ) else: whereclause.append( obj.dns_records.c.tid == tid ) elif typename: whereclause.append( obj.dns_records.c.tid == self.get_dns_types(typename=typename)[0]['id'] ) if name: if type(name) == types.ListType: whereclause.append( obj.dns_records.c.name.in_( name ) ) else: name = name.lower() if '%' in name: # Use a LIKE condition whereclause.append( obj.dns_records.c.name.like( name ) ) else: # name = 'exact string' whereclause.append( obj.dns_records.c.name == name ) if content: # FIXME: is there a better way to do this? if type(content) == types.ListType: if validation.is_ip(content[0]): raise InvalidArgument('Addresses are not valid in the \'content\' field (searching for %s)' % content) else: whereclause.append( obj.dns_records.c.text_content.in_( content ) ) else: if validation.is_ip(content): raise InvalidArgument('Addresses are not valid in the \'content\' field (searching for %s)' % content) else: if '%' in content: # Use a LIKE condition whereclause.append( obj.dns_records.c.text_content.like( content ) ) else: # content = 'exact string' OR content like '% exact string' whereclause.append( or_(obj.dns_records.c.text_content == content, obj.dns_records.c.text_content.like( '%% %s' % content ) ) ) if changed: whereclause.append( obj.dns_records.c.changed >= changed ) if whereclause: whereclause = self._finalize_whereclause( whereclause ) else: whereclause = True
|
31450fd481872ac4921f23e93529a243c1e9e13d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7602/31450fd481872ac4921f23e93529a243c1e9e13d/interface.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
14926,
67,
7094,
12,
365,
16,
11594,
33,
7036,
16,
26735,
33,
7036,
16,
612,
33,
7036,
16,
508,
33,
7036,
16,
913,
33,
7036,
16,
5318,
33,
7036,
16,
3550,
33,
7036,
16,
1758,
33,
7036,
262,
30,
3536,
968,
8858,
27390,
225,
632,
891,
11594,
30,
279,
2063,
8858,
1409,
618,
1599,
632,
891,
508,
30,
326,
508,
434,
333,
8858,
1409,
364,
11346,
632,
891,
913,
30,
326,
913,
652,
632,
891,
5318,
30,
1034,
603,
279,
5318,
1758,
632,
891,
3550,
30,
309,
864,
16,
903,
327,
326,
8858,
3853,
3550,
1839,
333,
3314,
18,
632,
891,
1758,
30,
327,
326,
432,
578,
432,
24653,
1409,
364,
333,
2971,
1758,
225,
632,
2463,
30,
5105,
8858,
3853,
3536,
468,
432,
30,
432,
1409,
317,
2971,
317,
5318,
468,
385,
1985,
30,
913,
33,
37,
1409,
508,
317,
2971,
317,
5318,
16,
468,
26929,
30,
508,
273,
432,
1409,
317,
2359,
317,
5318,
468,
19145,
58,
30,
913,
273,
1995,
411,
37,
1409,
508,
1870,
317,
2971,
317,
5318,
468,
453,
4349,
30,
508,
273,
432,
1409,
2359,
67,
1745,
4219,
225,
365,
18,
6528,
67,
15969,
12,
13793,
18,
6949,
262,
2168,
273,
306,
2603,
18,
14926,
67,
7094,
65,
225,
600,
264,
557,
80,
1579,
273,
5378,
225,
309,
612,
30,
309,
618,
12,
350,
13,
353,
1953,
18,
1702,
559,
578,
618,
12,
350,
13,
353,
1953,
18,
780,
559,
30,
600,
264,
557,
80,
1579,
18,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
588,
67,
14926,
67,
7094,
12,
365,
16,
11594,
33,
7036,
16,
26735,
33,
7036,
16,
612,
33,
7036,
16,
508,
33,
7036,
16,
913,
33,
7036,
16,
5318,
33,
7036,
16,
3550,
33,
7036,
16,
1758,
33,
7036,
262,
30,
3536,
968,
8858,
27390,
225,
632,
891,
11594,
30,
279,
2063,
8858,
1409,
618,
1599,
632,
891,
508,
30,
326,
508,
434,
333,
8858,
1409,
364,
11346,
632,
891,
913,
30,
326,
913,
652,
632,
891,
5318,
30,
1034,
603,
279,
5318,
1758,
632,
891,
3550,
30,
309,
864,
16,
903,
327,
326,
8858,
3853,
3550,
1839,
333,
3314,
18,
632,
891,
1758,
30,
327,
326,
432,
578,
432,
24653,
1409,
364,
333,
2971,
1758,
225,
2
] |
self.assertRaises(ValueError, time.strftime, '',
|
self.assertRaises(ValueError, func,
|
def test_strftime_bounds_checking(self): # Make sure that strftime() checks the bounds of the various parts #of the time tuple (0 is valid for *all* values).
|
e5bdf5740529b4ba238a2559495df94fbf74c768 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e5bdf5740529b4ba238a2559495df94fbf74c768/test_time.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
380,
454,
14,
924,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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,
1842,
67,
701,
9982,
67,
10576,
67,
24609,
12,
2890,
4672,
468,
4344,
3071,
716,
10405,
1435,
4271,
326,
4972,
434,
326,
11191,
2140,
468,
792,
326,
813,
3193,
261,
20,
353,
923,
364,
380,
454,
14,
924,
2934,
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
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.