rem
stringlengths 2
226k
| add
stringlengths 0
227k
| context
stringlengths 8
228k
| meta
stringlengths 156
215
| input_ids
list | attention_mask
list | labels
list |
|---|---|---|---|---|---|---|
DEFAULT_TEST_TIMEOUT_MS = 10 * 1000
|
DEFAULT_TEST_TIMEOUT_MS = 6 * 1000
|
def __init__(self, deferred, wontfix, fixable, fixable_count, all_fixable_count): self.deferred = deferred self.wontfix = wontfix self.fixable = fixable self.fixable_count = fixable_count self.all_fixable_count = all_fixable_count
|
515da79572143ff0d03b9b2dfb236b176e5a6b79 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/515da79572143ff0d03b9b2dfb236b176e5a6b79/run_webkit_tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
7045,
16,
341,
1580,
904,
16,
2917,
429,
16,
2917,
429,
67,
1883,
16,
777,
67,
904,
429,
67,
1883,
4672,
365,
18,
26622,
273,
7045,
365,
18,
91,
1580,
904,
273,
341,
1580,
904,
365,
18,
904,
429,
273,
2917,
429,
365,
18,
904,
429,
67,
1883,
273,
2917,
429,
67,
1883,
365,
18,
454,
67,
904,
429,
67,
1883,
273,
777,
67,
904,
429,
67,
1883,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
18,
26622,
273,
7045,
365,
18,
91,
1580,
904,
273,
341,
1580,
904,
365,
18,
904,
429,
273,
2917,
429,
365,
18,
904,
429,
67,
1883,
273,
2917,
429,
67,
1883,
365,
18,
454,
67,
904,
429,
67,
1883,
273,
777,
67,
904,
429,
67,
1883,
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
] |
def testGenerateNetFixture(self):
|
def testGenerateNetFixtures(self):
|
def testGenerateNetFixture(self): """ This isn't actually a test. It just takes advantage of the test harness to spam a bunch of messages to the supply app and spit out the data in a format that can be sucked into a fixture """ # this is the number of net reports that will be generated net_count = 0 "8005551213 > llin nets 2001 123 456 78 90" # the sender will always be the same, for now phone = "55555" expected_actual_match_percent = .8 # allow specifying the minimum and maximum dates for message generation min_date = datetime(2009,4,1) max_date = datetime(2009,4,30) min_time = time.mktime(min_date.timetuple()) max_time = time.mktime(max_date.timetuple()) # these are the locations that will be chosen. The actual # location will be a distribution point under one of these # wards wards = [200101, 200102, 200103, 200104, 200201] all_net_strings = [] for i in range(net_count): date = datetime.fromtimestamp(random.randint(min_time, max_time)) ward = Location.objects.get(code=random.choice(wards)) dp = random.choice(ward.children.all()) distributed = random.randint(50,500) expected = random.randint(0,2000) # create an actual amount based on the likelihood of match if random.random() < expected_actual_match_percent: actual = expected else: actual = random.randint(0,2000) discrepancy = random.randint(0,distributed/5) net_string = "%s@%s > llin nets %s %s %s %s %s" % (phone, date.strftime("%Y%m%d%H%M"), dp.code, distributed, expected, actual, discrepancy) all_net_strings.append(net_string) script = "\n".join(all_net_strings) self.runScript(script) dumpdata = Command() filename = os.path.abspath(os.path.join(os.path.dirname(__file__),"fixtures/test_net_data.json")) options = { "indent" : 2 } datadump = dumpdata.handle("nigeria", **options) # uncomment these lines to save the fixture #file = open(filename, "w") #file.write(datadump) #file.write(datadump) #file.close() #print "=== Successfully wrote fixtures to %s ===" % filename
|
da380eee6f7c5d277d18706ac990f23216dcd4f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11809/da380eee6f7c5d277d18706ac990f23216dcd4f5/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
8585,
14960,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
434,
2743,
358,
326,
14467,
595,
471,
1694,
305,
596,
326,
501,
316,
279,
740,
716,
848,
506,
1597,
363,
329,
1368,
279,
16678,
3536,
468,
333,
353,
326,
1300,
434,
2901,
10557,
716,
903,
506,
4374,
225,
2901,
67,
1883,
273,
374,
282,
315,
17374,
2539,
13757,
3437,
405,
6579,
267,
21954,
4044,
21,
17335,
1059,
4313,
22860,
8566,
6,
225,
468,
326,
5793,
903,
3712,
506,
326,
1967,
16,
364,
2037,
7353,
273,
315,
27982,
25,
6,
225,
2665,
67,
18672,
67,
1916,
67,
8849,
273,
263,
28,
282,
468,
1699,
13664,
326,
5224,
471,
4207,
7811,
364,
883,
9377,
1131,
67,
712,
273,
3314,
12,
6976,
29,
16,
24,
16,
21,
13,
943,
67,
712,
273,
3314,
12,
6976,
29,
16,
24,
16,
5082,
13,
1131,
67,
957,
273,
813,
18,
24816,
957,
12,
1154,
67,
712,
18,
8584,
278,
2268,
10756,
943,
67,
957,
273,
813,
18,
24816,
957,
12,
1896,
67,
712,
18,
8584,
278,
2268,
10756,
225,
468,
4259,
854,
326,
7838,
716,
903,
506,
10447,
18,
225,
1021,
3214,
468,
2117,
903,
506,
279,
7006,
1634,
3613,
1245,
434,
4259,
468,
341,
14727,
341,
14727,
273,
306,
6976,
15168,
16,
4044,
20481,
16,
4044,
23494,
16,
4044,
21869,
16,
4044,
6734,
65,
777,
67,
2758,
67,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
4625,
7308,
8585,
14960,
12,
2890,
4672,
3536,
1220,
5177,
1404,
6013,
279,
1842,
18,
225,
2597,
2537,
5530,
1261,
7445,
410,
434,
326,
1842,
366,
1303,
403,
358,
24824,
279,
25606,
434,
2743,
358,
326,
14467,
595,
471,
1694,
305,
596,
326,
501,
316,
279,
740,
716,
848,
506,
1597,
363,
329,
1368,
279,
16678,
3536,
468,
333,
353,
326,
1300,
434,
2901,
10557,
716,
903,
506,
4374,
225,
2901,
67,
1883,
273,
374,
282,
315,
17374,
2539,
13757,
3437,
405,
6579,
267,
21954,
4044,
21,
17335,
1059,
4313,
22860,
8566,
6,
225,
468,
326,
5793,
903,
3712,
506,
326,
1967,
16,
364,
2037,
7353,
273,
315,
27982,
25,
6,
225,
2665,
67,
18672,
67,
1916,
2
] |
sometrue = masked_unary_operation(oldnumeric.sometrue) alltrue = masked_unary_operation(oldnumeric.alltrue, 1)
|
def __str__ (self): return "Masked version of " + str(self.f)
|
434501d7248bf5c53aa0ab8df3bfea81ca95f198 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/434501d7248bf5c53aa0ab8df3bfea81ca95f198/ma.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
261,
2890,
4672,
327,
315,
5796,
329,
1177,
434,
315,
397,
609,
12,
2890,
18,
74,
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,
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397,
609,
12,
2890,
18,
74,
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
] |
|
module_generator = flatten([[C(i+1)]*shape[i] for i in range(len(shape))]) module_generator.reverse()
|
p = shape.conjugate() module_generator = flatten([[C(p[j]-i) for i in range(p[j])] for j in range(len(p))])
|
def __init__(self, type, shape):
|
c1c98787eef589c3247e0356a728c63923fdfd86 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/c1c98787eef589c3247e0356a728c63923fdfd86/tensor_product.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
2179,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
618,
16,
2179,
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
] |
dispIncr.zero()
|
def step(self, t, dt): """ Advance to next time step. """ dispIncr = self.fields.get("dispIncr(t->t+dt)") dispIncr.zero()
|
a76134debbda05cdbac636849a88167aefe22bf4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8645/a76134debbda05cdbac636849a88167aefe22bf4/Implicit.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
4052,
5882,
358,
1024,
813,
2235,
18,
3536,
16232,
382,
3353,
273,
365,
18,
2821,
18,
588,
2932,
25453,
382,
3353,
12,
88,
2122,
88,
15,
7510,
2225,
13,
16232,
382,
3353,
18,
7124,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2235,
12,
2890,
16,
268,
16,
3681,
4672,
3536,
4052,
5882,
358,
1024,
813,
2235,
18,
3536,
16232,
382,
3353,
273,
365,
18,
2821,
18,
588,
2932,
25453,
382,
3353,
12,
88,
2122,
88,
15,
7510,
2225,
13,
16232,
382,
3353,
18,
7124,
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
] |
|
def load_settings(self):
|
def load_settings(self, retain_parent=False):
|
def load_settings(self): """Loads the brush settings/dynamics from disk.""" prefix = self.get_fileprefix() filename = prefix + '.myb' brushinfo_str = open(filename).read() self.brushinfo.parse(brushinfo_str) self.brushinfo.pop("parent_brush_name", None) self.remember_mtimes() self.settings_loaded = True self.persistent = True
|
e9dfcda7c37d5fcf44ca1c92b17f4495e91160ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7129/e9dfcda7c37d5fcf44ca1c92b17f4495e91160ad/brushmanager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
4272,
12,
2890,
16,
15096,
67,
2938,
33,
8381,
4672,
3536,
7968,
326,
5186,
1218,
1947,
19,
31129,
2102,
628,
4234,
12123,
1633,
273,
365,
18,
588,
67,
768,
3239,
1435,
1544,
273,
1633,
397,
2418,
4811,
70,
11,
5186,
1218,
1376,
67,
701,
273,
1696,
12,
3459,
2934,
896,
1435,
365,
18,
2848,
1218,
1376,
18,
2670,
12,
2848,
1218,
1376,
67,
701,
13,
365,
18,
2848,
1218,
1376,
18,
5120,
2932,
2938,
67,
2848,
1218,
67,
529,
3113,
599,
13,
365,
18,
28155,
67,
1010,
4485,
1435,
365,
18,
4272,
67,
4230,
273,
1053,
365,
18,
19393,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
67,
4272,
12,
2890,
16,
15096,
67,
2938,
33,
8381,
4672,
3536,
7968,
326,
5186,
1218,
1947,
19,
31129,
2102,
628,
4234,
12123,
1633,
273,
365,
18,
588,
67,
768,
3239,
1435,
1544,
273,
1633,
397,
2418,
4811,
70,
11,
5186,
1218,
1376,
67,
701,
273,
1696,
12,
3459,
2934,
896,
1435,
365,
18,
2848,
1218,
1376,
18,
2670,
12,
2848,
1218,
1376,
67,
701,
13,
365,
18,
2848,
1218,
1376,
18,
5120,
2932,
2938,
67,
2848,
1218,
67,
529,
3113,
599,
13,
365,
18,
28155,
67,
1010,
4485,
1435,
365,
18,
4272,
67,
4230,
273,
1053,
365,
18,
19393,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts") except WindowsError:
|
keys = [] possible_keys = [ r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts", r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" ] for key_name in possible_keys:
|
def initsysfonts_win32(): import _winreg fonts = {} mods = 'demibold', 'narrow', 'light', 'unicode', 'bt', 'mt' fontdir = os.path.join(os.environ['WINDIR'], "Fonts") #find the right place in registry try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts") except WindowsError: try: key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts") except WindowsError: return fonts fontdict = {} for i in range(_winreg.QueryInfoKey(key)[1]): try: name, font, t = _winreg.EnumValue(key,i) except EnvironmentError: break font = str(font) if font[-4:].lower() != ".ttf": continue if os.sep not in font: font = os.path.join(fontdir, font) if name[-10:] == '(TrueType)': name = name[:-11] name = name.lower().split() bold = italic = 0 for m in mods: if m in name: name.remove(m) if 'bold' in name: name.remove('bold') bold = 1 if 'italic' in name: name.remove('italic') italic = 1 name = ''.join(name) _addfont(name, bold, italic, font, fonts) return fonts
|
9514cfca7f6ad6d57dfbfe52d7ae6bdf13d437a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1298/9514cfca7f6ad6d57dfbfe52d7ae6bdf13d437a8/sysfont.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
9499,
22052,
67,
8082,
1578,
13332,
1930,
389,
8082,
1574,
16450,
273,
2618,
15546,
273,
296,
19117,
495,
1673,
2187,
296,
82,
7815,
2187,
296,
5099,
2187,
296,
9124,
2187,
296,
23602,
2187,
296,
1010,
11,
3512,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
16597,
7937,
17337,
315,
5711,
87,
7923,
225,
468,
4720,
326,
2145,
3166,
316,
4023,
225,
1311,
273,
5378,
282,
3323,
67,
2452,
273,
306,
436,
6,
3584,
4464,
28499,
64,
22350,
64,
10399,
64,
3935,
1444,
64,
5711,
87,
3113,
436,
6,
3584,
4464,
28499,
64,
22350,
64,
10399,
20064,
64,
3935,
1444,
64,
5711,
87,
6,
308,
225,
364,
498,
67,
529,
316,
3323,
67,
2452,
30,
775,
30,
498,
273,
389,
8082,
1574,
18,
3678,
653,
24899,
8082,
1574,
18,
44,
3297,
67,
14922,
67,
5535,
1792,
3740,
16,
436,
6,
3584,
4464,
28499,
64,
22350,
64,
10399,
20064,
64,
3935,
1444,
64,
5711,
87,
7923,
1335,
8202,
668,
30,
327,
16450,
225,
3512,
1576,
273,
2618,
364,
277,
316,
1048,
24899,
8082,
1574,
18,
1138,
966,
653,
12,
856,
25146,
21,
65,
4672,
775,
30,
508,
16,
3512,
16,
268,
273,
389,
8082,
1574,
18,
3572,
620,
12,
856,
16,
77,
13,
1335,
7518,
668,
30,
898,
3512,
273,
609,
12,
5776,
13,
309,
3512,
18919,
24,
30,
8009,
8167,
1435,
480,
3552,
748,
74,
6877,
1324,
309,
1140,
18,
10814,
486,
316,
3512,
30,
3512,
273,
1140,
18,
803,
18,
5701,
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,
1208,
9499,
22052,
67,
8082,
1578,
13332,
1930,
389,
8082,
1574,
16450,
273,
2618,
15546,
273,
296,
19117,
495,
1673,
2187,
296,
82,
7815,
2187,
296,
5099,
2187,
296,
9124,
2187,
296,
23602,
2187,
296,
1010,
11,
3512,
1214,
273,
1140,
18,
803,
18,
5701,
12,
538,
18,
28684,
3292,
16597,
7937,
17337,
315,
5711,
87,
7923,
225,
468,
4720,
326,
2145,
3166,
316,
4023,
225,
1311,
273,
5378,
282,
3323,
67,
2452,
273,
306,
436,
6,
3584,
4464,
28499,
64,
22350,
64,
10399,
64,
3935,
1444,
64,
5711,
87,
3113,
436,
6,
3584,
4464,
28499,
64,
22350,
64,
10399,
20064,
64,
3935,
1444,
64,
5711,
87,
6,
308,
225,
364,
498,
67,
529,
316,
3323,
67,
2452,
2
] |
if game.quad[jw.x][jw.y]!=IHDOT:
|
if game.quad[jw.i][jw.j]!=IHDOT:
|
def torpedo(origin, course, dispersion, number, nburst): "Let a photon torpedo fly" shoved = False ac = course + 0.25*dispersion angle = (15.0-ac)*0.5235988 bullseye = (15.0 - course)*0.5235988 delta = coord(-math.sin(angle), math.cos(angle)) bigger = max(abs(delta.x), abs(delta.y)) delta /= bigger x = origin.x; y = origin.y w = coord(0, 0); jw = coord(0, 0) if not damaged(DSRSENS) or game.condition=="docked": setwnd(srscan_window) else: setwnd(message_window) # Loop to move a single torpedo for step in range(1, 15+1): x += delta.x y += delta.y w = coord(x, y).snaptogrid() if not VALID_SECTOR(w.x, w.y): break iquad=game.quad[w.x][w.y] tracktorpedo(origin, w, step, number, nburst, iquad) if iquad==IHDOT: continue # hit something setwnd(message_window) if damaged(DSRSENS) and not game.condition=="docked": skip(1); # start new line after text track if iquad in (IHE, IHF): # Hit our ship skip(1) prout(_("Torpedo hits %s.") % crmshp()) hit = 700.0 + randreal(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) newcnd(); # we're blown out of dock # We may be displaced. if game.landed or game.condition=="docked": return hit # Cheat if on a planet ang = angle + 2.5*(randreal()-0.5) temp = math.fabs(math.sin(ang)) if math.fabs(math.cos(ang)) > temp: temp = math.fabs(math.cos(ang)) xx = -math.sin(ang)/temp yy = math.cos(ang)/temp jw.x = int(w.x+xx+0.5) jw.y = int(w.y+yy+0.5) if not VALID_SECTOR(jw.x, jw.y): return hit if game.quad[jw.x][jw.y]==IHBLANK: finish(FHOLE) return hit if game.quad[jw.x][jw.y]!=IHDOT: # can't move into object return hit game.sector = jw proutn(crmshp()) shoved = True elif iquad in (IHC, IHS): # Hit a commander if withprob(0.05): prout(crmena(True, iquad, "sector", w) + _(" uses anti-photon device;")) prout(_(" torpedo neutralized.")) return None elif iquad in (IHR, IHK): # Hit a regular enemy # find the enemy for enemy in game.enemies: if w == enemy.kloc: break kp = math.fabs(enemy.kpower) h1 = 700.0 + randrange(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) h1 = math.fabs(h1) if kp < h1: h1 = kp if enemy.kpower < 0: enemy.kpower -= -h1 else: enemy.kpower -= h1 if enemy.kpower == 0: deadkl(w, iquad, w) return None proutn(crmena(True, iquad, "sector", w)) # If enemy damaged but not destroyed, try to displace ang = angle + 2.5*(randreal()-0.5) temp = math.fabs(math.sin(ang)) if math.fabs(math.cos(ang)) > temp: temp = math.fabs(math.cos(ang)) xx = -math.sin(ang)/temp yy = math.cos(ang)/temp jw.x = int(w.x+xx+0.5) jw.y = int(w.y+yy+0.5) if not VALID_SECTOR(jw.x, jw.y): prout(_(" damaged but not destroyed.")) return if game.quad[jw.x][jw.y]==IHBLANK: prout(_(" buffeted into black hole.")) deadkl(w, iquad, jw) return None if game.quad[jw.x][jw.y]!=IHDOT: # can't move into object prout(_(" damaged but not destroyed.")) return None proutn(_(" damaged--")) enemy.kloc = jw shoved = True break elif iquad == IHB: # Hit a base skip(1) prout(_("***STARBASE DESTROYED..")) game.state.baseq = filter(lambda x: x != game.quadrant, game.state.baseq) game.quad[w.x][w.y]=IHDOT game.base.invalidate() game.state.galaxy[game.quadrant.x][game.quadrant.y].starbase -= 1 game.state.chart[game.quadrant.x][game.quadrant.y].starbase -= 1 game.state.basekl += 1 newcnd() return None elif iquad == IHP: # Hit a planet prout(crmena(True, iquad, "sector", w) + _(" destroyed.")) game.state.nplankl += 1 game.state.galaxy[game.quadrant.x][game.quadrant.y].planet = None game.iplnet.pclass = "destroyed" game.iplnet = None game.plnet.invalidate() game.quad[w.x][w.y] = IHDOT if game.landed: # captain perishes on planet finish(FDPLANET) return None elif iquad == IHW: # Hit an inhabited world -- very bad! prout(crmena(True, iquad, "sector", w) + _(" destroyed.")) game.state.nworldkl += 1 game.state.galaxy[game.quadrant.x][game.quadrant.y].planet = None game.iplnet.pclass = "destroyed" game.iplnet = None game.plnet.invalidate() game.quad[w.x][w.y] = IHDOT if game.landed: # captain perishes on planet finish(FDPLANET) prout(_("You have just destroyed an inhabited planet.")) prout(_("Celebratory rallies are being held on the Klingon homeworld.")) return None elif iquad == IHSTAR: # Hit a star if withprob(0.9): nova(w) else: prout(crmena(True, IHSTAR, "sector", w) + _(" unaffected by photon blast.")) return None elif iquad == IHQUEST: # Hit a thingy if not (game.options & OPTION_THINGY) or withprob(0.3): skip(1) prouts(_("AAAAIIIIEEEEEEEEAAAAAAAAUUUUUGGGGGHHHHHHHHHHHH!!!")) skip(1) prouts(_(" HACK! HACK! HACK! *CHOKE!* ")) skip(1) proutn(_("Mr. Spock-")) prouts(_(" \"Fascinating!\"")) skip(1) deadkl(w, iquad, w) else: # Stas Sergeev added the possibility that # you can shove the Thingy and piss it off. # It then becomes an enemy and may fire at you. thing.angry = True shoved = True return None elif iquad == IHBLANK: # Black hole skip(1) prout(crmena(True, IHBLANK, "sector", w) + _(" swallows torpedo.")) return None elif iquad == IHWEB: # hit the web skip(1) prout(_("***Torpedo absorbed by Tholian web.")) return None elif iquad == IHT: # Hit a Tholian h1 = 700.0 + randrange(100) - \ 1000.0 * (w-origin).distance() * math.fabs(math.sin(bullseye-angle)) h1 = math.fabs(h1) if h1 >= 600: game.quad[w.x][w.y] = IHDOT deadkl(w, iquad, w) game.tholian = None return None skip(1) proutn(crmena(True, IHT, "sector", w)) if withprob(0.05): prout(_(" survives photon blast.")) return None prout(_(" disappears.")) game.tholian.move(None) game.quad[w.x][w.y] = IHWEB dropin(IHBLANK) return None else: # Problem! skip(1) proutn("Don't know how to handle torpedo collision with ") proutn(crmena(True, iquad, "sector", w)) skip(1) return None break if curwnd!=message_window: setwnd(message_window) if shoved: game.quad[w.x][w.y]=IHDOT game.quad[jw.x][jw.y]=iquad prout(_(" displaced by blast to Sector %s ") % jw) for ll in range(len(game.enemies)): game.enemies[ll].kdist = game.enemies[ll].kavgd = (game.sector-game.enemies[ll].kloc).distance() game.enemies.sort(lambda x, y: cmp(x.kdist, y.kdist)) return None skip(1) prout(_("Torpedo missed.")) return None;
|
e67cf36a789c4ab1cd905a9a08e91d219395f538 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/e67cf36a789c4ab1cd905a9a08e91d219395f538/sst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
374,
18,
2947,
14,
25453,
722,
5291,
273,
261,
3600,
18,
20,
17,
1077,
17653,
20,
18,
25,
4366,
6162,
5482,
324,
420,
307,
20513,
273,
261,
3600,
18,
20,
300,
4362,
17653,
20,
18,
25,
4366,
6162,
5482,
3622,
273,
2745,
19236,
15949,
18,
21861,
12,
4341,
3631,
4233,
18,
14445,
12,
4341,
3719,
18983,
273,
943,
12,
5113,
12,
9878,
18,
92,
3631,
2417,
12,
9878,
18,
93,
3719,
3622,
9531,
18983,
619,
273,
4026,
18,
92,
31,
677,
273,
4026,
18,
93,
341,
273,
2745,
12,
20,
16,
374,
1769,
26203,
273,
2745,
12,
20,
16,
374,
13,
309,
486,
302,
301,
11349,
12,
3948,
54,
26753,
13,
578,
7920,
18,
4175,
31713,
72,
975,
329,
6877,
444,
91,
4880,
12,
11254,
9871,
67,
5668,
13,
469,
30,
444,
91,
4880,
12,
2150,
67,
5668,
13,
468,
9720,
358,
3635,
279,
2202,
8934,
1845,
83,
364,
2235,
316,
1048,
12,
21,
16,
4711,
15,
21,
4672,
619,
1011,
3622,
18,
92,
677,
1011,
3622,
18,
93,
341,
273,
2745,
12,
92,
16,
677,
2934,
8134,
1657,
717,
1691,
1435,
309,
486,
15093,
67,
1090,
22727,
12,
91,
18,
92,
16,
341,
18,
93,
4672,
898,
277,
21733,
33,
13957,
18,
21733,
63,
91,
18,
92,
6362,
91,
18,
93,
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,
8934,
1845,
83,
12,
10012,
16,
4362,
16,
16232,
722,
16,
1300,
16,
4264,
18593,
4672,
315,
24181,
279,
24542,
265,
8934,
1845,
83,
21434,
6,
699,
9952,
273,
1083,
1721,
273,
4362,
397,
374,
18,
2947,
14,
25453,
722,
5291,
273,
261,
3600,
18,
20,
17,
1077,
17653,
20,
18,
25,
4366,
6162,
5482,
324,
420,
307,
20513,
273,
261,
3600,
18,
20,
300,
4362,
17653,
20,
18,
25,
4366,
6162,
5482,
3622,
273,
2745,
19236,
15949,
18,
21861,
12,
4341,
3631,
4233,
18,
14445,
12,
4341,
3719,
18983,
273,
943,
12,
5113,
12,
9878,
18,
92,
3631,
2417,
12,
9878,
18,
93,
3719,
3622,
9531,
18983,
619,
273,
4026,
18,
92,
31,
677,
273,
4026,
18,
2
] |
pos = player.pos pos.x = target[0] pos.y = target[1] pos.z = target[2] if len(target) > 3: pos.map = target[3]
|
try: m = target[3] except: m = player.pos.map pos = wolfpack.coord( target[0], target[1], target[2], m )
|
def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False target = item.gettag('target').split(',') # Convert the target of the gate. try: target = map(int, target) except: player.socket.sysmessage( tr('This gate leads nowhere...') ) return False # Move the player pos = player.pos pos.x = target[0] pos.y = target[1] pos.z = target[2] if len(target) > 3: pos.map = target[3] if not utilities.isMapAvailableTo(player, pos.map): return False # Move his pets if he has any if player.player: for follower in player.followers: if follower.wandertype == 4 and follower.distanceto(player) < 5: follower.removefromview() follower.moveto(pos) follower.update(0) player.removefromview() player.moveto(pos) player.update(0) if player.socket: player.socket.resendworld() # show some nice effects if not item.hastag('silent'): item.soundeffect(0x1fe) utilities.smokepuff(player, pos) utilities.smokepuff(player, item.pos) return True
|
f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
914,
8130,
12,
14872,
16,
761,
4672,
309,
761,
18,
76,
689,
346,
2668,
1601,
3565,
715,
6134,
471,
7291,
18,
82,
2436,
30,
327,
1083,
225,
309,
486,
761,
18,
76,
689,
346,
2668,
3299,
11,
4672,
309,
7291,
18,
7814,
30,
7291,
18,
7814,
18,
9499,
2150,
12,
433,
2668,
2503,
12611,
5871,
87,
2037,
14852,
7821,
13,
262,
469,
30,
2983,
18,
1330,
12,
4842,
67,
3589,
16,
433,
2932,
50,
3513,
9799,
92,
65,
1450,
12611,
9799,
92,
65,
2887,
1018,
8403,
82,
7923,
738,
261,
14872,
18,
8818,
16,
761,
18,
8818,
3719,
327,
1083,
225,
1018,
273,
761,
18,
588,
2692,
2668,
3299,
16063,
4939,
12,
2187,
6134,
225,
468,
4037,
326,
1018,
434,
326,
12611,
18,
775,
30,
1018,
273,
852,
12,
474,
16,
1018,
13,
1335,
30,
7291,
18,
7814,
18,
9499,
2150,
12,
433,
2668,
2503,
12611,
5871,
87,
2037,
14852,
7821,
13,
262,
327,
1083,
225,
468,
9933,
326,
7291,
775,
30,
312,
273,
1018,
63,
23,
65,
1335,
30,
312,
273,
7291,
18,
917,
18,
1458,
949,
273,
341,
355,
74,
2920,
18,
5732,
12,
1018,
63,
20,
6487,
1018,
63,
21,
6487,
1018,
63,
22,
6487,
312,
262,
225,
309,
486,
22538,
18,
291,
863,
5268,
774,
12,
14872,
16,
949,
18,
1458,
4672,
327,
1083,
225,
468,
9933,
18423,
293,
2413,
309,
3904,
711,
1281,
309,
7291,
18,
14872,
30,
364,
2805,
264,
316,
7291,
18,
14641,
414,
30,
309,
2805,
264,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
914,
8130,
12,
14872,
16,
761,
4672,
309,
761,
18,
76,
689,
346,
2668,
1601,
3565,
715,
6134,
471,
7291,
18,
82,
2436,
30,
327,
1083,
225,
309,
486,
761,
18,
76,
689,
346,
2668,
3299,
11,
4672,
309,
7291,
18,
7814,
30,
7291,
18,
7814,
18,
9499,
2150,
12,
433,
2668,
2503,
12611,
5871,
87,
2037,
14852,
7821,
13,
262,
469,
30,
2983,
18,
1330,
12,
4842,
67,
3589,
16,
433,
2932,
50,
3513,
9799,
92,
65,
1450,
12611,
9799,
92,
65,
2887,
1018,
8403,
82,
7923,
738,
261,
14872,
18,
8818,
16,
761,
18,
8818,
3719,
327,
1083,
225,
1018,
273,
761,
18,
588,
2692,
2668,
3299,
16063,
4939,
12,
2187,
6134,
225,
468,
4037,
2
] |
print "%s %8s %8s=%08x:%s" % (getClock(m), var, regname, val, out)
|
print "%s %8s %8s=%08x:%s%s" % (getClock(m), var, regname, val, out, pc)
|
def memDecode(m, reginfo): regname, bitdefs = reginfo var = m.group('var') val = int(m.group('val'), 16) changed = int(m.group('changed'), 16) notfirst = 1 if not changed: # Start of trace - show all bit defs, but don't show the # list of bits to ignore. changed = val notfirst = 0 if not bitdefs: # Only a register name exists (no bit definitions) out = bitDecode(m, ~0, "%08s" % regname, val, changed, notfirst) print "%s %8s %s" % (getClock(m), var, out,) return out = "" unnamedbits = changed for bits, desc in bitdefs: if bits & changed: out += bitDecode(m, bits, desc, val, changed, notfirst) unnamedbits &= ~bits if unnamedbits: # Not all changed bits are named - come up with a "dummy" name # for the remaining bits. out += bitDecode(m, ~0, "?", val&unnamedbits, unnamedbits, notfirst) if notfirst: print "%s %8s %8s:%s" % (getClock(m), var, regname, out) else: # Show register value along with any additional info print "%s %8s %8s=%08x:%s" % (getClock(m), var, regname, val, out)
|
9de89e61a897936f4b49121046fb78ee3e5a8811 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12923/9de89e61a897936f4b49121046fb78ee3e5a8811/memalias.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
6615,
12,
81,
16,
960,
1376,
4672,
960,
529,
16,
2831,
12537,
273,
960,
1376,
569,
273,
312,
18,
1655,
2668,
1401,
6134,
1244,
273,
509,
12,
81,
18,
1655,
2668,
1125,
19899,
2872,
13,
3550,
273,
509,
12,
81,
18,
1655,
2668,
6703,
19899,
2872,
13,
486,
3645,
273,
404,
309,
486,
3550,
30,
468,
3603,
434,
2606,
300,
2405,
777,
2831,
17588,
16,
1496,
2727,
1404,
2405,
326,
468,
666,
434,
4125,
358,
2305,
18,
3550,
273,
1244,
486,
3645,
273,
374,
309,
486,
2831,
12537,
30,
468,
5098,
279,
1744,
508,
1704,
261,
2135,
2831,
6377,
13,
596,
273,
2831,
6615,
12,
81,
16,
4871,
20,
16,
2213,
6840,
87,
6,
738,
960,
529,
16,
1244,
16,
3550,
16,
486,
3645,
13,
1172,
2213,
87,
738,
28,
87,
738,
87,
6,
738,
261,
588,
14027,
12,
81,
3631,
569,
16,
596,
16,
13,
327,
596,
273,
1408,
640,
13188,
6789,
273,
3550,
364,
4125,
16,
3044,
316,
2831,
12537,
30,
309,
4125,
473,
3550,
30,
596,
1011,
2831,
6615,
12,
81,
16,
4125,
16,
3044,
16,
1244,
16,
3550,
16,
486,
3645,
13,
640,
13188,
6789,
12058,
4871,
6789,
309,
640,
13188,
6789,
30,
468,
2288,
777,
3550,
4125,
854,
4141,
300,
12404,
731,
598,
279,
315,
21050,
6,
508,
468,
364,
326,
4463,
4125,
18,
596,
1011,
2831,
6615,
12,
81,
16,
4871,
20,
16,
18101,
3113,
1244,
10,
318,
13188,
6789,
16,
640,
13188,
6789,
16,
486,
3645,
13,
309,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1663,
6615,
12,
81,
16,
960,
1376,
4672,
960,
529,
16,
2831,
12537,
273,
960,
1376,
569,
273,
312,
18,
1655,
2668,
1401,
6134,
1244,
273,
509,
12,
81,
18,
1655,
2668,
1125,
19899,
2872,
13,
3550,
273,
509,
12,
81,
18,
1655,
2668,
6703,
19899,
2872,
13,
486,
3645,
273,
404,
309,
486,
3550,
30,
468,
3603,
434,
2606,
300,
2405,
777,
2831,
17588,
16,
1496,
2727,
1404,
2405,
326,
468,
666,
434,
4125,
358,
2305,
18,
3550,
273,
1244,
486,
3645,
273,
374,
309,
486,
2831,
12537,
30,
468,
5098,
279,
1744,
508,
1704,
261,
2135,
2831,
6377,
13,
596,
273,
2831,
6615,
12,
81,
16,
4871,
20,
16,
2213,
6840,
87,
6,
738,
960,
529,
2
] |
anydbm.open(dbfile, "c").close() ftype = whichdb.whichdb(findfile("foo.db"))
|
anydbm.open(os.path.splitext(dbfile)[0], "c").close() ftype = whichdb.whichdb(dbfile)
|
def test_anydbm_create(self): "verify that anydbm.open does *not* create a bsddb185 file" tmpdir = tempfile.mkdtemp() try: try: dbfile = os.path.join(tmpdir, "foo.db") anydbm.open(dbfile, "c").close() ftype = whichdb.whichdb(findfile("foo.db")) self.assertNotEqual(ftype, "bsddb185") finally: os.unlink(dbfile) finally: os.rmdir(tmpdir)
|
065f7b8626ac2cc7be26a3cc1bd5d9ba51b5125d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/065f7b8626ac2cc7be26a3cc1bd5d9ba51b5125d/test_bsddb185.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2273,
1966,
81,
67,
2640,
12,
2890,
4672,
315,
8705,
716,
1281,
1966,
81,
18,
3190,
1552,
380,
902,
14,
752,
279,
7081,
449,
70,
30489,
585,
6,
20213,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
775,
30,
1319,
768,
273,
1140,
18,
803,
18,
5701,
12,
5645,
1214,
16,
315,
11351,
18,
1966,
7923,
1281,
1966,
81,
18,
3190,
12,
538,
18,
803,
18,
4939,
408,
12,
1966,
768,
25146,
20,
6487,
315,
71,
20387,
4412,
1435,
21219,
273,
1492,
1966,
18,
12784,
1966,
12,
1966,
768,
13,
365,
18,
11231,
1248,
5812,
12,
74,
723,
16,
315,
2038,
449,
70,
30489,
7923,
3095,
30,
1140,
18,
318,
1232,
12,
1966,
768,
13,
3095,
30,
1140,
18,
8864,
1214,
12,
5645,
1214,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2273,
1966,
81,
67,
2640,
12,
2890,
4672,
315,
8705,
716,
1281,
1966,
81,
18,
3190,
1552,
380,
902,
14,
752,
279,
7081,
449,
70,
30489,
585,
6,
20213,
273,
13275,
18,
24816,
72,
5814,
1435,
775,
30,
775,
30,
1319,
768,
273,
1140,
18,
803,
18,
5701,
12,
5645,
1214,
16,
315,
11351,
18,
1966,
7923,
1281,
1966,
81,
18,
3190,
12,
538,
18,
803,
18,
4939,
408,
12,
1966,
768,
25146,
20,
6487,
315,
71,
20387,
4412,
1435,
21219,
273,
1492,
1966,
18,
12784,
1966,
12,
1966,
768,
13,
365,
18,
11231,
1248,
5812,
12,
74,
723,
16,
315,
2038,
449,
70,
30489,
7923,
3095,
30,
1140,
18,
318,
1232,
12,
1966,
768,
13,
2
] |
startIndex = text.indexOf(self.commentStartExpression,
|
startIndex = self.commentStartExpression.indexIn(text,
|
def highlightBlock(self, text):
|
4ef400c87059896564f79dd33991daa9fbb56a02 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4440/4ef400c87059896564f79dd33991daa9fbb56a02/controller.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
1768,
12,
2890,
16,
977,
4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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8839,
1768,
12,
2890,
16,
977,
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
] |
sd_csx = sd_csc if a.type.format == 'csc' else sd_csr return [sd_csx(a_val,a_ind, a_ptr, a_nsparse, b)]
|
return [sd_csc(a_val, a_ind, a_ptr, a_nsparse, b)] if a.type.format == 'csr': a_val, a_ind, a_ptr, a_shape = csm_properties(a) return [sd_csr(a_val, a_ind, a_ptr, b)]
|
def local_structured_dot(node): if node.op == _structured_dot: a, b = node.inputs if a.type.format in ('csc','csr'): a_val, a_ind, a_ptr, a_shape = csm_properties(a) a_nsparse = a_shape[0] sd_csx = sd_csc if a.type.format == 'csc' else sd_csr return [sd_csx(a_val,a_ind, a_ptr, a_nsparse, b)] return False
|
6134415539097024362235c8a3d821e58edcbfd2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/6134415539097024362235c8a3d821e58edcbfd2/basic.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1191,
67,
17233,
67,
9811,
12,
2159,
4672,
309,
756,
18,
556,
422,
389,
17233,
67,
9811,
30,
279,
16,
324,
273,
756,
18,
10029,
309,
279,
18,
723,
18,
2139,
316,
7707,
71,
1017,
17023,
21653,
11,
4672,
279,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
4867,
273,
2873,
81,
67,
4738,
12,
69,
13,
279,
67,
2387,
2670,
273,
279,
67,
4867,
63,
20,
65,
327,
306,
6427,
67,
71,
1017,
12,
69,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
2387,
2670,
16,
324,
25887,
309,
279,
18,
723,
18,
2139,
422,
296,
21653,
4278,
279,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
4867,
273,
2873,
81,
67,
4738,
12,
69,
13,
327,
306,
6427,
67,
21653,
12,
69,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
324,
25887,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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30,
279,
16,
324,
273,
756,
18,
10029,
309,
279,
18,
723,
18,
2139,
316,
7707,
71,
1017,
17023,
21653,
11,
4672,
279,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
4867,
273,
2873,
81,
67,
4738,
12,
69,
13,
279,
67,
2387,
2670,
273,
279,
67,
4867,
63,
20,
65,
327,
306,
6427,
67,
71,
1017,
12,
69,
67,
1125,
16,
279,
67,
728,
16,
279,
67,
6723,
16,
279,
67,
2387,
2670,
16,
324,
25887,
309,
279,
18,
723,
18,
2139,
422,
296,
21653,
4278,
279,
67,
1125,
16,
279,
67,
728,
16,
279,
2
] |
return self._executeSingleFileCatalogFunction(lfn,'getFileSize',catalogs=catalogs) else: return self._executeFileCatalogFunction(lfn,'getFileSize',catalogs=catalogs) def getCatalogReplicas(self,lfn,allStatus=False,singleFile=False,catalogs=[]):
|
return self._executeSingleFileCatalogFunction( lfn, 'getFileSize', catalogs=catalogs ) else: return self._executeFileCatalogFunction( lfn, 'getFileSize', catalogs=catalogs ) def getCatalogReplicas( self, lfn, allStatus=False, singleFile=False, catalogs=[] ):
|
def getCatalogFileSize(self,lfn,singleFile=False,catalogs=[]): """ Get the size registered for files in the FileCatalog
|
9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
4392,
15100,
12,
2890,
16,
80,
4293,
16,
7526,
812,
33,
8381,
16,
2574,
287,
14072,
33,
8526,
4672,
3536,
968,
326,
963,
4104,
364,
1390,
316,
326,
1387,
9769,
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,
1927,
4392,
15100,
12,
2890,
16,
80,
4293,
16,
7526,
812,
33,
8381,
16,
2574,
287,
14072,
33,
8526,
4672,
3536,
968,
326,
963,
4104,
364,
1390,
316,
326,
1387,
9769,
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
] |
yr = self.__ayum.addRepository(repo.name, repo.baseurl, repo.mirrorlist)
|
if repo.name in repoUrls: baseurl = repoUrls[repo.name] mirrorlist = None else: baseurl = repo.baseurl mirrorlist = repo.mirrorlist yr = self.__ayum.addRepository(repo.name, baseurl, mirrorlist)
|
def installPackages(self): """Install packages into install_root"""
|
fa0d92336acdd2ac205e17098fc453fae479a22e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9342/fa0d92336acdd2ac205e17098fc453fae479a22e/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
11425,
12,
2890,
4672,
3536,
6410,
5907,
1368,
3799,
67,
3085,
8395,
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
] |
else:
|
elif notification.data.disconnect_reason == 'user request':
|
def end(self): if self.greenlet is not None: api.kill(self.greenlet, api.GreenletExit()) self.greenlet = api.getcurrent() notification_center = NotificationCenter() if self._invitation is None or self._invitation.state in ('disconnecting', 'disconnected'): return self.state = 'terminating' if self._invitation.state == 'connected': notification_center.post_notification('SIPSessionWillEnd', self, TimestampedNotificationData(originator='local')) for stream in ((self.streams or []) + (self.proposed_streams or [])): try: notification_center.remove_observer(self, sender=stream) except KeyError: pass else: stream.end() cancelling = self._invitation.state != 'connected' try: self._invitation.end(timeout=1) while True: notification = self._channel.wait() if notification.name == 'SIPInvitationChangedState' and notification.data.state == 'disconnected': if cancelling: notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='local', method='INVITE', code=notification.data.code, reason=notification.data.reason)) elif hasattr(notification.data, 'method'): notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='remote', method=notification.data.method, code=200, reason=sip_status_messages[200])) else: notification_center.post_notification('SIPSessionDidProcessTransaction', self, TimestampedNotificationData(originator='local', method='BYE', code=notification.data.code, reason=notification.data.reason)) break except SIPCoreError, e: if cancelling: notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='local', code=0, reason=None, failure_reason='SIP core error: %s' % str(e))) else: self.end_time = datetime.now() notification_center.post_notification('SIPSessionDidEnd', self, TimestampedNotificationData(originator='local', end_reason='SIP core error: %s' % str(e))) return notification_center.remove_observer(self, sender=self._invitation) self.greenlet = None self.state = 'terminated' if cancelling: notification_center.post_notification('SIPSessionDidFail', self, TimestampedNotificationData(originator='local', code=487, reason='Canceled', failure_reason='user request')) else: self.end_time = datetime.now() notification_center.post_notification('SIPSessionDidEnd', self, TimestampedNotificationData(originator='local', end_reason='user request'))
|
df6bcaf5a26b18f23d0a3d9e86db3bde1cce4f9d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/df6bcaf5a26b18f23d0a3d9e86db3bde1cce4f9d/session.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
4672,
309,
365,
18,
11571,
1810,
353,
486,
599,
30,
1536,
18,
16418,
12,
2890,
18,
11571,
1810,
16,
1536,
18,
21453,
1810,
6767,
10756,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
309,
365,
6315,
5768,
8773,
353,
599,
578,
365,
6315,
5768,
8773,
18,
2019,
316,
7707,
20177,
310,
2187,
296,
2251,
8537,
11,
4672,
327,
365,
18,
2019,
273,
296,
9505,
1776,
11,
309,
365,
6315,
5768,
8773,
18,
2019,
422,
296,
8537,
4278,
3851,
67,
5693,
18,
2767,
67,
9927,
2668,
17739,
2157,
13670,
1638,
2187,
365,
16,
8159,
329,
4386,
751,
12,
4949,
4240,
2218,
3729,
26112,
364,
1407,
316,
14015,
2890,
18,
16320,
578,
5378,
13,
397,
261,
2890,
18,
685,
7423,
67,
16320,
578,
5378,
3719,
30,
775,
30,
3851,
67,
5693,
18,
4479,
67,
30971,
12,
2890,
16,
5793,
33,
3256,
13,
1335,
4999,
30,
1342,
1327,
3851,
18,
892,
18,
20177,
67,
10579,
422,
296,
1355,
590,
4278,
1407,
18,
409,
1435,
848,
3855,
310,
273,
365,
6315,
5768,
8773,
18,
2019,
480,
296,
8537,
11,
775,
30,
365,
6315,
5768,
8773,
18,
409,
12,
4538,
33,
21,
13,
1323,
1053,
30,
3851,
273,
365,
6315,
4327,
18,
7048,
1435,
309,
3851,
18,
529,
422,
296,
17739,
19896,
5033,
1119,
11,
471,
3851,
18,
892,
18,
2019,
422,
296,
2251,
8537,
4278,
309,
848,
3855,
310,
30,
3851,
67,
5693,
18,
2767,
67,
9927,
2668,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
12,
2890,
4672,
309,
365,
18,
11571,
1810,
353,
486,
599,
30,
1536,
18,
16418,
12,
2890,
18,
11571,
1810,
16,
1536,
18,
21453,
1810,
6767,
10756,
365,
18,
11571,
1810,
273,
1536,
18,
588,
2972,
1435,
3851,
67,
5693,
273,
8050,
8449,
1435,
309,
365,
6315,
5768,
8773,
353,
599,
578,
365,
6315,
5768,
8773,
18,
2019,
316,
7707,
20177,
310,
2187,
296,
2251,
8537,
11,
4672,
327,
365,
18,
2019,
273,
296,
9505,
1776,
11,
309,
365,
6315,
5768,
8773,
18,
2019,
422,
296,
8537,
4278,
3851,
67,
5693,
18,
2767,
67,
9927,
2668,
17739,
2157,
13670,
1638,
2187,
365,
16,
8159,
329,
4386,
751,
12,
4949,
4240,
2218,
3729,
26112,
364,
1407,
316,
14015,
2
] |
'<div style="font-size:xx-small">Select the output format for plots.<br/>SVG works with the Adobe plugin and Firefox 1.5+.</div>',
|
'<div style="font-size:xx-small">Select the output format for plots.', '<br/>SVG works with the Adobe plugin and Firefox 1.5+.</div>',
|
def html_program_settings_table(fdict): """Used in 'Step 2: Fill out Submission Form'. Also allows the user to selected advanced options before completing submission. """ l = ['<table class="inner_table">', '<tr class="inner_title"><th>TLSMD Program Options</th></tr>', '<tr><td class="c">', '<table width="100%">', '<tr><td class="c" valign="top">', ## left table '<table class="ninner_table">', '<tr><td class="l">'] if conf.PRIVATE_JOBS: l += '<input type="checkbox" id="private_job" name="private_job" value="TRUE" checked="checked" />' else: l += '<input type="checkbox" id="private_job" name="private_job" value="TRUE" />' l += ['<label for="private_job">Keep Job Private</label>', '</td></tr>', '<tr><td class="l">', '<label for="structure_id">4-Letter Structure ID </label>', '<input type="text" id="structure_id" name="structure_id" value="%s" size="4" maxlength="4" />' % ( fdict.get("structure_id", "")), '</td></tr>', '</table>', '</td><td class="c" valign="top">', ## right table '<table class="ninner_table">', '<tr style="line-height:2em"><th>Select Chains for Analysis</th></tr>'] ## Select Chains for Analysis chains = mysql.job_get_chain_sizes(fdict["job_id"]).rstrip(";") for c in chains.split(';'): chid, length, selected, type = misc.parse_chains(c) if type == "aa": desc = "Chain %s (%s Amino Acid Residues)" % (chid, length) elif type == "na": desc = "Chain %s (%s Nucleic Acid Residues)" % (chid, length) name = "CHAIN%s" % chid if selected == "1": x = '<input type="checkbox" id="%s" name="%s" value="TRUE" checked="checked" />' % ( name, name) else: x = '<input type="checkbox" id="%s" name="%s" value="FALSE" />' % ( name, name) l +=['<tr><td class="l">', x, desc, '</td></tr>'] l +=['</table>', '</td></tr>', '</table>', ## advanced options '<tr class="inner_title"><th>', '<a id="cid1" href="javascript:', "ToggleDivVisibility('cid1','id1','Show Advanced Program Options','Hide Advanced Program Options')", '">Show Advanced Program Options</a>', '</th></tr>', '<tr><td class="c">', '<div id="id1" style="display:none">', '<table class="ninner_table">', '<tr>', '<td valign="top" class="l">', '<fieldset><legend>Plot Output Format</legend>', '<div style="font-size:xx-small">Select the output format for plots.<br/>SVG works with the Adobe plugin and Firefox 1.5+.</div>', '<p><label>', '<input name="plot_format" type="radio" value="PNG" tabindex="35" checked="checked" />', 'PNG Images</label></p>', '<p><label>', '<input name="plot_format" type="radio" value="SVG" tabindex="35" />', 'SVG</label></p>', '</fieldset>', '</td>', '<td valign="top" class="l">', '<fieldset><legend>Atom Class Selection</legend>', '<div style="font-size:xx-small">Analyze all protein atoms, or just the main chain atoms.</div>', '<p><label>', '<input name="include_atoms" type="radio" value="ALL" tabindex="35" checked="checked" />', 'All Atoms</label></p>', '<p><label>', '<input name="include_atoms" type="radio" value="MAINCHAIN" tabindex="35" />', 'Mainchain Atoms ({N,CA,C,O,CB} or {P,O5*,C5*,C4*,C3*,O3*})', '</label></p>', '</fieldset>', '</td>', '</tr><tr>' ## Generate Jmol view/animate? (default=True) '<td valign="top" class="l">', '<fieldset><legend>Jmol toggle switches</legend>', '<p>', '<label>Generate Jmol-viewer pages: </label>', '<input name="generate_jmol_view" type="radio" value="True" checked="checked" />yes', '<input name="generate_jmol_view" type="radio" value="False" />no', '</p>', '<p>', '<label>Generate Jmol-animation pages: </label>', '<input name="generate_jmol_animate" type="radio" value="True" checked="checked" />yes', '<input name="generate_jmol_animate" type="radio" value="False" />no', '</p>', '</fieldset>', '</td>', ## Generate histogram plot? (default=False) '<td valign="top" class="l">', '<fieldset><legend>Histogram toggle switches</legend>', '<p>', '<label>Generate histogram plots: </label>', '<input name="generate_histogram" type="radio" value="True" />yes', '<input name="generate_histogram" type="radio" value="False" checked="checked" />no', '</p>', '</fieldset>', '</td>', '</tr><tr>' ## select number of partitions per chain '<td valign="top" class="l">', '<fieldset><legend>Set number of partitions/chain</legend>', '<div style="font-size:xx-small">default/max = %s</div><br/>' % (conf.NPARTS), '<p>', '<label>Maximum number of segments: </label>', '<input name="nparts" type="text" size="2" maxlength="2" value="%s" />' % ( conf.NPARTS), '</p>', '</fieldset>', '</td>', '</tr>', '</table>', '</div>', '</td></tr>', '</table>'] return "".join(l)
|
ebe7911aaa6579796c3b771f64c91ad7ae981d9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/ebe7911aaa6579796c3b771f64c91ad7ae981d9b/webtlsmd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302,
310,
8515,
18,
3536,
225,
328,
273,
10228,
32,
2121,
667,
1546,
7872,
67,
2121,
7918,
16,
2368,
313,
667,
1546,
7872,
67,
2649,
14050,
451,
34,
9905,
6188,
13586,
5087,
1757,
451,
4695,
313,
1870,
16,
225,
2368,
313,
4438,
4465,
667,
1546,
71,
7918,
16,
2368,
2121,
1835,
1546,
6625,
9,
7918,
16,
2368,
313,
4438,
4465,
667,
1546,
71,
6,
1244,
724,
1546,
3669,
7918,
16,
225,
7541,
2002,
1014,
2368,
2121,
667,
1546,
82,
7872,
67,
2121,
7918,
16,
225,
2368,
313,
4438,
4465,
667,
1546,
80,
7918,
65,
309,
2195,
18,
20055,
67,
18321,
55,
30,
328,
1011,
2368,
2630,
618,
1546,
12017,
6,
612,
1546,
1152,
67,
4688,
6,
508,
1546,
1152,
67,
4688,
6,
460,
1546,
18724,
6,
5950,
1546,
4532,
6,
13452,
469,
30,
328,
1011,
2368,
2630,
618,
1546,
12017,
6,
612,
1546,
1152,
67,
4688,
6,
508,
1546,
1152,
67,
4688,
6,
460,
1546,
18724,
6,
13452,
225,
328,
1011,
10228,
32,
1925,
364,
1546,
1152,
67,
4688,
6441,
11523,
3956,
8726,
1757,
1925,
1870,
16,
4357,
4465,
4695,
313,
1870,
16,
225,
2368,
313,
4438,
4465,
667,
1546,
80,
7918,
16,
2368,
1925,
364,
1546,
7627,
67,
350,
6441,
24,
17,
13938,
13348,
1599,
7765,
1925,
1870,
16,
2368,
2630,
618,
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,
1729,
67,
12890,
67,
4272,
67,
2121,
12,
74,
1576,
4672,
3536,
6668,
316,
296,
4160,
576,
30,
14192,
596,
2592,
3951,
2748,
10332,
8080,
5360,
326,
729,
358,
3170,
16111,
702,
1865,
2302,
310,
8515,
18,
3536,
225,
328,
273,
10228,
32,
2121,
667,
1546,
7872,
67,
2121,
7918,
16,
2368,
313,
667,
1546,
7872,
67,
2649,
14050,
451,
34,
9905,
6188,
13586,
5087,
1757,
451,
4695,
313,
1870,
16,
225,
2368,
313,
4438,
4465,
667,
1546,
71,
7918,
16,
2368,
2121,
1835,
1546,
6625,
9,
7918,
16,
2368,
313,
4438,
4465,
667,
1546,
71,
6,
1244,
724,
1546,
3669,
7918,
16,
225,
7541,
2002,
1014,
2368,
2121,
667,
1546,
82,
7872,
67,
2121,
7918,
16,
225,
2
] |
raise CompressionError, "zlib module is not available"
|
raise CompressionError("zlib module is not available")
|
def __init__(self, name, mode, comptype, fileobj, bufsize): """Construct a _Stream object. """ self._extfileobj = True if fileobj is None: fileobj = _LowLevelFile(name, mode) self._extfileobj = False
|
a080e25938abc4d1161007bb915b3848123a4f64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a080e25938abc4d1161007bb915b3848123a4f64/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1965,
16,
532,
27672,
16,
17041,
16,
1681,
1467,
4672,
3536,
7249,
279,
389,
1228,
733,
18,
3536,
365,
6315,
408,
768,
2603,
273,
1053,
309,
17041,
353,
599,
30,
17041,
273,
389,
10520,
2355,
812,
12,
529,
16,
1965,
13,
365,
6315,
408,
768,
2603,
273,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
16,
1965,
16,
532,
27672,
16,
17041,
16,
1681,
1467,
4672,
3536,
7249,
279,
389,
1228,
733,
18,
3536,
365,
6315,
408,
768,
2603,
273,
1053,
309,
17041,
353,
599,
30,
17041,
273,
389,
10520,
2355,
812,
12,
529,
16,
1965,
13,
365,
6315,
408,
768,
2603,
273,
1083,
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
] |
msghdr += "Subject: BC Results for " + str(item.computationResult.chartImage.name) + '\n\n'
|
msghdr += "Subject: BC Results for " + str(item.computationResult.chartImage.name) + '\n'
|
def checkResults(self): ''' Refer GmailResultsFramework.checkResults for documentation ''' tags = self.grestags + " IANA" gmail_user = setting.get("username") gmail_pwd = setting.get("password") smtpserver = smtplib.SMTP("smtp.gmail.com",587) smtpserver.ehlo() smtpserver.starttls() smtpserver.ehlo() smtpserver.login(gmail_user, gmail_pwd) self.log.info("Checking Results... {0}".format(str(setting.get("poll_interval"))), extra=tags) for item in SuryaIANAResult.objects(isEmailed=False): try: misc = item.item.misc misc_dict = json.loads(misc) except ValueError as ve: self.log.error('[ Sanity ] The misc input is not a json syntax string. Store it as { "rawstring": (...input...)} . The orignial Input:' + str(misc)+ "Reason:" + str(ve), extra=tags) misc = '{ "rawString":"' + str(misc) + '"}' if misc_dict.has_key("fromemail"):
|
9206ee111fbf04e6a9269d7b54c1e0fede9e3a88 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13935/9206ee111fbf04e6a9269d7b54c1e0fede9e3a88/IANAGmailResults.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
9163,
225,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,
67,
1355,
273,
3637,
18,
588,
2932,
5053,
7923,
314,
4408,
67,
27487,
273,
3637,
18,
588,
2932,
3664,
7923,
17660,
3567,
273,
272,
1010,
6673,
18,
55,
14636,
2932,
20278,
18,
75,
4408,
18,
832,
3113,
8204,
27,
13,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
1937,
17116,
1435,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
5819,
12,
75,
4408,
67,
1355,
16,
314,
4408,
67,
27487,
13,
225,
365,
18,
1330,
18,
1376,
2932,
14294,
10351,
2777,
288,
20,
1532,
18,
2139,
12,
701,
12,
8920,
18,
588,
2932,
13835,
67,
6624,
6,
3719,
3631,
2870,
33,
4156,
13,
225,
364,
761,
316,
16680,
93,
69,
21634,
37,
1253,
18,
6911,
12,
291,
1514,
1708,
33,
8381,
4672,
225,
775,
30,
20448,
273,
761,
18,
1726,
18,
23667,
20448,
67,
1576,
273,
1163,
18,
17135,
12,
23667,
13,
1335,
2068,
487,
10489,
30,
365,
18,
1330,
18,
1636,
2668,
63,
23123,
308,
1021,
20448,
810,
353,
486,
279,
1163,
6279,
533,
18,
4994,
518,
487,
288,
315,
1899,
1080,
6877,
261,
2777,
2630,
2777,
16869,
263,
1021,
578,
724,
649,
2741,
2497,
397,
609,
12,
23667,
27921,
315,
8385,
2773,
397,
609,
12,
537,
3631,
2870,
33,
4156,
13,
20448,
273,
2292,
315,
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,
3447,
12,
2890,
4672,
9163,
868,
586,
611,
4408,
3447,
13701,
18,
1893,
3447,
364,
7323,
9163,
225,
2342,
273,
365,
18,
75,
8792,
1341,
397,
315,
467,
1258,
37,
6,
225,
314,
4408,
67,
1355,
273,
3637,
18,
588,
2932,
5053,
7923,
314,
4408,
67,
27487,
273,
3637,
18,
588,
2932,
3664,
7923,
17660,
3567,
273,
272,
1010,
6673,
18,
55,
14636,
2932,
20278,
18,
75,
4408,
18,
832,
3113,
8204,
27,
13,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
1937,
17116,
1435,
17660,
3567,
18,
73,
76,
383,
1435,
17660,
3567,
18,
5819,
12,
75,
4408,
67,
1355,
16,
314,
4408,
67,
27487,
13,
225,
365,
18,
1330,
18,
1376,
2932,
14294,
2
] |
if get_verbose() >= 2: print "R[%02d].s_row %s"%(self.n,self.hex_str_vector(P))
|
if get_verbose() >= 2: print "R[%02d].s_row %s"%(self.n, self.hex_str_vector(P))
|
def __call__(self, P, K): r""" Encrypts the plaintext $P$ using the key $K$.
|
cd82551727ddbae04c5b28f55b59ec14654a84ab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/cd82551727ddbae04c5b28f55b59ec14654a84ab/sr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
453,
16,
1475,
4672,
436,
8395,
8594,
20261,
326,
11917,
271,
52,
8,
1450,
326,
498,
271,
47,
8,
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,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,
1450,
326,
498,
271,
47,
8,
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
] |
TIOCSWINSZ = termios.TIOCSWINSZ
|
if 'TIOCSWINSZ' in dir(termios): TIOCSWINSZ = termios.TIOCSWINSZ else: TIOCSWINSZ = -2146929561
|
def setwinsize(self, r, c): """This sets the window size of the child tty. This will cause a SIGWINCH signal to be sent to the child. This does not change the physical window size. It changes the size reported to TTY-aware applications like vi or curses -- applications that respond to the SIGWINCH signal. """ # Check for buggy platforms. Some Python versions on some platforms # (notably OSF1 Alpha and RedHat 7.1) truncate the value for # termios.TIOCSWINSZ. It is not clear why this happens. # These platforms don't seem to handle the signed int very well; # yet other platforms like OpenBSD have a large negative value for # TIOCSWINSZ and they don't have a truncate problem. # Newer versions of Linux have totally different values for TIOCSWINSZ. # Note that this fix is a hack. TIOCSWINSZ = termios.TIOCSWINSZ if TIOCSWINSZ == 2148037735L: # L is not required in Python >= 2.2. TIOCSWINSZ = -2146929561 # Same bits, but with sign. # Note, assume ws_xpixel and ws_ypixel are zero. s = struct.pack('HHHH', r, c, 0, 0) fcntl.ioctl(self.fileno(), TIOCSWINSZ, s)
|
b8a2f7bf254f3c49f7d0a9ecee1c1c19982534ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9386/b8a2f7bf254f3c49f7d0a9ecee1c1c19982534ec/pexpect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
8082,
1467,
12,
2890,
16,
436,
16,
276,
4672,
3536,
2503,
1678,
326,
2742,
963,
434,
326,
1151,
21520,
18,
1220,
903,
4620,
279,
7004,
24572,
1792,
4277,
358,
506,
3271,
358,
326,
1151,
18,
1220,
1552,
486,
2549,
326,
11640,
2742,
963,
18,
2597,
3478,
326,
963,
14010,
358,
399,
5538,
17,
30799,
12165,
3007,
13206,
578,
30436,
1493,
12165,
716,
6846,
358,
326,
7004,
24572,
1792,
4277,
18,
3536,
468,
2073,
364,
324,
5696,
93,
17422,
18,
10548,
6600,
5244,
603,
2690,
17422,
468,
261,
902,
6906,
5932,
42,
21,
24277,
471,
4621,
44,
270,
2371,
18,
21,
13,
10310,
326,
460,
364,
468,
2481,
7441,
18,
56,
4294,
4596,
24572,
28830,
18,
2597,
353,
486,
2424,
11598,
333,
10555,
18,
468,
8646,
17422,
2727,
1404,
19264,
358,
1640,
326,
6726,
509,
8572,
5492,
31,
468,
4671,
1308,
17422,
3007,
3502,
30780,
1240,
279,
7876,
6092,
460,
364,
468,
399,
4294,
4596,
24572,
28830,
471,
2898,
2727,
1404,
1240,
279,
10310,
6199,
18,
468,
1166,
264,
5244,
434,
13318,
1240,
9997,
1230,
3775,
924,
364,
399,
4294,
4596,
24572,
28830,
18,
468,
3609,
716,
333,
2917,
353,
279,
11769,
18,
309,
296,
56,
4294,
4596,
24572,
28830,
11,
316,
1577,
12,
6408,
7441,
4672,
399,
4294,
4596,
24572,
28830,
273,
2481,
7441,
18,
56,
4294,
4596,
24572,
28830,
469,
30,
399,
4294,
4596,
24572,
28830,
273,
300,
22,
3461,
8148,
5540,
4313,
21,
309,
399,
4294,
4596,
24572,
28830,
422,
30149,
3672,
23,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
8082,
1467,
12,
2890,
16,
436,
16,
276,
4672,
3536,
2503,
1678,
326,
2742,
963,
434,
326,
1151,
21520,
18,
1220,
903,
4620,
279,
7004,
24572,
1792,
4277,
358,
506,
3271,
358,
326,
1151,
18,
1220,
1552,
486,
2549,
326,
11640,
2742,
963,
18,
2597,
3478,
326,
963,
14010,
358,
399,
5538,
17,
30799,
12165,
3007,
13206,
578,
30436,
1493,
12165,
716,
6846,
358,
326,
7004,
24572,
1792,
4277,
18,
3536,
468,
2073,
364,
324,
5696,
93,
17422,
18,
10548,
6600,
5244,
603,
2690,
17422,
468,
261,
902,
6906,
5932,
42,
21,
24277,
471,
4621,
44,
270,
2371,
18,
21,
13,
10310,
326,
460,
364,
468,
2481,
7441,
18,
56,
4294,
4596,
24572,
28830,
18,
2597,
353,
2
] |
bb.note("Cache: %s is not cached" % fn)
|
bb.debug(2, "Cache: %s is not cached" % fn)
|
def cacheValidUpdate(self, fn): """ Is the cache valid for fn? Make thorough (slower) checks including timestamps. """ # Is cache enabled? if self.cachedir in [None, '']: return False
|
a7a4a4ee9477259e0771629df02085aaeee84f80 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2672/a7a4a4ee9477259e0771629df02085aaeee84f80/cache.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
1556,
1891,
12,
2890,
16,
2295,
4672,
3536,
2585,
326,
1247,
923,
364,
2295,
35,
4344,
286,
280,
4966,
261,
87,
8167,
13,
4271,
6508,
11267,
18,
3536,
468,
2585,
1247,
3696,
35,
309,
365,
18,
7097,
481,
316,
306,
7036,
16,
875,
14542,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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3696,
35,
309,
365,
18,
7097,
481,
316,
306,
7036,
16,
875,
14542,
327,
1083,
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
] |
return reStructuredText.HTML(t,report_level=RST_REPORT_LEVEL)
|
return reStructuredText.HTML( t, report_level=RST_REPORT_LEVEL, initial_header_level=RST_INITIAL_HEADER_LEVEL-1 )
|
def format(self, t): if reStructuredText: return reStructuredText.HTML(t,report_level=RST_REPORT_LEVEL) else: return "<pre>Error: could not import reStructuredText</pre>\n"+t
|
920bc1677b9a7ee73157b5cffec45d7fedc06d34 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5225/920bc1677b9a7ee73157b5cffec45d7fedc06d34/rst.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
268,
4672,
309,
283,
30733,
1528,
30,
327,
283,
30733,
1528,
18,
4870,
12,
268,
16,
2605,
67,
2815,
33,
10637,
67,
22710,
67,
10398,
16,
2172,
67,
3374,
67,
2815,
33,
10637,
67,
28497,
67,
7557,
67,
10398,
17,
21,
262,
469,
30,
327,
3532,
1484,
34,
668,
30,
3377,
486,
1930,
283,
30733,
1528,
1757,
1484,
5333,
82,
6,
15,
88,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
12,
2890,
16,
268,
4672,
309,
283,
30733,
1528,
30,
327,
283,
30733,
1528,
18,
4870,
12,
268,
16,
2605,
67,
2815,
33,
10637,
67,
22710,
67,
10398,
16,
2172,
67,
3374,
67,
2815,
33,
10637,
67,
28497,
67,
7557,
67,
10398,
17,
21,
262,
469,
30,
327,
3532,
1484,
34,
668,
30,
3377,
486,
1930,
283,
30733,
1528,
1757,
1484,
5333,
82,
6,
15,
88,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.action.triggerAction(message)
|
action.triggerAction(message)
|
def tailer(self): '''Stdout multicolor tailer''' message = Message(self.logcolors,self.target) self.posEnd() if self.silence: self.daemonize() try: while True: found = 0 # throttleTime is when our app # logs very fast and we want to slow # down the tailing time.sleep(self.throttleTime) for log in self.arrayLog: if self.hasRotated(log): found = 0 line = log.readLine() if line: found = 1 line = line.rstrip() message.parse(line) for action in self.actions: self.action.triggerAction(message) log.size = log.getcurrSize()
|
56f283d5c2de71f70c3c114750edc5b014dba55e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5602/56f283d5c2de71f70c3c114750edc5b014dba55e/LogTailer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5798,
264,
12,
2890,
4672,
9163,
27334,
1778,
12463,
280,
5798,
264,
26418,
883,
273,
2350,
12,
2890,
18,
1330,
9724,
16,
2890,
18,
3299,
13,
365,
18,
917,
1638,
1435,
309,
365,
18,
25119,
802,
30,
365,
18,
21511,
554,
1435,
775,
30,
1323,
1053,
30,
1392,
273,
374,
468,
18304,
950,
353,
1347,
3134,
595,
468,
5963,
8572,
4797,
471,
732,
2545,
358,
11816,
468,
2588,
326,
5798,
310,
813,
18,
19607,
12,
2890,
18,
27971,
298,
950,
13,
364,
613,
316,
365,
18,
1126,
1343,
30,
309,
365,
18,
5332,
8570,
690,
12,
1330,
4672,
1392,
273,
374,
980,
273,
613,
18,
896,
1670,
1435,
309,
980,
30,
1392,
273,
404,
980,
273,
980,
18,
86,
6406,
1435,
225,
883,
18,
2670,
12,
1369,
13,
364,
1301,
316,
365,
18,
4905,
30,
1301,
18,
10668,
1803,
12,
2150,
13,
613,
18,
1467,
273,
613,
18,
588,
17016,
1225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5798,
264,
12,
2890,
4672,
9163,
27334,
1778,
12463,
280,
5798,
264,
26418,
883,
273,
2350,
12,
2890,
18,
1330,
9724,
16,
2890,
18,
3299,
13,
365,
18,
917,
1638,
1435,
309,
365,
18,
25119,
802,
30,
365,
18,
21511,
554,
1435,
775,
30,
1323,
1053,
30,
1392,
273,
374,
468,
18304,
950,
353,
1347,
3134,
595,
468,
5963,
8572,
4797,
471,
732,
2545,
358,
11816,
468,
2588,
326,
5798,
310,
813,
18,
19607,
12,
2890,
18,
27971,
298,
950,
13,
364,
613,
316,
365,
18,
1126,
1343,
30,
309,
365,
18,
5332,
8570,
690,
12,
1330,
4672,
1392,
273,
374,
980,
273,
613,
18,
896,
1670,
1435,
309,
980,
30,
1392,
273,
404,
980,
273,
980,
18,
2
] |
class MozillaUpdateConfigFromChange(ShellCommand): """Configure YAML file for run_tests.py""" def __init__(self, **kwargs): self.title = "default" self.branch = "" self.currentDate = "" if 'build' in kwargs: self.title = kwargs['build'].slavename self.changes = kwargs['build'].source.changes self.buildid = self.changes[0].comments.split(',')[0] if 'branch' in kwargs: self.branch = kwargs['branch'] assert 'configPath' in kwargs assert 'executablePath' in kwargs self.configPath = kwargs['configPath'] self.exePath = kwargs['executablePath'] if not 'command' in kwargs: kwargs['command'] = ["python", "PerfConfigurator.py", "-v", "-e", self.exePath, "-c", self.configPath, "-t", self.title, "-b", self.branch, "-d", self.buildid] ShellCommand.__init__(self, **kwargs) def describe(self, done=False): return ["Update config"] def evaluateCommand(self, cmd): superResult = ShellCommand.evaluateCommand(self, cmd) if SUCCESS != superResult: return FAILURE stdioText = cmd.logs['stdio'].getText() if None != re.search('ERROR', stdioText): return FAILURE if None != re.search('USAGE:', stdioText): return FAILURE configFileMatch = re.search('outputName\s*=\s*(\w*?.yml)', stdioText) if not configFileMatch: return FAILURE else: self.setProperty("configFile", configFileMatch.group(1)) return SUCCESS
|
def evaluateCommand(self, cmd): superResult = ShellCommand.evaluateCommand(self, cmd) if SUCCESS != superResult: return FAILURE if None != re.search('ERROR', cmd.logs['stdio'].getText()): return FAILURE return SUCCESS
|
8b5105b8fc52a98f78d160ee3e3efd78e8ede51a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13067/8b5105b8fc52a98f78d160ee3e3efd78e8ede51a/perfrunner.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
24077,
309,
599,
480,
283,
18,
3072,
2668,
3589,
2187,
1797,
18,
10011,
3292,
5084,
1594,
29489,
588,
1528,
1435,
4672,
327,
24077,
327,
16561,
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,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
2189,
12,
2890,
16,
1797,
4672,
2240,
1253,
273,
19433,
2189,
18,
21024,
2189,
12,
2890,
16,
1797,
13,
309,
16561,
480,
2240,
1253,
30,
327,
24077,
309,
599,
480,
283,
18,
3072,
2668,
3589,
2187,
1797,
18,
10011,
3292,
5084,
1594,
29489,
588,
1528,
1435,
4672,
327,
24077,
327,
16561,
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
] |
|
print b.getbug(public_bug)
|
print bz.getbugsimple(public_bug)
|
def selftest(user='',password=''): url = 'https://bugzilla.redhat.com/xmlrpc.cgi' public_bug = 1 private_bug = 250666 query = {'product':'Fedora', 'component':'kernel', 'version':'devel', 'long_desc':'wireless'} print "Woo, welcome to the bugzilla.py self-test." print "Using bugzilla at " + url if user and password: print 'Using username "%s", password "%s"' % (user,password) b = Bugzilla(url=url,user=user,password=password) else: cookies = find_firefox_cookiefile() if not cookies: print "Could not find any cookies for that URL!" print "Log in with firefox or give me a username/password." sys.exit(1) print "Reading cookies from " + cookies b = Bugzilla(url=url,cookies=cookies) print "Reading product list" print b.getproducts() print print "Reading public bug (#%i)" % public_bug print b.getbug(public_bug) print print "Reading private bug (#%i)" % private_bug try: print b.getbug(private_bug) except xmlrpclib.Fault, e: if 'NotPermitted' in e.faultString: print "Failed: Not authorized." else: print "Failed: Unknown XMLRPC error: %s" % e q_msg = "%s %s %s %s" % (query['product'],query['component'], query['version'],query['long_desc']) print print "Querying %s bugs" % q_msg bugs = b.query(query) print "%s bugs found." % len(bugs) for bug in bugs: print "Bug %s" % bug print print "Awesome. We're done."
|
25a0d539f54da647e026e1c1ef394dde7713ee09 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5050/25a0d539f54da647e026e1c1ef394dde7713ee09/selftest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
404,
3238,
67,
925,
273,
16927,
25308,
843,
273,
13666,
5896,
11,
2497,
42,
15534,
2187,
296,
4652,
11,
2497,
8111,
2187,
296,
1589,
11,
2497,
323,
941,
2187,
296,
5748,
67,
5569,
11,
2497,
14538,
2656,
11,
97,
225,
1172,
315,
59,
5161,
16,
28329,
358,
326,
7934,
15990,
18,
2074,
365,
17,
3813,
1199,
1172,
315,
7736,
7934,
15990,
622,
315,
397,
880,
309,
729,
471,
2201,
30,
1172,
296,
7736,
2718,
2213,
87,
3113,
2201,
2213,
87,
5187,
738,
261,
1355,
16,
3664,
13,
324,
273,
16907,
15990,
12,
718,
33,
718,
16,
1355,
33,
1355,
16,
3664,
33,
3664,
13,
469,
30,
7237,
273,
1104,
67,
12179,
13873,
67,
8417,
768,
1435,
309,
486,
7237,
30,
1172,
315,
4445,
486,
1104,
1281,
7237,
364,
716,
1976,
4442,
1172,
315,
1343,
316,
598,
4452,
13873,
578,
8492,
1791,
279,
2718,
19,
3664,
1199,
2589,
18,
8593,
12,
21,
13,
1172,
315,
15714,
7237,
628,
315,
397,
7237,
324,
273,
16907,
15990,
12,
718,
33,
718,
16,
16240,
33,
16240,
13,
1172,
315,
15714,
3017,
666,
6,
1172,
324,
18,
588,
18736,
1435,
1172,
225,
1172,
315,
15714,
1071,
7934,
23885,
9,
77,
2225,
738,
1071,
67,
925,
1172,
24788,
18,
588,
19381,
2052,
12,
482,
67,
925,
13,
1172,
225,
1172,
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,
365,
3813,
12,
1355,
2218,
2187,
3664,
2218,
11,
4672,
880,
273,
296,
4528,
2207,
925,
15990,
18,
1118,
11304,
18,
832,
19,
2902,
7452,
18,
19062,
11,
1071,
67,
925,
273,
404,
3238,
67,
925,
273,
16927,
25308,
843,
273,
13666,
5896,
11,
2497,
42,
15534,
2187,
296,
4652,
11,
2497,
8111,
2187,
296,
1589,
11,
2497,
323,
941,
2187,
296,
5748,
67,
5569,
11,
2497,
14538,
2656,
11,
97,
225,
1172,
315,
59,
5161,
16,
28329,
358,
326,
7934,
15990,
18,
2074,
365,
17,
3813,
1199,
1172,
315,
7736,
7934,
15990,
622,
315,
397,
880,
309,
729,
471,
2201,
30,
1172,
296,
7736,
2718,
2213,
87,
3113,
2201,
2213,
87,
5187,
738,
261,
1355,
16,
3664,
2
] |
setSite( portal )
|
setSite( self.portal )
|
def __init__(self, PORTAL_PATH="plone" ):
|
26413de3bf58b322e04902c5b9983ff26cd3a74f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8544/26413de3bf58b322e04902c5b9983ff26cd3a74f/ipy_profile_zope.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20987,
1013,
67,
4211,
1546,
412,
476,
6,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
20987,
1013,
67,
4211,
1546,
412,
476,
6,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 (err.args[0]['status'] == 400 and err.args[0]['body'].find('convert') != -1): LOG.error(err) LOG.info('Is this a new-version document? gdata has a bug' + ' preventing updates on new version documents.' + ' Please follow the instructions on the wiki FAQ ' + ' to convert your document.') new_path = safe_move(path, '.') LOG.info('Moved edited document to ' + new_path) else: raise
|
LOG.error(err) new_path = safe_move(path, '.') LOG.info('Moved edited document to ' + new_path)
|
def edit_doc(self, doc_entry_or_title, editor, file_format, folder_entry_or_path=None): """Edit a document. Keyword arguments: doc_entry_or_title: DocEntry of the existing document to edit, or title of the document to create. editor: Name of the editor to use. Should be executable from the user's working directory. file_format: Suffix of the file to download. For example, "txt", "csv", "xcl". folder_entry_or_path: Entry or string representing folder to upload into. If a string, a new set of folders will ALWAYS be created. For example, 'my_folder' to upload to my_folder, 'foo/bar' to upload into subfolder bar under folder foo. Default None for root folder. """ import subprocess import tempfile from gdata.docs.service import SUPPORTED_FILETYPES try: doc_title = doc_entry_or_title.title.text new_doc = False except AttributeError: doc_title = doc_entry_or_title new_doc = True
|
c5817415ad489e20d3b70371c11d657a7e81f4ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/c5817415ad489e20d3b70371c11d657a7e81f4ca/service.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
67,
2434,
12,
2890,
16,
997,
67,
4099,
67,
280,
67,
2649,
16,
4858,
16,
585,
67,
2139,
16,
3009,
67,
4099,
67,
280,
67,
803,
33,
7036,
4672,
3536,
4666,
279,
1668,
18,
225,
18317,
1775,
30,
997,
67,
4099,
67,
280,
67,
2649,
30,
3521,
1622,
434,
326,
2062,
1668,
358,
3874,
16,
578,
2077,
434,
326,
1668,
358,
752,
18,
4858,
30,
1770,
434,
326,
4858,
358,
999,
18,
9363,
506,
9070,
628,
326,
729,
1807,
5960,
1867,
18,
585,
67,
2139,
30,
348,
2609,
434,
326,
585,
358,
4224,
18,
2457,
3454,
16,
315,
5830,
3113,
315,
6715,
3113,
315,
92,
830,
9654,
3009,
67,
4099,
67,
280,
67,
803,
30,
3841,
578,
533,
5123,
3009,
358,
3617,
1368,
18,
971,
279,
533,
16,
279,
394,
444,
434,
9907,
903,
7981,
29295,
506,
2522,
18,
2457,
3454,
16,
296,
4811,
67,
5609,
11,
358,
3617,
358,
3399,
67,
5609,
16,
296,
11351,
19,
3215,
11,
358,
3617,
1368,
31001,
4653,
3613,
3009,
8431,
18,
2989,
599,
364,
1365,
3009,
18,
225,
3536,
1930,
6652,
1930,
13275,
628,
314,
892,
18,
8532,
18,
3278,
1930,
29556,
67,
3776,
10564,
225,
775,
30,
997,
67,
2649,
273,
997,
67,
4099,
67,
280,
67,
2649,
18,
2649,
18,
955,
394,
67,
2434,
273,
1083,
1335,
6394,
30,
997,
67,
2649,
273,
997,
67,
4099,
67,
280,
67,
2649,
394,
67,
2434,
273,
1053,
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,
3874,
67,
2434,
12,
2890,
16,
997,
67,
4099,
67,
280,
67,
2649,
16,
4858,
16,
585,
67,
2139,
16,
3009,
67,
4099,
67,
280,
67,
803,
33,
7036,
4672,
3536,
4666,
279,
1668,
18,
225,
18317,
1775,
30,
997,
67,
4099,
67,
280,
67,
2649,
30,
3521,
1622,
434,
326,
2062,
1668,
358,
3874,
16,
578,
2077,
434,
326,
1668,
358,
752,
18,
4858,
30,
1770,
434,
326,
4858,
358,
999,
18,
9363,
506,
9070,
628,
326,
729,
1807,
5960,
1867,
18,
585,
67,
2139,
30,
348,
2609,
434,
326,
585,
358,
4224,
18,
2457,
3454,
16,
315,
5830,
3113,
315,
6715,
3113,
315,
92,
830,
9654,
3009,
67,
4099,
67,
280,
67,
803,
30,
3841,
578,
2
] |
if self.stickyToggle: for element in self.scroller.elements: if element <> button: element.set_state(False) button.set_state(True) else: if button.state == False: self.value = None else: for element in self.scroller.elements: if element <> button:
|
if 1 == 2: if self.stickyToggle: for element in self.scroller.elements: if element <> button:
|
def toggleOn(self, button): # sticky toggle keeps the button set, no matter what if self.stickyToggle: for element in self.scroller.elements: if element <> button: element.set_state(False) # simply set the state of this button and move on button.set_state(True) else: # print button.state if button.state == False: self.value = None # no value, since nothing's on # do nothing, the button has been turned off else: # the button was turned on, turn everything else off for element in self.scroller.elements: if element <> button: element.set_state(False) self.value = button.name
|
695ebc94fcea97afa089a3eef4f68b45fabfce6c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/695ebc94fcea97afa089a3eef4f68b45fabfce6c/BtoRMain.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
1398,
12,
2890,
16,
3568,
4672,
468,
21750,
10486,
20948,
326,
3568,
444,
16,
1158,
15177,
4121,
309,
365,
18,
334,
13055,
17986,
30,
364,
930,
316,
365,
18,
1017,
1539,
18,
6274,
30,
309,
930,
2813,
3568,
30,
930,
18,
542,
67,
2019,
12,
8381,
13,
468,
8616,
444,
326,
919,
434,
333,
3568,
471,
3635,
603,
3568,
18,
542,
67,
2019,
12,
5510,
13,
469,
30,
468,
1172,
3568,
18,
2019,
309,
3568,
18,
2019,
422,
1083,
30,
365,
18,
1132,
273,
599,
468,
1158,
460,
16,
3241,
5083,
1807,
603,
468,
741,
5083,
16,
326,
3568,
711,
2118,
21826,
3397,
469,
30,
468,
326,
3568,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10486,
1398,
12,
2890,
16,
3568,
4672,
468,
21750,
10486,
20948,
326,
3568,
444,
16,
1158,
15177,
4121,
309,
365,
18,
334,
13055,
17986,
30,
364,
930,
316,
365,
18,
1017,
1539,
18,
6274,
30,
309,
930,
2813,
3568,
30,
930,
18,
542,
67,
2019,
12,
8381,
13,
468,
8616,
444,
326,
919,
434,
333,
3568,
471,
3635,
603,
3568,
18,
542,
67,
2019,
12,
5510,
13,
469,
30,
468,
1172,
3568,
18,
2019,
309,
3568,
18,
2019,
422,
1083,
30,
365,
18,
1132,
273,
599,
468,
1158,
460,
16,
3241,
5083,
1807,
603,
468,
741,
5083,
16,
326,
3568,
711,
2118,
21826,
3397,
469,
30,
468,
326,
3568,
1703,
21826,
603,
16,
7005,
7756,
469,
3397,
364,
2
] |
if self.normalize(k) == c_key:
|
if normalize(k) == c_key:
|
def setdefault(self, key, default=None): c_key = self.normalize(key) for k, v in self._items: if self.normalize(k) == c_key: return v self._items.append((key, default)) return default
|
5e878f6a6d1b899882359f21d5f274dd4b6e29f4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12287/5e878f6a6d1b899882359f21d5f274dd4b6e29f4/headerdict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
276,
67,
856,
273,
365,
18,
12237,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
276,
67,
856,
30,
327,
331,
365,
6315,
3319,
18,
6923,
12443,
856,
16,
805,
3719,
327,
805,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8745,
12,
2890,
16,
498,
16,
805,
33,
7036,
4672,
276,
67,
856,
273,
365,
18,
12237,
12,
856,
13,
364,
417,
16,
331,
316,
365,
6315,
3319,
30,
309,
3883,
12,
79,
13,
422,
276,
67,
856,
30,
327,
331,
365,
6315,
3319,
18,
6923,
12443,
856,
16,
805,
3719,
327,
805,
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
] |
def t_asm_ID(t): r'[A-Za-z_]\w*' t.type = reserved_map.get(t.value, 'ID') t.lexer.begin('params') return t def t_ANY_ID(t): r'[A-Za-z_]\w*' t.type = reserved_map.get(t.value, 'ID') return t
|
def t_params_COLON(t): r':' t.lexer.begin('asm') return t
|
bc4f464ada78a254b6da247ab0530f189270d197 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/bc4f464ada78a254b6da247ab0530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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
67,
2010,
67,
4935,
673,
12,
88,
4672,
436,
11,
2497,
268,
18,
31731,
18,
10086,
2668,
23522,
6134,
327,
268,
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,
-100
] |
|
WINDOWS_MAIN_MEM = re.compile('PRS-((700/)|((6|9)00&))') WINDOWS_CARD_A_MEM = re.compile(r'PRS-((700/\S+:)|((6|9)00_))MS') WINDOWS_CARD_B_MEM = re.compile(r'PRS-((700/\S+:)|((6|9)00_))SD')
|
WINDOWS_MAIN_MEM = re.compile('PRS-((700[ WINDOWS_CARD_A_MEM = re.compile(r'PRS-((700[/ WINDOWS_CARD_B_MEM = re.compile(r'PRS-((700[/
|
def write_card_prefix(prefix, listid): if prefix is not None and hasattr(booklists[listid], 'write'): if not os.path.exists(prefix): os.makedirs(prefix) f = open(prefix + self.__class__.CACHE_XML, 'wb') booklists[listid].write(f) f.close()
|
fb03cf1bf86d4c341fbb258bd263efd0c6f75a8c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/fb03cf1bf86d4c341fbb258bd263efd0c6f75a8c/driver.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
3327,
67,
3239,
12,
3239,
16,
666,
350,
4672,
309,
1633,
353,
486,
599,
471,
3859,
12,
3618,
9772,
63,
1098,
350,
6487,
296,
2626,
11,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3239,
4672,
1140,
18,
81,
9477,
10539,
12,
3239,
13,
284,
273,
1696,
12,
3239,
397,
365,
16186,
1106,
25648,
8495,
67,
4201,
16,
296,
9464,
6134,
6978,
9772,
63,
1098,
350,
8009,
2626,
12,
74,
13,
284,
18,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
3327,
67,
3239,
12,
3239,
16,
666,
350,
4672,
309,
1633,
353,
486,
599,
471,
3859,
12,
3618,
9772,
63,
1098,
350,
6487,
296,
2626,
11,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3239,
4672,
1140,
18,
81,
9477,
10539,
12,
3239,
13,
284,
273,
1696,
12,
3239,
397,
365,
16186,
1106,
25648,
8495,
67,
4201,
16,
296,
9464,
6134,
6978,
9772,
63,
1098,
350,
8009,
2626,
12,
74,
13,
284,
18,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cur_list = skel_to_col_attr_list(self.__skeleton__[table])
|
cur_list = skel_to_col_attr_list(self.__skeleton__[table_name])
|
def make_primary_key(self, table, col_name): """ WORD ON THE STREET IS THAT SQLITE IS RETARDED ABOUT *ALTER TABLE* COMMANDS... SO MEANWHILE WE ACCOMPLISH THIS BY CREATING A TEMPORARY TABLE. SUGGESTIONS FOR SPEEDUP ARE WELCOME. (OR JUST SEND A PATCH...)
|
85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
18843,
7567,
14,
5423,
9560,
3948,
2777,
7460,
7733,
1258,
12557,
13578,
13880,
12048,
10057,
13462,
20676,
6953,
9666,
28054,
432,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
8258,
67,
856,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
21464,
6229,
12786,
2347,
862,
1584,
4437,
7662,
789,
3063,
5398,
4437,
10366,
985,
7660,
10336,
5069,
380,
18843,
7567,
14,
5423,
9560,
3948,
2777,
7460,
7733,
1258,
12557,
13578,
13880,
12048,
10057,
13462,
20676,
6953,
9666,
28054,
432,
24401,
916,
6043,
7567,
18,
225,
11726,
43,
27332,
1146,
55,
12108,
348,
1423,
2056,
3079,
432,
862,
678,
2247,
3865,
958,
18,
225,
261,
916,
804,
5996,
31434,
432,
21298,
21846,
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
] |
from static_type.util.attr import issubclass for klas in namespace.itervalues(): if klas is ForwardSubStruct: continue if not issubclass( klas, base_klas): continue for k,typ in klas.StaticType.itertypes(): if isinstance( typ, SubStruct): if issubclass( typ.typ, ForwardSubStruct): ForwardSubStruct.resolve1( typ, namespace) if debug: print 'ForwardSubStruct.resolve', klas, typ
|
@staticmethod
|
def resolve( namespace, base_klas =StaticStruct, debug =False): return _resolver.resolve( namespace, base_klas=base_klas, debug=debug)
|
cbb8f8895794de3fc11734a53f588f20feb2a3e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10809/cbb8f8895794de3fc11734a53f588f20feb2a3e8/forward.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2245,
12,
1981,
16,
1026,
67,
79,
9521,
273,
5788,
3823,
16,
1198,
273,
8381,
4672,
327,
389,
14122,
18,
10828,
12,
1981,
16,
1026,
67,
79,
9521,
33,
1969,
67,
79,
9521,
16,
1198,
33,
4148,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2245,
12,
1981,
16,
1026,
67,
79,
9521,
273,
5788,
3823,
16,
1198,
273,
8381,
4672,
327,
389,
14122,
18,
10828,
12,
1981,
16,
1026,
67,
79,
9521,
33,
1969,
67,
79,
9521,
16,
1198,
33,
4148,
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
] |
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From,Sender\n')
|
result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From\n')
|
def generate_newgroup(groups, config, group=None, moderated=None, description=None, message=None, passphrase=None): """Create a new group.""" while not group: group = raw_input('Name of the newsgroup to create: ').lower() components = group.split('.') if len(components) < 2: group = None print_error('The group must have at least two components.') elif not components[0][0:1].isalpha(): group = None print_error('The first component must start with a letter.') elif components[0] in ['control', 'example', 'to']: group = None print_error('The first component must not be "control", "example" or "to".') elif re.search('[^a-z0-9+_.-]', group): group = None print_error('The group must not contain characters other than [a-z0-9+_.-].') for component in components: if component in ['all', 'ctl']: group = None print_error('Sequences "all" and "ctl" must not be used as components.') elif not component[0:1].isalnum(): group = None print_error('Each component must start with a letter or a digit.') elif component.isdigit(): group = None print_error('Each component must contain at least one non-digit character.') if groups.has_key(group): print print 'The newsgroup ' + group + ' already exists.' print 'These new settings (status and description) will override the current ones.' print if moderated == None: if raw_input('Is ' + group + ' a moderated newsgroup? (y/n) ' ) == 'y': moderated = True print print 'There is no need to add " (Moderated)" at the very end of the description.' print 'It will be automatically added, if not already present.' print else: moderated = False while not description: print print 'The description should start with a capital and end in a period.' description = raw_input("Description of " + group + ": ") if len(description) > 56: print_error('The description is too long. You should shorten it.') if raw_input('Do you want to continue despite this recommendation? (y/n) ') != 'y': description = None continue moderated_count = description.count('(Moderated)') if moderated_count > 0: if not moderated: if description.endswith(' (Moderated)'): description = None print_error('The description must not end with " (Moderated)".') continue else: print_error('The description must not contain "(Moderated)".') if raw_input('Do you want to continue despite this recommendation? (y/n) ') != 'y': description = None continue elif moderated_count > 1 or not description.endswith(' (Moderated)'): print_error('The description must not contain "(Moderated)".') if raw_input('Do you want to continue despite this recommendation? (y/n) ') != 'y': description = None continue if not message: print print 'The current message which will be sent is:' print if moderated: message = config['NEWGROUP_MESSAGE_MODERATED'].replace('$GROUP$', group) else: message = config['NEWGROUP_MESSAGE_UNMODERATED'].replace('$GROUP$', group) print message print if raw_input('Do you want to change it? (y/n) ') == 'y': print print 'Please enter the message you want to send.' print 'End it with a line containing only "." (a dot).' print message = '' buffer = raw_input('Message: ') + '\n' while buffer != '.\n': message += buffer.rstrip() + '\n' buffer = raw_input('Message: ') + '\n' print print print 'Here is the information about the newsgroup:' print 'Name: ' + group if moderated: print 'Status: moderated' if not description.endswith(' (Moderated)'): description += ' (Moderated)' else: print 'Status: unmoderated' print 'Description: ' + description print 'Message: ' print print message print if raw_input('Do you want to generate a control article for ' + group + '? (y/n) ') == 'y': print file_newgroup = group + '-' + str(SECONDS) result = file(file_newgroup + '.txt', 'wb') result.write('X-Signed-Headers: Subject,Control,Message-ID,Date,From,Sender\n') if moderated: result.write('Subject: cmsg newgroup ' + group + ' moderated\n') result.write('Control: newgroup ' + group + ' moderated\n') else: result.write('Subject: cmsg newgroup ' + group + '\n') result.write('Control: newgroup ' + group + '\n') message_id = '<newgroup-' + group + '-' + str(SECONDS) + '@' + config['HOST'] + '>' result.write('Message-ID: ' + message_id + '\n') result.write('Date: ' + pretty_time(SECONDS) + '\n') result.write('From: ' + config['NAME'] + ' <' + config['MAIL'] + '>\n') result.write('Sender: ' + config['MAIL'] + '\n\n') result.write('This is a MIME NetNews control message.\n') result.write('--signcontrol\n') result.write('Content-Type: text/plain; charset=' + config['ENCODING'] + '\n\n') result.write(message + '\n') result.write('\n\n--signcontrol\n') result.write('Content-Type: application/news-groupinfo; charset=' + config['ENCODING'] + '\n\n') result.write('For your newsgroups file:\n') if len(group) < 8: result.write(group + '\t\t\t' + description + '\n') elif len(group) < 16: result.write(group + '\t\t' + description + '\n') else: result.write(group + '\t' + description + '\n') result.write('\n--signcontrol--\n') result.close() sign_message(config, file_newgroup, group, message_id, 'newgroup', passphrase) if raw_input('Do you want to update the current checkgroups file? (y/n) ') == 'y': groups[group] = description write_checkgroups(groups, config['CHECKGROUPS_FILE'])
|
b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2704,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
681,
19007,
33,
7036,
16,
2477,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
1684,
279,
394,
1041,
12123,
1323,
486,
1041,
30,
1041,
273,
1831,
67,
2630,
2668,
461,
434,
326,
394,
1055,
656,
358,
752,
30,
296,
2934,
8167,
1435,
4085,
273,
1041,
18,
4939,
2668,
1093,
13,
309,
562,
12,
8119,
13,
411,
576,
30,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1041,
1297,
1240,
622,
4520,
2795,
4085,
1093,
13,
1327,
486,
4085,
63,
20,
6362,
20,
30,
21,
8009,
291,
5429,
13332,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1122,
1794,
1297,
787,
598,
279,
9471,
1093,
13,
1327,
4085,
63,
20,
65,
316,
10228,
7098,
2187,
296,
8236,
2187,
296,
869,
3546,
30,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1122,
1794,
1297,
486,
506,
315,
7098,
3113,
315,
8236,
6,
578,
315,
869,
12013,
13,
1327,
283,
18,
3072,
2668,
5969,
69,
17,
94,
20,
17,
29,
15,
27799,
17,
65,
2187,
1041,
4672,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1041,
1297,
486,
912,
3949,
1308,
2353,
306,
69,
17,
94,
20,
17,
29,
15,
27799,
17,
65,
1093,
13,
364,
1794,
316,
4085,
30,
309,
1794,
316,
10228,
454,
2187,
296,
12930,
3546,
30,
1041,
273,
599,
1172,
67,
1636,
2668,
21710,
315,
454,
6,
471,
315,
12930,
6,
1297,
486,
506,
1399,
487,
4085,
1093,
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,
67,
2704,
1655,
12,
4650,
16,
642,
16,
1041,
33,
7036,
16,
681,
19007,
33,
7036,
16,
2477,
33,
7036,
16,
883,
33,
7036,
16,
15244,
33,
7036,
4672,
3536,
1684,
279,
394,
1041,
12123,
1323,
486,
1041,
30,
1041,
273,
1831,
67,
2630,
2668,
461,
434,
326,
394,
1055,
656,
358,
752,
30,
296,
2934,
8167,
1435,
4085,
273,
1041,
18,
4939,
2668,
1093,
13,
309,
562,
12,
8119,
13,
411,
576,
30,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1041,
1297,
1240,
622,
4520,
2795,
4085,
1093,
13,
1327,
486,
4085,
63,
20,
6362,
20,
30,
21,
8009,
291,
5429,
13332,
1041,
273,
599,
1172,
67,
1636,
2668,
1986,
1122,
1794,
1297,
787,
598,
2
] |
def command(text=root, eventname=eventname): text.event_generate(eventname) menu.add_command(label=label, underline=underline,
|
def command(text=root, eventname=eventname): text.event_generate(eventname) menu.add_command(label=label, underline=underline,
|
def command(text=root, eventname=eventname): text.event_generate(eventname)
|
eeed3c0538048e69a61af7942cc5810a89f3657f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/eeed3c0538048e69a61af7942cc5810a89f3657f/macosxSupport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1296,
12,
955,
33,
3085,
16,
871,
529,
33,
2575,
529,
4672,
977,
18,
2575,
67,
7163,
12,
2575,
529,
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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,
326,
981,
30,
1652,
1296,
12,
955,
33,
3085,
16,
871,
529,
33,
2575,
529,
4672,
977,
18,
2575,
67,
7163,
12,
2575,
529,
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
] |
SELECT m.virus_"""+self.__vendor_name+"""_name as name, (h.virus_"""+self.__vendor_name+"""_detected + m.virus_"""+self.__vendor_name+"""_detected) AS foo
|
SELECT m.virus_%s_name as name, (h.virus_%s_detected + m.virus_%s_detected) AS foo
|
def get_key_statistics(self, end_date, report_days, host=None, user=None, email=None): if email: return None
|
0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/87/0732c62c3b6bc9538e81f4c0b89f9e6ccbdf83fc/untangle_base_virus.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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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,
336,
67,
856,
67,
14438,
12,
2890,
16,
679,
67,
712,
16,
2605,
67,
9810,
16,
1479,
33,
7036,
16,
729,
33,
7036,
16,
2699,
33,
7036,
4672,
309,
2699,
30,
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
] |
elif self.header_encoding is QP:
|
elif self.body_encoding is QP:
|
def body_encode(self, s, convert=True): """Body-encode a string and convert it to output_charset.
|
3d8ba77cdf41929a252d56edfd45053965b284f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3d8ba77cdf41929a252d56edfd45053965b284f2/Charset.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
67,
3015,
12,
2890,
16,
272,
16,
1765,
33,
5510,
4672,
3536,
2250,
17,
3015,
279,
533,
471,
1765,
518,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1417,
67,
3015,
12,
2890,
16,
272,
16,
1765,
33,
5510,
4672,
3536,
2250,
17,
3015,
279,
533,
471,
1765,
518,
358,
876,
67,
9999,
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
] |
def run(trace, cmd): import __main__ dict = __main__.__dict__ sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settrace(None) def runctx(trace, cmd, globals=None, locals=None): if globals is None: globals = {} if locals is None: locals = {} sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settrace(None) def runfunc(trace, func, *args, **kw): result = None sys.settrace(trace) try: result = apply(func, args, kw) finally: sys.settrace(None) return result
|
def run(trace, cmd): import __main__ dict = __main__.__dict__ sys.settrace(trace) try: exec cmd in dict, dict finally: sys.settrace(None)
|
a30eacf45815c14b480972c5097677fac83ed4c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a30eacf45815c14b480972c5097677fac83ed4c0/trace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
5129,
16,
1797,
4672,
1930,
1001,
5254,
972,
2065,
273,
1001,
5254,
972,
16186,
1576,
972,
2589,
18,
542,
5129,
12,
5129,
13,
775,
30,
1196,
1797,
316,
2065,
16,
2065,
3095,
30,
2589,
18,
542,
5129,
12,
7036,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
5129,
16,
1797,
4672,
1930,
1001,
5254,
972,
2065,
273,
1001,
5254,
972,
16186,
1576,
972,
2589,
18,
542,
5129,
12,
5129,
13,
775,
30,
1196,
1797,
316,
2065,
16,
2065,
3095,
30,
2589,
18,
542,
5129,
12,
7036,
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
] |
|
if tb[1].endswith('already in use.'):
|
if str(tb[1]).endswith('already in use.'):
|
def installProduct(self,p,locked=0,hidden=0,swallowExceptions=0): ''' installs a product by name ''' if self.isProductInstalled(p): prod=self._getOb(p) msg='this product is already installed, please uninstall before reinstalling it' prod.log(msg) return msg portal_types=getToolByName(self,'portal_types') portal_skins=getToolByName(self,'portal_skins') portal_actions=getToolByName(self,'portal_actions') portal_workflow=getToolByName(self,'portal_workflow') portal=getToolByName(self,'portal_url').getPortalObject() leftslotsbefore=getattr(portal,'left_slots',[]) rightslotsbefore=getattr(portal,'right_slots',[])
|
f74d9a5b723c42ba54f3dcaa7a44d946dea54ccf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/f74d9a5b723c42ba54f3dcaa7a44d946dea54ccf/QuickInstallerTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
4133,
12,
2890,
16,
84,
16,
15091,
33,
20,
16,
6345,
33,
20,
16,
5328,
5965,
11416,
33,
20,
4672,
9163,
31011,
279,
3017,
635,
508,
9163,
225,
309,
365,
18,
291,
4133,
16747,
12,
84,
4672,
10791,
33,
2890,
6315,
588,
10516,
12,
84,
13,
1234,
2218,
2211,
3017,
353,
1818,
5876,
16,
9582,
16577,
1865,
283,
5425,
310,
518,
11,
10791,
18,
1330,
12,
3576,
13,
327,
1234,
225,
11899,
67,
2352,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
2352,
6134,
11899,
67,
7771,
2679,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
7771,
2679,
6134,
11899,
67,
4905,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
4905,
6134,
11899,
67,
13815,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
13815,
6134,
11899,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
718,
16063,
588,
24395,
921,
1435,
2002,
18875,
5771,
33,
588,
1747,
12,
24386,
11189,
4482,
67,
18875,
2187,
63,
5717,
2145,
18875,
5771,
33,
588,
1747,
12,
24386,
11189,
4083,
67,
18875,
2187,
63,
5717,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
4133,
12,
2890,
16,
84,
16,
15091,
33,
20,
16,
6345,
33,
20,
16,
5328,
5965,
11416,
33,
20,
4672,
9163,
31011,
279,
3017,
635,
508,
9163,
225,
309,
365,
18,
291,
4133,
16747,
12,
84,
4672,
10791,
33,
2890,
6315,
588,
10516,
12,
84,
13,
1234,
2218,
2211,
3017,
353,
1818,
5876,
16,
9582,
16577,
1865,
283,
5425,
310,
518,
11,
10791,
18,
1330,
12,
3576,
13,
327,
1234,
225,
11899,
67,
2352,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
2352,
6134,
11899,
67,
7771,
2679,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
7771,
2679,
6134,
11899,
67,
4905,
33,
588,
6364,
5911,
12,
2890,
11189,
24386,
67,
4905,
6134,
11899,
67,
2
] |
def clear(self): """ clean the screen """ _debug_('clear skin (%s)' % self.type) self.screen.hide() def hide(self):
|
def hide(self, fade=True):
|
def clear(self): """ clean the screen """ _debug_('clear skin (%s)' % self.type) self.screen.hide()
|
e5003564ebb5e7136c0a28201f71609ff1130898 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/e5003564ebb5e7136c0a28201f71609ff1130898/handler.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
2721,
326,
5518,
3536,
389,
4148,
67,
2668,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
2721,
326,
5518,
3536,
389,
4148,
67,
2668,
8507,
18705,
6142,
87,
2506,
738,
365,
18,
723,
13,
365,
18,
9252,
18,
11248,
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,
-100,
-100
] |
print '-%20.20s %20.20 %-30.30s'%(f, d[5:], s)
|
print '-%20.20s %20.20s %-30.30s'%(f, d[5:], s)
|
def _test(): import time import sys import string import os args = sys.argv[1:] if not args: for key in 'MAILDIR', 'MAIL', 'LOGNAME', 'USER': if os.environ.has_key(key): mbox = os.environ[key] break else: print "$MAIL, $LOGNAME nor $USER set -- who are you?" return else: mbox = args[0] if mbox[:1] == '+': mbox = os.environ['HOME'] + '/Mail/' + mbox[1:] elif not '/' in mbox: mbox = '/usr/mail/' + mbox if os.path.isdir(mbox): if os.path.isdir(os.path.join(mbox, 'cur')): mb = Maildir(mbox) else: mb = MHMailbox(mbox) else: fp = open(mbox, 'r') mb = UnixMailbox(fp) msgs = [] while 1: msg = mb.next() if msg is None: break msgs.append(msg) if len(args) <= 1: msg.fp = None if len(args) > 1: num = string.atoi(args[1]) print 'Message %d body:'%num msg = msgs[num-1] msg.rewindbody() sys.stdout.write(msg.fp.read()) else: print 'Mailbox',mbox,'has',len(msgs),'messages:' for msg in msgs: f = msg.getheader('from') or "" s = msg.getheader('subject') or "" d = msg.getheader('date') or "" print '-%20.20s %20.20 %-30.30s'%(f, d[5:], s)
|
6eae615ed9e4fabaf16d30e9f82b3aa285222b6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/6eae615ed9e4fabaf16d30e9f82b3aa285222b6b/mailbox.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,
296,
4842,
1985,
2187,
296,
4714,
4278,
309,
1140,
18,
28684,
18,
5332,
67,
856,
12,
856,
4672,
312,
2147,
273,
1140,
18,
28684,
63,
856,
65,
898,
469,
30,
1172,
4662,
18191,
16,
271,
4842,
1985,
12517,
271,
4714,
444,
1493,
10354,
854,
1846,
7225,
327,
469,
30,
312,
2147,
273,
833,
63,
20,
65,
309,
312,
2147,
10531,
21,
65,
422,
15126,
4278,
312,
2147,
273,
1140,
18,
28684,
3292,
14209,
3546,
397,
1173,
6759,
2473,
397,
312,
2147,
63,
21,
26894,
1327,
486,
2023,
316,
312,
2147,
30,
312,
2147,
273,
1173,
13640,
19,
4408,
2473,
397,
312,
2147,
309,
1140,
18,
803,
18,
291,
1214,
12,
81,
2147,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
538,
18,
803,
18,
5701,
12,
81,
2147,
16,
296,
1397,
26112,
30,
4903,
273,
490,
69,
545,
481,
12,
81,
2147,
13,
469,
30,
4903,
273,
490,
44,
30239,
12,
81,
2147,
13,
469,
30,
4253,
273,
1696,
12,
81,
2147,
16,
296,
86,
6134,
4903,
273,
9480,
30239,
12,
7944,
13,
225,
8733,
273,
5378,
1323,
404,
30,
1234,
273,
4903,
18,
4285,
1435,
309,
1234,
353,
599,
30,
898,
8733,
18,
6923,
12,
3576,
13,
309,
562,
12,
1968,
13,
1648,
404,
30,
1234,
18,
7944,
273,
599,
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,
3813,
13332,
1930,
813,
1930,
2589,
1930,
533,
1930,
1140,
225,
833,
273,
2589,
18,
19485,
63,
21,
26894,
309,
486,
833,
30,
364,
498,
316,
296,
18191,
4537,
2187,
296,
18191,
2187,
296,
4842,
1985,
2187,
296,
4714,
4278,
309,
1140,
18,
28684,
18,
5332,
67,
856,
12,
856,
4672,
312,
2147,
273,
1140,
18,
28684,
63,
856,
65,
898,
469,
30,
1172,
4662,
18191,
16,
271,
4842,
1985,
12517,
271,
4714,
444,
1493,
10354,
854,
1846,
7225,
327,
469,
30,
312,
2147,
273,
833,
63,
20,
65,
309,
312,
2147,
10531,
21,
65,
422,
15126,
4278,
312,
2147,
273,
1140,
18,
28684,
3292,
14209,
3546,
397,
1173,
6759,
2473,
397,
312,
2147,
63,
21,
26894,
2
] |
import init
|
def parse(self): import init try: main = BeginSource(self) return main except KeyboardInterrupt: raise except: reader = self.reader while reader is not None: message = reader.format_message('FATAL ERROR', 'while processing line', reader.linecount, reader.linecount) reader.show_message(message, sys.stdout) reader = reader.reader traceback.print_exc(file=sys.stdout) self.reader.show_message(red_text('STOPPED PARSING'), sys.stdout)
|
8af73d5a128335cd38be5cd2ee424373ea4c87c4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/8af73d5a128335cd38be5cd2ee424373ea4c87c4/parsefortran.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
775,
30,
2774,
273,
14323,
1830,
12,
2890,
13,
327,
2774,
1335,
19424,
30,
1002,
1335,
30,
2949,
273,
365,
18,
10530,
1323,
2949,
353,
486,
599,
30,
883,
273,
2949,
18,
2139,
67,
2150,
2668,
29891,
5475,
2187,
296,
17523,
4929,
980,
2187,
2949,
18,
7511,
557,
592,
16,
2949,
18,
7511,
557,
592,
13,
2949,
18,
4500,
67,
2150,
12,
2150,
16,
2589,
18,
10283,
13,
2949,
273,
2949,
18,
10530,
10820,
18,
1188,
67,
10075,
12,
768,
33,
9499,
18,
10283,
13,
365,
18,
10530,
18,
4500,
67,
2150,
12,
1118,
67,
955,
2668,
17513,
12120,
3939,
23708,
19899,
2589,
18,
10283,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
775,
30,
2774,
273,
14323,
1830,
12,
2890,
13,
327,
2774,
1335,
19424,
30,
1002,
1335,
30,
2949,
273,
365,
18,
10530,
1323,
2949,
353,
486,
599,
30,
883,
273,
2949,
18,
2139,
67,
2150,
2668,
29891,
5475,
2187,
296,
17523,
4929,
980,
2187,
2949,
18,
7511,
557,
592,
16,
2949,
18,
7511,
557,
592,
13,
2949,
18,
4500,
67,
2150,
12,
2150,
16,
2589,
18,
10283,
13,
2949,
273,
2949,
18,
10530,
10820,
18,
1188,
67,
10075,
12,
768,
33,
9499,
18,
10283,
13,
365,
18,
10530,
18,
4500,
67,
2150,
12,
1118,
67,
955,
2668,
17513,
12120,
3939,
23708,
19899,
2589,
18,
10283,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
paths = self.get_paths_for_node(tid)
|
if self.is_displayed(tid): paths = self.get_paths_for_node(tid) else: paths = None
|
def __update_node(self,tid,inroot): if tid not in self.node_to_remove: todis = self.__is_displayed(tid) curdis = self.is_displayed(tid) if todis: #if the task was not displayed previously but now should #we add it. if not curdis:
|
c8281ccbb8491bf220ca0a0aec8225f670c84e9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7036/c8281ccbb8491bf220ca0a0aec8225f670c84e9d/filteredtree.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
67,
2159,
12,
2890,
16,
18081,
16,
267,
3085,
4672,
309,
11594,
486,
316,
365,
18,
2159,
67,
869,
67,
4479,
30,
358,
2251,
273,
365,
16186,
291,
67,
5417,
329,
12,
18081,
13,
662,
2251,
273,
365,
18,
291,
67,
5417,
329,
12,
18081,
13,
309,
358,
2251,
30,
468,
430,
326,
1562,
1703,
486,
10453,
7243,
1496,
2037,
1410,
468,
1814,
527,
518,
18,
309,
486,
662,
2251,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
67,
2159,
12,
2890,
16,
18081,
16,
267,
3085,
4672,
309,
11594,
486,
316,
365,
18,
2159,
67,
869,
67,
4479,
30,
358,
2251,
273,
365,
16186,
291,
67,
5417,
329,
12,
18081,
13,
662,
2251,
273,
365,
18,
291,
67,
5417,
329,
12,
18081,
13,
309,
358,
2251,
30,
468,
430,
326,
1562,
1703,
486,
10453,
7243,
1496,
2037,
1410,
468,
1814,
527,
518,
18,
309,
486,
662,
2251,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return data[:-3] + '\n'
|
return data.replace('\r\r\n', '\n')
|
def normalize_output(data): # Some operating systems do conversions on newline. We could possibly # fix that by doing the appropriate termios.tcsetattr()s. I couldn't # figure out the right combo on Tru64 and I don't have an IRIX box. # So just normalize the output and doc the problem O/Ses by allowing # certain combinations for some platforms, but avoid allowing other # differences (like extra whitespace, trailing garbage, etc.) # This is about the best we can do without getting some feedback # from someone more knowledgable. # OSF/1 (Tru64) apparently turns \n into \r\r\n. if data.endswith('\r\r\n'): return data[:-3] + '\n' # IRIX apparently turns \n into \r\n. if data.endswith('\r\n'): return data[:-2] + '\n' return data
|
1d2094f5be388fde53f5eccccfa5a0a928a7f479 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1d2094f5be388fde53f5eccccfa5a0a928a7f479/test_pty.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
87,
18,
225,
467,
17991,
1404,
468,
7837,
596,
326,
2145,
16778,
603,
840,
89,
1105,
471,
467,
2727,
1404,
1240,
392,
24143,
60,
3919,
18,
468,
6155,
2537,
3883,
326,
876,
471,
997,
326,
6199,
531,
19,
55,
281,
635,
15632,
468,
8626,
17265,
364,
2690,
17422,
16,
1496,
4543,
15632,
1308,
468,
16440,
261,
5625,
2870,
7983,
16,
7341,
15340,
16,
5527,
12998,
225,
468,
1220,
353,
2973,
326,
3796,
732,
848,
741,
2887,
8742,
2690,
10762,
468,
628,
18626,
1898,
5055,
1259,
8455,
18,
225,
468,
5932,
42,
19,
21,
261,
1070,
89,
1105,
13,
29614,
715,
20748,
521,
82,
1368,
521,
86,
64,
86,
64,
82,
18,
309,
501,
18,
5839,
1918,
2668,
64,
86,
64,
86,
64,
82,
11,
4672,
327,
501,
18,
2079,
2668,
64,
86,
64,
86,
64,
82,
2187,
2337,
82,
6134,
225,
468,
24143,
60,
29614,
715,
20748,
521,
82,
1368,
521,
86,
64,
82,
18,
309,
501,
18,
5839,
1918,
2668,
64,
86,
64,
82,
11,
4672,
327,
501,
10531,
17,
22,
65,
397,
2337,
82,
11,
225,
327,
501,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
2844,
12,
892,
4672,
468,
10548,
16929,
14908,
741,
22586,
603,
9472,
18,
225,
1660,
3377,
10016,
468,
2917,
716,
635,
9957,
326,
5505,
2481,
7441,
18,
5111,
542,
1747,
1435,
87,
18,
225,
467,
17991,
1404,
468,
7837,
596,
326,
2145,
16778,
603,
840,
89,
1105,
471,
467,
2727,
1404,
1240,
392,
24143,
60,
3919,
18,
468,
6155,
2537,
3883,
326,
876,
471,
997,
326,
6199,
531,
19,
55,
281,
635,
15632,
468,
8626,
17265,
364,
2690,
17422,
16,
1496,
4543,
15632,
1308,
468,
16440,
261,
5625,
2870,
7983,
16,
7341,
15340,
16,
5527,
12998,
225,
468,
1220,
353,
2973,
326,
3796,
732,
848,
741,
2887,
8742,
2690,
10762,
468,
628,
18626,
1898,
5055,
1259,
2
] |
<tal:block content="structure python:here.portal_map.render_object_map(here.geo_location)"/>
|
<tal:block condition="python:here.prop_details('geo_location')['show']" content="structure python:here.portal_map.render_object_map(here.geo_location)"/>
|
def render_object_map(self, geo_location): """ Returns all the script and html required to display a map corresponding to the map engine selected in the administration area.
|
16c5769765094b121a5d6e0ff4da3bd896a468e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/16c5769765094b121a5d6e0ff4da3bd896a468e1/GeoMapTool.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
1612,
67,
1458,
12,
2890,
16,
7856,
67,
3562,
4672,
3536,
2860,
777,
326,
2728,
471,
1729,
1931,
358,
2562,
279,
852,
4656,
358,
326,
852,
4073,
3170,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
1612,
67,
1458,
12,
2890,
16,
7856,
67,
3562,
4672,
3536,
2860,
777,
326,
2728,
471,
1729,
1931,
358,
2562,
279,
852,
4656,
358,
326,
852,
4073,
3170,
316,
326,
3981,
4218,
5091,
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
] |
(units, scale, isAfter) = timeDeltaDetails(reminder.delta) remindable.userReminderInterval = scaleTimeDelta(units, scale, not isAfter)
|
delta = getattr(item, pim.Remindable.userReminderInterval.name) (units, scale, isAfter) = timeDeltaDetails(delta) setattr(item, pim.Remindable.userReminderInterval.name, scaleTimeDelta(units, scale, not isAfter))
|
def SetAttributeValue(self, item, attributeName, value): """ Set the value of the attribute given by the value. """ if self.ReadOnly((item, attributeName)): return
|
e239e2ad7d8a1a5988008c402c9d6f85f3d59c53 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/e239e2ad7d8a1a5988008c402c9d6f85f3d59c53/detail.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
309,
365,
18,
12066,
12443,
1726,
16,
9734,
3719,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1000,
14942,
12,
2890,
16,
761,
16,
9734,
16,
460,
4672,
3536,
1000,
326,
460,
434,
326,
1566,
864,
635,
326,
460,
18,
3536,
309,
365,
18,
12066,
12443,
1726,
16,
9734,
3719,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (rptr->nbLongRange == 0)
|
if (rptr->nbLongRange == 0) {
|
#ifdef __cplusplus
|
c4b8189aa746926a31722287db10cddc8d89a315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/c4b8189aa746926a31722287db10cddc8d89a315/genChRanges.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
1001,
71,
10103,
10103,
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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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
] |
parser.add_option("-p", "--parse", dest="parse", help="Parse log file", default=False)
|
parser.add_option("-p", "--parse", action="store_true", dest="parse", help="Parse logs") parser.add_option("--no-parse", action="store_false", dest="parse", help="Do not parse logs")
|
def parse_options(): parser = optparse.OptionParser() parser.add_option("-u", "--url", dest="repo_url", help="Reporitory URL") parser.add_option("-r", "--reports", action="store_true", dest="reports", help="Generate reports") parser.add_option("--no-reports", action="store_false", dest="reports", help="Do not generate reports") parser.add_option("-p", "--parse", dest="parse", help="Parse log file", default=False) parser.add_option("-i", "--input", dest="input", help="Input source file name (use - for standard input)", default=None) parser.add_option('-o', '--output-dir', dest='output_dir', default='mpy-svn-stats', help='Output directory (default: %default)') parser.add_option('-s', '--output-formats', dest='output_formats', default='html', help='Output formats, comma separated list (default: %default, possible values: html)') def handle_config_option(option, opt_str, filename, parser): print "loading config file \"%s\"" % filename cp = ConfigParser() cp.read(filename) s = cp.sections()[0] print "using section \"%s\"" % s if cp.has_option(s, 'url'): parser.values.repo_url = cp.get(s, 'url') print "url from config file: \"%s\"" % parser.values.repo_url parse = cp.get(s, 'parse', False) if parse: parser.values.parse = parse reports = cp.get(s, 'reports', False) if reports: parser.values.reports = reports input = cp.get(s, 'input', None) if input: parser.values.input = input parser.add_option('-c', '--config', type='string', default=None, action='callback', callback=handle_config_option, help='Config file') options, args = parser.parse_args() if not options.repo_url: parser.error('Please specify repository url with -u.') if options.input: options.parse = True if options.parse and not options.input: options.input = '-' return (options, args)
|
b6ac3829b04dc48154881e58629defd67d37ee04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2516/b6ac3829b04dc48154881e58629defd67d37ee04/mpyss.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
89,
3113,
5238,
718,
3113,
1570,
1546,
7422,
67,
718,
3113,
2809,
1546,
426,
3831,
305,
630,
1976,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
86,
3113,
5238,
20195,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
20195,
3113,
2809,
1546,
4625,
10557,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
2135,
17,
20195,
3113,
1301,
1546,
2233,
67,
5743,
3113,
1570,
1546,
20195,
3113,
2809,
1546,
3244,
486,
2103,
10557,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
84,
3113,
5238,
2670,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
2670,
3113,
2809,
1546,
3201,
5963,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
2135,
17,
2670,
3113,
1301,
1546,
2233,
67,
5743,
3113,
1570,
1546,
2670,
3113,
2809,
1546,
3244,
486,
1109,
5963,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
77,
3113,
5238,
2630,
3113,
1570,
1546,
2630,
3113,
2809,
1546,
1210,
1084,
585,
508,
261,
1202,
300,
364,
4529,
810,
2225,
16,
805,
33,
7036,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
83,
2187,
3534,
2844,
17,
1214,
2187,
1570,
2218,
2844,
67,
1214,
2187,
805,
2218,
1291,
93,
17,
31505,
17,
5296,
2187,
2809,
2218,
1447,
1867,
261,
1886,
30,
738,
1886,
2506,
13,
2082,
18,
1289,
67,
3482,
2668,
17,
87,
2187,
3534,
2844,
17,
11962,
2187,
1570,
2218,
2844,
67,
11962,
2187,
805,
2218,
2620,
2187,
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,
2116,
13332,
2082,
273,
2153,
2670,
18,
1895,
2678,
1435,
2082,
18,
1289,
67,
3482,
2932,
17,
89,
3113,
5238,
718,
3113,
1570,
1546,
7422,
67,
718,
3113,
2809,
1546,
426,
3831,
305,
630,
1976,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
86,
3113,
5238,
20195,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
20195,
3113,
2809,
1546,
4625,
10557,
7923,
2082,
18,
1289,
67,
3482,
2932,
413,
2135,
17,
20195,
3113,
1301,
1546,
2233,
67,
5743,
3113,
1570,
1546,
20195,
3113,
2809,
1546,
3244,
486,
2103,
10557,
7923,
2082,
18,
1289,
67,
3482,
2932,
17,
84,
3113,
5238,
2670,
3113,
1301,
1546,
2233,
67,
3767,
3113,
1570,
1546,
2670,
3113,
2809,
1546,
3201,
2
] |
A->A B->B C->F D->G E->E F->F G->G H->E I->I J->J K->K L->A M->M
|
A->A B->B C->F D->G E->E F->F G->G H->E I->I J->J K->K L->A M->M
|
... def __str__(self):
|
0665f7d932e15bc75f6d745c6e03e0762451c536 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/0665f7d932e15bc75f6d745c6e03e0762451c536/test_generators.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
377,
1652,
1001,
701,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 hdlr in self.handlers: hdlr.acquire() try:
|
_acquireLock() try: if hdlr in self.handlers:
|
def removeHandler(self, hdlr): """ Remove the specified handler from this logger. """ if hdlr in self.handlers: hdlr.acquire() try: self.handlers.remove(hdlr) finally: hdlr.release()
|
e02fdf8d462f4b8aa1f5ac5057891c4efdbce6d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/e02fdf8d462f4b8aa1f5ac5057891c4efdbce6d1/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
389,
1077,
1039,
2531,
1435,
775,
30,
309,
366,
5761,
86,
316,
365,
18,
11046,
30,
365,
18,
11046,
18,
4479,
12,
76,
5761,
86,
13,
3095,
30,
366,
5761,
86,
18,
9340,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
1503,
12,
2890,
16,
366,
5761,
86,
4672,
3536,
3581,
326,
1269,
1838,
628,
333,
1194,
18,
3536,
389,
1077,
1039,
2531,
1435,
775,
30,
309,
366,
5761,
86,
316,
365,
18,
11046,
30,
365,
18,
11046,
18,
4479,
12,
76,
5761,
86,
13,
3095,
30,
366,
5761,
86,
18,
9340,
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
] |
self.assertRaises(OSError, os.ftruncate, 10, 0)
|
self.assertRaises(IOError, os.ftruncate, 10, 0)
|
def test_ftruncate(self): if hasattr(os, "ftruncate"): self.assertRaises(OSError, os.ftruncate, 10, 0)
|
f2617c1f9c9aab22212820b6c18b649f7bdce366 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/f2617c1f9c9aab22212820b6c18b649f7bdce366/test_os.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
74,
27201,
12,
2890,
4672,
309,
3859,
12,
538,
16,
315,
74,
27201,
6,
4672,
365,
18,
11231,
12649,
6141,
12,
4618,
668,
16,
1140,
18,
74,
27201,
16,
1728,
16,
374,
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
] |
if not os.path.isdir(path):
|
if command != 'clean' and not os.path.isdir(path):
|
def main(argv): try: argv = gflags.FLAGS(argv) if len(argv) != 2: _PrintUsageAndDie('Must specify a valid command') else: command = argv[1] except gflags.FlagsError, e : _PrintUsageAndDie(str(e)) package_list = gflags.FLAGS.packages.split(':') _CheckSaneArguments(package_list, command) if gflags.FLAGS.overlays: overlays = {} for path in gflags.FLAGS.overlays.split(':'): if not os.path.isdir(path): Die('Cannot find overlay: %s' % path) overlays[path] = [] else: Warning('Missing --overlays argument') overlays = { '%s/private-overlays/chromeos-overlay' % gflags.FLAGS.srcroot: [], '%s/third_party/chromiumos-overlay' % gflags.FLAGS.srcroot: [] } if command == 'commit': _BuildEBuildDictionary(overlays, gflags.FLAGS.all, package_list) for overlay, ebuilds in overlays.items(): if not os.path.isdir(overlay): Warning("Skipping %s" % overlay) continue # TODO(davidjames): Currently, all code that interacts with git depends on # the cwd being set to the overlay directory. We should instead pass in # this parameter so that we don't need to modify the cwd globally. os.chdir(overlay) if command == 'clean': _Clean() elif command == 'push': _PushChange() elif command == 'commit' and ebuilds: work_branch = _GitBranch(_STABLE_BRANCH_NAME) work_branch.CreateBranch() if not work_branch.Exists(): Die('Unable to create stabilizing branch in %s' % overlay) # Contains the array of packages we actually revved. revved_packages = [] for ebuild in ebuilds: try: _Print('Working on %s' % ebuild.package) worker = EBuildStableMarker(ebuild) commit_id = ebuild.GetCommitId() if worker.RevEBuild(commit_id): message = _GIT_COMMIT_MESSAGE % (ebuild.package, commit_id) worker.CommitChange(message) revved_packages.append(ebuild.package) except (OSError, IOError): Warning('Cannot rev %s\n' % ebuild.package, 'Note you will have to go into %s ' 'and reset the git repo yourself.' % overlay) raise if revved_packages: _CleanStalePackages(gflags.FLAGS.board, revved_packages) else: work_branch.Delete()
|
f7502a6e03df7073fc0ce17b15c7f2349175fe0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/f7502a6e03df7073fc0ce17b15c7f2349175fe0e/cros_mark_as_stable.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
6134,
469,
30,
1296,
273,
5261,
63,
21,
65,
1335,
314,
7133,
18,
5094,
668,
16,
425,
294,
389,
5108,
5357,
1876,
23196,
12,
701,
12,
73,
3719,
225,
2181,
67,
1098,
273,
314,
7133,
18,
17836,
18,
10308,
18,
4939,
2668,
2497,
13,
389,
1564,
55,
8806,
4628,
12,
5610,
67,
1098,
16,
1296,
13,
309,
314,
7133,
18,
17836,
18,
17312,
87,
30,
9218,
87,
273,
2618,
364,
589,
316,
314,
7133,
18,
17836,
18,
17312,
87,
18,
4939,
2668,
2497,
4672,
309,
1296,
480,
296,
6200,
11,
471,
486,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
463,
1385,
2668,
4515,
1104,
9218,
30,
738,
87,
11,
738,
589,
13,
9218,
87,
63,
803,
65,
273,
5378,
469,
30,
9728,
2668,
4841,
1493,
17312,
87,
1237,
6134,
9218,
87,
273,
288,
1995,
87,
19,
1152,
17,
17312,
87,
19,
343,
10896,
538,
17,
17312,
11,
738,
314,
7133,
18,
17836,
18,
4816,
3085,
30,
5378,
16,
1995,
87,
19,
451,
6909,
67,
21214,
19,
16298,
5077,
538,
17,
17312,
11,
738,
314,
7133,
18,
17836,
18,
4816,
3085,
30,
5378,
289,
225,
309,
1296,
422,
296,
7371,
4278,
389,
3116,
41,
3116,
10905,
12,
17312,
87,
16,
314,
7133,
18,
17836,
18,
454,
16,
2181,
67,
1098,
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,
2774,
12,
19485,
4672,
775,
30,
5261,
273,
314,
7133,
18,
17836,
12,
19485,
13,
309,
562,
12,
19485,
13,
480,
576,
30,
389,
5108,
5357,
1876,
23196,
2668,
10136,
4800,
279,
923,
1296,
6134,
469,
30,
1296,
273,
5261,
63,
21,
65,
1335,
314,
7133,
18,
5094,
668,
16,
425,
294,
389,
5108,
5357,
1876,
23196,
12,
701,
12,
73,
3719,
225,
2181,
67,
1098,
273,
314,
7133,
18,
17836,
18,
10308,
18,
4939,
2668,
2497,
13,
389,
1564,
55,
8806,
4628,
12,
5610,
67,
1098,
16,
1296,
13,
309,
314,
7133,
18,
17836,
18,
17312,
87,
30,
9218,
87,
273,
2618,
364,
589,
316,
314,
7133,
18,
17836,
18,
17312,
87,
18,
4939,
2668,
2497,
4672,
2
] |
if self.socket is None:
|
if not self.socket or self.socket == 'closed':
|
def send_raw(self, string): """Send raw string to the server.
|
84fab4a4e45967b0b74b64432b80b0d257f625a3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9915/84fab4a4e45967b0b74b64432b80b0d257f625a3/irclib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1899,
12,
2890,
16,
533,
4672,
3536,
3826,
1831,
533,
358,
326,
1438,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
1899,
12,
2890,
16,
533,
4672,
3536,
3826,
1831,
533,
358,
326,
1438,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
frame_opened = 0 string = _string
|
state.frame_opened = False return _string def transform_h2_to_sec(string, state): """ headings (1) to sections """ frame_closing = escape_resub(get_frame_closing(state)) sec_opening = r"\n\\section\2{\1}\n\n"
|
def transform(string): """ convert/transform one line """ global frame_opened, enum_item_level # nasty thing to do global frame_header, frame_footer, next_frame_footer preamble = "" # for enumeration/itemize environment commands # handle itemizing/enumerations p = re.compile("^([\*\#]+).*$") m = p.match(string) if (m == None): my_enum_item_level = "" else: my_enum_item_level = m.group(1) # trivial: old level = new level if (my_enum_item_level == enum_item_level): pass else: # find common part common = -1 while (len(enum_item_level) > common + 1) and \ (len(my_enum_item_level) > common + 1) and \ (enum_item_level[common+1] == my_enum_item_level[common+1]): common = common + 1 # close enum_item_level environments from back to front for i in range(len(enum_item_level)-1, common, -1): if (enum_item_level[i] == "*"): preamble = preamble + "\\end{itemize}\n" elif (enum_item_level[i] == "#"): preamble = preamble + "\\end{enumerate}\n" # open my_enum_item_level environments from front to back for i in range(common+1, len(my_enum_item_level)): if (my_enum_item_level[i] == "*"): preamble = preamble + "\\begin{itemize}\n" elif (my_enum_item_level[i] == "#"): preamble = preamble + "\\begin{enumerate}\n" enum_item_level = my_enum_item_level # now, substitute item markers p = re.compile("^([\*\#]+)(.*)$") _string = p.sub(r" \\item\2", string) string = _string # header and footer definitions p = re.compile("^@FRAMEHEADER=(.*)$", re.VERBOSE) m = p.match(string) if (m != None): #print m.group(1) frame_header = m.group(1) string = "" p = re.compile("^@FRAMEFOOTER=(.*)$", re.VERBOSE) m = p.match(string) if (m != None): #print m.group(1) next_frame_footer = m.group(1) string = "" # detect manual closing of frames p = re.compile(r"(?:^\s*\\end{\s*frame\s*})|(?:^\[\s*frame\s*\]>)") if (frame_opened == 1): if (len(p.findall(string)) > 0): frame_opened = 0 # headings (3) to frames p = re.compile("^====\s*(.*?)\s*====(.*)", re.VERBOSE) if (frame_opened == 0): _string = p.sub(r"\\begin{frame}\2\n \\frametitle{\1}\n <---FRAMEHEADER---> \n", string) else: _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\n\\begin{frame}\2\n \\frametitle{\1}\n <---FRAMEHEADER---> \n", string) if (string != _string): frame_opened = 1 # headings (2) to subsections string = _string p = re.compile("^===\s*(.*?)\s*===(.*)", re.VERBOSE) if (frame_opened == 1): _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\\subsection\2{\1}\n\n", string) else: _string = p.sub(r"\n\\subsection\2{\1}\n\n", string) if (string != _string): frame_opened = 0 # headings (1) to sections string = _string p = re.compile("^==\s*(.*?)\s*==(.*)", re.VERBOSE) if (frame_opened == 1): _string = p.sub(r" <---FRAMEFOOTER---> \n \\end{frame}\n\n\\section\2{\1}\n\n", string) else: _string = p.sub(r"\n\n\\section\2{\1}\n\n", string) if (string != _string): frame_opened = 0 _string = _string.replace("<---FRAMEHEADER--->", frame_header) _string = _string.replace("<---FRAMEFOOTER--->", frame_footer) if (_string.find("\\end{frame}") != -1): frame_footer = next_frame_footer # latex environments, the users takes full responsibility # for closing ALL opened environments # exampe: # <[block]{block title} # message # [block]> # -> open p = re.compile("^<\[([^{}]*?)\]", re.VERBOSE) _string = p.sub(r"\\begin{\1}", _string) # -> close p = re.compile("^\[([^{}]*?)\]>", re.VERBOSE) _string = p.sub(r"\\end{\1}", _string) # columns p = re.compile("^\[\[\[(.*?)\]\]\]", re.VERBOSE) _string = p.sub(r"\\column{\1}", _string) # bold font p = re.compile("'''(.*?)'''", re.VERBOSE) _string = p.sub(r"\\textbf{\1}", _string) # italic font p = re.compile("''(.*?)''", re.VERBOSE) _string = p.sub(r"\\emph{\1}", _string) # typewriter font p = re.compile("@(.*?)@", re.VERBOSE) _string = p.sub(r"\\texttt{\1}", _string) # alerts p = re.compile("!(.*?)!", re.VERBOSE) _string = p.sub(r"\\alert{\1}", _string) # colors p = re.compile("_([^_\\\\]*?)_([^_]*?[^_\\\\])_", re.VERBOSE) _string = p.sub(r"\\textcolor{\1}{\2}", _string) # footnotes p = re.compile("\(\(\((.*?)\)\)\)", re.VERBOSE) _string = p.sub(r"\\footnote{\1}", _string) # figures/images p = re.compile("\<\<\<(.*?),(.*?)\>\>\>", re.VERBOSE) _string = p.sub(r"\\includegraphics[\2]{\1}", _string) p = re.compile("\<\<\<(.*?)\>\>\>", re.VERBOSE) _string = p.sub(r"\\includegraphics{\1}", _string) # substitutions p = re.compile("(\s)-->(\s)", re.VERBOSE) _string = p.sub(r"\1$\\rightarrow$\2", _string) p = re.compile("(\s)<--(\s)", re.VERBOSE) _string = p.sub(r"\1$\\leftarrow$\2", _string) p = re.compile("(\s)==>(\s)", re.VERBOSE) _string = p.sub(r"\1$\\Rightarrow$\2", _string) p = re.compile("(\s)<==(\s)", re.VERBOSE) _string = p.sub(r"\1$\\Leftarrow$\2", _string) p = re.compile("(\s):-\)(\s)", re.VERBOSE) _string = p.sub(r"\1\\smiley\2", _string) p = re.compile("(\s):-\((\s)", re.VERBOSE) _string = p.sub(r"\1\\frownie\2", _string) # to be continued ... return preamble + _string
|
1947325dce6126afe82562ecb94d6cdf480ca241 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14466/1947325dce6126afe82562ecb94d6cdf480ca241/wiki2beamer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623,
67,
14723,
16,
1024,
67,
3789,
67,
14723,
225,
27841,
273,
1408,
282,
468,
364,
16836,
19,
1726,
554,
3330,
4364,
225,
468,
1640,
761,
6894,
19,
7924,
264,
1012,
293,
273,
283,
18,
11100,
2932,
66,
14026,
12174,
7,
3737,
2934,
26788,
7923,
312,
273,
293,
18,
1916,
12,
1080,
13,
309,
261,
81,
422,
599,
4672,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
1408,
469,
30,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
312,
18,
1655,
12,
21,
13,
225,
468,
433,
20109,
30,
1592,
1801,
273,
394,
1801,
309,
261,
4811,
67,
7924,
67,
1726,
67,
2815,
422,
2792,
67,
1726,
67,
2815,
4672,
1342,
469,
30,
468,
1104,
2975,
1087,
2975,
273,
300,
21,
1323,
261,
1897,
12,
7924,
67,
1726,
67,
2815,
13,
405,
2975,
397,
404,
13,
471,
521,
261,
1897,
12,
4811,
67,
7924,
67,
1726,
67,
2815,
13,
405,
2975,
397,
404,
13,
471,
521,
261,
7924,
67,
1726,
67,
2815,
63,
6054,
15,
21,
65,
422,
3399,
67,
7924,
67,
1726,
67,
2815,
63,
6054,
15,
21,
65,
4672,
2975,
273,
2975,
397,
404,
225,
468,
1746,
2792,
67,
1726,
67,
2815,
15900,
628,
1473,
358,
6641,
364,
277,
316,
1048,
12,
1897,
12,
7924,
67,
1726,
67,
2815,
24950,
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,
2510,
12,
1080,
4672,
3536,
1765,
19,
6547,
1245,
980,
3536,
2552,
2623,
67,
25304,
16,
2792,
67,
1726,
67,
2815,
565,
468,
290,
689,
93,
7757,
358,
741,
2552,
2623,
67,
3374,
16,
2623,
67,
14723,
16,
1024,
67,
3789,
67,
14723,
225,
27841,
273,
1408,
282,
468,
364,
16836,
19,
1726,
554,
3330,
4364,
225,
468,
1640,
761,
6894,
19,
7924,
264,
1012,
293,
273,
283,
18,
11100,
2932,
66,
14026,
12174,
7,
3737,
2934,
26788,
7923,
312,
273,
293,
18,
1916,
12,
1080,
13,
309,
261,
81,
422,
599,
4672,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
1408,
469,
30,
3399,
67,
7924,
67,
1726,
67,
2815,
273,
312,
18,
1655,
12,
21,
13,
2
] |
this = apply(_quickfix.new_Currency, args)
|
this = _quickfix.new_Currency(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_Currency, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
7623,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value))
|
xmlrpclib.Fault(1, "%s:%s" % (sys.exc_type, sys.exc_value)), encoding=self.encoding, allow_none=self.allow_none,
|
def _marshaled_dispatch(self, data, dispatch_method = None): """Dispatches an XML-RPC method from marshalled (XML) data.
|
4fbf9d2e4f8201535ad2c67e404f8941b771231f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4fbf9d2e4f8201535ad2c67e404f8941b771231f/SimpleXMLRPCServer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3108,
329,
67,
10739,
12,
2890,
16,
501,
16,
3435,
67,
2039,
273,
599,
4672,
3536,
5325,
281,
392,
3167,
17,
8087,
707,
628,
10893,
1259,
261,
4201,
13,
501,
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
] |
keys = ['language', 'translate_out', 'translate_in', 'debug_mode',
|
keys = ['language', 'translate_out', 'translate_in', 'debug_mode', 'smtp_ssl'
|
def die(cond, msg): if cond: print msg sys.exit(1)
|
6849735d632bc3232089bcba161bf3eaa621c1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6849735d632bc3232089bcba161bf3eaa621c1e5/config.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10387,
12,
10013,
16,
1234,
4672,
309,
6941,
30,
1172,
1234,
2589,
18,
8593,
12,
21,
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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,
30,
1652,
10387,
12,
10013,
16,
1234,
4672,
309,
6941,
30,
1172,
1234,
2589,
18,
8593,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
returned_html = returned_html[ibegin:iend] output(returned_html, myencoding())
|
output(u'Deletion failed:.') try: ibegin = data.index('<!-- start content -->') + 22 iend = data.index('<!-- end content -->') except ValueError: output(data) else: data = data[ibegin:iend] output(data)
|
def encode_multipart_formdata(fields): """ fields is a sequence of (name, value) elements for regular form fields. files is a sequence of (name, filename, value) elements for data to be uploaded as files Return (content_type, body) ready for httplib.HTTP instance """ BOUNDARY = '----------ThIs_Is_tHe_bouNdaRY_$' CRLF = '\r\n' L = [] for (key, value) in fields: L.append('--' + BOUNDARY) L.append('Content-Disposition: form-data; name="%s"' % key) L.append('') L.append(value) L.append('--' + BOUNDARY + '--') L.append('') body = CRLF.join(L) content_type = 'multipart/form-data; boundary=%s' % BOUNDARY return content_type, body
|
031202ea0712e4a14472a77bd1d8f72015efd1da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/031202ea0712e4a14472a77bd1d8f72015efd1da/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
1466,
353,
279,
3102,
434,
261,
529,
16,
460,
13,
2186,
364,
6736,
646,
1466,
18,
1390,
353,
279,
3102,
434,
261,
529,
16,
1544,
16,
460,
13,
2186,
364,
501,
358,
506,
9140,
487,
1390,
2000,
261,
1745,
67,
723,
16,
1417,
13,
5695,
364,
15851,
6673,
18,
3693,
791,
3536,
9784,
5240,
6043,
273,
296,
15392,
1315,
2520,
67,
2520,
67,
88,
5256,
67,
16818,
50,
2414,
9590,
67,
9227,
21791,
273,
2337,
86,
64,
82,
11,
511,
273,
5378,
364,
261,
856,
16,
460,
13,
316,
1466,
30,
511,
18,
6923,
2668,
413,
11,
397,
9784,
5240,
6043,
13,
511,
18,
6923,
2668,
1350,
17,
15087,
30,
646,
17,
892,
31,
508,
11613,
87,
5187,
738,
498,
13,
511,
18,
6923,
2668,
6134,
511,
18,
6923,
12,
1132,
13,
511,
18,
6923,
2668,
413,
11,
397,
9784,
5240,
6043,
397,
3534,
6134,
511,
18,
6923,
2668,
6134,
1417,
273,
21791,
18,
5701,
12,
48,
13,
913,
67,
723,
273,
296,
16404,
19,
687,
17,
892,
31,
7679,
5095,
87,
11,
738,
9784,
5240,
6043,
327,
913,
67,
723,
16,
1417,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
67,
16404,
67,
687,
892,
12,
2821,
4672,
3536,
1466,
353,
279,
3102,
434,
261,
529,
16,
460,
13,
2186,
364,
6736,
646,
1466,
18,
1390,
353,
279,
3102,
434,
261,
529,
16,
1544,
16,
460,
13,
2186,
364,
501,
358,
506,
9140,
487,
1390,
2000,
261,
1745,
67,
723,
16,
1417,
13,
5695,
364,
15851,
6673,
18,
3693,
791,
3536,
9784,
5240,
6043,
273,
296,
15392,
1315,
2520,
67,
2520,
67,
88,
5256,
67,
16818,
50,
2414,
9590,
67,
9227,
21791,
273,
2337,
86,
64,
82,
11,
511,
273,
5378,
364,
261,
856,
16,
460,
13,
316,
1466,
30,
511,
18,
6923,
2668,
413,
11,
397,
9784,
5240,
6043,
13,
511,
18,
6923,
2668,
1350,
17,
2
] |
self.fitContents()
|
if not self.pmHeightComputed: self.fitContents()
|
def show(self): """Show the Graphene Sheet Property Manager. """ self.setSponsor() if not self.pw or self: self.pw = self.win.activePartWindow() #@@@ ninad061206 self.pw.updatePropertyManagerTab(self) self.pw.featureManager.setCurrentIndex(self.pw.featureManager.indexOf(self)) else: self.pw.updatePropertyManagerTab(self) self.pw.featureManager.setCurrentIndex(self.pw.featureManager.indexOf(self)) self.fitContents()
|
c2a5e75de397404ea709ec4ff23abf4871625cb4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/c2a5e75de397404ea709ec4ff23abf4871625cb4/PropMgrBaseClass.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
4672,
3536,
5706,
326,
5601,
4009,
18707,
4276,
8558,
18,
3536,
365,
18,
542,
55,
500,
2467,
1435,
309,
486,
365,
18,
14921,
578,
365,
30,
365,
18,
14921,
273,
365,
18,
8082,
18,
3535,
1988,
3829,
1435,
4202,
468,
30989,
36,
290,
267,
361,
7677,
2138,
7677,
365,
18,
14921,
18,
2725,
1396,
1318,
5661,
12,
2890,
13,
365,
18,
14921,
18,
7238,
1318,
18,
542,
3935,
1016,
12,
2890,
18,
14921,
18,
7238,
1318,
18,
31806,
12,
2890,
3719,
469,
30,
365,
18,
14921,
18,
2725,
1396,
1318,
5661,
12,
2890,
13,
365,
18,
14921,
18,
7238,
1318,
18,
542,
3935,
1016,
12,
2890,
18,
14921,
18,
7238,
1318,
18,
31806,
12,
2890,
3719,
225,
309,
486,
365,
18,
7755,
2686,
17934,
30,
377,
365,
18,
7216,
6323,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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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,
8082,
18,
3535,
1988,
3829,
1435,
4202,
468,
30989,
36,
290,
267,
361,
7677,
2138,
7677,
365,
18,
14921,
18,
2725,
1396,
1318,
5661,
12,
2890,
13,
365,
18,
14921,
18,
7238,
1318,
18,
542,
3935,
1016,
12,
2890,
18,
14921,
18,
7238,
1318,
18,
31806,
12,
2890,
3719,
469,
30,
365,
18,
14921,
18,
2725,
1396,
1318,
5661,
12,
2890,
13,
365,
18,
14921,
18,
7238,
1318,
18,
542,
3935,
1016,
12,
2890,
18,
14921,
18,
7238,
1318,
18,
31806,
12,
2890,
2
] |
"0123456789-_")
|
"0123456789_")
|
def _exists(fn): try: _stat(fn) except _os.error: return False else: return True
|
35331346b45434a5449417caa420b8e5eb61383e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/35331346b45434a5449417caa420b8e5eb61383e/tempfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1808,
12,
4293,
4672,
775,
30,
389,
5642,
12,
4293,
13,
1335,
389,
538,
18,
1636,
30,
327,
1083,
469,
30,
327,
1053,
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,
0,
0,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,
775,
30,
389,
5642,
12,
4293,
13,
1335,
389,
538,
18,
1636,
30,
327,
1083,
469,
30,
327,
1053,
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
] |
'proposition_type' : lambda *a : 'init', 'keep_segments' : lambda *a : True, 'keep_prices' : lambda *a : True }
|
'proposition_type': lambda *a: 'init', 'keep_segments': lambda *a: True, 'keep_prices': lambda *a: True }
|
def _default_camp_date(self, cr, uid, context={}): if 'date1' in context and context['date1']: dd = context['date1'] return dd return []
|
7ee897432c7e7d5a5c8e889fc429c3c1b66627fd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7ee897432c7e7d5a5c8e889fc429c3c1b66627fd/dm_campaign.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
21,
3546,
327,
6957,
327,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1886,
67,
71,
931,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
819,
12938,
4672,
309,
296,
712,
21,
11,
316,
819,
471,
819,
3292,
712,
21,
3546,
30,
6957,
273,
819,
3292,
712,
21,
3546,
327,
6957,
327,
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
] |
rel_dir = destpath.replace(trimmedFSBasePath, '')
|
rel_dir = destpath.replace(trimmedFSBasePath, '').replace('\\','/')
|
def listFolderContents(self, spec=None, contentFilter=None, suppressHiddenFiles=0, REQUEST=None, RESPONSE=None): """ list content of local filesystem """
|
427351963657f6df9e3d74fe70f3dab38f6423b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1807/427351963657f6df9e3d74fe70f3dab38f6423b4/PloneLocalFolderNG.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3899,
6323,
12,
2890,
16,
225,
857,
33,
7036,
16,
913,
1586,
33,
7036,
16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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
3899,
6323,
12,
2890,
16,
225,
857,
33,
7036,
16,
913,
1586,
33,
7036,
16,
12257,
9345,
2697,
33,
20,
16,
12492,
33,
7036,
16,
20645,
33,
7036,
4672,
3536,
666,
913,
434,
1191,
6496,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
node.writexml(writer)
|
node.writexml(writer, indent, addindent, newl)
|
def writexml(self, writer): writer.write('<?xml version="1.0" ?>\n') for node in self.childNodes: node.writexml(writer)
|
2e6c591820a1112a2e8d88ebeec8241ccf2b5bcc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/2e6c591820a1112a2e8d88ebeec8241ccf2b5bcc/minidom.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
6134,
364,
756,
316,
365,
18,
3624,
3205,
30,
756,
18,
5363,
338,
781,
12,
6299,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
338,
781,
12,
2890,
16,
2633,
4672,
2633,
18,
2626,
2668,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
692,
5333,
82,
6134,
364,
756,
316,
365,
18,
3624,
3205,
30,
756,
18,
5363,
338,
781,
12,
6299,
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
] |
sizer_image = wx.BoxSizer(wx.HORIZONTAL) sizer_image.Add(self.image_viewer, 0, wx.EXPAND|wx.ALIGN_CENTER_HORIZONTAL)
|
def _init_ui(self): self.title = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.subtitle = wx.StaticText(self, -1, _("Image"), style=wx.ALIGN_CENTER) self.image_viewer = wx.StaticBitmap(self, -1, size=(70, 70))
|
47febb45edce5483b68db9c0d9e0e9a439300947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10228/47febb45edce5483b68db9c0d9e0e9a439300947/dicom_preview_panel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
4881,
12,
2890,
4672,
365,
18,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18,
1717,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18,
2730,
67,
25256,
273,
7075,
18,
5788,
12224,
12,
2890,
16,
300,
21,
16,
963,
28657,
7301,
16,
16647,
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,
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,
67,
4881,
12,
2890,
4672,
365,
18,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18,
1717,
2649,
273,
7075,
18,
5788,
1528,
12,
2890,
16,
300,
21,
16,
389,
2932,
2040,
6,
3631,
2154,
33,
27226,
18,
26439,
67,
19835,
13,
365,
18,
2730,
67,
25256,
273,
7075,
18,
5788,
12224,
12,
2890,
16,
300,
21,
16,
963,
28657,
7301,
16,
16647,
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
] |
|
prop["text-align"] = tag["align"]
|
al = tag['align'].lower() if al in ('left', 'right', 'center', 'justify'): prop["text-align"] = al
|
def merge_parent_css(prop, pcss): temp = {} for key in pcss.keys(): chk = key.lower() # float should not be inherited according to the CSS spec # however we need to as we don't do alignment at a block level. # float is removed by the process_alignment function. if chk.startswith('font') or chk == 'text-align' or \ chk == 'float' or chk == 'white-space' or chk == 'color': temp[key] = pcss[key] prop.update(temp)
|
eeab59df298c1f35d80863c5b406114dfefd590a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/eeab59df298c1f35d80863c5b406114dfefd590a/convert_from.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2938,
67,
5212,
12,
5986,
16,
293,
5212,
4672,
1906,
273,
2618,
364,
498,
316,
293,
5212,
18,
2452,
13332,
15000,
273,
498,
18,
8167,
1435,
468,
1431,
1410,
486,
506,
12078,
4888,
358,
326,
6765,
857,
468,
14025,
732,
1608,
358,
487,
732,
2727,
1404,
741,
8710,
622,
279,
1203,
1801,
18,
468,
1431,
353,
3723,
635,
326,
1207,
67,
14409,
445,
18,
309,
15000,
18,
17514,
1918,
2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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
67,
2938,
67,
5212,
12,
5986,
16,
293,
5212,
4672,
1906,
273,
2618,
364,
498,
316,
293,
5212,
18,
2452,
13332,
15000,
273,
498,
18,
8167,
1435,
468,
1431,
1410,
486,
506,
12078,
4888,
358,
326,
6765,
857,
468,
14025,
732,
1608,
358,
487,
732,
2727,
1404,
741,
8710,
622,
279,
1203,
1801,
18,
468,
1431,
353,
3723,
635,
326,
1207,
67,
14409,
445,
18,
309,
15000,
18,
17514,
1918,
2668,
5776,
6134,
578,
15000,
422,
296,
955,
17,
7989,
11,
578,
521,
15000,
422,
296,
5659,
11,
578,
15000,
422,
296,
14739,
17,
2981,
11,
578,
15000,
422,
296,
3266,
4278,
1906,
63,
856,
65,
273,
293,
5212,
63,
856,
65,
2270,
18,
2725,
12,
5814,
2
] |
user, domain = sender.split("@")
|
user, domain = sender.rsplit("@", 1)
|
def check(self, data, *args, **keywords): sender = data.get('sender', '').lower() recipient = data.get('recipient', '').lower() client_name = data.get('client_name', '').lower() client_address = data.get('client_address')
|
e4c8602466fde25c714c7f8746a6892396a62f29 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/e4c8602466fde25c714c7f8746a6892396a62f29/Greylist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
273,
501,
18,
588,
2668,
15330,
2187,
875,
2934,
8167,
1435,
8027,
273,
501,
18,
588,
2668,
20367,
2187,
875,
2934,
8167,
1435,
1004,
67,
529,
273,
501,
18,
588,
2668,
2625,
67,
529,
2187,
875,
2934,
8167,
1435,
1004,
67,
2867,
273,
501,
18,
588,
2668,
2625,
67,
2867,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if config.aug_pprint: pprint = pprint_with(aug_node_repr) else: pprint = pprint_with(default_node_repr)
|
pprint = pprint_with(default_node_repr)
|
def base_pprint(node, level=0, sep=' ', newline='\n', reduced_leaves=False): out = [] if level == 0: out.append('(') else: out.append( sep * level ) if node.is_leaf(): if reduced_leaves: out.append(node_repr(node)) else: out.append("(%s)" % node_repr(node)) else: # special case for nodes with all-leaf children if node.count() <= LeafCompressThreshold and all(kid.is_leaf() for kid in node): out.append( "(%s %s)" % (node_repr(node), ' '.join([base_pprint(child, 0, sep, '', reduced_leaves=True) for child in node])) ) else: out.append( "(%s%s" % (node_repr(node), newline) ) out += intersperse([pprint(child, level+1, sep, newline) for child in node], newline) out.append( ")" )
|
b7744093fc508a84e302933488e904ff53030d11 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8383/b7744093fc508a84e302933488e904ff53030d11/pprint.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1026,
67,
84,
1188,
12,
2159,
16,
1801,
33,
20,
16,
5478,
2218,
282,
2265,
9472,
2218,
64,
82,
2187,
13162,
67,
298,
6606,
33,
8381,
4672,
596,
273,
5378,
309,
1801,
422,
374,
30,
596,
18,
6923,
2668,
2668,
13,
469,
30,
596,
18,
6923,
12,
5478,
380,
1801,
262,
225,
309,
756,
18,
291,
67,
12070,
13332,
309,
13162,
67,
298,
6606,
30,
596,
18,
6923,
12,
2159,
67,
12715,
12,
2159,
3719,
469,
30,
596,
18,
6923,
2932,
9275,
87,
2225,
738,
756,
67,
12715,
12,
2159,
3719,
469,
30,
468,
4582,
648,
364,
2199,
598,
777,
17,
12070,
2325,
309,
756,
18,
1883,
1435,
1648,
23383,
16552,
7614,
471,
777,
12,
79,
350,
18,
291,
67,
12070,
1435,
364,
17395,
316,
756,
4672,
596,
18,
6923,
12,
7751,
9,
87,
738,
87,
2225,
738,
261,
2159,
67,
12715,
12,
2159,
3631,
296,
2418,
5701,
3816,
1969,
67,
84,
1188,
12,
3624,
16,
374,
16,
5478,
16,
10226,
13162,
67,
298,
6606,
33,
5510,
13,
364,
1151,
316,
756,
22643,
262,
469,
30,
596,
18,
6923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30,
1652,
1026,
67,
84,
1188,
12,
2159,
16,
1801,
33,
20,
16,
5478,
2218,
282,
2265,
9472,
2218,
64,
82,
2187,
13162,
67,
298,
6606,
33,
8381,
4672,
596,
273,
5378,
309,
1801,
422,
374,
30,
596,
18,
6923,
2668,
2668,
13,
469,
30,
596,
18,
6923,
12,
5478,
380,
1801,
262,
225,
309,
756,
18,
291,
67,
12070,
13332,
309,
13162,
67,
298,
6606,
30,
596,
18,
6923,
12,
2159,
67,
12715,
12,
2159,
3719,
469,
30,
596,
18,
6923,
2932,
9275,
87,
2225,
738,
756,
67,
12715,
12,
2159,
3719,
469,
30,
468,
4582,
648,
364,
2199,
598,
777,
17,
12070,
2325,
309,
756,
18,
1883,
1435,
1648,
23383,
16552,
7614,
471,
777,
12,
79,
350,
18,
2
] |
if hasattr(module, '__all__'): try: public_names = set([str(name) for name in module.__all__]) for name, var_doc in module_doc.variables.items(): if name in public_names: var_doc.is_public = True if not isinstance(var_doc, ModuleDoc): var_doc.is_imported = False else: var_doc.is_public = False except KeyboardInterrupt: raise except: pass
|
def introspect_module(module, module_doc, module_name=None, preliminary=False): """ Add API documentation information about the module C{module} to C{module_doc}. """ module_doc.specialize_to(ModuleDoc) # Record the module's docformat if hasattr(module, '__docformat__'): module_doc.docformat = unicode(module.__docformat__) # Record the module's filename if hasattr(module, '__file__'): try: module_doc.filename = unicode(module.__file__) except KeyboardInterrupt: raise except: pass if module_doc.filename is not UNKNOWN: try: module_doc.filename = py_src_filename(module_doc.filename) except ValueError: pass # If this is just a preliminary introspection, then don't do # anything else. (Typically this is true if this module was # imported, but is not included in the set of modules we're # documenting.) if preliminary: return # Record the module's docstring if hasattr(module, '__doc__'): module_doc.docstring = get_docstring(module) # If the module has a __path__, then it's (probably) a # package; so set is_package=True and record its __path__. if hasattr(module, '__path__'): module_doc.is_package = True try: module_doc.path = [unicode(p) for p in module.__path__] except KeyboardInterrupt: raise except: pass else: module_doc.is_package = False # Make sure we have a name for the package. dotted_name = module_doc.canonical_name if dotted_name is UNKNOWN: dotted_name = DottedName(module.__name__) # Record the module's parent package, if it has one. if len(dotted_name) > 1: package_name = str(dotted_name.container()) package = sys.modules.get(package_name) if package is not None: module_doc.package = introspect_docs(package) else: module_doc.package = None # Initialize the submodules property module_doc.submodules = [] # Add the module to its parent package's submodules list. if module_doc.package not in (None, UNKNOWN): module_doc.package.submodules.append(module_doc) # Record the module's variables. module_doc.variables = {} for child_name in dir(module): if child_name in UNDOCUMENTED_MODULE_VARS: continue child = getattr(module, child_name) # Create a VariableDoc for the child, and introspect its # value if it's defined in this module. container = get_containing_module(child) if container is not None and container == module_doc.canonical_name: # Local variable. child_val_doc = introspect_docs(child, context=module_doc, module_name=dotted_name) child_var_doc = VariableDoc(name=child_name, value=child_val_doc, is_imported=False, container=module_doc, docs_extracted_by='introspecter') elif container is None or module_doc.canonical_name is UNKNOWN: # Don't introspect stuff "from __future__" if is_future_feature(child): continue # Possibly imported variable. child_val_doc = introspect_docs(child, context=module_doc) child_var_doc = VariableDoc(name=child_name, value=child_val_doc, container=module_doc, docs_extracted_by='introspecter') else: # Imported variable. child_val_doc = _get_valuedoc(child) child_var_doc = VariableDoc(name=child_name, value=child_val_doc, is_imported=True, container=module_doc, docs_extracted_by='introspecter') module_doc.variables[child_name] = child_var_doc # Record the module's __all__ attribute (public names). if hasattr(module, '__all__'): try: public_names = set([str(name) for name in module.__all__]) for name, var_doc in module_doc.variables.items(): if name in public_names: var_doc.is_public = True if not isinstance(var_doc, ModuleDoc): var_doc.is_imported = False else: var_doc.is_public = False except KeyboardInterrupt: raise except: pass return module_doc
|
d280def57e42f4d9659c49ecad82dd67326d9ec8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11420/d280def57e42f4d9659c49ecad82dd67326d9ec8/docintrospecter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30165,
67,
2978,
12,
2978,
16,
1605,
67,
2434,
16,
1605,
67,
529,
33,
7036,
16,
675,
7091,
2101,
33,
8381,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
385,
95,
2978,
67,
2434,
5496,
3536,
1605,
67,
2434,
18,
2793,
1710,
67,
869,
12,
3120,
1759,
13,
225,
468,
5059,
326,
1605,
1807,
997,
2139,
309,
3859,
12,
2978,
16,
4940,
2434,
2139,
7250,
4672,
1605,
67,
2434,
18,
2434,
2139,
273,
5252,
12,
2978,
16186,
2434,
2139,
972,
13,
225,
468,
5059,
326,
1605,
1807,
1544,
309,
3859,
12,
2978,
16,
4940,
768,
7250,
4672,
775,
30,
1605,
67,
2434,
18,
3459,
273,
5252,
12,
2978,
16186,
768,
972,
13,
1335,
19424,
30,
1002,
1335,
30,
1342,
309,
1605,
67,
2434,
18,
3459,
353,
486,
13598,
30,
775,
30,
1605,
67,
2434,
18,
3459,
273,
2395,
67,
4816,
67,
3459,
12,
2978,
67,
2434,
18,
3459,
13,
1335,
2068,
30,
1342,
225,
468,
971,
333,
353,
2537,
279,
675,
7091,
2101,
18446,
7017,
16,
1508,
2727,
1404,
741,
468,
6967,
469,
18,
225,
261,
18488,
6478,
333,
353,
638,
309,
333,
1605,
1703,
468,
9101,
16,
1496,
353,
486,
5849,
316,
326,
444,
434,
4381,
732,
4565,
468,
1668,
310,
12998,
309,
675,
7091,
2101,
30,
327,
225,
468,
5059,
326,
1605,
1807,
14525,
309,
3859,
12,
2978,
16,
4940,
2434,
7250,
4672,
1605,
67,
2434,
18,
24675,
273,
336,
67,
24675,
12,
2978,
13,
225,
468,
971,
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,
30165,
67,
2978,
12,
2978,
16,
1605,
67,
2434,
16,
1605,
67,
529,
33,
7036,
16,
675,
7091,
2101,
33,
8381,
4672,
3536,
1436,
1491,
7323,
1779,
2973,
326,
1605,
385,
95,
2978,
97,
358,
385,
95,
2978,
67,
2434,
5496,
3536,
1605,
67,
2434,
18,
2793,
1710,
67,
869,
12,
3120,
1759,
13,
225,
468,
5059,
326,
1605,
1807,
997,
2139,
309,
3859,
12,
2978,
16,
4940,
2434,
2139,
7250,
4672,
1605,
67,
2434,
18,
2434,
2139,
273,
5252,
12,
2978,
16186,
2434,
2139,
972,
13,
225,
468,
5059,
326,
1605,
1807,
1544,
309,
3859,
12,
2978,
16,
4940,
768,
7250,
4672,
775,
30,
1605,
67,
2434,
18,
3459,
273,
5252,
12,
2978,
16186,
768,
972,
13,
2
] |
|
parts = re.split('[?]+',url) if (parts[0] == url): return url +"?page=" + str(pageNum)
|
if re.search('[?]',url): return url +"&page=" + str(pageNum)
|
def concatPage(url,pageNum): try: parts = re.split('[?]+',url) if (parts[0] == url): return url +"?page=" + str(pageNum) else: return url +"&page=" + str(pageNum) except: return url +"?page=" + str(pageNum)
|
73820490b7c681857257eb5e2a48c6281bc5f9e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14804/73820490b7c681857257eb5e2a48c6281bc5f9e2/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3835,
1964,
12,
718,
16,
2433,
2578,
4672,
775,
30,
309,
283,
18,
3072,
2668,
63,
35,
65,
2187,
718,
4672,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
469,
30,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
1335,
30,
327,
880,
397,
6,
35,
2433,
1546,
397,
609,
12,
2433,
2578,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3835,
1964,
12,
718,
16,
2433,
2578,
4672,
775,
30,
309,
283,
18,
3072,
2668,
63,
35,
65,
2187,
718,
4672,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
469,
30,
327,
880,
397,
6,
10,
2433,
1546,
397,
609,
12,
2433,
2578,
13,
1335,
30,
327,
880,
397,
6,
35,
2433,
1546,
397,
609,
12,
2433,
2578,
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
] |
print "Running model with mass " , ms
|
print "Running model with %s=%s"%(fixture["name"], str(ps))
|
def massvspectrum(masses=None, nefolds=5, pivotk=N.array([1.3125e-58], ystart=None)): """Run tests for different masses, return mass used and spectrum after horizon exit""" if masses is None: masses = N.logspace(N.log10(5e-6), N.log10(7e-6)) if ystart is None: results = None for ms in masses: sim = c.FOCanonicalTwoStage(solver="rkdriver_withks", ystart=ystart, k=pivotk, mass=ms, tend=83, quiet=True) print "Running model with mass " , ms sim.run(saveresults=False) Pr = sim.findspectrum() tres = sim.findHorizoncrossings()[:,0] + nefolds/sim.tstep_wanted Pres = Pr[tres.astype(int)].diagonal()[0] #set_trace() if results is not None: results = N.vstack((results, N.array([ms, Pres]))) else: results = N.array([ms, Pres]) del sim return results
|
3cac568b2ccb95c33b67c12646cefb96cb5c9e62 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7283/3cac568b2ccb95c33b67c12646cefb96cb5c9e62/findparams.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8039,
6904,
13324,
12,
10424,
281,
33,
7036,
16,
1073,
16007,
87,
33,
25,
16,
9939,
79,
33,
50,
18,
1126,
3816,
21,
18,
23,
18473,
73,
17,
8204,
6487,
677,
1937,
33,
7036,
3719,
30,
3536,
1997,
7434,
364,
3775,
8039,
281,
16,
327,
8039,
1399,
471,
17970,
1839,
366,
20648,
2427,
8395,
309,
8039,
281,
353,
599,
30,
8039,
281,
273,
423,
18,
10011,
909,
12,
50,
18,
1330,
2163,
12,
25,
73,
17,
26,
3631,
423,
18,
1330,
2163,
12,
27,
73,
17,
26,
3719,
309,
677,
1937,
353,
599,
30,
1686,
273,
599,
364,
4086,
316,
8039,
281,
30,
3142,
273,
276,
18,
3313,
15512,
11710,
8755,
12,
27198,
1546,
86,
79,
7407,
67,
1918,
7904,
3113,
677,
1937,
33,
1094,
485,
16,
417,
33,
27306,
79,
16,
8039,
33,
959,
16,
268,
409,
33,
10261,
16,
10902,
33,
5510,
13,
225,
1172,
315,
7051,
938,
598,
738,
87,
5095,
87,
6,
17105,
904,
10970,
9614,
529,
6,
6487,
609,
12,
1121,
3719,
3142,
18,
2681,
12,
13098,
502,
281,
406,
87,
33,
8381,
13,
2301,
273,
3142,
18,
4720,
87,
13324,
1435,
268,
455,
273,
3142,
18,
4720,
44,
20648,
14653,
899,
1435,
10531,
16,
20,
65,
397,
1073,
16007,
87,
19,
9812,
18,
88,
4119,
67,
25861,
18346,
273,
2301,
63,
88,
455,
18,
689,
388,
12,
474,
13,
8009,
30130,
1435,
63,
20,
65,
225,
468,
542,
67,
5129,
1435,
309,
1686,
353,
486,
599,
30,
1686,
273,
423,
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,
8039,
6904,
13324,
12,
10424,
281,
33,
7036,
16,
1073,
16007,
87,
33,
25,
16,
9939,
79,
33,
50,
18,
1126,
3816,
21,
18,
23,
18473,
73,
17,
8204,
6487,
677,
1937,
33,
7036,
3719,
30,
3536,
1997,
7434,
364,
3775,
8039,
281,
16,
327,
8039,
1399,
471,
17970,
1839,
366,
20648,
2427,
8395,
309,
8039,
281,
353,
599,
30,
8039,
281,
273,
423,
18,
10011,
909,
12,
50,
18,
1330,
2163,
12,
25,
73,
17,
26,
3631,
423,
18,
1330,
2163,
12,
27,
73,
17,
26,
3719,
309,
677,
1937,
353,
599,
30,
1686,
273,
599,
364,
4086,
316,
8039,
281,
30,
3142,
273,
276,
18,
3313,
15512,
11710,
8755,
12,
27198,
1546,
86,
79,
7407,
67,
2
] |
sys.stdout.write("Found: %s\n",publication_directory)
|
sys.stdout.write("Found: %s\n" %(publication_directory))
|
def __init__(self,type=None,ifo=None,time=None,snr=None,chisqr=None,mass1=None,mass2=None,mchirp=None): """ """ self.type=str(type) self.ifo=str(ifo) self.time=float(time) self.snr=float(snr) self.chisqr=float(chisqr) self.mass1=float(mass1) self.mass2=float(mass2) self.mchirp=float(mchirp)
|
04ee230753c51cc2fa6261a2cf36152529f9394e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/04ee230753c51cc2fa6261a2cf36152529f9394e/makeCheckListWiki.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
723,
33,
7036,
16,
20299,
33,
7036,
16,
957,
33,
7036,
16,
8134,
86,
33,
7036,
16,
343,
291,
27401,
33,
7036,
16,
10424,
21,
33,
7036,
16,
10424,
22,
33,
7036,
16,
81,
343,
481,
84,
33,
7036,
4672,
3536,
3536,
365,
18,
723,
33,
701,
12,
723,
13,
365,
18,
20299,
33,
701,
12,
20299,
13,
365,
18,
957,
33,
5659,
12,
957,
13,
365,
18,
8134,
86,
33,
5659,
12,
8134,
86,
13,
365,
18,
343,
291,
27401,
33,
5659,
12,
343,
291,
27401,
13,
365,
18,
10424,
21,
33,
5659,
12,
10424,
21,
13,
365,
18,
10424,
22,
33,
5659,
12,
10424,
22,
13,
365,
18,
81,
343,
481,
84,
33,
5659,
12,
81,
343,
481,
84,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
723,
33,
7036,
16,
20299,
33,
7036,
16,
957,
33,
7036,
16,
8134,
86,
33,
7036,
16,
343,
291,
27401,
33,
7036,
16,
10424,
21,
33,
7036,
16,
10424,
22,
33,
7036,
16,
81,
343,
481,
84,
33,
7036,
4672,
3536,
3536,
365,
18,
723,
33,
701,
12,
723,
13,
365,
18,
20299,
33,
701,
12,
20299,
13,
365,
18,
957,
33,
5659,
12,
957,
13,
365,
18,
8134,
86,
33,
5659,
12,
8134,
86,
13,
365,
18,
343,
291,
27401,
33,
5659,
12,
343,
291,
27401,
13,
365,
18,
10424,
21,
33,
5659,
12,
10424,
21,
13,
365,
18,
10424,
22,
33,
5659,
12,
10424,
22,
13,
365,
18,
81,
343,
2
] |
if not rings.is_CyclotomicField(K) or rings.is_RationalField(K):
|
if not (rings.is_CyclotomicField(K) or rings.is_RationalField(K)):
|
def gauss_sum_numerical(self, prec=53, a=1): r""" Return a Gauss sum associated to this Dirichlet character as an approximate complex number with prec bits of precision.
|
1c76f19670c28ca7fc7cc68574571a908363e62d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/1c76f19670c28ca7fc7cc68574571a908363e62d/dirichlet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
21204,
7233,
1300,
598,
13382,
4125,
434,
6039,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
10325,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
4672,
436,
8395,
2000,
279,
611,
10325,
2142,
3627,
358,
333,
8446,
1354,
1810,
3351,
487,
392,
21204,
7233,
1300,
598,
13382,
4125,
434,
6039,
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
] |
print " else: print "log> %s" % line
|
def testLogin(self): # Eat output while self.nuauth.readline(): pass
|
5acabbe881c45999b9a428c8af024cf970130723 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10929/5acabbe881c45999b9a428c8af024cf970130723/test_log.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5358,
12,
2890,
4672,
468,
512,
270,
876,
1323,
365,
18,
13053,
1944,
18,
896,
1369,
13332,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
self._writer.end_element('body') self._writer.end_element('html')
|
self._writer.end('body') self._writer.end('html')
|
def _write_end(self): self._writer.end_element('body') self._writer.end_element('html')
|
9cdb508010da4366326649ba4d0a07a65263ab66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7408/9cdb508010da4366326649ba4d0a07a65263ab66/robotdiff.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
409,
12,
2890,
4672,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
3432,
6134,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
2620,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
67,
409,
12,
2890,
4672,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
3432,
6134,
365,
6315,
6299,
18,
409,
67,
2956,
2668,
2620,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
fullpath = path.normpath(path.join(cwd, dep)) relpath = fullpath[len(path.normpath(self.srcdir))+len(path.sep):]
|
relpath = relative_path(frompath, path.normpath(path.join(cwd, dep)))
|
def process_dependencies(self, docname, doctree): """ Process docutils-generated dependency info. """ cwd = os.getcwd() deps = doctree.settings.record_dependencies if not deps: return docdir = path.dirname(self.doc2path(docname, base=None)) for dep in deps.list: # the dependency path is relative to the working dir, so get # one relative to the srcdir fullpath = path.normpath(path.join(cwd, dep)) relpath = fullpath[len(path.normpath(self.srcdir))+len(path.sep):] self.dependencies.setdefault(docname, set()).add(relpath)
|
c66aefe7cb4e37ae4524e8a73d9a187129b379d7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7032/c66aefe7cb4e37ae4524e8a73d9a187129b379d7/environment.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
11037,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
3536,
4389,
997,
5471,
17,
11168,
4904,
1123,
18,
3536,
7239,
273,
1140,
18,
588,
11089,
1435,
8740,
273,
31263,
992,
18,
4272,
18,
3366,
67,
11037,
309,
486,
8740,
30,
327,
997,
1214,
273,
589,
18,
12287,
12,
2890,
18,
2434,
22,
803,
12,
2434,
529,
16,
1026,
33,
7036,
3719,
364,
5993,
316,
8740,
18,
1098,
30,
468,
326,
4904,
589,
353,
3632,
358,
326,
5960,
1577,
16,
1427,
336,
468,
1245,
3632,
358,
326,
1705,
1214,
14614,
273,
3632,
67,
803,
12,
2080,
803,
16,
589,
18,
7959,
803,
12,
803,
18,
5701,
12,
11089,
16,
5993,
20349,
365,
18,
11037,
18,
542,
1886,
12,
2434,
529,
16,
444,
1435,
2934,
1289,
12,
2878,
803,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
11037,
12,
2890,
16,
997,
529,
16,
31263,
992,
4672,
3536,
4389,
997,
5471,
17,
11168,
4904,
1123,
18,
3536,
7239,
273,
1140,
18,
588,
11089,
1435,
8740,
273,
31263,
992,
18,
4272,
18,
3366,
67,
11037,
309,
486,
8740,
30,
327,
997,
1214,
273,
589,
18,
12287,
12,
2890,
18,
2434,
22,
803,
12,
2434,
529,
16,
1026,
33,
7036,
3719,
364,
5993,
316,
8740,
18,
1098,
30,
468,
326,
4904,
589,
353,
3632,
358,
326,
5960,
1577,
16,
1427,
336,
468,
1245,
3632,
358,
326,
1705,
1214,
14614,
273,
3632,
67,
803,
12,
2080,
803,
16,
589,
18,
7959,
803,
12,
803,
18,
5701,
12,
11089,
16,
5993,
20349,
365,
18,
11037,
18,
542,
2
] |
notat = toFAN(m.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1))
|
notat = toFAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1))
|
def __addMove(self, game, ply): row, view, other = self._ply_to_row_col_other(ply) if conf.get("figuresInNotation", False): notat = toFAN(m.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1)) else: notat = toSAN(game.getBoardAtPly(ply-1), game.getMoveAtPly(ply-1), localRepr=True) # Test if the row is 'filled' if len(view.get_model()) == len(self.numbers.get_model()): num = str((ply+1)/2)+"." self.numbers.get_model().append([num]) # Test if the move is black first move. This will be the case if the # game was loaded from a fen/epd starting at black if view == self.right and len(view.get_model()) == len(other.get_model()): self.left.get_model().append([""]) view.get_model().append([notat]) if self.board.shown < ply: return # Freezes to avoid that select_cursor_row changes board.shown self.freezed = True view.get_selection().select_iter(view.get_model().get_iter(row)) view.set_cursor((row,)) if other.is_focus(): view.grab_focus() other.get_selection().unselect_all() self.freezed = False
|
daf9bd5ad39e27129930d9516925f2e0ea9358a2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5339/daf9bd5ad39e27129930d9516925f2e0ea9358a2/historyPanel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,
588,
2932,
470,
1823,
382,
14818,
3113,
1083,
4672,
486,
270,
273,
358,
42,
1258,
12,
13957,
18,
588,
22233,
861,
52,
715,
12,
1283,
17,
21,
3631,
7920,
18,
588,
7607,
861,
52,
715,
12,
1283,
17,
21,
3719,
469,
30,
486,
270,
273,
358,
22721,
12,
13957,
18,
588,
22233,
861,
52,
715,
12,
1283,
17,
21,
3631,
7920,
18,
588,
7607,
861,
52,
715,
12,
1283,
17,
21,
3631,
1191,
426,
683,
33,
5510,
13,
225,
468,
7766,
309,
326,
1027,
353,
296,
13968,
11,
309,
562,
12,
1945,
18,
588,
67,
2284,
10756,
422,
562,
12,
2890,
18,
13851,
18,
588,
67,
2284,
1435,
4672,
818,
273,
609,
12443,
1283,
15,
21,
13176,
22,
13,
9078,
1199,
365,
18,
13851,
18,
588,
67,
2284,
7675,
6923,
3816,
2107,
5717,
225,
468,
7766,
309,
326,
3635,
353,
7721,
1122,
3635,
18,
1220,
903,
506,
326,
648,
309,
326,
468,
7920,
1703,
4203,
628,
279,
284,
275,
19,
881,
72,
5023,
622,
7721,
309,
1476,
422,
365,
18,
4083,
471,
562,
12,
1945,
18,
588,
67,
2284,
10756,
422,
562,
12,
3011,
18,
588,
67,
2284,
1435,
4672,
365,
18,
4482,
18,
588,
67,
2284,
7675,
6923,
3816,
3660,
5717,
225,
1476,
18,
588,
67,
2284,
7675,
6923,
3816,
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,
1289,
7607,
12,
2890,
16,
7920,
16,
293,
715,
4672,
1027,
16,
1476,
16,
1308,
273,
365,
6315,
1283,
67,
869,
67,
492,
67,
1293,
67,
3011,
12,
1283,
13,
225,
309,
2195,
18,
588,
2932,
470,
1823,
382,
14818,
3113,
1083,
4672,
486,
270,
273,
358,
42,
1258,
12,
13957,
18,
588,
22233,
861,
52,
715,
12,
1283,
17,
21,
3631,
7920,
18,
588,
7607,
861,
52,
715,
12,
1283,
17,
21,
3719,
469,
30,
486,
270,
273,
358,
22721,
12,
13957,
18,
588,
22233,
861,
52,
715,
12,
1283,
17,
21,
3631,
7920,
18,
588,
7607,
861,
52,
715,
12,
1283,
17,
21,
3631,
1191,
426,
683,
33,
5510,
13,
225,
468,
7766,
309,
326,
2
] |
fileRecords.append((lfn,'Checksum mismatch','%s@%s' % (seChecksum,se),'','MigrationMonitoringAgent')) matchFiles.append(fileID)
|
fileRecords.append( ( lfn, 'Checksum mismatch', '%s@%s' % ( seChecksum, se ), '', 'MigrationMonitoringAgent' ) ) matchFiles.append( fileID )
|
def __validateChecksums(self,se, migratedFileIDs,migratingFiles): """ Obtain the checksums in the catalog if not present and check against the checksum from the storage """ lfnFileID = {} checksumToObtain = [] for fileID in migratedFileIDs.keys(): if not migratingFiles[fileID]['Checksum']: lfn = migratingFiles[fileID]['LFN'] checksumToObtain.append(lfn) lfnFileID[lfn] = fileID if checksumToObtain: res = self.ReplicaManager.getCatalogMetadata(checksumToObtain) if not res['OK']: gLogger.error("[%s] __validateChecksums: Failed to obtain file checksums" % se) return res for lfn,error in res['Value']['Failed'].items(): gLogger.error("[%s] __validateChecksums: Failed to get file checksum" % se,"%s %s" % (lfn,error)) for lfn,metadata in res['Value']['Successful'].items(): migratingFiles[lfnFileID[lfn]]['Checksum'] = metadata['Checksum'] mismatchFiles = [] matchFiles = [] checksumMismatches = [] fileRecords = [] for fileID,seChecksum in migratedFileIDs.items(): lfn = migratingFiles[fileID]['LFN'] catalogChecksum = migratingFiles[fileID]['Checksum'] if not seChecksum: gLogger.error("[%s] __validateChecksums: Storage checksum not available" % se, migratingFiles[fileID]['PFN']) elif not compareAdler(seChecksum,catalogChecksum): gLogger.error("[%s] __validateChecksums: Storage and catalog checksum mismatch" % se,"%s '%s' '%s'" % (migratingFiles[fileID]['PFN'],seChecksum,catalogChecksum)) mismatchFiles.append(fileID) pfn = migratingFiles[fileID]['PFN'] se = migratingFiles[fileID]['SE'] checksumMismatches.append((lfn,pfn,se,'CatalogPFNChecksumMismatch')) fileRecords.append((lfn,'Checksum match','%s@%s' % (seChecksum,se),'','MigrationMonitoringAgent')) else: fileRecords.append((lfn,'Checksum mismatch','%s@%s' % (seChecksum,se),'','MigrationMonitoringAgent')) matchFiles.append(fileID) # Add the data logging records self.DataLog.addFileRecords(fileRecords) if checksumMismatches: # Update the (mis)matching checksums (in the integrityDB and) in the migration monitoring db self.__reportProblematicReplicas(checksumMismatches) res = self.MigrationMonitoringDB.setFilesStatus(mismatchFiles,'ChecksumFail') if not res['OK']: gLogger.error("[%s] __validateChecksums: Failed to update checksum mismatching files." % se, res['Message']) if matchFiles: res = self.MigrationMonitoringDB.setFilesStatus(matchFiles,'ChecksumMatch') if not res['OK']: gLogger.error("[%s] __validateChecksums: Failed to update checksum mismatching files." % se, res['Message']) resDict = {'MatchingFiles':matchFiles,'MismatchFiles':mismatchFiles} return S_OK(resDict)
|
9a22336d92a455ef5a2bab49d70e2e3a11f3d910 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9a22336d92a455ef5a2bab49d70e2e3a11f3d910/MigrationMonitoringAgent.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5662,
10723,
87,
12,
2890,
16,
307,
16,
24741,
812,
5103,
16,
81,
2757,
1776,
2697,
4672,
3536,
24850,
326,
26829,
316,
326,
6222,
309,
486,
3430,
471,
866,
5314,
326,
6697,
628,
326,
2502,
3536,
328,
4293,
812,
734,
273,
2618,
6697,
774,
20019,
273,
5378,
364,
585,
734,
316,
24741,
812,
5103,
18,
2452,
13332,
309,
486,
4196,
1776,
2697,
63,
768,
734,
23962,
10723,
3546,
30,
328,
4293,
273,
4196,
1776,
2697,
63,
768,
734,
23962,
9105,
50,
3546,
6697,
774,
20019,
18,
6923,
12,
80,
4293,
13,
328,
4293,
812,
734,
63,
80,
4293,
65,
273,
585,
734,
309,
6697,
774,
20019,
30,
400,
273,
365,
18,
14222,
1318,
18,
588,
9769,
2277,
12,
15149,
774,
20019,
13,
309,
486,
400,
3292,
3141,
3546,
30,
314,
3328,
18,
1636,
2932,
14451,
87,
65,
1001,
5662,
10723,
87,
30,
11175,
358,
7161,
585,
26829,
6,
738,
695,
13,
327,
400,
364,
328,
4293,
16,
1636,
316,
400,
3292,
620,
21712,
2925,
29489,
3319,
13332,
314,
3328,
18,
1636,
2932,
14451,
87,
65,
1001,
5662,
10723,
87,
30,
11175,
358,
336,
585,
6697,
6,
738,
695,
10837,
9,
87,
738,
87,
6,
738,
261,
80,
4293,
16,
1636,
3719,
364,
328,
4293,
16,
4165,
316,
400,
3292,
620,
21712,
14277,
29489,
3319,
13332,
4196,
1776,
2697,
63,
80,
4293,
812,
734,
63,
80,
4293,
13563,
3292,
10723,
3546,
273,
1982,
3292,
10723,
3546,
13484,
2697,
273,
5378,
845,
2697,
273,
5378,
6697,
11729,
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,
5662,
10723,
87,
12,
2890,
16,
307,
16,
24741,
812,
5103,
16,
81,
2757,
1776,
2697,
4672,
3536,
24850,
326,
26829,
316,
326,
6222,
309,
486,
3430,
471,
866,
5314,
326,
6697,
628,
326,
2502,
3536,
328,
4293,
812,
734,
273,
2618,
6697,
774,
20019,
273,
5378,
364,
585,
734,
316,
24741,
812,
5103,
18,
2452,
13332,
309,
486,
4196,
1776,
2697,
63,
768,
734,
23962,
10723,
3546,
30,
328,
4293,
273,
4196,
1776,
2697,
63,
768,
734,
23962,
9105,
50,
3546,
6697,
774,
20019,
18,
6923,
12,
80,
4293,
13,
328,
4293,
812,
734,
63,
80,
4293,
65,
273,
585,
734,
309,
6697,
774,
20019,
30,
400,
273,
365,
18,
14222,
1318,
18,
588,
9769,
2277,
2
] |
print wrap_text_in_a_box(title='prova', body=' 123 prova.\n Vediamo come si indenta', horiz_sep='-', style_name='no_border', max_col=20, tab_num=1)
|
print wrap_text_in_a_box(title='prova', body=' 123 prova.\n Vediamo come si indenta', horiz_sep='-', style='no_border', max_col=20, tab_num=1)
|
def wrap_text_in_a_box(body='', title='', style_name='DEFAULT', **args): """Return a nicely formatted text box: e.g. ****************** ** title ** **--------------** ** body ** ****************** Indentation and newline are respected. @param body the main text @param title an optional title @param style_name the name of one of the style in CFG_WRAP_STYLES. By default is set to DEFAULT. You can further tune the desired style by setting various optional parameters: @param horiz_sep a string that is repeated in order to produce a separator row between the title and the body (if needed) @param max_col the maximum number of coulmns used by the box (including indentation) @param tab_str a string to represent indentation @param tab_num the number of leveles of indentations @param border a tuple of 8 element in the form (tl, t, tr, l, r, bl, b, br) of strings that represent the different corners and sides of the box @param prefix a prefix string added before the box @param suffix a suffix string added after the box @param force_horiz True in order to print the horizontal line even when there is no title e.g.: print wrap_text_in_a_box(title='prova', body=' 123 prova.\n Vediamo come si indenta', horiz_sep='-', style_name='no_border', max_col=20, tab_num=1) prova ---------------- 123 prova. Vediamo come si indenta """ def _wrap_row(row, max_col): """Wrap a single row""" spaces = _RE_BEGINNING_SPACES.match(row).group() row = row[len(spaces):] return wrap(row, initial_indent=spaces, subsequent_indent=spaces, width=max_col) style = CFG_WRAP_TEXT_IN_A_BOX_STYLES['DEFAULT'] if CFG_WRAP_TEXT_IN_A_BOX_STYLES.has_key(style_name): style.update(CFG_WRAP_TEXT_IN_A_BOX_STYLES[style_name]) style.update(args) horiz_sep = style['horiz_sep'] border = style['border'] tab_str = style['tab_str'] * style['tab_num'] max_col = style['max_col'] - len(border[3]) - len(border[4]) - len(tab_str) prefix = style['prefix'] suffix = style['suffix'] force_horiz = style['force_horiz'] tmp_rows = [_wrap_row(row, max_col) for row in body.split('\n')] body_rows = [] for rows in tmp_rows: body_rows += rows tmp_rows = [_wrap_row(row, max_col) for row in title.split('\n')] title_rows = [] for rows in tmp_rows: title_rows += rows max_col = max([len(row) for row in body_rows + title_rows]) mid_top_border_len = max_col + len(border[3]) + len(border[4]) - len(border[0]) - len(border[2]) mid_bottom_border_len = max_col + len(border[3]) + len(border[4]) - len(border[5]) - len(border[7]) top_border = border[0] + (border[1] * mid_top_border_len)[:mid_top_border_len] + border[2] bottom_border = border[5] + (border[6] * mid_bottom_border_len)[:mid_bottom_border_len] + border[7] horiz_line = border[3] + (horiz_sep * max_col)[:max_col] + border[4] title_rows = [tab_str + border[3] + row + ' ' * (max_col - len(row)) + border[4] for row in title_rows] body_rows = [tab_str + border[3] + row + ' ' * (max_col - len(row)) + border[4] for row in body_rows] ret = [] if top_border: ret += [tab_str + top_border] ret += title_rows if title_rows or force_horiz: ret += [tab_str + horiz_line] ret += body_rows if bottom_border: ret += [tab_str + bottom_border] return prefix + '\n'.join(ret) + suffix
|
cb951b23235794474c152d16125d047c3cdbb82b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1780/cb951b23235794474c152d16125d047c3cdbb82b/textutils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2193,
67,
955,
67,
267,
67,
69,
67,
2147,
12,
3432,
2218,
2187,
2077,
2218,
2187,
2154,
67,
529,
2218,
5280,
2187,
2826,
1968,
4672,
3536,
990,
279,
11562,
2357,
4955,
977,
3919,
30,
425,
18,
75,
18,
380,
2751,
14,
2826,
225,
2077,
4202,
2826,
2826,
17908,
636,
2826,
225,
1417,
3639,
2826,
380,
2751,
14,
225,
28653,
367,
471,
9472,
854,
400,
1789,
18,
632,
891,
1417,
326,
2774,
977,
632,
891,
2077,
392,
3129,
2077,
632,
891,
2154,
67,
529,
326,
508,
434,
1245,
434,
326,
2154,
316,
7577,
67,
27664,
67,
882,
61,
11386,
18,
2525,
805,
353,
444,
358,
3331,
18,
225,
4554,
848,
9271,
268,
7556,
326,
6049,
2154,
635,
3637,
11191,
3129,
1472,
30,
632,
891,
366,
5331,
67,
10814,
279,
533,
716,
353,
12533,
316,
1353,
358,
11402,
279,
4182,
1027,
3086,
326,
2077,
471,
326,
1417,
261,
430,
3577,
13,
632,
891,
943,
67,
1293,
326,
4207,
1300,
434,
276,
1003,
81,
2387,
1399,
635,
326,
3919,
261,
31348,
12018,
13,
632,
891,
3246,
67,
701,
279,
533,
358,
2406,
12018,
632,
891,
3246,
67,
2107,
326,
1300,
434,
1801,
281,
434,
3504,
1012,
632,
891,
5795,
279,
3193,
434,
1725,
930,
316,
326,
646,
261,
6172,
16,
268,
16,
433,
16,
328,
16,
436,
16,
2811,
16,
324,
16,
5186,
13,
434,
2064,
716,
2406,
326,
3775,
18398,
471,
22423,
434,
326,
3919,
632,
891,
1633,
279,
1633,
533,
3096,
1865,
326,
3919,
632,
891,
3758,
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,
2193,
67,
955,
67,
267,
67,
69,
67,
2147,
12,
3432,
2218,
2187,
2077,
2218,
2187,
2154,
67,
529,
2218,
5280,
2187,
2826,
1968,
4672,
3536,
990,
279,
11562,
2357,
4955,
977,
3919,
30,
425,
18,
75,
18,
380,
2751,
14,
2826,
225,
2077,
4202,
2826,
2826,
17908,
636,
2826,
225,
1417,
3639,
2826,
380,
2751,
14,
225,
28653,
367,
471,
9472,
854,
400,
1789,
18,
632,
891,
1417,
326,
2774,
977,
632,
891,
2077,
392,
3129,
2077,
632,
891,
2154,
67,
529,
326,
508,
434,
1245,
434,
326,
2154,
316,
7577,
67,
27664,
67,
882,
61,
11386,
18,
2525,
805,
353,
444,
358,
3331,
18,
225,
4554,
848,
9271,
268,
7556,
326,
6049,
2154,
635,
3637,
11191,
2
] |
self.resize(100,100)
|
def adjustSize(self): self.ensurePolished() s = self.sizeHint() self.resize(s) def sizeHint(self): s = self.leftWidgetPart.sizeHint() if self.optimized and not self.mainArea.isHidden(): s.setWidth(s.width() + self.mainArea.sizeHint().width()) return s
|
def __init__(self, parent=None, signalManager = None): OWWidget.__init__(self, parent, signalManager, 'k-Means Clustering')
|
b5200d400a472ae12720d7772ce15d5dcc3a721d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6366/b5200d400a472ae12720d7772ce15d5dcc3a721d/OWKMeans.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
33,
7036,
16,
4277,
1318,
273,
599,
4672,
18233,
4609,
16186,
2738,
972,
12,
2890,
16,
982,
16,
4277,
1318,
16,
296,
79,
17,
4667,
634,
29103,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
elif self.fFreeManip:
|
elif self.fFreeManip and not self.useSeparateScaleHandles:
|
def manipulateObjectTask(self, state): if self.fScaling1D: self.scale1D(state) elif self.fScaling3D: self.scale3D(state) else: # Widget takes precedence if self.constraint: type = self.constraint[2:] if base.direct.fControl and not self.currEditTypes & EDIT_TYPE_UNSCALABLE: if type == 'post': # [gjeon] non-uniform scaling self.fScaling1D = 1 self.scale1D(state) else: # [gjeon] uniform scaling self.fScaling3D = 1 self.scale3D(state) else: if type == 'post' and not self.currEditTypes & EDIT_TYPE_UNMOVABLE: self.xlate1D(state) elif type == 'disc' and not self.currEditTypes & EDIT_TYPE_UNMOVABLE: self.xlate2D(state) elif type == 'ring' and not self.currEditTypes & EDIT_TYPE_UNROTATABLE: self.rotate1D(state) # No widget interaction, determine free manip mode elif self.fFreeManip: # If we've been scaling and changed modes, reset object handles if 0 and (self.fScaling1D or self.fScaling3D) and (not base.direct.fAlt): if hasattr(base.direct, 'widget'): base.direct.widget.transferObjectHandleScale() else: self.objectHandles.transferObjectHandlesScale()
|
b66a795efbe737fd1c72c92a17e4de984a14e0f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/b66a795efbe737fd1c72c92a17e4de984a14e0f7/DirectManipulation.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
12,
2019,
13,
469,
30,
468,
11103,
5530,
14172,
309,
365,
18,
13364,
30,
618,
273,
365,
18,
13364,
63,
22,
26894,
309,
1026,
18,
7205,
18,
74,
3367,
471,
486,
365,
18,
17016,
4666,
2016,
473,
21307,
67,
2399,
67,
2124,
2312,
1013,
2782,
30,
309,
618,
422,
296,
2767,
4278,
468,
306,
75,
78,
73,
265,
65,
1661,
17,
24120,
10612,
365,
18,
74,
8471,
21,
40,
273,
404,
365,
18,
5864,
21,
40,
12,
2019,
13,
469,
30,
468,
306,
75,
78,
73,
265,
65,
10823,
10612,
365,
18,
74,
8471,
23,
40,
273,
404,
365,
18,
5864,
23,
40,
12,
2019,
13,
469,
30,
309,
618,
422,
296,
2767,
11,
471,
486,
365,
18,
17016,
4666,
2016,
473,
21307,
67,
2399,
67,
2124,
5980,
58,
2782,
30,
365,
18,
18402,
340,
21,
40,
12,
2019,
13,
1327,
618,
422,
296,
2251,
71,
11,
471,
486,
365,
18,
17016,
4666,
2016,
473,
21307,
67,
2399,
67,
2124,
5980,
58,
2782,
30,
365,
18,
18402,
340,
22,
40,
12,
2019,
13,
1327,
618,
422,
296,
8022,
11,
471,
486,
365,
18,
17016,
4666,
2016,
473,
21307,
67,
2399,
67,
2124,
1457,
56,
789,
2782,
30,
365,
18,
20342,
21,
40,
12,
2019,
13,
468,
2631,
3604,
13581,
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,
28286,
921,
2174,
12,
2890,
16,
919,
4672,
309,
365,
18,
74,
8471,
21,
40,
30,
365,
18,
5864,
21,
40,
12,
2019,
13,
1327,
365,
18,
74,
8471,
23,
40,
30,
365,
18,
5864,
23,
40,
12,
2019,
13,
469,
30,
468,
11103,
5530,
14172,
309,
365,
18,
13364,
30,
618,
273,
365,
18,
13364,
63,
22,
26894,
309,
1026,
18,
7205,
18,
74,
3367,
471,
486,
365,
18,
17016,
4666,
2016,
473,
21307,
67,
2399,
67,
2124,
2312,
1013,
2782,
30,
309,
618,
422,
296,
2767,
4278,
468,
306,
75,
78,
73,
265,
65,
1661,
17,
24120,
10612,
365,
18,
74,
8471,
21,
40,
273,
404,
365,
18,
5864,
21,
40,
12,
2019,
13,
469,
30,
2
] |
missing_files = self._check_manifest()
|
missing_files = self.builder.check_manifest()
|
def package(self): bundle_zip = zipfile.ZipFile(self.package_path, 'w', zipfile.ZIP_DEFLATED) missing_files = self._check_manifest() if missing_files: logging.warn('These files are not included in the manifest ' \ 'and will not be present in the bundle:\n\n' + '\n'.join(missing_files) + '\n\nUse fix_manifest if you want to add them.')
|
aecba37572ec3baab7f1e846b19e09650600ccc2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3114/aecba37572ec3baab7f1e846b19e09650600ccc2/bundlebuilder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
12,
2890,
4672,
3440,
67,
4450,
273,
18823,
18,
29394,
12,
2890,
18,
5610,
67,
803,
16,
296,
91,
2187,
18823,
18,
13951,
67,
12904,
48,
6344,
13,
225,
3315,
67,
2354,
273,
365,
18,
9574,
18,
1893,
67,
14357,
1435,
309,
3315,
67,
2354,
30,
2907,
18,
8935,
2668,
29690,
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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2181,
12,
2890,
4672,
3440,
67,
4450,
273,
18823,
18,
29394,
12,
2890,
18,
5610,
67,
803,
16,
296,
91,
2187,
18823,
18,
13951,
67,
12904,
48,
6344,
13,
225,
3315,
67,
2354,
273,
365,
18,
9574,
18,
1893,
67,
14357,
1435,
309,
3315,
67,
2354,
30,
2907,
18,
8935,
2668,
29690,
1390,
854,
486,
5849,
316,
326,
5643,
296,
521,
296,
464,
903,
486,
506,
3430,
316,
326,
3440,
5581,
82,
64,
82,
11,
397,
2337,
82,
10332,
5701,
12,
7337,
67,
2354,
13,
397,
2337,
82,
64,
82,
3727,
2917,
67,
14357,
309,
1846,
2545,
358,
527,
2182,
1093,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print 'INDENT'
|
def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) pid = False for idx, menu_elem in enumerate(m_l): if pid: cr.execute('select id from ir_ui_menu where parent_id=%d and name=%s', (pid, menu_elem)) else: cr.execute('select id from ir_ui_menu where parent_id is null and name=%s', (menu_elem,)) res = cr.fetchone() if idx==len(m_l)-1: # we are at the last menu element/level (it's a leaf) values = {'parent_id': pid,'name':menu_elem}
|
29a1e47fb1295ff56a6f74368f7337fbbb92177b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12853/29a1e47fb1295ff56a6f74368f7337fbbb92177b/convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
80,
273,
852,
12,
6939,
16,
4114,
67,
266,
18,
4939,
12,
3927,
18,
588,
1499,
2932,
529,
20387,
3015,
2668,
3158,
28,
11,
20349,
4231,
273,
1083,
364,
2067,
16,
3824,
67,
10037,
316,
4241,
12,
81,
67,
80,
4672,
309,
4231,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
5095,
72,
471,
508,
5095,
87,
2187,
261,
6610,
16,
3824,
67,
10037,
3719,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
353,
446,
471,
508,
5095,
87,
2187,
261,
5414,
67,
10037,
16,
3719,
400,
273,
4422,
18,
5754,
476,
1435,
309,
2067,
631,
1897,
12,
81,
67,
80,
24950,
21,
30,
468,
732,
854,
622,
326,
1142,
3824,
930,
19,
2815,
261,
305,
1807,
279,
7839,
13,
924,
273,
13666,
2938,
67,
350,
4278,
4231,
11189,
529,
4278,
5414,
67,
10037,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
80,
273,
852,
12,
6939,
16,
4114,
67,
266,
18,
4939,
12,
3927,
18,
588,
1499,
2932,
529,
20387,
3015,
2668,
3158,
28,
11,
20349,
4231,
273,
1083,
364,
2067,
16,
3824,
67,
10037,
316,
4241,
12,
81,
67,
80,
4672,
309,
4231,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
9482,
67,
4881,
67,
5414,
1625,
982,
67,
350,
5095,
72,
471,
508,
5095,
87,
2187,
261,
6610,
16,
3824,
67,
10037,
3719,
469,
30,
4422,
18,
8837,
2668,
4025,
612,
628,
2
] |
|
self.clientInstance.expecting_content = True
|
def browse(self): self.sendMessage('browse') self.clientInstance.expecting_content = True
|
7de8cf50d778dc744d46dcafd41be5f30589d585 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11626/7de8cf50d778dc744d46dcafd41be5f30589d585/buzztard_storage.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
12,
2890,
4672,
365,
18,
4661,
1079,
2668,
25731,
6134,
365,
18,
2625,
1442,
18,
12339,
310,
67,
1745,
273,
1053,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
|
childUpdate=True)
|
childUpdate=True, connection=dbconn)
|
def fetchChildren(self): """Prefetch childrens' data
|
1ee59885eef6a956b50aafe397aa7c7fd9291ba7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8798/1ee59885eef6a956b50aafe397aa7c7fd9291ba7/iteration.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
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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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
4212,
12,
2890,
4672,
3536,
25591,
2325,
87,
11,
501,
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
] |
if args[0][-3:] != ".py": usage('the script name must have a .py suffix')
|
def main(): # overridable context prefix = None # settable with -p option exec_prefix = None # settable with -P option extensions = [] path = sys.path modargs = 0 debug = 1 odir = '' win = sys.platform[:3] == 'win' # modules that are imported by the Python runtime implicits = ["site", "exceptions"] # output files frozen_c = 'frozen.c' config_c = 'config.c' target = 'a.out' # normally derived from script name makefile = 'Makefile' subsystem = 'console' # parse command line try: opts, args = getopt.getopt(sys.argv[1:], 'deh:mo:p:P:qs:w') except getopt.error, msg: usage('getopt error: ' + str(msg)) # proces option arguments for o, a in opts: if o == '-h': print __doc__ return if o == '-d': debug = debug + 1 if o == '-e': extensions.append(a) if o == '-m': modargs = 1 if o == '-o': odir = a if o == '-p': prefix = a if o == '-P': exec_prefix = a if o == '-q': debug = 0 if o == '-w': win = not win if o == '-s': if not win: usage("-s subsystem option only on Windows") subsystem = a # default prefix and exec_prefix if not exec_prefix: if prefix: exec_prefix = prefix else: exec_prefix = sys.exec_prefix if not prefix: prefix = sys.prefix # determine whether -p points to the Python source tree ishome = os.path.exists(os.path.join(prefix, 'Include', 'pythonrun.h')) # locations derived from options version = sys.version[:3] if ishome: print "(Using Python source directory)" binlib = exec_prefix incldir = os.path.join(prefix, 'Include') config_c_in = os.path.join(prefix, 'Modules', 'config.c.in') frozenmain_c = os.path.join(prefix, 'Python', 'frozenmain.c') makefile_in = os.path.join(exec_prefix, 'Modules', 'Makefile') else: binlib = os.path.join(exec_prefix, 'lib', 'python%s' % version, 'config') incldir = os.path.join(prefix, 'include', 'python%s' % version) config_c_in = os.path.join(binlib, 'config.c.in') frozenmain_c = os.path.join(binlib, 'frozenmain.c') makefile_in = os.path.join(binlib, 'Makefile') supp_sources = [] defines = [] includes = ['-I' + incldir, '-I' + binlib] # sanity check of directories and files for dir in [prefix, exec_prefix, binlib, incldir] + extensions: if not os.path.exists(dir): usage('needed directory %s not found' % dir) if not os.path.isdir(dir): usage('%s: not a directory' % dir) if win: files = supp_sources else: files = [config_c_in, makefile_in] + supp_sources for file in supp_sources: if not os.path.exists(file): usage('needed file %s not found' % file) if not os.path.isfile(file): usage('%s: not a plain file' % file) if not win: for dir in extensions: setup = os.path.join(dir, 'Setup') if not os.path.exists(setup): usage('needed file %s not found' % setup) if not os.path.isfile(setup): usage('%s: not a plain file' % setup) # check that enough arguments are passed if not args: usage('at least one filename argument required') # check that the script name ends in ".py" if args[0][-3:] != ".py": usage('the script name must have a .py suffix') # check that file arguments exist for arg in args: if not os.path.exists(arg): usage('argument %s not found' % arg) if not os.path.isfile(arg): usage('%s: not a plain file' % arg) # process non-option arguments scriptfile = args[0] modules = args[1:] # derive target name from script name base = os.path.basename(scriptfile) base, ext = os.path.splitext(base) if base: if base != scriptfile: target = base else: target = base + '.bin' # handle -o option base_frozen_c = frozen_c base_config_c = config_c base_target = target if odir and not os.path.isdir(odir): try: os.mkdir(odir) print "Created output directory", odir except os.error, msg: usage('%s: mkdir failed (%s)' % (odir, str(msg))) if odir: frozen_c = os.path.join(odir, frozen_c) config_c = os.path.join(odir, config_c) target = os.path.join(odir, target) makefile = os.path.join(odir, makefile) # Actual work starts here... # collect all modules of the program mf = modulefinder.ModuleFinder(path, debug) for mod in implicits: mf.import_hook(mod) for mod in modules: if mod == '-m': modargs = 1 continue if modargs: if mod[-2:] == '.*': mf.import_hook(mod[:-2], None, ["*"]) else: mf.import_hook(mod) else: mf.load_file(mod) mf.run_script(scriptfile) if debug > 0: mf.report() print dict = mf.modules # generate output for frozen modules backup = frozen_c + '~' try: os.rename(frozen_c, backup) except os.error: backup = None outfp = open(frozen_c, 'w') try: makefreeze.makefreeze(outfp, dict, debug) if win and subsystem == 'windows': import winmakemakefile outfp.write(winmakemakefile.WINMAINTEMPLATE) finally: outfp.close() if backup: if cmp.cmp(backup, frozen_c): sys.stderr.write('%s not changed, not written\n' % frozen_c) os.rename(backup, frozen_c) # windows gets different treatment if win: # Taking a shortcut here... import winmakemakefile outfp = open(makefile, 'w') try: winmakemakefile.makemakefile(outfp, locals(), [frozenmain_c, frozen_c], target) finally: outfp.close() return # generate config.c and Makefile builtins = [] unknown = [] mods = dict.keys() mods.sort() for mod in mods: if dict[mod].__code__: continue if not dict[mod].__file__: builtins.append(mod) else: unknown.append(mod) addfiles = [] if unknown: addfiles, addmods = \ checkextensions.checkextensions(unknown, extensions) for mod in addmods: unknown.remove(mod) builtins = builtins + addmods if unknown: sys.stderr.write('Warning: unknown modules remain: %s\n' % string.join(unknown)) builtins.sort() infp = open(config_c_in) backup = config_c + '~' try: os.rename(config_c, backup) except os.error: backup = None outfp = open(config_c, 'w') try: makeconfig.makeconfig(infp, outfp, builtins) finally: outfp.close() infp.close() if backup: if cmp.cmp(backup, config_c): sys.stderr.write('%s not changed, not written\n' % config_c) os.rename(backup, config_c) cflags = defines + includes + ['$(OPT)'] libs = [os.path.join(binlib, 'libpython$(VERSION).a')] somevars = {} if os.path.exists(makefile_in): makevars = parsesetup.getmakevars(makefile_in) for key in makevars.keys(): somevars[key] = makevars[key] somevars['CFLAGS'] = string.join(cflags) # override files = ['$(OPT)', '$(LDFLAGS)', base_config_c, base_frozen_c] + \ supp_sources + addfiles + libs + \ ['$(MODLIBS)', '$(LIBS)', '$(SYSLIBS)'] backup = makefile + '~' try: os.rename(makefile, backup) except os.error: backup = None outfp = open(makefile, 'w') try: makemakefile.makemakefile(outfp, somevars, files, base_target) finally: outfp.close() if backup: if not cmp.cmp(backup, makefile): print 'previous Makefile saved as', backup else: sys.stderr.write('%s not changed, not written\n' % makefile) os.rename(backup, makefile) # Done! if odir: print 'Now run "make" in', odir, print 'to build the target:', base_target else: print 'Now run "make" to build the target:', base_target
|
79038fb8fc97421b1124fbaf39b7cb73cb67856a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/79038fb8fc97421b1124fbaf39b7cb73cb67856a/freeze.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
681,
1968,
273,
374,
1198,
273,
404,
320,
1214,
273,
875,
5657,
273,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
11,
225,
468,
4381,
716,
854,
9101,
635,
326,
6600,
3099,
709,
1780,
1282,
273,
8247,
4256,
3113,
315,
11855,
11929,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
10792,
468,
15849,
10379,
628,
2728,
508,
1221,
768,
273,
296,
6464,
768,
11,
15359,
273,
296,
8698,
11,
225,
468,
1109,
1296,
980,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
323,
76,
30,
8683,
30,
84,
30,
52,
30,
12926,
30,
91,
6134,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
4084,
2668,
588,
3838,
555,
30,
296,
397,
609,
12,
3576,
3719,
225,
468,
450,
764,
1456,
1775,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,
2400,
76,
4278,
1172,
1001,
2434,
972,
327,
309,
320,
422,
2400,
72,
4278,
1198,
273,
1198,
397,
404,
309,
320,
422,
2400,
73,
4278,
4418,
18,
6923,
12,
69,
13,
309,
320,
422,
2400,
81,
4278,
681,
1968,
273,
404,
309,
320,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
468,
5713,
27621,
819,
1633,
273,
599,
15604,
468,
444,
2121,
598,
300,
84,
1456,
1196,
67,
3239,
273,
599,
5375,
468,
444,
2121,
598,
300,
52,
1456,
4418,
273,
5378,
589,
273,
2589,
18,
803,
681,
1968,
273,
374,
1198,
273,
404,
320,
1214,
273,
875,
5657,
273,
2589,
18,
9898,
10531,
23,
65,
422,
296,
8082,
11,
225,
468,
4381,
716,
854,
9101,
635,
326,
6600,
3099,
709,
1780,
1282,
273,
8247,
4256,
3113,
315,
11855,
11929,
225,
468,
876,
1390,
12810,
67,
71,
273,
296,
28138,
18,
71,
11,
642,
67,
71,
273,
296,
1425,
18,
71,
11,
1018,
273,
296,
69,
18,
659,
11,
10792,
468,
15849,
10379,
628,
2728,
508,
1221,
2
] |
|
source_factory = env.fs.Entry, multi = 1)
|
source_factory = env.fs.Entry )
|
def copy_action_str(target, source, env): return env.subst_target_source(env['COPYSTR'], 0, target, source)
|
faff0834984101a38b4a4d63c58811f961ac5754 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/faff0834984101a38b4a4d63c58811f961ac5754/filesystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1128,
67,
701,
12,
3299,
16,
1084,
16,
1550,
4672,
327,
1550,
18,
1717,
334,
67,
3299,
67,
3168,
12,
3074,
3292,
24875,
3902,
17337,
374,
16,
1018,
16,
1084,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
1128,
67,
701,
12,
3299,
16,
1084,
16,
1550,
4672,
327,
1550,
18,
1717,
334,
67,
3299,
67,
3168,
12,
3074,
3292,
24875,
3902,
17337,
374,
16,
1018,
16,
1084,
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
] |
Check that sigma is ``weight 1''. [This test is disabled until trac \ exactly the same answer. Currently there is some precision loss.] sage.: f = EllipticCurve([-1, 3]).padic_sigma(5, 10) sage.: g = EllipticCurve([-1*(2**4), 3*(2**6)]).padic_sigma(5, 10) sage.: t = f.parent().gen() sage.: f(2*t)/2 sage.: g (1 + O(5^10))*t + (4 + 3*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 3*5^6 + 5^7 + O(5^8))*t^3 + (3 + 3*5^2 + 5^4 + 2*5^5 + O(5^6))*t^5 + (4 + 5 + 3*5^3 + O(5^4))*t^7 + (4 + 2*5 + O(5^2))*t^9 + O(t^11)
|
Check that sigma is ``weight 1''. sage: f = EllipticCurve([-1, 3]).padic_sigma(5, 10) sage: g = EllipticCurve([-1*(2**4), 3*(2**6)]).padic_sigma(5, 10) sage: t = f.parent().gen() sage: f(2*t)/2 (1 + O(5^10))*t + (4 + 3*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 3*5^6 + 5^7 + O(5^8))*t^3 + (3 + 3*5^2 + 5^4 + 2*5^5 + O(5^6))*t^5 + (4 + 5 + 3*5^3 + O(5^4))*t^7 + (4 + 2*5 + O(5^2))*t^9 + O(t^11) sage: g (1 + O(5^10))*t + (4 + 3*5 + 3*5^2 + 3*5^3 + 4*5^4 + 4*5^5 + 3*5^6 + 5^7 + O(5^8))*t^3 + (3 + 3*5^2 + 5^4 + 2*5^5 + O(5^6))*t^5 + (4 + 5 + 3*5^3 + O(5^4))*t^7 + (4 + 2*5 + O(5^2))*t^9 + O(t^11)
|
def padic_sigma(self, p, N=20, E2=None, check=False, check_hypotheses=True): r""" Computes the p-adic sigma function with respect to the standard invariant differential $dx/(2y + a_1 x + a_3)$, as defined by Mazur and Tate, as a power series in the usual uniformiser $t$ at the origin.
|
e901b45b607d92ed1b9df94a3e96aead8ff614d6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/e901b45b607d92ed1b9df94a3e96aead8ff614d6/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
13201,
12,
2890,
16,
293,
16,
423,
33,
3462,
16,
512,
22,
33,
7036,
16,
866,
33,
8381,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
293,
17,
20333,
7299,
445,
598,
8762,
358,
326,
4529,
22514,
15221,
2001,
271,
13437,
19,
12,
22,
93,
397,
279,
67,
21,
619,
397,
279,
67,
23,
21877,
16,
487,
2553,
635,
490,
1561,
295,
471,
399,
340,
16,
487,
279,
7212,
4166,
316,
326,
25669,
10823,
15914,
271,
88,
8,
622,
326,
4026,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
13201,
12,
2890,
16,
293,
16,
423,
33,
3462,
16,
512,
22,
33,
7036,
16,
866,
33,
8381,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
293,
17,
20333,
7299,
445,
598,
8762,
358,
326,
4529,
22514,
15221,
2001,
271,
13437,
19,
12,
22,
93,
397,
279,
67,
21,
619,
397,
279,
67,
23,
21877,
16,
487,
2553,
635,
490,
1561,
295,
471,
399,
340,
16,
487,
279,
7212,
4166,
316,
326,
25669,
10823,
15914,
271,
88,
8,
622,
326,
4026,
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
] |
o = self.model.get(oid)
|
o = self.objectstore.get(self.model, oid)
|
def invalid_get_on_delete(self): #"""Test that GET requests on delete action don't modify""" # create some data o = self.model(**self.make_model_data()) o.save() o.flush()
|
285f8f164425809b5b13fb7f0e8ffbb46bc88d69 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12856/285f8f164425809b5b13fb7f0e8ffbb46bc88d69/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
67,
588,
67,
265,
67,
3733,
12,
2890,
4672,
468,
8395,
4709,
716,
4978,
3285,
603,
1430,
1301,
2727,
1404,
5612,
8395,
225,
468,
752,
2690,
501,
320,
273,
365,
18,
2284,
12,
636,
2890,
18,
6540,
67,
2284,
67,
892,
10756,
320,
18,
5688,
1435,
320,
18,
11330,
1435,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2057,
67,
588,
67,
265,
67,
3733,
12,
2890,
4672,
468,
8395,
4709,
716,
4978,
3285,
603,
1430,
1301,
2727,
1404,
5612,
8395,
225,
468,
752,
2690,
501,
320,
273,
365,
18,
2284,
12,
636,
2890,
18,
6540,
67,
2284,
67,
892,
10756,
320,
18,
5688,
1435,
320,
18,
11330,
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
] |
if isinstance(arg1, Graph): if len(args) == 0:
|
import networkx if isinstance(arg1, BipartiteGraph): Graph.__init__(self, arg1, *args, **kwds) self.left, self.right = arg1.left, arg1.right elif isinstance(arg1, (networkx.XGraph, networkx.Graph)): Graph.__init__(self, arg1, *args, **kwds) if hasattr(arg1, 'node_type'): self.left = [] self.right = [] for v in arg1.nodes_iter(): if arg1.node_type[v] == 'Bottom': self.left.append(v) elif arg1.node_type[v] == 'Top': self.right.append(v) else: raise TypeError("NetworkX node_type defies bipartite assumtion (is not 'Top' or 'Bottom')") else:
|
def __init__(self, *args, **kwds): r""" Bipartite graph.
|
b404ee282cda16be0b9bf0d21fd7c885e9c9f1b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b404ee282cda16be0b9bf0d21fd7c885e9c9f1b0/bipartite_graph.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
605,
5762,
1137,
2667,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
436,
8395,
605,
5762,
1137,
2667,
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
] |
return False
|
return 0
|
def has_strace(): """ Return True if this system has strace. """ if platform.system() == 'Windows': # even if windows has strace, it's probably a dodgy cygwin one return False try: subprocess.Popen('strace', stderr=subprocess.PIPE) return True except OSError: return False
|
1d735a32a20b769bb254cbbea726636f0643db07 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7381/1d735a32a20b769bb254cbbea726636f0643db07/fabricate.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
701,
623,
13332,
3536,
2000,
1053,
309,
333,
2619,
711,
609,
623,
18,
3536,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
468,
5456,
309,
9965,
711,
609,
623,
16,
518,
1807,
8656,
279,
302,
369,
7797,
276,
4338,
8082,
1245,
327,
374,
775,
30,
6652,
18,
52,
3190,
2668,
701,
623,
2187,
4514,
33,
1717,
2567,
18,
27602,
13,
327,
1053,
1335,
10002,
30,
327,
1083,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
701,
623,
13332,
3536,
2000,
1053,
309,
333,
2619,
711,
609,
623,
18,
3536,
309,
4072,
18,
4299,
1435,
422,
296,
10399,
4278,
468,
5456,
309,
9965,
711,
609,
623,
16,
518,
1807,
8656,
279,
302,
369,
7797,
276,
4338,
8082,
1245,
327,
374,
775,
30,
6652,
18,
52,
3190,
2668,
701,
623,
2187,
4514,
33,
1717,
2567,
18,
27602,
13,
327,
1053,
1335,
10002,
30,
327,
1083,
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
] |
item = RSSChannel(rssURL,None,self._container,self._kind)
|
item = RSSChannel(None,self._container,self._kind) item.initAttributes(rssURL)
|
def newItem(self,rssURL): item = RSSChannel(rssURL,None,self._container,self._kind) return item
|
533c988eead9389d73263be4089bce53f5de8e84 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/533c988eead9389d73263be4089bce53f5de8e84/RSSData.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26536,
12,
2890,
16,
25151,
1785,
4672,
761,
273,
31481,
2909,
12,
7036,
16,
2890,
6315,
3782,
16,
2890,
6315,
9224,
13,
761,
18,
2738,
2498,
12,
25151,
1785,
13,
327,
761,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26536,
12,
2890,
16,
25151,
1785,
4672,
761,
273,
31481,
2909,
12,
7036,
16,
2890,
6315,
3782,
16,
2890,
6315,
9224,
13,
761,
18,
2738,
2498,
12,
25151,
1785,
13,
327,
761,
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
] |
"""
|
"""
|
def setParameter(self, parameter, value): """ Created: 18.01.2007, KP Description: Set a value for the parameter """ oldval = self.parameters.get(parameter, "ThisIsABadValueThatNoOneWillEverUse") ProcessingFilter.ProcessingFilter.setParameter(self, parameter, value) if self.initDone and value != oldval: lib.messenger.send(None, "data_changed", 0)
|
6d7b572696d4ecdce2049b45a6e109836f3272c9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2877/6d7b572696d4ecdce2049b45a6e109836f3272c9/SegmentationFilters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
6549,
18,
1611,
18,
6976,
27,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
225,
1592,
1125,
273,
365,
18,
3977,
18,
588,
12,
6775,
16,
315,
2503,
2520,
2090,
361,
620,
18163,
2279,
3335,
13670,
41,
502,
3727,
7923,
19652,
1586,
18,
7798,
1586,
18,
542,
1662,
12,
2890,
16,
1569,
16,
460,
13,
309,
365,
18,
2738,
7387,
471,
460,
480,
1592,
1125,
30,
2561,
18,
81,
18912,
18,
4661,
12,
7036,
16,
315,
892,
67,
6703,
3113,
374,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6690,
12,
2890,
16,
1569,
16,
460,
4672,
3536,
12953,
30,
6549,
18,
1611,
18,
6976,
27,
16,
1475,
52,
6507,
30,
1000,
279,
460,
364,
326,
1569,
3536,
225,
1592,
1125,
273,
365,
18,
3977,
18,
588,
12,
6775,
16,
315,
2503,
2520,
2090,
361,
620,
18163,
2279,
3335,
13670,
41,
502,
3727,
7923,
19652,
1586,
18,
7798,
1586,
18,
542,
1662,
12,
2890,
16,
1569,
16,
460,
13,
309,
365,
18,
2738,
7387,
471,
460,
480,
1592,
1125,
30,
2561,
18,
81,
18912,
18,
4661,
12,
7036,
16,
315,
892,
67,
6703,
3113,
374,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
test_and_expecation = line.split('=')
|
test_and_expectation = line.split('=')
|
def _GetPlatformUpdateAction(self, line, tests, platform): """Check the platform option and return the action needs to be taken.
|
64e0ec0be0663c7f520c6cb9728c055edc916a89 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9392/64e0ec0be0663c7f520c6cb9728c055edc916a89/test_expectations.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
967,
8201,
1891,
1803,
12,
2890,
16,
980,
16,
7434,
16,
4072,
4672,
3536,
1564,
326,
4072,
1456,
471,
327,
326,
1301,
4260,
358,
506,
9830,
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
] |
self.Logger.error("Need secondary source"); return(False);
|
raise pyDCPU.ModuleSetup("No secondary source.");
|
def setup(self): self.Logger.info("Setup Agilent 5462X Module"); if not self.Parameters.has_key('PSource'): self.Logger.error("Need primary source"); return(False); if not self.Parameters.has_key('SSource'): self.Logger.error("Need secondary source"); return(False); self.__Source = LibAgi.Source(self.Parameters['PSource'], self.Parameters['SSource']); if not self.__Source.IsValid(): self.Logger.error("Invalid source format"); return(False); return(True);
|
2797f7cc5dfc35cdc1823b3697093c4c7e49463b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2439/2797f7cc5dfc35cdc1823b3697093c4c7e49463b/AGI54622A.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
365,
18,
3328,
18,
1376,
2932,
7365,
5495,
8125,
1381,
8749,
22,
60,
5924,
8863,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
52,
1830,
11,
4672,
365,
18,
3328,
18,
1636,
2932,
14112,
3354,
1084,
8863,
327,
12,
8381,
1769,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
1260,
552,
11,
4672,
1002,
2395,
40,
15222,
18,
3120,
7365,
2932,
2279,
9946,
1084,
1199,
1769,
365,
16186,
1830,
273,
10560,
2577,
77,
18,
1830,
12,
2890,
18,
2402,
3292,
52,
1830,
17337,
365,
18,
2402,
3292,
1260,
552,
3546,
1769,
309,
486,
365,
16186,
1830,
18,
20536,
13332,
365,
18,
3328,
18,
1636,
2932,
1941,
1084,
740,
8863,
327,
12,
8381,
1769,
327,
12,
5510,
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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,
1652,
3875,
12,
2890,
4672,
365,
18,
3328,
18,
1376,
2932,
7365,
5495,
8125,
1381,
8749,
22,
60,
5924,
8863,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
52,
1830,
11,
4672,
365,
18,
3328,
18,
1636,
2932,
14112,
3354,
1084,
8863,
327,
12,
8381,
1769,
309,
486,
365,
18,
2402,
18,
5332,
67,
856,
2668,
1260,
552,
11,
4672,
1002,
2395,
40,
15222,
18,
3120,
7365,
2932,
2279,
9946,
1084,
1199,
1769,
365,
16186,
1830,
273,
10560,
2577,
77,
18,
1830,
12,
2890,
18,
2402,
3292,
52,
1830,
17337,
365,
18,
2402,
3292,
1260,
552,
3546,
1769,
309,
486,
365,
16186,
1830,
18,
20536,
13332,
365,
18,
3328,
18,
1636,
2932,
1941,
1084,
740,
8863,
327,
2
] |
def _format_version(self, raw): return "Exchange Client " + raw
|
def _format_version(self, unused): return "Microsoft Exchange Client"
|
def _format_version(self, raw): # Data is just a version string, so prepend something to it. return "Exchange Client " + raw
|
5260a83e30dcebb2e7fb41f7518375c75c72150c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/5260a83e30dcebb2e7fb41f7518375c75c72150c/msgstore.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2139,
67,
1589,
12,
2890,
16,
1831,
4672,
468,
1910,
353,
2537,
279,
1177,
533,
16,
1427,
8254,
5943,
358,
518,
18,
327,
315,
11688,
2445,
315,
397,
1831,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2139,
67,
1589,
12,
2890,
16,
1831,
4672,
468,
1910,
353,
2537,
279,
1177,
533,
16,
1427,
8254,
5943,
358,
518,
18,
327,
315,
11688,
2445,
315,
397,
1831,
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
] |
def optional(self, content): if content.type.optional(): return True resolver = self.marshaller.resolver ancestry = resolver.top().ancestry for a in ancestry: if a.optional(): return True return False
|
def append(self, parent, content): """ Append the specified L{content} to the I{parent}. @param content: The content to append. @type content: L{Object} """ object = content.value if self.optional(content) and footprint(object) == 0: return child = self.node(content) parent.append(child) for item in object: cont = Content(tag=item[0], value=item[1]) Appender.append(self, child, cont)
|
119720611fabd315e50ed5481f636ad6ec82cfaa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5377/119720611fabd315e50ed5481f636ad6ec82cfaa/marshaller.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
12,
2890,
16,
982,
16,
913,
4672,
3536,
6181,
326,
1269,
511,
95,
1745,
97,
358,
326,
467,
95,
2938,
5496,
632,
891,
913,
30,
1021,
913,
358,
714,
18,
632,
723,
913,
30,
511,
95,
921,
97,
3536,
733,
273,
913,
18,
1132,
309,
365,
18,
10444,
12,
1745,
13,
471,
27556,
12,
1612,
13,
422,
374,
30,
327,
1151,
273,
365,
18,
2159,
12,
1745,
13,
982,
18,
6923,
12,
3624,
13,
364,
761,
316,
733,
30,
466,
273,
3697,
12,
2692,
33,
1726,
63,
20,
6487,
460,
33,
1726,
63,
21,
5717,
6181,
264,
18,
6923,
12,
2890,
16,
1151,
16,
466,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
714,
12,
2890,
16,
982,
16,
913,
4672,
3536,
6181,
326,
1269,
511,
95,
1745,
97,
358,
326,
467,
95,
2938,
5496,
632,
891,
913,
30,
1021,
913,
358,
714,
18,
632,
723,
913,
30,
511,
95,
921,
97,
3536,
733,
273,
913,
18,
1132,
309,
365,
18,
10444,
12,
1745,
13,
471,
27556,
12,
1612,
13,
422,
374,
30,
327,
1151,
273,
365,
18,
2159,
12,
1745,
13,
982,
18,
6923,
12,
3624,
13,
364,
761,
316,
733,
30,
466,
273,
3697,
12,
2692,
33,
1726,
63,
20,
6487,
460,
33,
1726,
63,
21,
5717,
6181,
264,
18,
6923,
12,
2890,
16,
1151,
16,
466,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
del sys.modules[modname]
|
del sys.modules['twisted.trial.test.importErrors']
|
def testImportError(self): self.failIfImportErrors = False # Add a module that fails to import if modname in sys.modules: # Previous tests might leave this hanging around in Python < 2.4. del sys.modules[modname] self.suite.addModule('twisted.trial.test.importErrors') self.suite.run()
|
1ec5dc43cd8c593ffdfe932f45f26fe75f89774e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/1ec5dc43cd8c593ffdfe932f45f26fe75f89774e/test_adapters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5010,
668,
12,
2890,
4672,
365,
18,
6870,
2047,
5010,
4229,
273,
1083,
468,
1436,
279,
1605,
716,
6684,
358,
1930,
309,
16037,
316,
2589,
18,
6400,
30,
468,
19369,
7434,
4825,
8851,
333,
366,
18183,
6740,
316,
6600,
411,
576,
18,
24,
18,
1464,
2589,
18,
6400,
3292,
11246,
25444,
18,
17493,
18,
3813,
18,
5666,
4229,
3546,
365,
18,
30676,
18,
1289,
3120,
2668,
11246,
25444,
18,
17493,
18,
3813,
18,
5666,
4229,
6134,
365,
18,
30676,
18,
2681,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5010,
668,
12,
2890,
4672,
365,
18,
6870,
2047,
5010,
4229,
273,
1083,
468,
1436,
279,
1605,
716,
6684,
358,
1930,
309,
16037,
316,
2589,
18,
6400,
30,
468,
19369,
7434,
4825,
8851,
333,
366,
18183,
6740,
316,
6600,
411,
576,
18,
24,
18,
1464,
2589,
18,
6400,
3292,
11246,
25444,
18,
17493,
18,
3813,
18,
5666,
4229,
3546,
365,
18,
30676,
18,
1289,
3120,
2668,
11246,
25444,
18,
17493,
18,
3813,
18,
5666,
4229,
6134,
365,
18,
30676,
18,
2681,
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
] |
w_result = self.code.func(%s)
|
try: w_result = self.code.func(%s) except KeyboardInterrupt: raise OperationError(self.space.w_KeyboardInterrupt, self.space.w_None) except MemoryError: raise OperationError(self.space.w_MemoryError, self.space.w_None) except RuntimeError, e: raise OperationError(self.space.w_RuntimeError, self.space.wrap("internal error" + str(e)))
|
def run(self): w_result = self.code.func(%s) if w_result is None: w_result = self.space.w_None return w_result
|
15b15f83d32f0e2c696388d3f8406e43a7ec6b20 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/15b15f83d32f0e2c696388d3f8406e43a7ec6b20/gateway.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
341,
67,
2088,
273,
365,
18,
710,
18,
644,
9275,
87,
13,
1335,
19424,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
17872,
14126,
16,
365,
18,
2981,
18,
91,
67,
7036,
13,
1335,
9251,
668,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
6031,
668,
16,
365,
18,
2981,
18,
91,
67,
7036,
13,
1335,
7265,
16,
425,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
5576,
668,
16,
365,
18,
2981,
18,
4113,
2932,
7236,
555,
6,
397,
609,
12,
73,
20349,
309,
341,
67,
2088,
353,
599,
30,
341,
67,
2088,
273,
365,
18,
2981,
18,
91,
67,
7036,
327,
341,
67,
2088,
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,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
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
341,
67,
2088,
273,
365,
18,
710,
18,
644,
9275,
87,
13,
1335,
19424,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
17872,
14126,
16,
365,
18,
2981,
18,
91,
67,
7036,
13,
1335,
9251,
668,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
6031,
668,
16,
365,
18,
2981,
18,
91,
67,
7036,
13,
1335,
7265,
16,
425,
30,
1002,
4189,
668,
12,
2890,
18,
2981,
18,
91,
67,
5576,
668,
16,
365,
18,
2981,
18,
4113,
2932,
7236,
555,
6,
397,
609,
12,
73,
20349,
309,
341,
67,
2088,
353,
599,
30,
341,
67,
2088,
273,
365,
18,
2981,
18,
91,
67,
7036,
327,
2
] |
locale.setlocale(locale.LC_ALL, (self.localcontext.get('lang', 'en_US') or 'en_US') + \ '.' + encoding)
|
if os.name == 'nt': locale.setlocale(locale.LC_ALL, _LOCALE2WIN32.get(lang, lang) + '.' + encoding) else: locale.setlocale(locale.LC_ALL, lang + '.' + encoding)
|
def formatLang(self, value, digit=2, date=False): lc, encoding = locale.getdefaultlocale() if encoding == 'utf': encoding = 'UTF-8' try: locale.setlocale(locale.LC_ALL, (self.localcontext.get('lang', 'en_US') or 'en_US') + \ '.' + encoding) except Exception: netsvc.Logger().notifyChannel('report', netsvc.LOG_WARNING, 'report %s: unable to set locale "%s"' % (self.name, self.localcontext.get('lang', 'en_US') or 'en_US')) if date: date = time.strptime(value, DT_FORMAT) return time.strftime(locale.nl_langinfo(locale.D_FMT).replace('%y', '%Y'), date) return locale.format('%.' + str(digit) + 'f', value, True)
|
f083aa2b463ef466d0cb3a973d7d494a49028978 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/f083aa2b463ef466d0cb3a973d7d494a49028978/report_sxw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
8035,
33,
22,
16,
1509,
33,
8381,
4672,
9109,
16,
2688,
273,
2573,
18,
588,
1886,
6339,
1435,
309,
2688,
422,
296,
3158,
4278,
2688,
273,
296,
5159,
17,
28,
11,
775,
30,
309,
1140,
18,
529,
422,
296,
496,
4278,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
389,
25368,
22,
24572,
1578,
18,
588,
12,
4936,
16,
3303,
13,
397,
2611,
397,
2688,
13,
469,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
3303,
397,
2611,
397,
2688,
13,
1335,
1185,
30,
21954,
4227,
18,
3328,
7675,
12336,
2909,
2668,
6006,
2187,
21954,
4227,
18,
4842,
67,
9511,
16,
296,
6006,
738,
87,
30,
13496,
358,
444,
2573,
2213,
87,
5187,
738,
261,
2890,
18,
529,
16,
365,
18,
3729,
2472,
18,
588,
2668,
4936,
2187,
296,
275,
67,
3378,
6134,
578,
296,
275,
67,
3378,
26112,
309,
1509,
30,
1509,
273,
813,
18,
701,
10650,
12,
1132,
16,
10696,
67,
7254,
13,
327,
813,
18,
701,
9982,
12,
6339,
18,
14039,
67,
4936,
1376,
12,
6339,
18,
40,
67,
42,
6152,
2934,
2079,
29909,
93,
2187,
1995,
61,
19899,
1509,
13,
327,
2573,
18,
2139,
29909,
1093,
397,
609,
12,
11052,
13,
397,
296,
74,
2187,
460,
16,
1053,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
7275,
12,
2890,
16,
460,
16,
8035,
33,
22,
16,
1509,
33,
8381,
4672,
9109,
16,
2688,
273,
2573,
18,
588,
1886,
6339,
1435,
309,
2688,
422,
296,
3158,
4278,
2688,
273,
296,
5159,
17,
28,
11,
775,
30,
309,
1140,
18,
529,
422,
296,
496,
4278,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
389,
25368,
22,
24572,
1578,
18,
588,
12,
4936,
16,
3303,
13,
397,
2611,
397,
2688,
13,
469,
30,
2573,
18,
542,
6339,
12,
6339,
18,
13394,
67,
4685,
16,
3303,
397,
2611,
397,
2688,
13,
1335,
1185,
30,
21954,
4227,
18,
3328,
7675,
12336,
2909,
2668,
6006,
2187,
21954,
4227,
18,
4842,
67,
9511,
16,
296,
6006,
738,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.