rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
HH:MI:SS HH:MI:SS(z|Z) HH:MI:SS.ms HH:MI:SS.ms(z|Z) HH:MI:SS(+|-)06:00 HH:MI:SS.ms(+|-)06:00 | - HH:MI:SS - HH:MI:SS(z|Z) - HH:MI:SS.ms - HH:MI:SS.ms(z|Z) - HH:MI:SS(+|-)06:00 - HH:MI:SS.ms(+|-)06:00 | def __unicode__(self): return self.date.isoformat() | 31e0114d65b2dfba71a1bbf0576acfaa09e8c353 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1242/31e0114d65b2dfba71a1bbf0576acfaa09e8c353/date.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
365,
18,
712,
18,
9699,
2139,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9124,
972,
12,
2890,
4672,
327,
365,
18,
712,
18,
9699,
2139,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
page) | page) | def get_property_pages(self, items): | 6268447808016e08552fea26797a7dc725fdd8d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5119/6268447808016e08552fea26797a7dc725fdd8d3/RabbitVCS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4468,
67,
7267,
12,
2890,
16,
1516,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4468,
67,
7267,
12,
2890,
16,
1516,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return self.run(['git', 'diff-tree', '-p'] + list(diff_opts) | diff_opts = list(diff_opts) if binary and not '--binary' in diff_opts: diff_opts.append('--binary') return self.run(['git', 'diff-tree', '-p'] + diff_opts | def diff_tree(self, t1, t2, diff_opts): """Given two L{Tree}s C{t1} and C{t2}, return the patch that takes C{t1} to C{t2}. | 8bad45199fc55501b9d9636a238d15482f434609 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12366/8bad45199fc55501b9d9636a238d15482f434609/git.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3122,
67,
3413,
12,
2890,
16,
268,
21,
16,
268,
22,
16,
3122,
67,
4952,
4672,
3536,
6083,
2795,
511,
95,
2471,
97,
87,
385,
95,
88,
21,
97,
471,
385,
95,
88,
22,
5779,
327,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3122,
67,
3413,
12,
2890,
16,
268,
21,
16,
268,
22,
16,
3122,
67,
4952,
4672,
3536,
6083,
2795,
511,
95,
2471,
97,
87,
385,
95,
88,
21,
97,
471,
385,
95,
88,
22,
5779,
327,
326,
... |
if version != 6: | if version == 6: | def versionCheck(self): logMe(3) cu = self.db.cursor() count = cu.execute("SELECT COUNT(*) FROM sqlite_master WHERE " "name='DatabaseVersion'").next()[0] if count == 0: # if DatabaseVersion does not exist, but any other tables do exist, # then the database version is old count = cu.execute("SELECT count(*) FROM sqlite_... | c70573d299160d951646df38cd5ccafc807987ef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/c70573d299160d951646df38cd5ccafc807987ef/netserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1177,
1564,
12,
2890,
4672,
613,
4667,
12,
23,
13,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
1056,
273,
15985,
18,
8837,
2932,
4803,
12666,
24099,
4571,
16184,
67,
7525,
4852,
315,
315,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1177,
1564,
12,
2890,
4672,
613,
4667,
12,
23,
13,
15985,
273,
365,
18,
1966,
18,
9216,
1435,
1056,
273,
15985,
18,
8837,
2932,
4803,
12666,
24099,
4571,
16184,
67,
7525,
4852,
315,
315,... |
request_digest = hmac.new(self.key, request_digest, self.hashmod).hexdigest() headers['Authorization'] = 'HMACDigest username="%s", realm="%s", nonce="%s", uri="%s", created="%s", response="%s", headers="%s"' % ( | request_digest = hmac.new(self.key, request_digest, self.hashmod).hexdigest().lower() headers['Authorization'] = 'HMACDigest username="%s", realm="%s", snonce="%s", cnonce="%s", uri="%s", created="%s", response="%s", headers="%s"' % ( | def request(self, method, request_uri, headers, content): """Modify the request headers""" keys = headers.keys() keylist = "".join(["%s " % k for k in keys]) headers_val = "".join([headers[k] for k in keys]) created = time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()) nonce = sha.new(str(random.getrandbits(512))+created... | 13d650191ac45c96b1ea5981ed6514f67f1c8788 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13138/13d650191ac45c96b1ea5981ed6514f67f1c8788/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
590,
12,
2890,
16,
707,
16,
590,
67,
1650,
16,
1607,
16,
913,
4672,
3536,
11047,
326,
590,
1607,
8395,
1311,
273,
1607,
18,
2452,
1435,
498,
1098,
273,
1408,
18,
5701,
3816,
28385,
87,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
590,
12,
2890,
16,
707,
16,
590,
67,
1650,
16,
1607,
16,
913,
4672,
3536,
11047,
326,
590,
1607,
8395,
1311,
273,
1607,
18,
2452,
1435,
498,
1098,
273,
1408,
18,
5701,
3816,
28385,
87,... |
err = max( out.find("\n(in"), out.find('not defined') ) | err = max( out.find("\n(in"), out.find('not defined'), out.find('Argument types') ) | def _eval_line(self, line, allow_use_file=True, wait_for_prompt=True): #if line.find('\n') != -1: # raise ValueError, "line must not contain any newlines" if allow_use_file and self._eval_using_file_cutoff and len(line) > self._eval_using_file_cutoff: return self._eval_line_using_file(line, tmp) try: if self._expect... | 86f89936c69cf79b2617a6cbab97276a7bb2101a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/86f89936c69cf79b2617a6cbab97276a7bb2101a/lie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
67,
1369,
12,
2890,
16,
980,
16,
1699,
67,
1202,
67,
768,
33,
5510,
16,
2529,
67,
1884,
67,
13325,
33,
5510,
4672,
468,
430,
980,
18,
4720,
2668,
64,
82,
6134,
480,
300,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8622,
67,
1369,
12,
2890,
16,
980,
16,
1699,
67,
1202,
67,
768,
33,
5510,
16,
2529,
67,
1884,
67,
13325,
33,
5510,
4672,
468,
430,
980,
18,
4720,
2668,
64,
82,
6134,
480,
300,
... |
res = self.__getDNUserID(userDN) | res = self.__getDNUserID( userDN ) | def createUserMapping(self,userDN): """ Create a user with the supplied DN and return the userID """ res = self.__checkArgumentFormat(userDN) if not res['OK']: return res userDNs = res['Value'] successful = {} failed = {} created = self.__openSession() for userDN,uid in userDNs.items(): if not uid: uid = -1 res = self.... | 6280f3782654b93320f684f56a83a6624459bcec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/6280f3782654b93320f684f56a83a6624459bcec/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22992,
3233,
12,
2890,
16,
1355,
8609,
4672,
3536,
1788,
279,
729,
598,
326,
4580,
18001,
471,
327,
326,
16299,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
1355,
8609,
13,
309,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22992,
3233,
12,
2890,
16,
1355,
8609,
4672,
3536,
1788,
279,
729,
598,
326,
4580,
18001,
471,
327,
326,
16299,
3536,
400,
273,
365,
16186,
1893,
1379,
1630,
12,
1355,
8609,
13,
309,
486... |
self.__disc = ZZ(str(self.pari_nf()[2])) | self.__disc = QQ(str(self.pari_nf()[2])) | def discriminant(self, v=None): """ Returns the discriminant of the ring of integers of the number field, or if v is specified, the determinant of the trace pairing on the elements of the list v. | 5119d9aa5ee1f04705f65bd12f8ab1bbf0003194 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/5119d9aa5ee1f04705f65bd12f8ab1bbf0003194/number_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29649,
20030,
12,
2890,
16,
331,
33,
7036,
4672,
3536,
2860,
326,
29649,
20030,
434,
326,
9221,
434,
12321,
434,
326,
1300,
652,
16,
578,
309,
331,
353,
1269,
16,
326,
6328,
970,
434,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29649,
20030,
12,
2890,
16,
331,
33,
7036,
4672,
3536,
2860,
326,
29649,
20030,
434,
326,
9221,
434,
12321,
434,
326,
1300,
652,
16,
578,
309,
331,
353,
1269,
16,
326,
6328,
970,
434,
... |
class CallFront_checkBox(ControlledCallFront): | class CallFront_toggleButton(ControlledCallFront): | def action(self, value): if value != None: self.control.setChecked(value) | 0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/0eb6f11acef0b90e11c4bafb9e83aa44e09ea65b/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
365,
18,
7098,
18,
542,
11454,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
365,
18,
7098,
18,
542,
11454,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.assertEqual(rem, 0) self.assertEqual(r1, r2) | self.assertEqual(rem, 0, '%s != 0 for %s' % (rem, i)) self.assertEqual(r1, r2, '%s != %s for %s' % (r1, r2, i)) | def test_count(self): self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(3, 'aaa', 'count', 'a') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(0, 'aaa', 'count', 'b') self.checkequal(2,... | 8f61b874ca20cd09f9b1b4f8d0e52d018ffa4d40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/8f61b874ca20cd09f9b1b4f8d0e52d018ffa4d40/string_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1883,
12,
2890,
4672,
365,
18,
1893,
9729,
12,
23,
16,
296,
26676,
2187,
296,
1883,
2187,
296,
69,
6134,
365,
18,
1893,
9729,
12,
20,
16,
296,
26676,
2187,
296,
1883,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1883,
12,
2890,
4672,
365,
18,
1893,
9729,
12,
23,
16,
296,
26676,
2187,
296,
1883,
2187,
296,
69,
6134,
365,
18,
1893,
9729,
12,
20,
16,
296,
26676,
2187,
296,
1883,
2187,
... |
BaseTool.__init__(self) | super(DrMemory, self).__init__() | def __init__(self): BaseTool.__init__(self) self.RegisterOptionParserHook(DrMemory.ExtendOptionParser) | 4b973d7a16cfee0fc0485f43b4ca68f3d76bacca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/4b973d7a16cfee0fc0485f43b4ca68f3d76bacca/valgrind_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
8956,
6031,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
3996,
1895,
2678,
5394,
12,
8956,
6031,
18,
16675,
1895,
2678,
13,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
2240,
12,
8956,
6031,
16,
365,
2934,
972,
2738,
972,
1435,
365,
18,
3996,
1895,
2678,
5394,
12,
8956,
6031,
18,
16675,
1895,
2678,
13,
2,
-100,
-100,
-... |
try: body = [output, extra] except NameError: body = [output] | body = [output] | def perform_deleteportalbox(colID, ln, pbxID=-1, callback='yes', confirm=-1): """form to delete a portalbox which is not in use. colID - the current collection. pbxID - the id of the portalbox""" subtitle = """<a name="5.3"></a>Delete an unused portalbox""" output = "" colID = int(colID) if pbxID not in [-1, "-1"] a... | 8dcf4c4b5c4b6097cd6d61f62b4123913eecc2ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/8dcf4c4b5c4b6097cd6d61f62b4123913eecc2ec/websearchadminlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
67,
3733,
24386,
2147,
12,
1293,
734,
16,
7211,
16,
6386,
92,
734,
29711,
21,
16,
1348,
2218,
9707,
2187,
6932,
29711,
21,
4672,
3536,
687,
358,
1430,
279,
11899,
2147,
1492,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3073,
67,
3733,
24386,
2147,
12,
1293,
734,
16,
7211,
16,
6386,
92,
734,
29711,
21,
16,
1348,
2218,
9707,
2187,
6932,
29711,
21,
4672,
3536,
687,
358,
1430,
279,
11899,
2147,
1492,
353,
... |
descripton ('desc'), and a block of plain text ('text'). | description ('desc'), and a block of plain text ('text'). | def __eq__(self, other): return self.data == other | ee4dff46c10ef28b1313c65197f2ec047b91a286 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/ee4dff46c10ef28b1313c65197f2ec047b91a286/id3.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
365,
18,
892,
422,
1308,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
11253,
972,
12,
2890,
16,
1308,
4672,
327,
365,
18,
892,
422,
1308,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def _pending(self, changeset, locked, pending, pruneweight, depth=0): depth += 1 | class TaskPending(Task): def __init__(self, parent, changeset, locked, pending, pruneweight, yieldweight, csweight=WEIGHT_NONE, pri=0, order=0, desc=""): gen = self._pending(pending) parent._trans.Task.__init__(self, parent, gen, changeset, locked, pruneweight, yieldweight, csweight, pri, order, desc) def _pending(sel... | def _pending(self, changeset, locked, pending, pruneweight, depth=0): depth += 1 if traceVerbosity<4: trace(1, depth, "_pending(pw=%f)", (pruneweight)) else: trace(4, depth, "_pending(%s, pw=%f)", (pending, pruneweight)) | c2ff0e2fa3473e5898baf091e7a39f94abf28732 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/c2ff0e2fa3473e5898baf091e7a39f94abf28732/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
3837,
8579,
12,
2174,
4672,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
2824,
4865,
16,
2873,
4865,
33,
29988,
67,
9826,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
3837,
8579,
12,
2174,
4672,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
22463,
16,
8586,
16,
4634,
16,
846,
318,
359,
1274,
16,
2824,
4865,
16,
2873,
4865,
33,
29988,
67,
9826,
16,
... |
gc.save(filename) | try: gc.save(filename) except KeyError, e: errmsg = "The filename must have an extension that matches a graphics" errmsg = errmsg + " format, such as '.png' or '.tiff'." if str(e.message) != '': errmsg = ("Unknown filename extension: '%s'\n" % str(e.message)) + errmsg error(None, errmsg, title="Invalid Filename Extens... | def perform(self, event): plot_component = self.container.component | 329022a2fd5ca57b8dd4409c5ea253781c44100d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13167/329022a2fd5ca57b8dd4409c5ea253781c44100d/toolbar_buttons.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
871,
4672,
3207,
67,
4652,
273,
365,
18,
3782,
18,
4652,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3073,
12,
2890,
16,
871,
4672,
3207,
67,
4652,
273,
365,
18,
3782,
18,
4652,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
help="Repository Label") | help="package name to lookup") | def generate_options(self): possiblecmd = [] | 2cfaffe12b63bd7eea1d8d31089290bb9017518f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/2cfaffe12b63bd7eea1d8d31089290bb9017518f/core_package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2116,
12,
2890,
4672,
3323,
4172,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2116,
12,
2890,
4672,
3323,
4172,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.objectName.setValue("None Selected") self.objectType.setValue("No Type") | self.objectName.setValue("None Selected") | def getSelected(self): if self.editorPanel in self.evt_manager.elements: #only if this instance is up and running. if self.selectionChanged(): try: objects = Blender.Object.GetSelected() # got nothing # get the first object if len(objects) < 1: self.objectName.isVisible = True self.objectMenu.isVisible = False | f44d204f6145db2c41cb10f37cdd1232f0fd8fc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11560/f44d204f6145db2c41cb10f37cdd1232f0fd8fc9/BtoRMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16625,
12,
2890,
4672,
309,
365,
18,
9177,
5537,
316,
365,
18,
73,
11734,
67,
4181,
18,
6274,
30,
468,
3700,
309,
333,
791,
353,
731,
471,
3549,
18,
309,
365,
18,
10705,
5033,
13332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16625,
12,
2890,
4672,
309,
365,
18,
9177,
5537,
316,
365,
18,
73,
11734,
67,
4181,
18,
6274,
30,
468,
3700,
309,
333,
791,
353,
731,
471,
3549,
18,
309,
365,
18,
10705,
5033,
13332,
... |
res.union(c.getFromAssociations()) | res.union_update(c.getFromAssociations()) | def getAssociations(self, recursive=0): classes = self.getClassesAndInterfaces(recursive=recursive) res = Set() for c in classes: res.union(c.getFromAssociations()) return res | 5d06001fa98961e8a64d66ed6be626eb3a2483aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11941/5d06001fa98961e8a64d66ed6be626eb3a2483aa/XMIParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15143,
12,
2890,
16,
5904,
33,
20,
4672,
3318,
273,
365,
18,
588,
4818,
1876,
10273,
12,
10543,
33,
10543,
13,
400,
273,
1000,
1435,
364,
276,
316,
3318,
30,
400,
18,
18910,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
15143,
12,
2890,
16,
5904,
33,
20,
4672,
3318,
273,
365,
18,
588,
4818,
1876,
10273,
12,
10543,
33,
10543,
13,
400,
273,
1000,
1435,
364,
276,
316,
3318,
30,
400,
18,
18910,
67,
... |
if row: | if row is not None: | def grid_slaves(self, row=None, column=None): args = () if row: args = args + ('-row', row) if column: args = args + ('-column', column) return map(self._nametowidget, self.tk.splitlist(self.tk.call( ('grid', 'slaves', self._w) + args))) | eb354b31e5cd5bcd1aa1350799966b20778d9592 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/eb354b31e5cd5bcd1aa1350799966b20778d9592/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3068,
67,
2069,
6606,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
833,
273,
1832,
309,
1027,
353,
486,
599,
30,
833,
273,
833,
397,
7707,
17,
492,
2187,
1027,
13,
309,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3068,
67,
2069,
6606,
12,
2890,
16,
1027,
33,
7036,
16,
1057,
33,
7036,
4672,
833,
273,
1832,
309,
1027,
353,
486,
599,
30,
833,
273,
833,
397,
7707,
17,
492,
2187,
1027,
13,
309,
10... |
logging.basicConfig(level=logging.INFO) | logging.getLogger().addHandler(logging.StreamHandler()) logging.getLogger().setLevel(logging.INFO) | def run_function_task(self): function = _to_function(self.function_name) return function() | 183d784a0a69b45ef7adbce644797257a2d4833e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10197/183d784a0a69b45ef7adbce644797257a2d4833e/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
915,
67,
4146,
12,
2890,
4672,
445,
273,
389,
869,
67,
915,
12,
2890,
18,
915,
67,
529,
13,
327,
445,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
915,
67,
4146,
12,
2890,
4672,
445,
273,
389,
869,
67,
915,
12,
2890,
18,
915,
67,
529,
13,
327,
445,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if ((%(_zout)s->descr->type_num != PyArray_DOUBLE) | if ((%(_zout)s->descr->type_num != PyArray_DOUBLE) | def c_header_dirs(self): return ldflags(libs=False, include_dir=True) | ce2912309e41b74d53d3229d40d141175d5cda46 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/ce2912309e41b74d53d3229d40d141175d5cda46/blas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
3374,
67,
8291,
12,
2890,
4672,
327,
328,
2180,
80,
1341,
12,
21571,
33,
8381,
16,
2341,
67,
1214,
33,
5510,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
276,
67,
3374,
67,
8291,
12,
2890,
4672,
327,
328,
2180,
80,
1341,
12,
21571,
33,
8381,
16,
2341,
67,
1214,
33,
5510,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "\n".join(error) if rectcode != 0: | print error if retcode != 0: | def __call__(self, *arguments): args = [] for argument in arguments: if isinstance(argument, list): args.extend(argument) else: args.append(argument) args = [str(arg) for arg in args] command = "%s %s" % (self.name, " ".join(args)) if self.verbose: print command p = Popen(shlex.split(command), stdin=PIPE, stdout=PIPE, ... | 890c2cff615c5dc5f72e0133dc0c09548159489d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11050/890c2cff615c5dc5f72e0133dc0c09548159489d/wrappers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
7099,
4672,
833,
273,
5378,
364,
1237,
316,
1775,
30,
309,
1549,
12,
3446,
16,
666,
4672,
833,
18,
14313,
12,
3446,
13,
469,
30,
833,
18,
6923,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
380,
7099,
4672,
833,
273,
5378,
364,
1237,
316,
1775,
30,
309,
1549,
12,
3446,
16,
666,
4672,
833,
18,
14313,
12,
3446,
13,
469,
30,
833,
18,
6923,
12... |
linker_so=('%s -mcygwin -mdll -static' % | linker_so=('%s -mcygwin -mdll' % | def __init__ (self, verbose=0, dry_run=0, force=0): | b73f4b8b3064a2e4acf8f18234897d79c4843d52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/b73f4b8b3064a2e4acf8f18234897d79c4843d52/cygwinccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
16,
2944,
33,
20,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
261,
2890,
16,
3988,
33,
20,
16,
10299,
67,
2681,
33,
20,
16,
2944,
33,
20,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
return HttpResponseRedirect(request.path) | return HttpResponseRedirect(request.path) | def detail(request, cluster_slug, instance): cluster = get_object_or_404(Cluster, slug=cluster_slug) vm = get_object_or_404(VirtualMachine, hostname=instance, cluster=cluster) user = request.user admin = user.is_superuser or user.has_perm('admin', vm) \ or user.has_perm('admin', cluster) remove = admin or user.has_per... | e6159c881bbe0521f32dddc3af133da80064a4cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10509/e6159c881bbe0521f32dddc3af133da80064a4cd/virtual_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7664,
12,
2293,
16,
2855,
67,
6436,
16,
791,
4672,
2855,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
3629,
16,
4959,
33,
7967,
67,
6436,
13,
4268,
273,
336,
67,
1612,
67,
280,
67,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7664,
12,
2293,
16,
2855,
67,
6436,
16,
791,
4672,
2855,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
3629,
16,
4959,
33,
7967,
67,
6436,
13,
4268,
273,
336,
67,
1612,
67,
280,
67,
... |
sidebars = self.default_sidebars[:-1] + [sidebars] + \ self.default_sidebars[-1:] return sidebars | customsidebar = sidebars sidebars = None ctx['sidebars'] = sidebars ctx['customsidebar'] = customsidebar | def has_wildcard(pattern): return any(char in pattern for char in '*?[') | 11576988481b3318ba3a335df198a2511b2e11b4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/11576988481b3318ba3a335df198a2511b2e11b4/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
22887,
12,
4951,
4672,
327,
1281,
12,
3001,
316,
1936,
364,
1149,
316,
14609,
35,
3292,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
711,
67,
22887,
12,
4951,
4672,
327,
1281,
12,
3001,
316,
1936,
364,
1149,
316,
14609,
35,
3292,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if event.keyval == GDK.Escape or event.string == '\021': | if event.keyval == GDK.Escape or event.string in ['\021', 'q', 'Q']: | def key_event(win, event=None): global timer_inst if event.keyval == GDK.Escape or event.string == '\021': win.destroy() return if event.string == '\016': new_game(None) return if event.keyval == GDK.Up or event.keyval == GDK.KP_Up: game.move(0, -1) elif event.keyval == GDK.Down or event.keyval == GDK.KP_Down: game.... | 76798148034c63225e3e9051a38e9b1bafe27f36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7420/76798148034c63225e3e9051a38e9b1bafe27f36/cube.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
498,
67,
2575,
12,
8082,
16,
871,
33,
7036,
4672,
2552,
5441,
67,
8591,
225,
309,
871,
18,
856,
1125,
422,
611,
3398,
18,
8448,
578,
871,
18,
1080,
316,
306,
8314,
3103,
21,
2187,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
498,
67,
2575,
12,
8082,
16,
871,
33,
7036,
4672,
2552,
5441,
67,
8591,
225,
309,
871,
18,
856,
1125,
422,
611,
3398,
18,
8448,
578,
871,
18,
1080,
316,
306,
8314,
3103,
21,
2187,
29... |
def _or_(self, regex): | def _or_(self, regex, reverse): | def _or_(self, regex): return None | a2e7fcad5dec1414a3bcb02b36e930f96c13ef05 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9327/a2e7fcad5dec1414a3bcb02b36e930f96c13ef05/regex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
280,
67,
12,
2890,
16,
3936,
16,
4219,
4672,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
280,
67,
12,
2890,
16,
3936,
16,
4219,
4672,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.__x.delete(0, END) self.__y.delete(0, END) self.__z.delete(0, END) self.__x.insert(0, redstr) self.__y.insert(0, greenstr) self.__z.insert(0, bluestr) | x, y, z = self.__x, self.__y, self.__z xicursor = x.index(INSERT) yicursor = y.index(INSERT) zicursor = z.index(INSERT) x.delete(0, END) y.delete(0, END) z.delete(0, END) x.insert(0, redstr) y.insert(0, greenstr) z.insert(0, bluestr) x.icursor(xicursor) y.icursor(yicursor) z.icursor(zicursor) | def update_yourself(self, red, green, blue): if self.__hexp.get(): redstr, greenstr, bluestr = map(hex, (red, green, blue)) else: redstr, greenstr, bluestr = red, green, blue self.__x.delete(0, END) self.__y.delete(0, END) self.__z.delete(0, END) self.__x.insert(0, redstr) self.__y.insert(0, greenstr) self.__z.insert(0... | 52cfe3d819f175a5430da27cb3c70134fcdbb778 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/52cfe3d819f175a5430da27cb3c70134fcdbb778/TypeinViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
93,
477,
2890,
12,
2890,
16,
1755,
16,
10004,
16,
8024,
4672,
309,
365,
16186,
76,
2749,
18,
588,
13332,
1755,
701,
16,
10004,
701,
16,
2811,
3610,
313,
273,
852,
12,
7118,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1089,
67,
93,
477,
2890,
12,
2890,
16,
1755,
16,
10004,
16,
8024,
4672,
309,
365,
16186,
76,
2749,
18,
588,
13332,
1755,
701,
16,
10004,
701,
16,
2811,
3610,
313,
273,
852,
12,
7118,
... |
remote_cmd="vlc udp:@239.255.255.0:1234 --brightness 2 --no-x11-shm --no-xvideo-shm --disable-screensaver" | remote_cmd="vlc udp://@239.255.255.0:1234 --brightness 2 --no-x11-shm --no-xvideo-shm --disable-screensaver" | def menu_event_all(self, action): start1=time() # don't make actions in clients not selected if self.main.config.GetVar("selectedhosts") == 1: allclients=[] model=self.main.tabla.get_model() rows = [] model.foreach(lambda model, path, iter: rows.append(path)) for host in rows: iter=model.get_iter(host) if model.get_va... | 53a3eea66bbc168c70ea325ef8439de22d83ed8b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13520/53a3eea66bbc168c70ea325ef8439de22d83ed8b/TcosActions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3824,
67,
2575,
67,
454,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
225,
468,
2727,
1404,
1221,
4209,
316,
7712,
486,
3170,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3824,
67,
2575,
67,
454,
12,
2890,
16,
1301,
4672,
787,
21,
33,
957,
1435,
225,
468,
2727,
1404,
1221,
4209,
316,
7712,
486,
3170,
309,
365,
18,
5254,
18,
1425,
18,
967,
1537,
2932,
... |
for word in distinctwords: | for word in distinct_words: | def merge(self, otherlambda, rhot): ''' fold the word probabilities of another DirichletWords object into this one. assumes self.num_topics is the same for both. ''' all_words = self.words() + otherlambda.words() distinct_words = list(set(all_words)) | 5988bdd2be3b131b5a1ef64c56ef02a752104a5e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14025/5988bdd2be3b131b5a1ef64c56ef02a752104a5e/dirichlet_words.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2691,
12,
2890,
16,
1308,
14661,
16,
6259,
352,
4672,
9163,
11590,
326,
2076,
17958,
434,
4042,
8446,
1354,
1810,
7363,
733,
1368,
333,
1245,
18,
13041,
365,
18,
2107,
67,
17905,
353,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2691,
12,
2890,
16,
1308,
14661,
16,
6259,
352,
4672,
9163,
11590,
326,
2076,
17958,
434,
4042,
8446,
1354,
1810,
7363,
733,
1368,
333,
1245,
18,
13041,
365,
18,
2107,
67,
17905,
353,
32... |
cmdclass.get_file_list(self) | self._get_file_list() | def get_file_list(self): cmdclass.get_file_list(self) manifest_filelist = self.filelist source_filelist = FileList() allfiles = self.filelist.allfiles if allfiles: source_filelist.set_allfiles(allfiles) else: source_filelist.findall() source_filelist.extend(source_filelist.allfiles) # Check for template (usually "MANIF... | 2d731bf0036dd1b1f5537ff47ad1aae607a4f2cb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14078/2d731bf0036dd1b1f5537ff47ad1aae607a4f2cb/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
1098,
12,
2890,
4672,
365,
6315,
588,
67,
768,
67,
1098,
1435,
5643,
67,
7540,
5449,
273,
365,
18,
7540,
5449,
1084,
67,
7540,
5449,
273,
1387,
682,
1435,
777,
2354,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
1098,
12,
2890,
4672,
365,
6315,
588,
67,
768,
67,
1098,
1435,
5643,
67,
7540,
5449,
273,
365,
18,
7540,
5449,
1084,
67,
7540,
5449,
273,
1387,
682,
1435,
777,
2354,
... |
logger.info("%s - priority job %s was already in the queue - raising its priority", threading.currentThread().getName(), uuid) | logger.info("%s - priority job %s was already in the queue, assigned to %d - raising its priority", threading.currentThread().getName(), uuid, prexistingJobOwner) try: self.priorityJobAllocationCursor.execute("insert into priority_jobs_%d (uuid) values ('%s')" % (prexistingJobOwner, uuid)) except psycopg2.ProgrammingEr... | def priorityJobAllocationLoop(self): self.responsiveSleep(300) try: self.priorityJobAllocationDatabaseConnection = psycopg2.connect(self.config.databaseDSN) self.priorityJobAllocationCursor = self.priorityJobAllocationDatabaseConnection.cursor() except: self.quit = True socorro.lib.util.reportExceptionAndAbort(logger) ... | b1bccdd92ddf3f03f1da92525d443c588bb62373 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12383/b1bccdd92ddf3f03f1da92525d443c588bb62373/monitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4394,
2278,
17353,
6452,
12,
2890,
4672,
365,
18,
455,
24727,
20768,
12,
19249,
13,
775,
30,
365,
18,
8457,
2278,
17353,
4254,
1952,
273,
4250,
93,
22295,
75,
22,
18,
3612,
12,
2890,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4394,
2278,
17353,
6452,
12,
2890,
4672,
365,
18,
455,
24727,
20768,
12,
19249,
13,
775,
30,
365,
18,
8457,
2278,
17353,
4254,
1952,
273,
4250,
93,
22295,
75,
22,
18,
3612,
12,
2890,
1... |
return "success" | return "success" | def Do(hardhatScript, mode, workingDir, outputDir, cvsVintage, buildVersion, log): testDir = os.path.join(workingDir, "chandler") os.chdir(testDir) if mode == "debug": dashT = '-dt' else: dashT = '-rt' try: # test print "Testing " + mode log.write("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n") lo... | 9278f53822d6361786127416eaa3e7c4de157eaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/9278f53822d6361786127416eaa3e7c4de157eaf/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
12,
20379,
11304,
3651,
16,
1965,
16,
5960,
1621,
16,
21412,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
613,
4672,
225,
1842,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2256,
12,
20379,
11304,
3651,
16,
1965,
16,
5960,
1621,
16,
21412,
16,
276,
6904,
58,
474,
410,
16,
1361,
1444,
16,
613,
4672,
225,
1842,
1621,
273,
1140,
18,
803,
18,
5701,
12,
20478,... |
variant = Product.objects.get(pk=products[0]) | variant = variations[0].product | def create_variation(self, options, name=u"", sku=u"", slug=u""): """Create a productvariation with the specified options. Will not create a duplicate.""" log.debug("Create variation: %s", options) products = self.get_variations_for_options(options) | 7353e76cb4f15abf6282e099b12bee64f2d170b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13656/7353e76cb4f15abf6282e099b12bee64f2d170b4/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
28815,
12,
2890,
16,
702,
16,
508,
33,
89,
6,
3113,
16731,
33,
89,
6,
3113,
4959,
33,
89,
3660,
4672,
3536,
1684,
279,
3017,
28815,
598,
326,
1269,
702,
18,
9980,
486,
752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
28815,
12,
2890,
16,
702,
16,
508,
33,
89,
6,
3113,
16731,
33,
89,
6,
3113,
4959,
33,
89,
3660,
4672,
3536,
1684,
279,
3017,
28815,
598,
326,
1269,
702,
18,
9980,
486,
752,
... |
template_values['status'] = query | template_values['status'] = (StatusToDict(s, json=False) for s in query) | def get(self): query = db.Query(Status).order('-date') start_date = self.request.get('startTime') if start_date != "": query.filter('date <', datetime.datetime.utcfromtimestamp(int(start_date))) | 41766e075287a8dde04af23032934c6ad3bd0a49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/476/41766e075287a8dde04af23032934c6ad3bd0a49/status.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
843,
273,
1319,
18,
1138,
12,
1482,
2934,
1019,
2668,
17,
712,
6134,
787,
67,
712,
273,
365,
18,
2293,
18,
588,
2668,
1937,
950,
6134,
309,
787,
67,
712,
480,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
843,
273,
1319,
18,
1138,
12,
1482,
2934,
1019,
2668,
17,
712,
6134,
787,
67,
712,
273,
365,
18,
2293,
18,
588,
2668,
1937,
950,
6134,
309,
787,
67,
712,
480,
14... |
Create a Storage with the given name. Currently the built in storages are "memory" and "hashes". "hashes" takes extra arguments passed in the field options_string, some of which are required: options_string="hash-type='memory',new='yes',write='yes'" hash-type - required and can be the name of any Hash type supported.... | Create a Storage of the given type. Currently the built in storage names that are always present are 'memory', 'hashes', 'file' and 'uri'. 'bdb' is available when Sleepycat / BerkeleyDB is compiled in, 'mysql' when MySQL is compiled in, and 'sqlite' when SQLite is compiled in Extra options can be passed with the op... | def __init__(self, **args): """Create an RDF Storage (constructor). | b2dd677d5cb00e384a7f877a06bd3b785f90cccf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14754/b2dd677d5cb00e384a7f877a06bd3b785f90cccf/RDF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
3536,
1684,
392,
13539,
5235,
261,
12316,
2934,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
1968,
4672,
3536,
1684,
392,
13539,
5235,
261,
12316,
2934,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
PERL_THREAD_TEST_1 = True PERL_THREAD_TEST_2 = True | PERL_USETHREADS = True | def run_tests(self): PERL_THREAD_TEST_1 = True PERL_THREAD_TEST_2 = True | 7895cc4067c69d8f3df276522deda2db07484bb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5821/7895cc4067c69d8f3df276522deda2db07484bb3/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
2890,
4672,
10950,
48,
67,
21730,
67,
16961,
67,
21,
273,
1053,
10950,
48,
67,
21730,
67,
16961,
67,
22,
273,
1053,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
16341,
12,
2890,
4672,
10950,
48,
67,
21730,
67,
16961,
67,
21,
273,
1053,
10950,
48,
67,
21730,
67,
16961,
67,
22,
273,
1053,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
for lfn,size in res['Value']['Successful'].items(): | for lfn, size in res['Value']['Successful'].items(): | def __updateMigrationAccounting(self,se,migratingFiles,matchingFiles,mismatchingFiles,assumedEndTime,previousMonitorTime): """ Create accounting messages for the overall throughput observed and the total migration time for the files """ allMigrated = matchingFiles+mismatchingFiles gMonitor.addMark("MigratedFiles%s" % s... | d0365a9152f6e7105162edd475d5401448bfdaed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d0365a9152f6e7105162edd475d5401448bfdaed/MigrationMonitoringAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
10224,
3032,
310,
12,
2890,
16,
307,
16,
81,
2757,
1776,
2697,
16,
16271,
2697,
16,
11173,
16271,
2697,
16,
428,
379,
329,
25255,
16,
11515,
7187,
950,
4672,
3536,
1788,
2236... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
10224,
3032,
310,
12,
2890,
16,
307,
16,
81,
2757,
1776,
2697,
16,
16271,
2697,
16,
11173,
16271,
2697,
16,
428,
379,
329,
25255,
16,
11515,
7187,
950,
4672,
3536,
1788,
2236... |
if not filter(partMapCares, condition): | if "(" in condition.asList() or not filter(partMapCares, condition): | def partMapCares(token): return token.upper() in pVariables | b289c7a49896fd8f5d730ba05ee56b60c9e1a8ce /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6510/b289c7a49896fd8f5d730ba05ee56b60c9e1a8ce/sqlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1087,
863,
39,
4807,
12,
2316,
4672,
327,
1147,
18,
5797,
1435,
316,
293,
6158,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1087,
863,
39,
4807,
12,
2316,
4672,
327,
1147,
18,
5797,
1435,
316,
293,
6158,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
for f in input_files: | for f in all_input_files: | def __init__(self, input_files, **kwargs): self._prop = {} self._prop.update(self._local_prop) self._prop['input_files'] = input_files for key in kwargs: if key in self._prop: self._prop[key] = kwargs[key] | 28d90f2a17af5a028c4b26241a8c6582a320c49a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4727/28d90f2a17af5a028c4b26241a8c6582a320c49a/movie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
67,
2354,
16,
2826,
4333,
4672,
365,
6315,
5986,
273,
2618,
365,
6315,
5986,
18,
2725,
12,
2890,
6315,
3729,
67,
5986,
13,
365,
6315,
5986,
3292,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
810,
67,
2354,
16,
2826,
4333,
4672,
365,
6315,
5986,
273,
2618,
365,
6315,
5986,
18,
2725,
12,
2890,
6315,
3729,
67,
5986,
13,
365,
6315,
5986,
3292,
26... |
if partner_bank_id != bank_id: | if partner_bank != bank_id: | def onchange_partner_id(self, cr, uid, ids, type, partner_id, date_invoice=False, payment_term=False, partner_bank_id=False, company_id=False): """ Function that is call when the partner of the invoice is changed it will retriev and set the good bank partner bank""" res = super(account_invoice, self).onchange_partner_i... | f056f20e61c188cf4fad565ff01eab22d9aadf81 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f056f20e61c188cf4fad565ff01eab22d9aadf81/invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3427,
67,
31993,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
618,
16,
19170,
67,
350,
16,
1509,
67,
16119,
33,
8381,
16,
5184,
67,
6408,
33,
8381,
16,
19170,
67,
10546,... |
import traceback self.parent.log_error("GET typeError: %s", str(e)) self.parent.log_message("Exc: %s",traceback.format_exc()) raise DAV_Forbidden | return '' | def get_data(self,uri, rrange=None): self.parent.log_message('GET: %s' % uri) cr, uid, pool, dbname, uri2 = self.get_cr(uri) try: if not dbname: raise DAV_Error, 409 node = self.uri2object(cr, uid, pool, uri2) if not node: raise DAV_NotFound2(uri2) try: if rrange: self.parent.log_error("Doc get_data cannot use range") ... | 403a71fbaab7a8b607934347ccf6e7309f875f1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/403a71fbaab7a8b607934347ccf6e7309f875f1a/dav_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
16,
1650,
16,
436,
3676,
33,
7036,
4672,
365,
18,
2938,
18,
1330,
67,
2150,
2668,
3264,
30,
738,
87,
11,
738,
2003,
13,
4422,
16,
4555,
16,
2845,
16,
18448,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
892,
12,
2890,
16,
1650,
16,
436,
3676,
33,
7036,
4672,
365,
18,
2938,
18,
1330,
67,
2150,
2668,
3264,
30,
738,
87,
11,
738,
2003,
13,
4422,
16,
4555,
16,
2845,
16,
18448,
... |
debug("file %s hunk no.%d -- is ready to be patched" % (filename, hunkno+1)) | debug(" hunk no.%d for file %s -- is ready to be patched" % (hunkno+1, filename)) | def apply(self): """ apply parsed patch """ | 94a87bc42a0cccb43442c5b5abf961d3d946b112 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4098/94a87bc42a0cccb43442c5b5abf961d3d946b112/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
4672,
3536,
2230,
2707,
4729,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
4672,
3536,
2230,
2707,
4729,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pop.dvars().hist.append(pop.gen()) | pop.dvars().hist.append(pop.dvars().gen) | def genRecorder(pop): try: pop.dvars().hist.append(pop.gen()) except: pop.dvars().hist = [pop.gen()] return True | d2a64a33ec8b3752c1da1631cb187d71b2fdc1b7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/401/d2a64a33ec8b3752c1da1631cb187d71b2fdc1b7/test_03_operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
10777,
12,
5120,
4672,
775,
30,
1843,
18,
72,
4699,
7675,
11488,
18,
6923,
12,
5120,
18,
72,
4699,
7675,
4507,
13,
1335,
30,
1843,
18,
72,
4699,
7675,
11488,
273,
306,
5120,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
10777,
12,
5120,
4672,
775,
30,
1843,
18,
72,
4699,
7675,
11488,
18,
6923,
12,
5120,
18,
72,
4699,
7675,
4507,
13,
1335,
30,
1843,
18,
72,
4699,
7675,
11488,
273,
306,
5120,
18,
... |
return request_callback(CRAWLER_SEEDINGSTATS_QUERY, cPickle.dumps(["SELECT * FROM SeedingStats WHERE crawled = 0 and timestamp BETWEEN %s and %s ORDER BY timestamp DESC"%(res[0][0], time()), 'UPDATE SeedingStats SET crawled=1 WHERE crawled=0 and timestamp <=%s'%res])) | read_query = "SELECT * FROM SeedingStats WHERE crawled = 0 and timestamp BETWEEN %s and %s ORDER BY timestamp DESC" % (res, time()) write_query = 'UPDATE SeedingStats SET crawled=1 WHERE crawled=0 and timestamp <=%s' % res return request_callback(CRAWLER_SEEDINGSTATS_QUERY, cPickle.dumps([("read", read_query), ("write"... | def query_initiator(self, permid, selversion, request_callback): """ Established a new connection. Send a CRAWLER_DATABASE_QUERY request. @param permid The Tribler peer permid @param selversion The oberlay protocol version @param request_callback Call this function one or more times to send the requests: request_callba... | 34244b2f74d46ab016eb11199f942371f4603706 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9686/34244b2f74d46ab016eb11199f942371f4603706/SeedingStatsCrawler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
2738,
10620,
12,
2890,
16,
4641,
350,
16,
357,
1589,
16,
590,
67,
3394,
4672,
3536,
17787,
9237,
5992,
279,
394,
1459,
18,
2479,
279,
385,
10821,
14668,
67,
22366,
67,
10753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
67,
2738,
10620,
12,
2890,
16,
4641,
350,
16,
357,
1589,
16,
590,
67,
3394,
4672,
3536,
17787,
9237,
5992,
279,
394,
1459,
18,
2479,
279,
385,
10821,
14668,
67,
22366,
67,
10753,
... |
get_throttle.drop() | def stopme(): """This should be run when a bot does not interact with the Wiki, or when it has stopped doing so. After a bot has run stopme() it will not slow down other bots any more. """ get_throttle.drop() # wait for the page-putter to flush its queue page_put_queue.put((None, None, None, None, None)) _putthread.joi... | b0aabc06351064e8b26863db1c754a0ededcc537 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/b0aabc06351064e8b26863db1c754a0ededcc537/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
3501,
13332,
3536,
2503,
1410,
506,
1086,
1347,
279,
2512,
1552,
486,
16592,
598,
326,
28268,
16,
578,
1347,
518,
711,
9627,
9957,
1427,
18,
7360,
279,
2512,
711,
1086,
2132,
3501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2132,
3501,
13332,
3536,
2503,
1410,
506,
1086,
1347,
279,
2512,
1552,
486,
16592,
598,
326,
28268,
16,
578,
1347,
518,
711,
9627,
9957,
1427,
18,
7360,
279,
2512,
711,
1086,
2132,
3501,
... | |
full_name = self.cfg.ExpandInstanceName(name) if full_name is None: raise errors.OpPrereqError("Instance '%s' not known" % name, errors.ECODE_NOENT) | full_name = _ExpandInstanceName(self.cfg, name) | def ExpandNames(self): if not isinstance(self.op.instances, list): raise errors.OpPrereqError("Invalid argument type 'instances'", errors.ECODE_INVAL) | cf26a87a6f249091d1b4e39d90b027e0ab688d45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/cf26a87a6f249091d1b4e39d90b027e0ab688d45/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16429,
1557,
12,
2890,
4672,
309,
486,
1549,
12,
2890,
18,
556,
18,
10162,
16,
666,
4672,
1002,
1334,
18,
3817,
2050,
822,
85,
668,
2932,
1941,
1237,
618,
296,
10162,
11,
3113,
1334,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16429,
1557,
12,
2890,
4672,
309,
486,
1549,
12,
2890,
18,
556,
18,
10162,
16,
666,
4672,
1002,
1334,
18,
3817,
2050,
822,
85,
668,
2932,
1941,
1237,
618,
296,
10162,
11,
3113,
1334,
1... |
The last step tells ssh that whenever an ssh connection is required to the host "remote_for_sage", it should tunnel it through "gate". Any attempt to scp-connect to "remote_for_sage" will use ssh and thus this configuration file, and properly channel those file transfers through the tunnel. A good test is to attempt an... | The last step tells ssh that whenever an ssh connection is required to the host "remote_for_sage", it should tunnel it through "gate". Any attempt to scp-connect to "remote_for_sage" will use ssh and thus this configuration file, and properly channel those file transfers through the tunnel. A good test is to attempt ... | def _install_hints_ssh_through_gate(self): r""" Hints for installing passwordless authentication through a gate """ # Written by Paul-Olivier Dehaye 2007/08/23 return """ | 4e5323f80a1326c0d0d01cf594b89af2dc029a6f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/4e5323f80a1326c0d0d01cf594b89af2dc029a6f/expect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
24598,
67,
10975,
67,
10064,
67,
10115,
12,
2890,
4672,
436,
8395,
670,
28142,
364,
3799,
310,
2201,
2656,
5107,
3059,
279,
12611,
3536,
468,
10423,
2253,
635,
21800,
332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
24598,
67,
10975,
67,
10064,
67,
10115,
12,
2890,
4672,
436,
8395,
670,
28142,
364,
3799,
310,
2201,
2656,
5107,
3059,
279,
12611,
3536,
468,
10423,
2253,
635,
21800,
332,
... |
def make_response(self, (status, headers, body, errors)): return TestResponse(self, status, headers, body, errors) | def make_response(self, (status, headers, body, errors), total_time): return TestResponse(self, status, headers, body, errors, total_time) | def make_response(self, (status, headers, body, errors)): return TestResponse(self, status, headers, body, errors) | 90680266c6d4645d6a3382f7b4579f79f4757170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2097/90680266c6d4645d6a3382f7b4579f79f4757170/fixture.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2740,
12,
2890,
16,
261,
2327,
16,
1607,
16,
1417,
16,
1334,
3719,
30,
327,
7766,
1064,
12,
2890,
16,
1267,
16,
1607,
16,
1417,
16,
1334,
13,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2740,
12,
2890,
16,
261,
2327,
16,
1607,
16,
1417,
16,
1334,
3719,
30,
327,
7766,
1064,
12,
2890,
16,
1267,
16,
1607,
16,
1417,
16,
1334,
13,
2,
-100,
-100,
-100,
-100,
-10... |
const int src_format = s->texture->locked_region.format; | const int offset_x = s->texture->parent ? s->texture->xofs : 0; const int offset_y = s->texture->parent ? s->texture->yofs : 0; ALLEGRO_BITMAP* texture = s->texture->parent ? s->texture->parent : s->texture; const int src_format = texture->locked_region.format; | def make_drawer(name): global texture, grad, solid, shade, opaque, white texture = (name.find("_texture_") != -1) grad = (name.find("_grad_") != -1) solid = (name.find("_solid_") != -1) shade = (name.find("_shade") != -1) opaque = (name.find("_opaque") != -1) white = (name.find("_white") != -1) if grad and solid: rais... | e587b32baadcc6dd4497225ade2cb0b7b9de36fe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14418/e587b32baadcc6dd4497225ade2cb0b7b9de36fe/make_scanline_drawers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9446,
264,
12,
529,
4672,
2552,
11428,
16,
6058,
16,
18035,
16,
699,
2486,
16,
22519,
16,
9578,
11428,
273,
261,
529,
18,
4720,
2932,
67,
955,
594,
67,
7923,
480,
300,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
67,
9446,
264,
12,
529,
4672,
2552,
11428,
16,
6058,
16,
18035,
16,
699,
2486,
16,
22519,
16,
9578,
11428,
273,
261,
529,
18,
4720,
2932,
67,
955,
594,
67,
7923,
480,
300,
21,
... |
os.system("/usr/bin/xsltproc -o " + optfilename + " tools/compileng_compress.xsl " + outfilename) | os.system("/usr/bin/xsltproc -o " + optfilename + " tools/generate-dev/compileng_compress.xsl " + outfilename) | def main(conf): global xmloutput deptree = {} posttree = {} packages = {} allfiles = {} print print " PREPARING:" print "***********************************************************************************************" print " * Creating directory layout..." if conf["outputSingle"] and not os.path.exists(conf["o... | 01f4d36b50afcdf383fe0021ae688a00ecf04d0a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/01f4d36b50afcdf383fe0021ae688a00ecf04d0a/compileng.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3923,
4672,
2552,
25179,
14533,
458,
225,
443,
337,
992,
273,
2618,
1603,
3413,
273,
2618,
225,
5907,
273,
2618,
777,
2354,
273,
2618,
282,
1172,
1172,
315,
225,
7071,
2778,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
3923,
4672,
2552,
25179,
14533,
458,
225,
443,
337,
992,
273,
2618,
1603,
3413,
273,
2618,
225,
5907,
273,
2618,
777,
2354,
273,
2618,
282,
1172,
1172,
315,
225,
7071,
2778,
13... |
file_name = re.search("<strong>Name: </strong>(.*)</font><br />", self.html).group(1) | file_name = re.search("<strong>Name: </strong>(.+?)</font>", self.html).group(1) | def get_file_name(self): if self.html == None: self.download_html() if not self.want_reconnect: file_name = re.search("<strong>Name: </strong>(.*)</font><br />", self.html).group(1) return file_name else: return self.parent.url | a95ea910fc68dfd629e1b36929f6d1319682aec0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/a95ea910fc68dfd629e1b36929f6d1319682aec0/ZippyshareCom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
529,
12,
2890,
4672,
309,
365,
18,
2620,
422,
599,
30,
365,
18,
7813,
67,
2620,
1435,
309,
486,
365,
18,
17369,
67,
25913,
30,
585,
67,
529,
273,
283,
18,
3072,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
67,
529,
12,
2890,
4672,
309,
365,
18,
2620,
422,
599,
30,
365,
18,
7813,
67,
2620,
1435,
309,
486,
365,
18,
17369,
67,
25913,
30,
585,
67,
529,
273,
283,
18,
3072,
2... |
if data.endswith('\r\n'): return data.replace('\r\n', '\n') | if data.endswith(b'\r\n'): return data.replace(b'\r\n', b'\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 comb... | ad503e5c9d19e8217e2e4e6ed87f8cd36abdebb7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/ad503e5c9d19e8217e2e4e6ed87f8cd36abdebb7/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,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3883,
67,
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,
8... |
super(VerboseTextReporter, self).startTest(method) | super(TreeReporter, self).startTest(method) | def startTest(self, method): self.write(' %s ... ', method.shortDescription()) super(VerboseTextReporter, self).startTest(method) | 2111afd113df8f03d5a8292816aa499e4230763f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/2111afd113df8f03d5a8292816aa499e4230763f/reporter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
4709,
12,
2890,
16,
707,
4672,
365,
18,
2626,
2668,
1377,
738,
87,
1372,
2265,
707,
18,
6620,
3291,
10756,
2240,
12,
14489,
1528,
13289,
16,
365,
2934,
1937,
4709,
12,
2039,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
4709,
12,
2890,
16,
707,
4672,
365,
18,
2626,
2668,
1377,
738,
87,
1372,
2265,
707,
18,
6620,
3291,
10756,
2240,
12,
14489,
1528,
13289,
16,
365,
2934,
1937,
4709,
12,
2039,
13,
2... |
print "UPDATE" | def Inventory(self): print "In Inventory::" Toolset.Inventory(self) self.pkgwork = {'add':[], 'update':[], 'remove':[]} all = deepcopy(self.installed) desired = {} for entry in self.cfg.findall(".//Package"): desired[entry.attrib['name']] = entry | f6fbdc64e70040a0c764be8e8694b4d2e687b187 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/f6fbdc64e70040a0c764be8e8694b4d2e687b187/Debian.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24835,
12,
2890,
4672,
1172,
315,
382,
24835,
30,
2773,
13288,
542,
18,
15059,
12,
2890,
13,
365,
18,
10657,
1252,
273,
13666,
1289,
4278,
63,
6487,
296,
2725,
4278,
63,
6487,
296,
4479,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24835,
12,
2890,
4672,
1172,
315,
382,
24835,
30,
2773,
13288,
542,
18,
15059,
12,
2890,
13,
365,
18,
10657,
1252,
273,
13666,
1289,
4278,
63,
6487,
296,
2725,
4278,
63,
6487,
296,
4479,... | |
newmsg = TimeCode + ' ' + unicode( msg ) | newmsg = TimeCode + ' ' + unicodeC( msg ) | def logStatusMsg( msg, level, config=True ): u"""write a message to the log/stdout/stderr, depending on the level. if config=False, goes straight to stderr""" global _action TimeCode = u"[%4d%02d%02d.%02d:%02d.%02d]" % time.localtime()[:6] newmsg = TimeCode + ' ' + unicode( msg ) if not config and _action != "daemon"... | 15efa811c3a3c7e375db44557ec2cc39fdd58d98 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/15efa811c3a3c7e375db44557ec2cc39fdd58d98/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
1482,
3332,
12,
1234,
16,
1801,
16,
642,
33,
5510,
262,
30,
582,
8395,
2626,
279,
883,
358,
326,
613,
19,
10283,
19,
11241,
16,
8353,
603,
326,
1801,
18,
309,
642,
33,
8381,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
1482,
3332,
12,
1234,
16,
1801,
16,
642,
33,
5510,
262,
30,
582,
8395,
2626,
279,
883,
358,
326,
613,
19,
10283,
19,
11241,
16,
8353,
603,
326,
1801,
18,
309,
642,
33,
8381,
16,... |
t = time.time() if time.daylight: tz = time.altzone else: tz = time.timezone return t, tz | lt = time.localtime() if lt[8] == 1 and time.daylight: tz = time.altzone else: tz = time.timezone return time.mktime(lt), tz | def makedate(): t = time.time() if time.daylight: tz = time.altzone else: tz = time.timezone return t, tz | 34b3f21f4070a89dab3fb79d677bcd4bfd431d8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/34b3f21f4070a89dab3fb79d677bcd4bfd431d8d/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11882,
340,
13332,
13489,
273,
813,
18,
3729,
957,
1435,
309,
13489,
63,
28,
65,
422,
404,
471,
813,
18,
2881,
5099,
30,
6016,
273,
813,
18,
2390,
3486,
469,
30,
6016,
273,
813,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11882,
340,
13332,
13489,
273,
813,
18,
3729,
957,
1435,
309,
13489,
63,
28,
65,
422,
404,
471,
813,
18,
2881,
5099,
30,
6016,
273,
813,
18,
2390,
3486,
469,
30,
6016,
273,
813,
18,
... |
if not dict[field] == stampEvent : if self.logger: self.logger.ReportFailure("(On Event Stamp Checking) || object Event Stamp = %s ; expected Event Stamp = %s" %(stampEvent, dict[field])) | if not value == stampEvent : if self.logger: self.logger.ReportFailure("(On Event Stamp Checking) || object Event Stamp = %s ; expected Event Stamp = %s" %(stampEvent, value)) | def Check_Object(self, dict): """ Check expected value by comparison to the data contained in the object attributes @type dict : dictionary @param dict : dictionary with expected item attributes values for checking {"attributeName":"expected value",...} """ if self.logger: self.logger.SetChecked(True) # check the chang... | 5c6ba404b99947f3210082287c79a9b81a402c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/5c6ba404b99947f3210082287c79a9b81a402c26/QAUITestAppLib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
67,
921,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
460,
635,
5826,
358,
326,
501,
7542,
316,
326,
733,
1677,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
67,
921,
12,
2890,
16,
2065,
4672,
3536,
2073,
2665,
460,
635,
5826,
358,
326,
501,
7542,
316,
326,
733,
1677,
632,
723,
2065,
294,
3880,
632,
891,
2065,
294,
3880,
598,
2665,
76... |
date=time.strftime('%Y-%m-%d') date= date or time.strftime('%Y-%m-%d') | date = time.strftime('%Y-%m-%d') date = date or time.strftime('%Y-%m-%d') | def _current_rate(self, cr, uid, ids, name, arg, context={}): res={} if 'date' in context: date=context['date'] else: date=time.strftime('%Y-%m-%d') date= date or time.strftime('%Y-%m-%d') for id in ids: cr.execute("SELECT currency_id, rate FROM res_currency_rate WHERE currency_id = %s AND name <= %s ORDER BY name desc... | 237c9091dc9f7becb567ed67ae88fac3e96f5a28 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/237c9091dc9f7becb567ed67ae88fac3e96f5a28/res_currency.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2972,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
12938,
309,
296,
712,
11,
316,
819,
30,
1509,
33,
2472,
3292,
712,
3546,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2972,
67,
5141,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
12938,
309,
296,
712,
11,
316,
819,
30,
1509,
33,
2472,
3292,
712,
3546,
46... |
logging.info("%s -> %s", self, self.status) | def set_status(self, status): self.update_field('status', status) | f352fd043cb962ca8443b64ed32a711ccefdbce0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/f352fd043cb962ca8443b64ed32a711ccefdbce0/monitor_db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
1267,
4672,
365,
18,
2725,
67,
1518,
2668,
2327,
2187,
1267,
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,... | [
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
2327,
12,
2890,
16,
1267,
4672,
365,
18,
2725,
67,
1518,
2668,
2327,
2187,
1267,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if offline and cached_time is not None: | if offline and cached_content is not None: | def fetch(self, url, force_update = False, offline = False): "Return the feed at url." | bb266f63e421b376eb3fc0c282e4b66f1aac5d63 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12778/bb266f63e421b376eb3fc0c282e4b66f1aac5d63/cache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
880,
16,
2944,
67,
2725,
273,
1083,
16,
13493,
273,
1083,
4672,
315,
990,
326,
4746,
622,
880,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
12,
2890,
16,
880,
16,
2944,
67,
2725,
273,
1083,
16,
13493,
273,
1083,
4672,
315,
990,
326,
4746,
622,
880,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for userid in dict_gungameCore: averageDivider += 1 averageLevel += int(dict_gungameCore[userid]['level']) | for userid in es.getUseridList(): if dict_gungameCore.has_key(userid): averageDivider += 1 averageLevel += int(dict_gungameCore[userid]['level']) | def getAverageLevel(): averageLevel = 0 averageDivider = 0 for userid in dict_gungameCore: averageDivider += 1 averageLevel += int(dict_gungameCore[userid]['level']) if averageDivider: return int(round(averageLevel / averageDivider)) else: return 0 | d17224ebe646f69160e59e73c2d54a8dffcc9209 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4575/d17224ebe646f69160e59e73c2d54a8dffcc9209/gungamelib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4506,
5682,
2355,
13332,
8164,
2355,
273,
374,
8164,
25558,
273,
374,
364,
6709,
316,
5001,
18,
588,
1299,
350,
682,
13332,
309,
2065,
67,
19339,
13957,
4670,
18,
5332,
67,
856,
12,
8339... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4506,
5682,
2355,
13332,
8164,
2355,
273,
374,
8164,
25558,
273,
374,
364,
6709,
316,
5001,
18,
588,
1299,
350,
682,
13332,
309,
2065,
67,
19339,
13957,
4670,
18,
5332,
67,
856,
12,
8339... |
g_dEncodeFunctions[ type( uObject ) ]( uObject, eList ) | g_dEncodeFunctions[ type( uObject ) ]( uObject, eList ) | def encodeList( lValue, eList ): eList.append( "l" ) for uObject in lValue: g_dEncodeFunctions[ type( uObject ) ]( uObject, eList ) eList.append( "e" ) | ebe9356935b2fb6c9903f83b3b0834f996eb43bb /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/ebe9356935b2fb6c9903f83b3b0834f996eb43bb/DEncode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
682,
12,
328,
620,
16,
425,
682,
262,
30,
425,
682,
18,
6923,
12,
315,
80,
6,
262,
364,
582,
921,
316,
328,
620,
30,
314,
67,
72,
5509,
7503,
63,
618,
12,
582,
921,
262,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2017,
682,
12,
328,
620,
16,
425,
682,
262,
30,
425,
682,
18,
6923,
12,
315,
80,
6,
262,
364,
582,
921,
316,
328,
620,
30,
314,
67,
72,
5509,
7503,
63,
618,
12,
582,
921,
262,
30... |
node.parent = self | self.setup_child(node) | def __iadd__(self, other): """Append a node or a list of nodes to `self.children`.""" if isinstance(other, Node): other.parent = self self.children.append(other) elif other is not None: for node in other: node.parent = self self.children.extend(other) return self | d30db31f101c2d47316eef6ce1160f81923e3106 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1532/d30db31f101c2d47316eef6ce1160f81923e3106/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
77,
1289,
972,
12,
2890,
16,
1308,
4672,
3536,
5736,
279,
756,
578,
279,
666,
434,
2199,
358,
1375,
2890,
18,
5906,
68,
12123,
309,
1549,
12,
3011,
16,
2029,
4672,
1308,
18,
2938... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
77,
1289,
972,
12,
2890,
16,
1308,
4672,
3536,
5736,
279,
756,
578,
279,
666,
434,
2199,
358,
1375,
2890,
18,
5906,
68,
12123,
309,
1549,
12,
3011,
16,
2029,
4672,
1308,
18,
2938... |
def onMessage(message): | def onMessage(self, message): | def onMessage(message): print 'got a', message | e7528353470d11216e677f33dc13dc3c449745dd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4106/e7528353470d11216e677f33dc13dc3c449745dd/test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30002,
12,
2890,
16,
883,
4672,
1172,
296,
13212,
279,
2187,
883,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30002,
12,
2890,
16,
883,
4672,
1172,
296,
13212,
279,
2187,
883,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
wikipedia.output(u'Loading latest ' + str(limit) + u' new users from ' + (wsite.hostname()) + u'...\n') | wikipedia.output(u'Loading latest %s new users from %s...\n' % (limit, wsite.hostname())) | def main(settingsBot): # Taking the messages inside the function namespace. global netext; global summary; global logbook; global summary2; global report_page; global project_inserted global comment; global bad_pag; global report_text; global random_sign; global whitelist_pg """ 0 1 2 3 4 ... | 39b7ba3c7caa86382857fed4504f0e143bf50fc9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/39b7ba3c7caa86382857fed4504f0e143bf50fc9/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
4272,
6522,
4672,
468,
399,
6159,
326,
2743,
4832,
326,
445,
1981,
18,
2552,
2901,
408,
31,
2552,
4916,
31,
2552,
613,
3618,
31,
2552,
4916,
22,
31,
2552,
2605,
67,
2433,
31,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4272,
6522,
4672,
468,
399,
6159,
326,
2743,
4832,
326,
445,
1981,
18,
2552,
2901,
408,
31,
2552,
4916,
31,
2552,
613,
3618,
31,
2552,
4916,
22,
31,
2552,
2605,
67,
2433,
31,... |
outfile = 'graticule.shp' | outfile = None | def Usage(): print 'Usage: mkgraticule [-connected] [-s stepsize] [-substep substepsize]' print ' [-t_srs srs] [-range xmin ymin xmax ymax] outfile' print sys.exit(1) | d1f65c19e7d96026409146bf314a8c967f29dbc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10290/d1f65c19e7d96026409146bf314a8c967f29dbc9/mkgraticule.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
5028,
3197,
2126,
725,
23059,
8537,
65,
23059,
87,
2235,
1467,
65,
23059,
1717,
4119,
720,
4119,
1467,
3864,
1172,
296,
540,
23059,
88,
67,
87,
5453,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10858,
13332,
1172,
296,
5357,
30,
5028,
3197,
2126,
725,
23059,
8537,
65,
23059,
87,
2235,
1467,
65,
23059,
1717,
4119,
720,
4119,
1467,
3864,
1172,
296,
540,
23059,
88,
67,
87,
5453,
2... |
self.assertEqual(myexceptions, theirexceptions, | self.assertItemsEqual(myexceptions, theirexceptions, | def FixQuotes(val): val = val.replace("''", 'SingleQuote').replace('""', 'DoubleQuote') val = val.replace("'", '').replace('"', '') val = val.replace('SingleQuote', "'").replace('DoubleQuote', '"') return val | 8f43cec41b13ee97a688327601f799bda1742f61 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/8f43cec41b13ee97a688327601f799bda1742f61/test_decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12139,
14292,
12,
1125,
4672,
1244,
273,
1244,
18,
2079,
2932,
6309,
3113,
296,
5281,
10257,
16063,
2079,
2668,
3660,
2187,
296,
5265,
10257,
6134,
1244,
273,
1244,
18,
2079,
29823,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12139,
14292,
12,
1125,
4672,
1244,
273,
1244,
18,
2079,
2932,
6309,
3113,
296,
5281,
10257,
16063,
2079,
2668,
3660,
2187,
296,
5265,
10257,
6134,
1244,
273,
1244,
18,
2079,
29823,
3113,
... |
"domain": "0x%04x" % int(ppci_record["domain"]), "bus": "0x%02x" % int(ppci_record["bus"]), "slot": "0x%02x" % int(ppci_record["slot"]), "func": "0x%01x" % int(ppci_record["func"]), "vslot": "0x%02x" % \ int(server.xenapi.DPCI.get_hotplug_slot(dpci_ref)) | "domain": int(ppci_record["domain"]), "bus": int(ppci_record["bus"]), "slot": int(ppci_record["slot"]), "func": int(ppci_record["func"]), "vslot": int(server.xenapi.DPCI.get_hotplug_slot(dpci_ref)) | def xm_pci_list(args): (use_long, params) = arg_check_for_resource_list(args, "pci-list") dom = params[0] devs = [] if serverType == SERVER_XEN_API: for dpci_ref in server.xenapi.VM.get_DPCIs(get_single_vm(dom)): ppci_ref = server.xenapi.DPCI.get_PPCI(dpci_ref) ppci_record = server.xenapi.PPCI.get_record(ppci_ref) de... | e854508adde7e216e89304196d9a0d78b5c54e2b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6195/e854508adde7e216e89304196d9a0d78b5c54e2b/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25179,
67,
2436,
77,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
2436,
77,
17,
1098,
7923,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25179,
67,
2436,
77,
67,
1098,
12,
1968,
4672,
261,
1202,
67,
5748,
16,
859,
13,
273,
1501,
67,
1893,
67,
1884,
67,
3146,
67,
1098,
12,
1968,
16,
315,
2436,
77,
17,
1098,
7923,
225,
... |
if stripped_line and stripped_line[0] == ' | if stripped_line.startswith(' | def handle_encoding_declaration(contents, out): """Find a Python encoding declaration in the first line of contents. If found, output it to out and return contents without first line, else output a default utf-8 declaration and return contents. EXAMPLE: sage: from sage.misc.interpreter import handle_encoding_declarati... | 6d27bca1653c28bf0da13ef10578fe175e62da4b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/6d27bca1653c28bf0da13ef10578fe175e62da4b/interpreter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1640,
67,
5999,
67,
22448,
12,
3980,
16,
596,
4672,
3536,
3125,
279,
6600,
2688,
8266,
316,
326,
1122,
980,
434,
2939,
18,
971,
1392,
16,
876,
518,
358,
596,
471,
327,
2939,
2887,
1122... |
new_file = getFilename(request, pagename, name) | new_file = getFilename(request, pagename, finalname) | def unzip_file(pagename, request): _ = request.getText valid_pathname = lambda name: (name.find('/') == -1) and (name.find('\\') == -1) filename, fpath = _access_file(pagename, request) if not filename: return # error msg already sent in _access_file attachment_path = getAttachDir(request, pagename) single_file_size ... | eae9e3b71fd57c63a827cf6fbda8446bb721a3d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/eae9e3b71fd57c63a827cf6fbda8446bb721a3d3/AttachFile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20259,
67,
768,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
923,
67,
28336,
273,
3195,
508,
30,
261,
529,
18,
4720,
2668,
2473,
13,
422,
300,
21,
13,
471,
261,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20259,
67,
768,
12,
9095,
1069,
16,
590,
4672,
389,
273,
590,
18,
588,
1528,
923,
67,
28336,
273,
3195,
508,
30,
261,
529,
18,
4720,
2668,
2473,
13,
422,
300,
21,
13,
471,
261,
529,
... |
Return raw ldap info on a group @param uid: gidNumber @type uid: str @return: full raw ldap array (dictionnary of lists) @type: dict """ ret = self.search("gidNumber=" + str(id), self.baseGroupsDN) newattrs = [] | Return raw ldap info on a group @param uid: gidNumber @type uid: int @return: full raw ldap array (dictionnary of lists) @type: dict """ if not base: base = self.baseGroupsDN ret = self.search("gidNumber=" + str(id), base) newattrs = {} | def getDetailedGroupById(self, id, base = None): """ Return raw ldap info on a group | b1d6cc77525df47924a366e236e66d732bea892f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5988/b1d6cc77525df47924a366e236e66d732bea892f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
6372,
1114,
5132,
12,
2890,
16,
612,
16,
1026,
273,
599,
4672,
3536,
2000,
1831,
8079,
1123,
603,
279,
1041,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2343,
6372,
1114,
5132,
12,
2890,
16,
612,
16,
1026,
273,
599,
4672,
3536,
2000,
1831,
8079,
1123,
603,
279,
1041,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
elif a.name in nopub_actions: | if a.name in nopub_actions: | def trans_include(repo_uri, fargs, transaction=None): basedirs = [] timestamp_files = [] error_occurred = False opts, pargs = getopt.getopt(fargs, "d:T:") for opt, arg in opts: if opt == "-d": basedirs.append(arg) elif opt == "-T": timestamp_files.append(arg) if transaction == None: try: trans_id = os.environ["PKG_TR... | 3a9017a9005277592b7e9176ca034ce4f0f56657 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12612/3a9017a9005277592b7e9176ca034ce4f0f56657/publish.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
906,
67,
6702,
12,
7422,
67,
1650,
16,
284,
1968,
16,
2492,
33,
7036,
4672,
1026,
8291,
273,
5378,
2858,
67,
2354,
273,
5378,
555,
67,
26635,
1118,
273,
1083,
225,
1500,
16,
779,
564,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
906,
67,
6702,
12,
7422,
67,
1650,
16,
284,
1968,
16,
2492,
33,
7036,
4672,
1026,
8291,
273,
5378,
2858,
67,
2354,
273,
5378,
555,
67,
26635,
1118,
273,
1083,
225,
1500,
16,
779,
564,
... |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def DeleteChildren(self, item): """Delete item children.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2504,
4212,
12,
2890,
16,
761,
4672,
3536,
2613,
761,
2325,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2504,
4212,
12,
2890,
16,
761,
4672,
3536,
2613,
761,
2325,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.tempdir = tempfile.mkdtemp() os.chdir(self.tempdir) | def cat_file(self, filename, revision): # Somehow CVS sometimes seems to write .cvsignore files to current # working directory even though we force stdout with -p. self.tempdir = tempfile.mkdtemp() os.chdir(self.tempdir) | 81c2ae9f2907ed7ffb5498d876002a91e7163ae1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1600/81c2ae9f2907ed7ffb5498d876002a91e7163ae1/cvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6573,
67,
768,
12,
2890,
16,
1544,
16,
6350,
4672,
468,
10548,
13606,
385,
14640,
16594,
12001,
358,
1045,
263,
19774,
2977,
479,
1390,
358,
783,
468,
5960,
1867,
5456,
11376,
732,
2944,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6573,
67,
768,
12,
2890,
16,
1544,
16,
6350,
4672,
468,
10548,
13606,
385,
14640,
16594,
12001,
358,
1045,
263,
19774,
2977,
479,
1390,
358,
783,
468,
5960,
1867,
5456,
11376,
732,
2944,
... | |
if s3path[-1] == self._separator: | if s3path and s3path[-1] == self._separator: | def _s3path(self,path): """Get the absolute path to a file stored in S3.""" path = relpath(path) path = self._separator.join(iteratepath(path)) s3path = self._prefix + path if s3path[-1] == self._separator: s3path = s3path[:-1] return s3path | a97fab46dd4f11ad2fd10368707968cd764a18d9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5579/a97fab46dd4f11ad2fd10368707968cd764a18d9/s3fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
23,
803,
12,
2890,
16,
803,
4672,
3536,
967,
326,
4967,
589,
358,
279,
585,
4041,
316,
348,
23,
12123,
589,
273,
14614,
12,
803,
13,
589,
273,
365,
6315,
11287,
18,
5701,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
87,
23,
803,
12,
2890,
16,
803,
4672,
3536,
967,
326,
4967,
589,
358,
279,
585,
4041,
316,
348,
23,
12123,
589,
273,
14614,
12,
803,
13,
589,
273,
365,
6315,
11287,
18,
5701,
12... |
pm.packageVersion = tokens[1] | pm.packageVersion = tokens[2] | def makePackage(args): opts, args = getopt.getopt(args, 's:d:p:h') pm = PackageMaker() pm.startDir = Filename('.') for option, value in opts: if option == '-s': pm.startDir = Filename.fromOsSpecific(value) elif option == '-d': pm.stageDir = Filename.fromOsSpecific(value) elif option == '-p': tokens = value.split('_') ... | 8c7f9f3553925459063b5d8360fb54c95d4b05a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/8c7f9f3553925459063b5d8360fb54c95d4b05a5/make_package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
2261,
12,
1968,
4672,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
296,
87,
30,
72,
30,
84,
30,
76,
6134,
225,
7430,
273,
7508,
12373,
1435,
7430,
18,
1937,
1621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
2261,
12,
1968,
4672,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
1968,
16,
296,
87,
30,
72,
30,
84,
30,
76,
6134,
225,
7430,
273,
7508,
12373,
1435,
7430,
18,
1937,
1621... |
self.processStartTag(impliedTagToken("p", "StartTag")) | def startTagIsIndex(self, token): self.parser.parseError("deprecated-tag", {"name": "isindex"}) if self.tree.formPointer: return self.processStartTag(impliedTagToken("form", "StartTag")) self.processStartTag(impliedTagToken("hr", "StartTag")) self.processStartTag(impliedTagToken("p", "StartTag")) self.processStartTag(i... | 49defc2a93248aefbfe9e26b1c37b51adda74af7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10463/49defc2a93248aefbfe9e26b1c37b51adda74af7/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2520,
1016,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
14089,
17,
2692,
3113,
12528,
529,
6877,
315,
291,
1615,
6,
6792,
309,
365,
18,
3413,
18,
687,
4926... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
2520,
1016,
12,
2890,
16,
1147,
4672,
365,
18,
4288,
18,
2670,
668,
2932,
14089,
17,
2692,
3113,
12528,
529,
6877,
315,
291,
1615,
6,
6792,
309,
365,
18,
3413,
18,
687,
4926... | |
self.unselectedExamples = orange.ExampleTable(unselected) | self.unselectedExamples = orange.ExampleTable(unselected) if unselected else None | def commitData(self): self.settingsChanged = False self.selection=[] selection=self.selectionList maps=[self.rootCluster.mapping[c.first:c.last] for c in [e.rootCluster for e in selection]] self.selection=[self.matrix.items[k] for k in [j for i in range(len(maps)) for j in maps[i]]] if not self.selection: self.send("S... | 7d890b76dad912666c341762c53473311b960e64 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/7d890b76dad912666c341762c53473311b960e64/OWHierarchicalClustering.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
751,
12,
2890,
4672,
365,
18,
4272,
5033,
273,
1083,
365,
18,
10705,
33,
8526,
4421,
33,
2890,
18,
10705,
682,
7565,
22850,
2890,
18,
3085,
3629,
18,
6770,
63,
71,
18,
3645,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
751,
12,
2890,
4672,
365,
18,
4272,
5033,
273,
1083,
365,
18,
10705,
33,
8526,
4421,
33,
2890,
18,
10705,
682,
7565,
22850,
2890,
18,
3085,
3629,
18,
6770,
63,
71,
18,
3645,
30,
... |
if y == old_y: | if y == i - self.pos: | def display(self, i, insert=0): self.lock.acquire() try: if not self.window: return self.window.screen.lock.acquire() try: if not self.window.screen.active: return if i < self.pos: return if i >= self.pos+self.window.ih: return self.window.win.scrollok(0) self.__logger.debug("Updating item #%i" % (i,)) if i >= len(self... | a54d494b3abf41f8dc299cdff897d08f530aa389 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12768/a54d494b3abf41f8dc299cdff897d08f530aa389/list_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
277,
16,
2243,
33,
20,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
309,
486,
365,
18,
5668,
30,
327,
365,
18,
5668,
18,
9252,
18,
739,
18,
1077,
1039,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2562,
12,
2890,
16,
277,
16,
2243,
33,
20,
4672,
365,
18,
739,
18,
1077,
1039,
1435,
775,
30,
309,
486,
365,
18,
5668,
30,
327,
365,
18,
5668,
18,
9252,
18,
739,
18,
1077,
1039,
14... |
info['modified_time'] = datetime.datetime.fromtimestamp(at) | info['modified_time'] = datetime.datetime.fromtimestamp(mt) | def getinfo(self, path): stats = self._stat(path) info = dict((k, getattr(stats, k)) for k in dir(stats) if not k.startswith('__') ) info['size'] = info['st_size'] # TODO: this doesn't actually mean 'creation time' on unix ct = info.get('st_ctime', None) if ct is not None: info['created_time'] = datetime.datetime.from... | e2c131c00bc9530f8d74eb68ced9a061acda42a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5578/e2c131c00bc9530f8d74eb68ced9a061acda42a8/osfs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1376,
12,
2890,
16,
589,
4672,
3177,
273,
365,
6315,
5642,
12,
803,
13,
1123,
273,
2065,
12443,
79,
16,
3869,
12,
5296,
16,
417,
3719,
364,
417,
316,
1577,
12,
5296,
13,
309,
48... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1376,
12,
2890,
16,
589,
4672,
3177,
273,
365,
6315,
5642,
12,
803,
13,
1123,
273,
2065,
12443,
79,
16,
3869,
12,
5296,
16,
417,
3719,
364,
417,
316,
1577,
12,
5296,
13,
309,
48... |
<TABLE BORDER="0" WIDTH="100%"> <TR VALIGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> | <table border="0" width="100%"> <tr valign="top"> <td width="10%" align="center"> | def _error_html(self,title,body): # XXX could this try to use standard_error_message somehow? return ("""\ | 8f3efd0a3aa3bb2f0aba1e6360ba06506a1b8960 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/8f3efd0a3aa3bb2f0aba1e6360ba06506a1b8960/HTTPResponse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1636,
67,
2620,
12,
2890,
16,
2649,
16,
3432,
4672,
468,
11329,
3377,
333,
775,
358,
999,
4529,
67,
1636,
67,
2150,
28578,
35,
327,
261,
8395,
64,
2,
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,
0,
0,
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,
1636,
67,
2620,
12,
2890,
16,
2649,
16,
3432,
4672,
468,
11329,
3377,
333,
775,
358,
999,
4529,
67,
1636,
67,
2150,
28578,
35,
327,
261,
8395,
64,
2,
-100,
-100,
-100,
-100,
-100,... |
self.runcmd_unchecked("rm -f testtmp.o") | self.runcmd_unchecked("rm -f testtmp.o") | def runtest(self): if sys.platform == 'hp-ux10': raise comfychair.NotRunError ('HP-UX bundled C compiler non-ANSI') # We can't run if cc is not installed on the system (maybe only gcc is) error_rc, _, _ = self.runcmd_unchecked("cc -c testtmp.c") | c89464e8cea2f2cec7bb4d72ebcd360cc9f002cc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7392/c89464e8cea2f2cec7bb4d72ebcd360cc9f002cc/testdistcc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
15373,
17,
2616,
2163,
4278,
1002,
532,
74,
93,
343,
1826,
18,
1248,
1997,
668,
7707,
2500,
17,
57,
60,
324,
24467,
385,
5274... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3813,
12,
2890,
4672,
309,
2589,
18,
9898,
422,
296,
15373,
17,
2616,
2163,
4278,
1002,
532,
74,
93,
343,
1826,
18,
1248,
1997,
668,
7707,
2500,
17,
57,
60,
324,
24467,
385,
5274... |
def load_filename(filename, verbose = False, gz = False, xmldoc = None): | def load_filename(filename, verbose = False, gz = False, xmldoc = None, contenthandler = None): | def load_filename(filename, verbose = False, gz = False, xmldoc = None): """ Parse the contents of the file identified by filename, and return the contents as a LIGO Light Weight document tree. Helpful verbosity messages are printed to stderr if verbose is True, and the file is gzip decompressed while reading if gz is... | dc5eef08ed47e9fd02a58bd21a9b75b97ebef95f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/dc5eef08ed47e9fd02a58bd21a9b75b97ebef95f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
3459,
12,
3459,
16,
3988,
273,
1083,
16,
14136,
273,
1083,
16,
2025,
2434,
273,
599,
16,
913,
4176,
273,
599,
4672,
3536,
2884,
326,
2939,
434,
326,
585,
9283,
635,
1544,
16,... |
self.add_line("Left Team: MaxWinRate %.2f%%, MinWinRate %.2f%%" % (self.max_win_rate * 100, self.min_win_rate * 100), Color.GRAY) | if self.left_count > 0: self.add_line("Left Team: MaxWinRate %.2f%%, MinWinRate %.2f%%" % (self.max_win_rate * 100, self.min_win_rate * 100), Color.GRAY) | def do_some_formatting(self): self.add_line(self.title, color=Color.BLUE) self.add_newline() | 0242d35722f9b15865f4aeb5ad6db6bdfa26695a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/0242d35722f9b15865f4aeb5ad6db6bdfa26695a/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
19068,
67,
2139,
1787,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
12,
2890,
18,
2649,
16,
2036,
33,
2957,
18,
14618,
1821,
13,
365,
18,
1289,
67,
22861,
1435,
2,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
19068,
67,
2139,
1787,
12,
2890,
4672,
365,
18,
1289,
67,
1369,
12,
2890,
18,
2649,
16,
2036,
33,
2957,
18,
14618,
1821,
13,
365,
18,
1289,
67,
22861,
1435,
2,
-100,
-100,
-... |
fieldbody = nodes.field_body('', nodes.paragraph('', *content)) | fieldbody = nodes.field_body('', nodes.paragraph('', '', *content)) | def make_field(self, types, domain, item): fieldarg, content = item fieldname = nodes.field_name('', self.label) if fieldarg: fieldname += nodes.Text(' ') fieldname += self.make_xref(self.rolename, domain, fieldarg, nodes.Text) fieldbody = nodes.field_body('', nodes.paragraph('', *content)) return nodes.field('', field... | bc03e43e9556eba83cc23aac17ef2b962d288a19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7032/bc03e43e9556eba83cc23aac17ef2b962d288a19/docfields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1518,
12,
2890,
16,
1953,
16,
2461,
16,
761,
4672,
652,
3175,
16,
913,
273,
761,
14680,
273,
2199,
18,
1518,
67,
529,
2668,
2187,
365,
18,
1925,
13,
309,
652,
3175,
30,
146... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
67,
1518,
12,
2890,
16,
1953,
16,
2461,
16,
761,
4672,
652,
3175,
16,
913,
273,
761,
14680,
273,
2199,
18,
1518,
67,
529,
2668,
2187,
365,
18,
1925,
13,
309,
652,
3175,
30,
146... |
assert lltype.typeOf(x) == OBJECTPTR | assert self.is_of_instance_type(x) | def f(n): if n > 0: return virtual_ref(X()) else: return vref_None | 3b435b6c4040bdf6c133e3b29e2006a0abf251a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6934/3b435b6c4040bdf6c133e3b29e2006a0abf251a2/test__jit_vref.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
82,
4672,
309,
290,
405,
374,
30,
327,
5024,
67,
1734,
12,
60,
10756,
469,
30,
327,
331,
1734,
67,
7036,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
82,
4672,
309,
290,
405,
374,
30,
327,
5024,
67,
1734,
12,
60,
10756,
469,
30,
327,
331,
1734,
67,
7036,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return testDMSDB.insertSomething(user,files) | return testDB.insertSomething(user,files) | def export_insertSomething(self,user,files): return testDMSDB.insertSomething(user,files) | 54368f2b0b566291eea44c1f27cc7346632ca96b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/54368f2b0b566291eea44c1f27cc7346632ca96b/testDMSHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
6387,
24332,
12,
2890,
16,
1355,
16,
2354,
4672,
327,
1842,
40,
3537,
2290,
18,
6387,
24332,
12,
1355,
16,
2354,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
6387,
24332,
12,
2890,
16,
1355,
16,
2354,
4672,
327,
1842,
40,
3537,
2290,
18,
6387,
24332,
12,
1355,
16,
2354,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.connect(('localhost', 8110)) server.sendall("kill\r\n") | proxy.recv(100) pop3Server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) pop3Server.connect(('localhost', 8110)) pop3Server.sendall("kill\r\n") pop3Server.recv(100) | def runProxy(): # Name the database in case it ever gets auto-flushed to disk. bayes = hammie.createbayes('_pop3proxy.db') BayesProxyListener('localhost', 8110, 8111, bayes) bayes.learn(tokenizer.tokenize(spam1), True) bayes.learn(tokenizer.tokenize(good1), False) proxyReady.set() asyncore.loop() | 687201dd0422d531b52815cedabcca48f312f1ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9857/687201dd0422d531b52815cedabcca48f312f1ba/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3886,
13332,
468,
1770,
326,
2063,
316,
648,
518,
14103,
5571,
3656,
17,
11330,
329,
358,
4234,
18,
324,
528,
281,
273,
366,
301,
81,
1385,
18,
2640,
70,
528,
281,
2668,
67,
5120... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
3886,
13332,
468,
1770,
326,
2063,
316,
648,
518,
14103,
5571,
3656,
17,
11330,
329,
358,
4234,
18,
324,
528,
281,
273,
366,
301,
81,
1385,
18,
2640,
70,
528,
281,
2668,
67,
5120... |
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) | raise HTTPError(req.get_full_url(), code, msg, headers, fp) | def redirect_request(self, req, fp, code, msg, headers, newurl): """Return a Request or None in response to a redirect. | e3b67bcb7e38ae29453f637b019de10adb8de360 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e3b67bcb7e38ae29453f637b019de10adb8de360/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
67,
2293,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
1607,
16,
394,
718,
4672,
3536,
990,
279,
1567,
578,
599,
316,
766,
358,
279,
3136,
18,
2,
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,
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,
3136,
67,
2293,
12,
2890,
16,
1111,
16,
4253,
16,
981,
16,
1234,
16,
1607,
16,
394,
718,
4672,
3536,
990,
279,
1567,
578,
599,
316,
766,
358,
279,
3136,
18,
2,
-100,
-100,
-100,
-100... |
debt = max(debt - paid, min(0.0, unreconciled - paid)) | debt = max(debt - paid, min(0.0, unreconciled)) | def amount_to_pay(self, cr, uid, ids, name, arg={}, context={}): """ Return amount pending to be paid taking into account payment lines and the reconciliation. Note that the amount to pay can be due to negative supplier refund invoices or customer invoices. """ | e3257d9b7d7096bf075528de1d288860c877dd68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9833/e3257d9b7d7096bf075528de1d288860c877dd68/account_move_line.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3844,
67,
869,
67,
10239,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
28793,
819,
12938,
4672,
3536,
2000,
3844,
4634,
358,
506,
30591,
13763,
1368,
2236,
5184,
2362,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3844,
67,
869,
67,
10239,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
28793,
819,
12938,
4672,
3536,
2000,
3844,
4634,
358,
506,
30591,
13763,
1368,
2236,
5184,
2362,
471,... |
msg = 'Argument at position 1 cannot be coerced to %s' handler = self.lib.handlers['intArgument'] assert_raises_with_msg(DataError, msg % 'integer', handler._arg_coercer, ['invalid']) handler = self.lib.handlers['booleanArgument'] assert_raises_with_msg(DataError, msg % 'boolean', handler._arg_coercer, ['invalid']) han... | exp_msg = 'Argument at position 1 cannot be coerced to %s' self._test_coercion_fails(self._handler_named('intArgument'), exp_msg % 'integer') self._test_coercion_fails(self._handler_named('booleanArgument'), exp_msg % 'boolean') self._test_coercion_fails(self._handler_named('floatArgument'), exp_msg % 'floating point n... | def test_coercion_fails_with_reasonable_message(self): msg = 'Argument at position 1 cannot be coerced to %s' handler = self.lib.handlers['intArgument'] assert_raises_with_msg(DataError, msg % 'integer', handler._arg_coercer, ['invalid']) handler = self.lib.handlers['booleanArgument'] assert_raises_with_msg(DataError, ... | d798a90e3520a631e948b83c29999ddb51ea1790 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7408/d798a90e3520a631e948b83c29999ddb51ea1790/test_handlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2894,
12610,
285,
67,
6870,
87,
67,
1918,
67,
10579,
429,
67,
2150,
12,
2890,
4672,
1234,
273,
296,
1379,
622,
1754,
404,
2780,
506,
12270,
72,
358,
738,
87,
11,
1838,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2894,
12610,
285,
67,
6870,
87,
67,
1918,
67,
10579,
429,
67,
2150,
12,
2890,
4672,
1234,
273,
296,
1379,
622,
1754,
404,
2780,
506,
12270,
72,
358,
738,
87,
11,
1838,
273,
... |
this = apply(_quickfix.new_Concession, args) | this = _quickfix.new_Concession(*args) | def __init__(self, *args): this = apply(_quickfix.new_Concession, 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.py | [
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,
442,
614,
285,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
442,
614,
285,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365... |
sendmail(sender, to + bcc + cc, m.as_string(0)) | fp = cStringIO.StringIO() generator = email.Generator.Generator(fp, mangle_from_=False) generator.flatten(m, 0) sendmail(sender, to + bcc + cc, fp.getvalue()) | def getaddrs(opt, prpt, default = None): addrs = opts.get(opt) or (ui.config('email', opt) or ui.config('patchbomb', opt) or prompt(prpt, default = default)).split(',') return [a.strip() for a in addrs if a.strip()] | 7d489aa65192e6f95644a69e2b2ad6eb660899fb /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/7d489aa65192e6f95644a69e2b2ad6eb660899fb/patchbomb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
18,
588,
12,
3838,
13,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
23305,
12,
3838,
16,
846,
337,
16,
805,
273,
599,
4672,
11755,
273,
1500,
18,
588,
12,
3838,
13,
578,
261,
4881,
18,
1425,
2668,
3652,
2187,
2153,
13,
578,
5915,
18,
1425,
2668,
... |
Protract the segmentlists. | Run protract(x) on all segmentlists. | def protract(self, x): """ Protract the segmentlists. """ for key in self.iterkeys(): self[key].protract(x) return self | 742750097c66a38d0dfc3918909659c30f437245 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/742750097c66a38d0dfc3918909659c30f437245/segments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
1575,
12,
2890,
16,
619,
4672,
3536,
1939,
450,
1575,
12,
92,
13,
603,
777,
3267,
9772,
18,
3536,
364,
498,
316,
365,
18,
2165,
2452,
13332,
365,
63,
856,
8009,
685,
1575,
12,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
450,
1575,
12,
2890,
16,
619,
4672,
3536,
1939,
450,
1575,
12,
92,
13,
603,
777,
3267,
9772,
18,
3536,
364,
498,
316,
365,
18,
2165,
2452,
13332,
365,
63,
856,
8009,
685,
1575,
12,
9... |
Subwidgets Class ---------- ----- label Label frame Frame""" | Subwidgets Class ---------- ----- label Label frame Frame""" | def __init__ (self,master=None,cnf={}, **kw): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertEqual(int(LongOverridesTrunc()), 42) | self.assertEqual(int(IntOverridesTrunc()), 42) | def __trunc__(self): return -12 | ff047d33151a0368851ab58688a5734a0a3a2542 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/ff047d33151a0368851ab58688a5734a0a3a2542/test_long.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23558,
972,
12,
2890,
4672,
327,
300,
2138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
23558,
972,
12,
2890,
4672,
327,
300,
2138,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
column.pack_start (renderText, expand=TRUE) | column.pack_start (renderText, expand=True) | def __init__ (self, configList): self.model = ConfigTreeModel (configList) gtk.TreeView.__init__ (self, self.model) self.model.renderIcons (self) self.connect ("style-set", lambda widget, prevStyle: self.model.renderIcons (widget)) self.set_size_request (200, -1) self.set_headers_visible (FALSE) self.expand_all() self.... | ab8126074d7036807d1d842171687cc01617a181 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4580/ab8126074d7036807d1d842171687cc01617a181/driconf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
642,
682,
4672,
365,
18,
2284,
273,
1903,
2471,
1488,
261,
1425,
682,
13,
22718,
18,
2471,
1767,
16186,
2738,
972,
261,
2890,
16,
365,
18,
2284,
13,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
642,
682,
4672,
365,
18,
2284,
273,
1903,
2471,
1488,
261,
1425,
682,
13,
22718,
18,
2471,
1767,
16186,
2738,
972,
261,
2890,
16,
365,
18,
2284,
13,
365... |
pJoin=os.path.join | pjoin=os.path.join | def main(): cwd = os.getcwd() os.chdir(os.path.dirname(os.path.abspath(sys.argv[0]))) MACROS=[('ROBIN_DEBUG',None)] MACROS=[] from glob import glob from distutils.core import setup, Extension pJoin=os.path.join LIBART_VERSION = libart_version() SOURCES=['_renderPM.c'] DEVEL_DIR=os.curdir LIBART_DIR=pJoin(DEVEL_DIR,'li... | 8803120be2f52578e5d4da6add04f5d7ced4c1d3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3878/8803120be2f52578e5d4da6add04f5d7ced4c1d3/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
7239,
273,
1140,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
9499,
18,
19485,
63,
20,
65,
20349,
14246,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7239,
273,
1140,
18,
588,
11089,
1435,
1140,
18,
343,
1214,
12,
538,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
5113,
803,
12,
9499,
18,
19485,
63,
20,
65,
20349,
14246,
... |
res = sctypeDict.get(rep, default) return res | try: res = dtype(rep) except: return default return res.type | def obj2sctype(rep, default=None): try: if issubclass(rep, generic): return rep except TypeError: pass if isinstance(rep, dtype): return rep.type if isinstance(rep, type): return _python_type(rep) if isinstance(rep, ndarray): return rep.dtype.type res = sctypeDict.get(rep, default) return res | b9ce9390471f4f0989c6e4605d04ef0e5d1f5494 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/b9ce9390471f4f0989c6e4605d04ef0e5d1f5494/numerictypes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1081,
22,
87,
12387,
12,
14462,
16,
805,
33,
7036,
4672,
775,
30,
309,
14664,
12,
14462,
16,
5210,
4672,
327,
2071,
1335,
3580,
30,
1342,
309,
1549,
12,
14462,
16,
3182,
4672,
327,
207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1081,
22,
87,
12387,
12,
14462,
16,
805,
33,
7036,
4672,
775,
30,
309,
14664,
12,
14462,
16,
5210,
4672,
327,
2071,
1335,
3580,
30,
1342,
309,
1549,
12,
14462,
16,
3182,
4672,
327,
207... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.