rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.assertEqual(sum(elem.hash_count for elem in d), n) | self.assertEqual(sum(elem.hash_count for elem in d), n) | def test_do_not_rehash_dict_keys(self): n = 10 d = dict.fromkeys(map(HashCountingInt, xrange(n))) self.assertEqual(sum(elem.hash_count for elem in d), n) s = self.thetype(d) self.assertEqual(sum(elem.hash_count for elem in d), n) s.difference(d) self.assertEqual(sum(elem.hash_count for elem in d), n) if hasattr(s, 'sym... | 96b8d087378a0ccc5055b67a06c4a2a6e5a10d1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/96b8d087378a0ccc5055b67a06c4a2a6e5a10d1f/test_set.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2896,
67,
902,
67,
266,
2816,
67,
1576,
67,
2452,
12,
2890,
4672,
290,
273,
1728,
302,
273,
2065,
18,
2080,
2452,
12,
1458,
12,
2310,
1380,
310,
1702,
16,
12314,
12,
82,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
67,
902,
67,
266,
2816,
67,
1576,
67,
2452,
12,
2890,
4672,
290,
273,
1728,
302,
273,
2065,
18,
2080,
2452,
12,
1458,
12,
2310,
1380,
310,
1702,
16,
12314,
12,
82,
20... |
PkgDisable("contrib") | PkgDisable("CONTRIB") | def parseopts(args): global INSTALLER,RTDIST,RUNTIME,GENMAN,DISTRIBUTOR global VERSION,COMPRESSOR,THREADCOUNT,OSXTARGET longopts = [ "help","distributor=","verbose","runtime","osxtarget=", "optimize=","everything","nothing","installer","rtdist","nocolor", "version=","lzma","no-python","threads=","outputdir=","override=... | a31a23cd31fbbada2c7b97f8829fd2f817c7d1c2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8543/a31a23cd31fbbada2c7b97f8829fd2f817c7d1c2/makepanda.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4952,
12,
1968,
4672,
2552,
22880,
4685,
654,
16,
12185,
2565,
882,
16,
54,
25375,
16,
16652,
9560,
16,
2565,
27424,
1693,
916,
2552,
8456,
16,
4208,
22526,
916,
16,
21730,
7240,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
4952,
12,
1968,
4672,
2552,
22880,
4685,
654,
16,
12185,
2565,
882,
16,
54,
25375,
16,
16652,
9560,
16,
2565,
27424,
1693,
916,
2552,
8456,
16,
4208,
22526,
916,
16,
21730,
7240,
1... |
if type(baseunit) == str: | if isinstance(baseunit,str): | def addOffsetUnit(name,baseunit,factor,offset,comment): if type(baseunit) == str: baseunit = _findUnit(baseunit) #else, baseunit should be a instance of PhysicalUnit #names,factor,powers,offset=0 unit = PhysicalUnit(baseunit.names,baseunit.factor*factor,baseunit.powers,offset) unit.setName(name) if _unitLib.unit_table.... | 3a288c0408855fc6c4a467f08f514d7534f04af1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/3a288c0408855fc6c4a467f08f514d7534f04af1/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2335,
2802,
12,
529,
16,
1969,
4873,
16,
6812,
16,
3348,
16,
3469,
4672,
309,
1549,
12,
1969,
4873,
16,
701,
4672,
1026,
4873,
273,
389,
4720,
2802,
12,
1969,
4873,
13,
468,
12107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2335,
2802,
12,
529,
16,
1969,
4873,
16,
6812,
16,
3348,
16,
3469,
4672,
309,
1549,
12,
1969,
4873,
16,
701,
4672,
1026,
4873,
273,
389,
4720,
2802,
12,
1969,
4873,
13,
468,
12107... |
def _getFinalPartData(self, packageClasses, packageUsers, partPackages): packageIds = self._sortPackages(packageClasses.keys(), packageUsers) resultParts = {} for toId, fromId in enumerate(packageIds): for partId in partPackages: if fromId in partPackages[partId]: if not resultParts.has_key(partId): resultParts[partId... | def _getFinalPartData(self, packages, parts): | def _getFinalPartData(self, packageClasses, packageUsers, partPackages): packageIds = self._sortPackages(packageClasses.keys(), packageUsers) | c24b9d0c5995e2b4156e1c5a032318aadd13b52b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/c24b9d0c5995e2b4156e1c5a032318aadd13b52b/PartBuilder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
7951,
1988,
751,
12,
2890,
16,
2181,
4818,
16,
2181,
6588,
16,
1087,
11425,
4672,
2181,
2673,
273,
365,
6315,
3804,
11425,
12,
5610,
4818,
18,
2452,
9334,
2181,
6588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
7951,
1988,
751,
12,
2890,
16,
2181,
4818,
16,
2181,
6588,
16,
1087,
11425,
4672,
2181,
2673,
273,
365,
6315,
3804,
11425,
12,
5610,
4818,
18,
2452,
9334,
2181,
6588,
13,
2,
... |
f = zipf.open("foo.txt") for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!") | with zipf.open("foo.txt") as f: for i in range(FIXEDTEST_SIZE): self.assertEqual(f.read(0), b'') self.assertEqual(f.read(), b"O, for a Muse of Fire!") | def test_read0(self): """Check that calling read(0) on a ZipExtFile object returns an empty string and doesn't advance file pointer.""" with zipfile.ZipFile(TESTFN, mode="w") as zipf: zipf.writestr("foo.txt", "O, for a Muse of Fire!") # read the data to make sure the file is there f = zipf.open("foo.txt") for i in rang... | b851957a42b68791e7491840103c69844875e2e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/b851957a42b68791e7491840103c69844875e2e0/test_zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
20,
12,
2890,
4672,
3536,
1564,
716,
4440,
855,
12,
20,
13,
603,
279,
8603,
2482,
812,
733,
1135,
392,
1008,
533,
471,
3302,
1404,
8312,
585,
4407,
12123,
598,
18823,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
20,
12,
2890,
4672,
3536,
1564,
716,
4440,
855,
12,
20,
13,
603,
279,
8603,
2482,
812,
733,
1135,
392,
1008,
533,
471,
3302,
1404,
8312,
585,
4407,
12123,
598,
18823,
18... |
path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'], '')) | def logout(self, message=None): self.make_user_anonymous() # construct the logout cookie path = '/'.join((self.env['SCRIPT_NAME'], self.env['INSTANCE_NAME'], '')) now = Cookie._getdate() self.header({'Set-Cookie': 'roundup_user=deleted; Max-Age=0; expires=%s; Path=%s;'%(now, path)}) return self.login() | eefa56ffe30ec68716804654903256c037e11c83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1906/eefa56ffe30ec68716804654903256c037e11c83/cgi_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12735,
12,
2890,
16,
883,
33,
7036,
4672,
365,
18,
6540,
67,
1355,
67,
19070,
1435,
468,
4872,
326,
12735,
3878,
2037,
273,
10201,
6315,
588,
712,
1435,
365,
18,
3374,
12590,
11,
694,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12735,
12,
2890,
16,
883,
33,
7036,
4672,
365,
18,
6540,
67,
1355,
67,
19070,
1435,
468,
4872,
326,
12735,
3878,
2037,
273,
10201,
6315,
588,
712,
1435,
365,
18,
3374,
12590,
11,
694,
... | |
while not self._stop: | while not self._stop_server: | def run(self): self.ready.set() while not self._stop: self.httpd.handle_request() | f317f68081ff3ba87f2aa251b2d80f20fd8ae1d9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/f317f68081ff3ba87f2aa251b2d80f20fd8ae1d9/test_urllib2_localnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
1672,
18,
542,
1435,
1323,
486,
365,
6315,
5681,
67,
3567,
30,
365,
18,
2505,
72,
18,
4110,
67,
2293,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
1672,
18,
542,
1435,
1323,
486,
365,
6315,
5681,
67,
3567,
30,
365,
18,
2505,
72,
18,
4110,
67,
2293,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
with test_support.transient_internet(): buf = f.read() | try: with test_support.transient_internet(): buf = f.read() debug("read %d bytes" % len(buf)) except socket.timeout: print >>sys.stderr, "<timeout: %s>" % url | def _test_urls(self, urls, handlers, retry=True): import time import logging debug = logging.getLogger("test_urllib2").debug | 5d69c7d950ff9f07fa2956903547d5ac257d4c2a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/5d69c7d950ff9f07fa2956903547d5ac257d4c2a/test_urllib2net.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
3300,
33,
5510,
4672,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3813,
67,
10518,
12,
2890,
16,
6903,
16,
4919,
16,
3300,
33,
5510,
4672,
1930,
813,
1930,
2907,
1198,
273,
2907,
18,
588,
3328,
2932,
3813,
67,
718,
2941,
22,
20387,
4148,
2,
-100... |
for a in post_obj.account_ids: res.append({'name': a.name, 'code': a.code, 'achievements': compute_achievements(a)}) return res report_sxw.report_sxw('report.account.analytic.budget.print', 'account.analytic.budget.post', 'addons/account/project/report/account_analytic_budget_report.rml',parser=account_analytic_budge... | report_sxw.report_sxw('report.account.analytic.budget.print', 'account.analytic.budget.post', 'addons/account/project/report/account_analytic_budget_report.rml', parser=account_analytic_budget_report, header=False) | def compute_achievements(a): self.cr.execute("SELECT COALESCE(SUM(debit-credit), 0) FROM account_move_line WHERE account_id=%d AND date>=%s AND date<=%s and state<>'draft'", (a.id, date1, date2)) | 68aae5136530777994716ab44554cf3f5c7bd8d1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/68aae5136530777994716ab44554cf3f5c7bd8d1/account_analytic_budget_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
497,
1385,
90,
17110,
12,
69,
4672,
365,
18,
3353,
18,
8837,
2932,
4803,
7910,
37,
11386,
1441,
12,
14020,
12,
323,
3682,
17,
20688,
3631,
374,
13,
4571,
2236,
67,
8501,
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,
3671,
67,
497,
1385,
90,
17110,
12,
69,
4672,
365,
18,
3353,
18,
8837,
2932,
4803,
7910,
37,
11386,
1441,
12,
14020,
12,
323,
3682,
17,
20688,
3631,
374,
13,
4571,
2236,
67,
8501,
67,
... |
if method=='__setstate__': | if not hasattr(self, 'selected_child'): | def __getattr__(self, method): "Forward the method call to the selected child." if method=='__setstate__': # Avoid problems with pickling raise AttributeError return getattr(self.selected_child, method) | 651f9f1e218f2af9ad5772fb7d014cd3298bf4d2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7167/651f9f1e218f2af9ad5772fb7d014cd3298bf4d2/Entity.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1747,
972,
12,
2890,
16,
707,
4672,
315,
8514,
326,
707,
745,
358,
326,
3170,
1151,
1199,
309,
486,
3859,
12,
2890,
16,
296,
8109,
67,
3624,
11,
4672,
468,
17843,
9688,
598,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
588,
1747,
972,
12,
2890,
16,
707,
4672,
315,
8514,
326,
707,
745,
358,
326,
3170,
1151,
1199,
309,
486,
3859,
12,
2890,
16,
296,
8109,
67,
3624,
11,
4672,
468,
17843,
9688,
598,... |
"locale" : self.__locale, "language" : self.__language, "territory" : self.__territory | "LOCALE" : self.__locale, "LANGUAGE" : self.__language, "TERRITORY" : self.__territory | def __init__(self, locale): pstart() logging.info("Preparing locale %s" % locale) splits = locale.split("_") # Store for internal usage self.__locale = locale self.__language = splits[0] self.__territory = splits[1] if len(splits) > 1 else None | 0449da46d56db0af7dbfd9f24d9304ce5d7225e2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/0449da46d56db0af7dbfd9f24d9304ce5d7225e2/LocaleData.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2573,
4672,
293,
1937,
1435,
2907,
18,
1376,
2932,
1386,
12583,
2573,
738,
87,
6,
738,
2573,
13,
11019,
273,
2573,
18,
4939,
2932,
67,
7923,
225,
468,
49... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2573,
4672,
293,
1937,
1435,
2907,
18,
1376,
2932,
1386,
12583,
2573,
738,
87,
6,
738,
2573,
13,
11019,
273,
2573,
18,
4939,
2932,
67,
7923,
225,
468,
49... |
_mesg('read literal size %s' % size) | self._mesg('read literal size %s' % size) | def _readstring(self, data): if data[0] == ' ': # space -> error raise self.error('Unexpected space: %r' % data) elif data[0] == '"': # handle double quote: if not self._match(re_dquote, data): raise self.error('Unmatched quote: %r' % data) snippet = self.mo.group(1) return re_esc_quote.sub(r'\1', snippet), data[self.m... | 462597f79dfd214c27990197f9e742d00e0c9fed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9777/462597f79dfd214c27990197f9e742d00e0c9fed/managesieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
1080,
12,
2890,
16,
501,
4672,
309,
501,
63,
20,
65,
422,
296,
4290,
468,
3476,
317,
555,
1002,
365,
18,
1636,
2668,
7762,
3476,
30,
738,
86,
11,
738,
501,
13,
1327,
501,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
896,
1080,
12,
2890,
16,
501,
4672,
309,
501,
63,
20,
65,
422,
296,
4290,
468,
3476,
317,
555,
1002,
365,
18,
1636,
2668,
7762,
3476,
30,
738,
86,
11,
738,
501,
13,
1327,
501,
... |
else: newBonds[pph[0]] += [(pph[1], 1)] | else: newBonds[pph[0]] += [(pph[1], 1)] | def _cutCookie(self, layer, c): """ For each user defined curve, cut the cookie for it, store carbon postion into a global dictionary, store the bond information into each layer. """ self.havelist = 0 bblo, bbhi = c.bbox.data[1], c.bbox.data[0] #Without +(-) 1.6, cookie for lonsdaileite may not be right allCells = gen... | be7153ce421a674e97de640e3063c3bb1bccf4a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/be7153ce421a674e97de640e3063c3bb1bccf4a9/shape.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5150,
6151,
12,
2890,
16,
3018,
16,
276,
4672,
3536,
2457,
1517,
729,
2553,
8882,
16,
6391,
326,
3878,
364,
518,
16,
1707,
28755,
1603,
285,
1368,
279,
2552,
3880,
16,
1707,
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,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5150,
6151,
12,
2890,
16,
3018,
16,
276,
4672,
3536,
2457,
1517,
729,
2553,
8882,
16,
6391,
326,
3878,
364,
518,
16,
1707,
28755,
1603,
285,
1368,
279,
2552,
3880,
16,
1707,
326,
... |
asString = asString[:-2] + newLine + prefix + ']' | if newLine == "": asString = asString[:-1] + prefix + ']' else: asString = asString[:-2] + newLine + prefix + ']' | def nodeToJsonString(node, prefix = "", childPrefix = " ", newLine="\n"): asString = prefix + '{type:"' + escapeJsonChars(node.type) + '"' if node.hasAttributes(): asString += ',attributes:{' firstAttribute = True for key in node.attributes: if not firstAttribute: asString += ',' asString += '"' + key + '":"' + escap... | 6d53c044ca4c0d7eb5a41badb3b279e75d61b64c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5718/6d53c044ca4c0d7eb5a41badb3b279e75d61b64c/tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
756,
774,
3185,
780,
12,
2159,
16,
1633,
273,
23453,
1151,
2244,
273,
315,
225,
3104,
8093,
1546,
64,
82,
6,
4672,
16771,
273,
1633,
397,
2292,
723,
2773,
11,
397,
4114,
3185,
7803,
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,
756,
774,
3185,
780,
12,
2159,
16,
1633,
273,
23453,
1151,
2244,
273,
315,
225,
3104,
8093,
1546,
64,
82,
6,
4672,
16771,
273,
1633,
397,
2292,
723,
2773,
11,
397,
4114,
3185,
7803,
12... |
ldf_exe='ligo_data_find' ldf_status = GetCommandOutput('which '+ldf_exe)[1] if ldf_status != 0: print >>sys.stderr, "Error: ligo_data_find not found. "+\ "Please ensure lscsoftrc is sourced" sys.exit() | p = subprocess.Popen(["which", "ligo_data_find"], stdout=subprocess.PIPE) ldf = p.communicate()[0].replace('\n','') if p.returncode != 0: raise ValueError, "ligo_data_find" p.stdout.close() ldf = os.path.realpath(ldf) | def find_channels(channels=None,\ types=None,\ ifos=None,\ ex_channels=None,\ ignore=[],\ match=False,\ time=None,\ unique=False,\ verbose=False): """ This function will use FrChannels to return all LIGO data channels matching the given list of 'channels' strings, whilst exluding the 'ex_channels' strings. Using find_... | 25494bc1b1cc42ac72937fd2b2d61f6c554aadd6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/25494bc1b1cc42ac72937fd2b2d61f6c554aadd6/dqFrameUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
9114,
12,
9114,
33,
7036,
17211,
1953,
33,
7036,
17211,
309,
538,
33,
7036,
17211,
431,
67,
9114,
33,
7036,
17211,
2305,
22850,
6487,
64,
845,
33,
8381,
17211,
813,
33,
7036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1104,
67,
9114,
12,
9114,
33,
7036,
17211,
1953,
33,
7036,
17211,
309,
538,
33,
7036,
17211,
431,
67,
9114,
33,
7036,
17211,
2305,
22850,
6487,
64,
845,
33,
8381,
17211,
813,
33,
7036,
... |
self.fail('conversion specifier: %r failed.' % format) | self.fail("conversion specifier %r failed with '%s' input." % (format, strf_output)) | def test_strptime(self): tt = time.gmtime(self.t) for directive in ('a', 'A', 'b', 'B', 'c', 'd', 'H', 'I', 'j', 'm', 'M', 'p', 'S', 'U', 'w', 'W', 'x', 'X', 'y', 'Y', 'Z', '%'): format = ' %' + directive try: time.strptime(time.strftime(format, tt), format) except ValueError: self.fail('conversion specifier: %r failed... | 0d7f3c37bbe6fda7bb44d3fed4ed123b35efc7c2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0d7f3c37bbe6fda7bb44d3fed4ed123b35efc7c2/test_time.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
10650,
12,
2890,
4672,
3574,
273,
813,
18,
75,
10838,
12,
2890,
18,
88,
13,
364,
8655,
316,
7707,
69,
2187,
296,
37,
2187,
296,
70,
2187,
296,
38,
2187,
296,
71,
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,
701,
10650,
12,
2890,
4672,
3574,
273,
813,
18,
75,
10838,
12,
2890,
18,
88,
13,
364,
8655,
316,
7707,
69,
2187,
296,
37,
2187,
296,
70,
2187,
296,
38,
2187,
296,
71,
2187,... |
self.hboxlayout45.addWidget(self.textLabel2_4) self.gridlayout26.addLayout(self.hboxlayout45,1,2,1,1) | self.hboxlayout48.addWidget(self.textLabel2_4) self.gridlayout26.addLayout(self.hboxlayout48,1,2,1,1) | def setupUi(self, UserPrefsDialog): UserPrefsDialog.setObjectName("UserPrefsDialog") UserPrefsDialog.resize(QtCore.QSize(QtCore.QRect(0,0,609,642).size()).expandedTo(UserPrefsDialog.minimumSizeHint())) | 30deb2219e016847d91b37e801c50b75fbd1c3cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/30deb2219e016847d91b37e801c50b75fbd1c3cf/UserPrefsDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
2177,
1386,
2556,
6353,
4672,
2177,
1386,
2556,
6353,
18,
542,
16707,
2932,
1299,
1386,
2556,
6353,
7923,
2177,
1386,
2556,
6353,
18,
15169,
12,
23310,
4670,
18,... |
nsisVars['CONFIG_ICON'] = "%s.ico" % template_vars['shortAppName'] nsisVars['CONFIG_PROG_ID'] = template_vars['longAppName'].replace(" ", ".") + ".1" nsisVars['MIRO_INSTALL_ICON'] = self.install_icon nsisVars['MIRO_INSTALL_IMAGE'] = self.install_image nsisVars['CONFIG_BINARY_KIT'] = BINARY_KIT_ROOT | nsis_vars['CONFIG_ICON'] = "%s.ico" % template_vars['shortAppName'] nsis_vars['CONFIG_PROG_ID'] = template_vars['longAppName'].replace(" ", ".") + ".1" nsis_vars['MIRO_INSTALL_ICON'] = self.install_icon nsis_vars['MIRO_INSTALL_IMAGE'] = self.install_image nsis_vars['CONFIG_BINARY_KIT'] = BINARY_KIT_ROOT | def run(self): self.run_command('bdist_miro') self.dist_dir = self.get_finalized_command('py2exe').dist_dir | 16717514d85be409df247e58637855a19e0ad04f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/16717514d85be409df247e58637855a19e0ad04f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
2681,
67,
3076,
2668,
70,
4413,
67,
9197,
303,
6134,
365,
18,
4413,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
365,
18,
2681,
67,
3076,
2668,
70,
4413,
67,
9197,
303,
6134,
365,
18,
4413,
67,
1214,
273,
365,
18,
588,
67,
6385,
1235,
67,
3076,
2668,
2074,
22,
14880,
16063,
... |
t.append("".join(self.hdr[rpm.RPMTAG_SIGGPG])) t.append("".join(self.hdr[rpm.RPMTAG_SIGPGP])) t.append("".join(self.hdr[rpm.RPMTAG_HDRID])) | if type(self.hdr[rpm.RPMTAG_SIGGPG]) is not types.NoneType: t.append("".join(self.hdr[rpm.RPMTAG_SIGGPG])) if type(self.hdr[rpm.RPMTAG_SIGPGP]) is not types.NoneType: t.append("".join(self.hdr[rpm.RPMTAG_SIGPGP])) if type(self.hdr[rpm.RPMTAG_HDRID]) is not types.NoneType: t.append("".join(self.hdr[rpm.RPMTAG_HDRID])) | def doChecksumCache(self, fo): """return a checksum for a package: - check if the checksum cache is enabled if not - return the checksum if so - check to see if it has a cache file if so, open it and return the first line's contents if not, grab the checksum and write it to a file for this pkg """ if not self.options['... | 552d614749816093b434343792421207aa9af110 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9557/552d614749816093b434343792421207aa9af110/dumpMetadata.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
10723,
1649,
12,
2890,
16,
18261,
4672,
3536,
2463,
279,
6697,
364,
279,
2181,
30,
300,
866,
309,
326,
6697,
1247,
353,
3696,
309,
486,
300,
327,
326,
6697,
309,
1427,
300,
866,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
10723,
1649,
12,
2890,
16,
18261,
4672,
3536,
2463,
279,
6697,
364,
279,
2181,
30,
300,
866,
309,
326,
6697,
1247,
353,
3696,
309,
486,
300,
327,
326,
6697,
309,
1427,
300,
866,
3... |
runs = [] for x in range(repeat): start_time = timeit.default_timer() for y in range(number): import_(name) end_time = timeit.default_timer() runs.append(end_time - start_time) return min(runs) | for result in bench(name, repeat=repeat): yield result | def bench_cache(import_, repeat, number): """Measure the time it takes to pull from sys.modules.""" name = '<benchmark import>' with util.uncache(name): module = imp.new_module(name) sys.modules[name] = module runs = [] for x in range(repeat): start_time = timeit.default_timer() for y in range(number): import_(name) en... | 2b0aa4e1c6561dbe76219c072b52f2db13e0aa6f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/2b0aa4e1c6561dbe76219c072b52f2db13e0aa6f/benchmark.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
22499,
67,
2493,
12,
5666,
67,
16,
7666,
16,
1300,
4672,
3536,
7197,
326,
813,
518,
5530,
358,
6892,
628,
2589,
18,
6400,
12123,
508,
273,
2368,
70,
9737,
1930,
1870,
598,
1709,
18,
55... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22499,
67,
2493,
12,
5666,
67,
16,
7666,
16,
1300,
4672,
3536,
7197,
326,
813,
518,
5530,
358,
6892,
628,
2589,
18,
6400,
12123,
508,
273,
2368,
70,
9737,
1930,
1870,
598,
1709,
18,
55... |
""" numberOfBasePairs = self.getNumberOfAxisAtoms() | """ | def getProps(self): """ Returns some properties such as duplexRise. This is a temporary @see: DnaSegment_EditCommand.editStructure where it is used. @see: DnaSegment_PropertyManager.getParameters @see: DnaSegmentEditCommand._createStructure """ numberOfBasePairs = self.getNumberOfAxisAtoms() if self._duplexRise is Non... | 61cae311ea8ce7309b06e5e7eb3dba8256f75bb2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/61cae311ea8ce7309b06e5e7eb3dba8256f75bb2/DnaSegment.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3570,
1121,
12,
2890,
4672,
3536,
2860,
2690,
1790,
4123,
487,
302,
2268,
92,
54,
784,
18,
1220,
353,
279,
6269,
632,
5946,
30,
463,
6582,
4131,
67,
4666,
2189,
18,
4619,
6999,
1625,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3570,
1121,
12,
2890,
4672,
3536,
2860,
2690,
1790,
4123,
487,
302,
2268,
92,
54,
784,
18,
1220,
353,
279,
6269,
632,
5946,
30,
463,
6582,
4131,
67,
4666,
2189,
18,
4619,
6999,
1625,
5... |
elif type != 'games': | elif type == 'games': abs = [] for d in x: pos = d[1].find(':') if pos == -1: abs.append((d[0], os.path.abspath(d[1]), d[2])) else: if pos > d[1].find('/'): abs.append((d[0], os.path.abspath(d[1]), d[2])) else: abs.append((d[0], d[1][0:pos+1] + os.path.abspath(d[1][pos+1:]), d[2])) exec ('%s = abs' % n) else: | def _debug_function_(s, level=1): if DEBUG < level: return # add the current trace to the string where = traceback.extract_stack(limit = 2)[0] if isinstance( s, unicode ): s = s.encode(encoding, 'replace') s = '%s (%s): %s' % (where[0][where[0].rfind('/')+1:], where[1], s) # print debug message print s | 09872035113569f22614cd3e9f7346667ed543e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/09872035113569f22614cd3e9f7346667ed543e2/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4148,
67,
915,
67,
12,
87,
16,
1801,
33,
21,
4672,
309,
6369,
411,
1801,
30,
327,
468,
527,
326,
783,
2606,
358,
326,
533,
1625,
273,
225,
10820,
18,
8004,
67,
3772,
12,
3595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4148,
67,
915,
67,
12,
87,
16,
1801,
33,
21,
4672,
309,
6369,
411,
1801,
30,
327,
468,
527,
326,
783,
2606,
358,
326,
533,
1625,
273,
225,
10820,
18,
8004,
67,
3772,
12,
3595,
... |
var_repr = var_doc.value.parse_repr if var_repr is not UNKNOWN: | val_repr = var_doc.value.parse_repr if val_repr is not UNKNOWN: | def write_variable(self, out, var_doc, name=None, prefix='', verbose=True): if name is None: name = var_doc.name out(prefix+self.bold(str(name))) if (var_doc.value not in (UNKNOWN, None) and var_doc.is_alias is True and var_doc.value.canonical_name not in (None, UNKNOWN)): out(' = %s' % var_doc.value.canonical_name) el... | 479f32583e1e801216e1d5850e872a7889f647ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/479f32583e1e801216e1d5850e872a7889f647ec/plaintext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6105,
12,
2890,
16,
596,
16,
569,
67,
2434,
16,
508,
33,
7036,
16,
1633,
2218,
2187,
3988,
33,
5510,
4672,
309,
508,
353,
599,
30,
508,
273,
569,
67,
2434,
18,
529,
596,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
6105,
12,
2890,
16,
596,
16,
569,
67,
2434,
16,
508,
33,
7036,
16,
1633,
2218,
2187,
3988,
33,
5510,
4672,
309,
508,
353,
599,
30,
508,
273,
569,
67,
2434,
18,
529,
596,
... |
uri = os.path.join(url, absattr(ob.id)) | uri = urljoin(url, absattr(ob.id)) | def apply(self, obj, token, url=None, result=None, top=1): if result is None: result = StringIO() url = urlfix(url, 'UNLOCK') url = urlbase(url) iscol = isDavCollection(obj) if iscol and url[-1] != '/': url = url + '/' errmsg = None | 03fb4e1b6eb485522ed0478cd95ea0c2a601808d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/03fb4e1b6eb485522ed0478cd95ea0c2a601808d/davcmds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
1081,
16,
1147,
16,
880,
33,
7036,
16,
563,
33,
7036,
16,
1760,
33,
21,
4672,
309,
563,
353,
599,
30,
563,
273,
15777,
1435,
880,
273,
880,
904,
12,
718,
16,
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,
2230,
12,
2890,
16,
1081,
16,
1147,
16,
880,
33,
7036,
16,
563,
33,
7036,
16,
1760,
33,
21,
4672,
309,
563,
353,
599,
30,
563,
273,
15777,
1435,
880,
273,
880,
904,
12,
718,
16,
29... |
Additionally an error occurred trying to produce an | Additionally an error occurred trying to produce an | def __init__(self, app, mapper, global_conf=None, **kw): | 15e51654e469e87a6974e46969e8ec1295937f96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11400/15e51654e469e87a6974e46969e8ec1295937f96/errordocument.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
595,
16,
5815,
16,
2552,
67,
3923,
33,
7036,
16,
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... | [
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
595,
16,
5815,
16,
2552,
67,
3923,
33,
7036,
16,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (seq2, seq1) in dups: continue if seq1[0] in seq2 or seq2[0] in seq1: continue dups.append((seq1, seq2)) self.__removeSubDuplicates(dups) | if not (seq2, seq1) in dups and\ not self.__doesOverlap(seq1, seq2) and\ not self.__superIsDuplicate(seq2, dups) and\ not self.__overlapseWithOther(seq2, dups): dups.append((seq1, seq2)) length -= 1 | def __investigateSingle(self, mtd, parted): mtdParts = parted[mtd.getId()] | f358a44e42fd3ca8964a0cc092af8ca22acf5c7c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1052/f358a44e42fd3ca8964a0cc092af8ca22acf5c7c/DuplicatedCode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5768,
25999,
340,
5281,
12,
2890,
16,
312,
4465,
16,
1087,
329,
4672,
312,
4465,
4305,
273,
1087,
329,
63,
1010,
72,
18,
26321,
1435,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
5768,
25999,
340,
5281,
12,
2890,
16,
312,
4465,
16,
1087,
329,
4672,
312,
4465,
4305,
273,
1087,
329,
63,
1010,
72,
18,
26321,
1435,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
sage: len(sol.solutions()) | sage: len(sol.solutions()) | def start_from(self, start_filename_or_string, polys, input_ring, path_track_file = None, verbose = False): | b13ebd52440a74a2f0da2433983ce66fe261150a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/b13ebd52440a74a2f0da2433983ce66fe261150a/phc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2080,
12,
2890,
16,
787,
67,
3459,
67,
280,
67,
1080,
16,
2952,
1900,
16,
810,
67,
8022,
16,
589,
67,
4101,
67,
768,
273,
599,
16,
3988,
273,
1083,
4672,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2080,
12,
2890,
16,
787,
67,
3459,
67,
280,
67,
1080,
16,
2952,
1900,
16,
810,
67,
8022,
16,
589,
67,
4101,
67,
768,
273,
599,
16,
3988,
273,
1083,
4672,
2,
-100,
-100,
-1... |
if is_known_param_type(name, name) == 0: | if argtypes.has_key(name) and is_known_param_type(name, name) == 0: | def compare_and_save(): global test test.close() input = open("testapi.c", "r").read() test = open('testapi.c.new', "r").read() if input != test: os.system("rm testapi.c ; mv testapi.c.new testapi.c") print("Updated testapi.c") else: print("Generated testapi.c is identical") | 094dd86c130f3ffb7ec9bc47bb0ed711e0f68994 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12659/094dd86c130f3ffb7ec9bc47bb0ed711e0f68994/gentest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
464,
67,
5688,
13332,
2552,
1842,
225,
1842,
18,
4412,
1435,
810,
273,
1696,
2932,
3813,
2425,
18,
71,
3113,
315,
86,
20387,
896,
1435,
1842,
273,
1696,
2668,
3813,
2425,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
464,
67,
5688,
13332,
2552,
1842,
225,
1842,
18,
4412,
1435,
810,
273,
1696,
2932,
3813,
2425,
18,
71,
3113,
315,
86,
20387,
896,
1435,
1842,
273,
1696,
2668,
3813,
2425,
18,
... |
f = open(filename, "w") | fileHandle = open(filename, "w") | def write_art_file(filename): """ Writes the Atom Rendering Table (ART) file, which contains all the atom rendering properties needed by QuteMol. Each atom is on a separate line. Lines starting with '#' are comment lines. <filename> - ART filename """ assert type(filename) == type(" ") from elements import PeriodicTab... | 56125dae90531c2c58d7b319f6586881b702b552 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/56125dae90531c2c58d7b319f6586881b702b552/qutemol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
485,
67,
768,
12,
3459,
4672,
3536,
30053,
326,
7149,
18018,
3555,
261,
4928,
13,
585,
16,
1492,
1914,
777,
326,
3179,
9782,
1790,
3577,
635,
2238,
624,
49,
355,
18,
8315,
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,
1045,
67,
485,
67,
768,
12,
3459,
4672,
3536,
30053,
326,
7149,
18018,
3555,
261,
4928,
13,
585,
16,
1492,
1914,
777,
326,
3179,
9782,
1790,
3577,
635,
2238,
624,
49,
355,
18,
8315,
31... |
def run_script_if_needed(self, script, msg): | def run_script_if_needed(self, script, msg, bssid='wired', essid='wired'): | def run_script_if_needed(self, script, msg): """ Execute a given script if needed. Keyword arguments: script -- the script to execute, or None/'' if there isn't one. msg -- the name of the script to display in the log. """ if script: print 'Executing %s script' % (msg) misc.ExecuteScript(script) | d84912aaad167ca24f346cfb42c6a37b20fb0bd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/d84912aaad167ca24f346cfb42c6a37b20fb0bd3/networking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
4263,
67,
430,
67,
17471,
12,
2890,
16,
2728,
16,
1234,
16,
324,
1049,
350,
2218,
91,
2921,
2187,
18518,
350,
2218,
91,
2921,
11,
4672,
3536,
7903,
279,
864,
2728,
309,
3577,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
4263,
67,
430,
67,
17471,
12,
2890,
16,
2728,
16,
1234,
16,
324,
1049,
350,
2218,
91,
2921,
2187,
18518,
350,
2218,
91,
2921,
11,
4672,
3536,
7903,
279,
864,
2728,
309,
3577,... |
ChangesetFilter.__init__(self, cfg, basicUrl, csCache) self.callFactory = ProxyCallFactory() def setBaseUrlOverride(self, rawUrl, headers, isSecure): proxyHost = headers.get('X-Conary-Proxy-Host', None) if not proxyHost: self._baseUrlOverride = None return self._baseUrlOverride = headers.get('X-Conary-Proxy-Host'... | def __init__(self, cfg, basicUrl): util.mkdirChain(cfg.changesetCacheDir) csCache = ChangesetCache(datastore.DataStore(cfg.changesetCacheDir)) | 89e28f8dccaeabc819282832ca71bb076d6625c8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8747/89e28f8dccaeabc819282832ca71bb076d6625c8/proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2776,
16,
5337,
1489,
4672,
1709,
18,
26686,
3893,
12,
7066,
18,
6329,
278,
29582,
13,
2873,
1649,
273,
17776,
278,
1649,
12,
24522,
18,
24977,
12,
7066,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
2776,
16,
5337,
1489,
4672,
1709,
18,
26686,
3893,
12,
7066,
18,
6329,
278,
29582,
13,
2873,
1649,
273,
17776,
278,
1649,
12,
24522,
18,
24977,
12,
7066,
... | |
"""Compute the variance along the given axis of a tensor `input` :param axis: compute the variance along this axis of the tensor. None means trailing axis. | """Compute the variance along the given axis of a tensor `input`. :param axis: Compute the variance along this axis of the tensor. None means all axes (like numpy). | def var(input, axis = None): """Compute the variance along the given axis of a tensor `input` :param axis: compute the variance along this axis of the tensor. None means trailing axis. :type axis: None or int or (list of int) (see `Sum`) """ input_ndim = input.type.ndim if axis == None: axis = range(input_ndim) if i... | fe22e38c8a2e5489ad97ff7bb3b53aebeb78dfb3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/fe22e38c8a2e5489ad97ff7bb3b53aebeb78dfb3/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
12,
2630,
16,
2654,
273,
599,
4672,
3536,
7018,
326,
12380,
7563,
326,
864,
2654,
434,
279,
8171,
1375,
2630,
8338,
225,
294,
891,
2654,
30,
8155,
326,
12380,
7563,
333,
2654,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
569,
12,
2630,
16,
2654,
273,
599,
4672,
3536,
7018,
326,
12380,
7563,
326,
864,
2654,
434,
279,
8171,
1375,
2630,
8338,
225,
294,
891,
2654,
30,
8155,
326,
12380,
7563,
333,
2654,
434,
... |
if request.method == 'POST': return redirect('screenings') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(screenings): json_subcat = serializers.serialize("json", screenings, relations=('village',)) else: json_subcat ... | if request.method == 'POST': return redirect('screenings') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(screenings): json_subcat = serializers.serialize("json", screenings, relations=('village',)) else: json_subcat ... | def get_screenings_online(request, offset, limit): if request.method == 'POST': return redirect('screenings') else: villages = get_user_villages(request) screenings = Screening.objects.filter(village__in = villages).distinct().order_by("-id")[offset:limit] if(screenings): json_subcat = serializers.serialize("json", scr... | 7759d6eb08a7e6568691e648ed314450c8afa48e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11995/7759d6eb08a7e6568691e648ed314450c8afa48e/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9252,
899,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
9252,
899,
6134,
469,
30,
331,
737,
1023,
273,
336,
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,
336,
67,
9252,
899,
67,
21026,
12,
2293,
16,
1384,
16,
1800,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
327,
3136,
2668,
9252,
899,
6134,
469,
30,
331,
737,
1023,
273,
336,
67,
... |
"descip": "lstring", | "descrip": "lstring", | def set_time(self, gps): self.time, self.time_ns = gps.seconds, gps.nanoseconds | 5e6bed9ff52328e90032ad31304fe889e6a86af7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/5e6bed9ff52328e90032ad31304fe889e6a86af7/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
957,
12,
2890,
16,
20985,
4672,
365,
18,
957,
16,
365,
18,
957,
67,
2387,
273,
20985,
18,
7572,
16,
20985,
18,
13569,
23272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
957,
12,
2890,
16,
20985,
4672,
365,
18,
957,
16,
365,
18,
957,
67,
2387,
273,
20985,
18,
7572,
16,
20985,
18,
13569,
23272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
(total_attendance - total_timesheet) AS total_difference | round(cast((total_attendance - total_timesheet) as Numeric),2) AS total_difference | def init(self, cr): cr.execute("""create or replace view hr_timesheet_sheet_sheet_day as SELECT id, name, sheet_id, total_timesheet, total_attendance, (total_attendance - total_timesheet) AS total_difference FROM (( SELECT MAX(id) as id, name, sheet_id, SUM(total_timesheet) as total_timesheet, CASE WHEN SUM(total_atten... | c6e801a2d1414460f99e910a42767d9fd0db99bb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/c6e801a2d1414460f99e910a42767d9fd0db99bb/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
2640,
578,
1453,
1476,
15407,
67,
8293,
2963,
67,
8118,
67,
8118,
67,
2881,
487,
9111,
612,
16,
508,
16,
6202,
67,
350,
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,
1208,
12,
2890,
16,
4422,
4672,
4422,
18,
8837,
2932,
3660,
2640,
578,
1453,
1476,
15407,
67,
8293,
2963,
67,
8118,
67,
8118,
67,
2881,
487,
9111,
612,
16,
508,
16,
6202,
67,
350,
16,
... |
libs = ['netcdf','hdf5','hdf5_hl','z'] | libs = ['netcdf','hdf5_hl','hdf5','z'] | def check_ifnetcdf4(netcdf4_dir): try: f = open(os.path.join(netcdf4_dir,'include/netcdf.h')) except IOError: return False isnetcdf4 = False for line in f: if line.startswith('nc_inq_compound'): isnetcdf4 = True return isnetcdf4 | 86d20cdd7fb0c4d82040e6a595cfd393c847243d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8103/86d20cdd7fb0c4d82040e6a595cfd393c847243d/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
430,
2758,
24799,
24,
12,
2758,
24799,
24,
67,
1214,
4672,
775,
30,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
2758,
24799,
24,
67,
1214,
11189,
6702,
19,
2758,
24799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
430,
2758,
24799,
24,
12,
2758,
24799,
24,
67,
1214,
4672,
775,
30,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
2758,
24799,
24,
67,
1214,
11189,
6702,
19,
2758,
24799,
... |
m[0] = 'b' | m[0] = b'b' | def test_access_parameter(self): # Test for "access" keyword parameter mapsize = 10 open(TESTFN, "wb").write("a"*mapsize) f = open(TESTFN, "rb") m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ) self.assertEqual(m[:], 'a'*mapsize, "Readonly memory map data incorrect.") | d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3860,
67,
6775,
12,
2890,
4672,
468,
7766,
364,
315,
3860,
6,
4932,
1569,
852,
1467,
273,
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
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,
1842,
67,
3860,
67,
6775,
12,
2890,
4672,
468,
7766,
364,
315,
3860,
6,
4932,
1569,
852,
1467,
273,
1728,
1696,
12,
16961,
19793,
16,
315,
9464,
20387,
2626,
2932,
69,
6,
14,
1458,
146... |
This function returns the $n$-th number of Sloane's sequence A001227 | def _eval(self, n): if n == 1: return 1 elif n == 2: return 3 else: return sloane.A000045(n+1) + sloane.A000045(n-1) | 70b919194de989432d1faa858d454243b1d847fc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/70b919194de989432d1faa858d454243b1d847fc/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
404,
1327,
290,
422,
576,
30,
327,
890,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
309,
290,
422,
404,
30,
327,
404,
1327,
290,
422,
576,
30,
327,
890,
469,
30,
327,
272,
383,
8806,
18,
37,
2787,
7950,
12,
82,
15,
21,
13,
397,
... | |
('build-flib', 'b', | ('build-flib=', 'b', | def show_compilers(): for compiler_class in all_compilers: compiler = compiler_class() if compiler.is_available(): print cyan_text(compiler) | 339894e598e70c7736640659fb1e677b88866a72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/339894e598e70c7736640659fb1e677b88866a72/build_flib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2919,
330,
414,
13332,
364,
5274,
67,
1106,
316,
777,
67,
2919,
330,
414,
30,
5274,
273,
5274,
67,
1106,
1435,
309,
5274,
18,
291,
67,
5699,
13332,
1172,
23403,
67,
955,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
67,
2919,
330,
414,
13332,
364,
5274,
67,
1106,
316,
777,
67,
2919,
330,
414,
30,
5274,
273,
5274,
67,
1106,
1435,
309,
5274,
18,
291,
67,
5699,
13332,
1172,
23403,
67,
955,
12,
... |
return time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime(seconds)) | return time.strftime('%a, %d %b %Y %H:%M:%S -0000', time.gmtime(seconds)) | def pretty_time(seconds): """Return the Date: header.""" # You might want to change the "+0000" (UTC) to fit your local time zone. # If you do so, please use the same pattern, like "-0300" or "+0100" and # change time.gmtime() to time.localtime(). return time.strftime('%a, %d %b %Y %H:%M:%S +0000', time.gmtime(seconds)... | b7a92e7a475b4249a82eb52e04a2c59fc090dcdf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5987/b7a92e7a475b4249a82eb52e04a2c59fc090dcdf/signcontrol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7517,
67,
957,
12,
7572,
4672,
3536,
990,
326,
2167,
30,
1446,
12123,
468,
4554,
4825,
2545,
358,
2549,
326,
13773,
2787,
6,
261,
11471,
13,
358,
4845,
3433,
1191,
813,
4157,
18,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7517,
67,
957,
12,
7572,
4672,
3536,
990,
326,
2167,
30,
1446,
12123,
468,
4554,
4825,
2545,
358,
2549,
326,
13773,
2787,
6,
261,
11471,
13,
358,
4845,
3433,
1191,
813,
4157,
18,
468,
... |
p = Parser(integer.Integer, R, LookupNameMaker({self.variable_name(): self.gen()}, R)) | p = Parser(Integer, R, LookupNameMaker({self.variable_name(): self.gen()}, R)) | def __call__(self, x=None, check=True, is_gen = False, construct=False, absprec = None): r""" Coerce \code{x} into this univariate polynomial ring, possibly non-canonically. Stacked polynomial rings coerce into constants if possible. First, the univariate case: sage: R.<x> = QQ[] sage: S.<u> = R[] sage: S(u + 2) u + ... | a8de1f079dd7e34f895260d140202c24a3374ff5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/a8de1f079dd7e34f895260d140202c24a3374ff5/polynomial_ring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
273,
599,
4672,
436,
8395,
7695,
2765,
521,
710,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
619,
33,
7036,
16,
866,
33,
5510,
16,
353,
67,
4507,
273,
1083,
16,
4872,
33,
8381,
16,
2417,
4036,
273,
599,
4672,
436,
8395,
7695,
2765,
521,
710,
95... |
app.exec_() | def fling(self, fileName): try: if sys.platform=='win32': fileName = fileName.replace('C:','') fileName = fileName.replace('\\', '/') name = os.path.basename(fileName) #http://flingo.tv/fling/fling?[url=U | deofuscator=D&context=C][&guid=G&title=T&description=D&image=I&preempt=P] params = {} params['url'] = 'http://' +... | 92b21483cfc5b7836cc8b313e1c04d82e46a5f12 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14895/92b21483cfc5b7836cc8b313e1c04d82e46a5f12/flingo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
310,
12,
2890,
16,
3968,
4672,
775,
30,
309,
2589,
18,
9898,
18920,
8082,
1578,
4278,
3968,
273,
3968,
18,
2079,
2668,
39,
30,
17023,
6134,
3968,
273,
3968,
18,
2079,
2668,
1695,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1183,
310,
12,
2890,
16,
3968,
4672,
775,
30,
309,
2589,
18,
9898,
18920,
8082,
1578,
4278,
3968,
273,
3968,
18,
2079,
2668,
39,
30,
17023,
6134,
3968,
273,
3968,
18,
2079,
2668,
1695,
... | |
resstr = words[6] start = resstr.find("\"") end = resstr.rfind("\"") restarts = resstr[start+1:end] | resdex = service.find(RESTARTSSTR) start = resdex + len(RESTARTSSTR) restarts = self.extract_attr(start, service) | def getServicesInfo(self): | 75da3892996a5f0d030a8670a943e8120fe9f0ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3879/75da3892996a5f0d030a8670a943e8120fe9f0ce/CommandHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31252,
966,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31252,
966,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print green("Packages(%d)" % npkg) + ":" packages.sort() for pkg in packages: print "".ljust(13) + pkg def display_herd_data(herd, handler): """Display herd statistics for the specified herd""" if not handler._herds.has_key(herd): print "Herd '%s' was not found in herds.xml." % herd return 1 print format("Herd", h... | def startElement(self, tag, attr): if tag == "herd": self._inside_herd="Yes" if tag == "name" and self._inside_maintainer == "No": self._inside_herd_name="Yes" if tag == "email" and self._inside_maintainer == "No": self._inside_herd_email="Yes" if tag == "description" and self._inside_maintainer == "No": self._inside_h... | def display_pkg_data(herd, handler): """Display all packages that belong in the specified herd.""" from glob import glob npkg = 0 packages = [] for category in glob(settings['PORTDIR']+'/*-*'): # this isn't the prettiest, but it's the fastest out = os.popen('grep -l \<herd\>'+herd+'\</herd\> '+category+'/*/metadata.xm... | 9192ad127a74c44eb6c32ae70ef1cead0367aa1d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2297/9192ad127a74c44eb6c32ae70ef1cead0367aa1d/portage_herds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
67,
10657,
67,
892,
12,
1614,
72,
16,
1838,
4672,
3536,
4236,
777,
5907,
716,
10957,
316,
326,
1269,
22336,
72,
12123,
628,
4715,
1930,
4715,
225,
1130,
14931,
273,
374,
5907,
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,
2562,
67,
10657,
67,
892,
12,
1614,
72,
16,
1838,
4672,
3536,
4236,
777,
5907,
716,
10957,
316,
326,
1269,
22336,
72,
12123,
628,
4715,
1930,
4715,
225,
1130,
14931,
273,
374,
5907,
273,... |
vList.append(Violation(self, line.number)) | vList.append(Violation(self, line)) | def apply(self, lines): vList = [] if (self.getFiletype() in self.getTypeList()): for line in lines: if ( re.search("^\s*for\s*\(([^;]+);([^;]+);([^;]+)\)", line.stripped) and re.search(",", line.stripped) ): vList.append(Violation(self, line.number)) return vList | cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6529/cb6d1c1b9da3a15f55b42e7ffc55f274aee325d2/style.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
309,
261,
283,
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,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
2362,
4672,
331,
682,
273,
5378,
309,
261,
2890,
18,
588,
25579,
5872,
1435,
316,
365,
18,
588,
559,
682,
1435,
4672,
364,
980,
316,
2362,
30,
309,
261,
283,
18,
... |
@time_me | def create_commIDs(comm): """Construct commIDs. | 4abb0661a2aa23a507facc7ef972c1b0ca8a4406 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/4abb0661a2aa23a507facc7ef972c1b0ca8a4406/communities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
5702,
5103,
12,
5702,
4672,
3536,
7249,
1543,
5103,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
752,
67,
5702,
5103,
12,
5702,
4672,
3536,
7249,
1543,
5103,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
update_func=lambda ui, font: ui.widget.set_active(font.mods["tt"])) | update_func=lambda ui, font: update_toggle(ui, font.mods["tt"])) | def setup_menu(self, uimanager): | f3c33abf52325609f58edfa6e4d18ba3e6c6ed23 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4738/f3c33abf52325609f58edfa6e4d18ba3e6c6ed23/editor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
5414,
12,
2890,
16,
582,
381,
1063,
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,
... | [
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,
3875,
67,
5414,
12,
2890,
16,
582,
381,
1063,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def __init__(self, data=None, parent = None, kids = [], x = 0, y = 0): | def __init__(self, data=None, parent = None, kids = None, x = 0, y = 0): | def __init__(self, data=None, parent = None, kids = [], x = 0, y = 0): self.x = 0 self.y = 0 self.projx = 0 self.projy = 0 self.parent = parent self.kids = kids self.data = data self.expanded = false self.selected = false self.built = false self.scale = 0 | 3e60899273993070615df55ff895cc39346754b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3e60899273993070615df55ff895cc39346754b9/mvctree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
33,
7036,
16,
982,
273,
599,
16,
417,
2232,
273,
599,
16,
619,
273,
374,
16,
677,
273,
374,
4672,
365,
18,
92,
273,
374,
365,
18,
93,
273,
374,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
501,
33,
7036,
16,
982,
273,
599,
16,
417,
2232,
273,
599,
16,
619,
273,
374,
16,
677,
273,
374,
4672,
365,
18,
92,
273,
374,
365,
18,
93,
273,
374,
... |
'COERCIONS': 'CONVERSIONS', 'CONVERSIONS': ('ref/conversions', ''), | 'COERCIONS': ('ref/coercion-rules','CONVERSIONS'), 'CONVERSIONS': ('ref/conversions', 'COERCIONS'), | 'METHODS': ('lib/typesmethods', 'class def CLASSES TYPES'), | 75f2fef7a72402f7608264e0f256819e7f2c5b29 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/75f2fef7a72402f7608264e0f256819e7f2c5b29/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
296,
25750,
4278,
7707,
2941,
19,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
0,
0,
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,
296,
25750,
4278,
7707,
2941,
19,
2352,
5163,
2187,
296,
1106,
1652,
29859,
20230,
3463,
55,
19899,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
except tokenize.TokenError: pass | except (SyntaxError, tokenize.TokenError): self.error = True else: self.error = False | def parse(self): self.lines = [0, 0] pos = 0 while 1: pos = self.raw.find('\n', pos) + 1 if not pos: break self.lines.append(pos) self.lines.append(len(self.raw)) | 0693b58b19df81353a2050960c61a90ea2eb719d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14437/0693b58b19df81353a2050960c61a90ea2eb719d/util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
365,
18,
3548,
273,
306,
20,
16,
374,
65,
949,
273,
374,
1323,
404,
30,
949,
273,
365,
18,
1899,
18,
4720,
2668,
64,
82,
2187,
949,
13,
397,
404,
309,
486,
94... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
4672,
365,
18,
3548,
273,
306,
20,
16,
374,
65,
949,
273,
374,
1323,
404,
30,
949,
273,
365,
18,
1899,
18,
4720,
2668,
64,
82,
2187,
949,
13,
397,
404,
309,
486,
94... |
dirListingPage = widgets.WidgetPage(DirectoryListing(self.path)) return dirListingPage.render(request) | return self.redirect(request).render(request) | def render(self, request): "You know what you doing." mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime =\ os.stat(self.path) | d20dfe4b938f38e9df3286ad95cd8291e9c3b1f5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d20dfe4b938f38e9df3286ad95cd8291e9c3b1f5/static.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
590,
4672,
315,
6225,
5055,
4121,
1846,
9957,
1199,
1965,
16,
316,
83,
16,
4461,
16,
290,
1232,
16,
4555,
16,
11399,
16,
963,
16,
622,
494,
16,
13158,
16,
276,
95... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
590,
4672,
315,
6225,
5055,
4121,
1846,
9957,
1199,
1965,
16,
316,
83,
16,
4461,
16,
290,
1232,
16,
4555,
16,
11399,
16,
963,
16,
622,
494,
16,
13158,
16,
276,
95... |
Return latex representation of this group. EXAMPLES: An example involving the dihedral group on four elements, | Return LaTeX representation of this group. EXAMPLES: An example involving the dihedral group on four elements, | def _latex_(self): r""" Return latex representation of this group. EXAMPLES: An example involving the dihedral group on four elements, `D_8`:: sage: G = DihedralGroup(4) sage: H = CyclicPermutationGroup(4) sage: gens = H.gens() sage: S = PermutationGroup_subgroup(G, list(gens)) sage: latex(S) Subgroup of Dihedral gro... | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
26264,
67,
12,
2890,
4672,
436,
8395,
2000,
21072,
21575,
60,
4335,
434,
333,
1041,
18,
225,
5675,
8900,
11386,
30,
225,
1922,
3454,
29876,
6282,
326,
4314,
28351,
1041,
603,
12792,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26264,
67,
12,
2890,
4672,
436,
8395,
2000,
21072,
21575,
60,
4335,
434,
333,
1041,
18,
225,
5675,
8900,
11386,
30,
225,
1922,
3454,
29876,
6282,
326,
4314,
28351,
1041,
603,
12792,
... |
(wx, wy, win) = plcalc_world(0.5,0.5) | (wx, wy, win) = plcalc_world(xmid,ymid) | def main(): # Test if device initialization screwed around with the preset # compression parameter. compression2 = plgcompression() sys.stdout.write("Output various PLplot parameters\n") sys.stdout.write("compression parameter = %d\n" % compression2) if compression2 != compression1: sys.stderr.write("plgcompression te... | eca0d8caa9b346bfbf211d43603b21cd30e6a6dc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2933/eca0d8caa9b346bfbf211d43603b21cd30e6a6dc/xw31.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
225,
468,
7766,
309,
2346,
10313,
888,
16052,
329,
6740,
598,
326,
12313,
468,
9154,
1569,
18,
9154,
22,
273,
886,
75,
23766,
1435,
2589,
18,
10283,
18,
2626,
2932,
1447,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
225,
468,
7766,
309,
2346,
10313,
888,
16052,
329,
6740,
598,
326,
12313,
468,
9154,
1569,
18,
9154,
22,
273,
886,
75,
23766,
1435,
2589,
18,
10283,
18,
2626,
2932,
1447,
11... |
return method(request.post_data) except Exception, exc: return self.error_response('error executing command %r: %s' % ( command, exc, )) | try: return method(request.post_data) except Exception, exc: return self.error_response('error executing command %r: %s' % ( command, exc, )) | def dispatch(self, request): if request.method != 'POST': return self.http405(permitted_methods='POST') try: command = request.post_data['command'] except KeyError: return self.http500() try: method = getattr(self, 'do_%s' % command) except AttributeError: return self.http500() collection_id = request.post_data.get('c... | 5dedf207ccb4951bb8121a927c190c9387892d32 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/5dedf207ccb4951bb8121a927c190c9387892d32/serve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
2890,
16,
590,
4672,
309,
590,
18,
2039,
480,
296,
3798,
4278,
327,
365,
18,
2505,
24,
6260,
12,
457,
7948,
67,
5163,
2218,
3798,
6134,
775,
30,
1296,
273,
590,
18,
2767,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3435,
12,
2890,
16,
590,
4672,
309,
590,
18,
2039,
480,
296,
3798,
4278,
327,
365,
18,
2505,
24,
6260,
12,
457,
7948,
67,
5163,
2218,
3798,
6134,
775,
30,
1296,
273,
590,
18,
2767,
6... |
height=int(height_node.split('px')[0]) | height=int(float(height_node.split('px')[0])) | def getSize(self): width = -1 width_node = self.tree.get('width') if width_node is not None: # omit 'px' if it was specified width=int(width_node.split('px')[0]) | 7e90986d901d190baf33dc945cdc1c818f4caf3e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13166/7e90986d901d190baf33dc945cdc1c818f4caf3e/document.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9950,
12,
2890,
4672,
1835,
273,
300,
21,
1835,
67,
2159,
273,
365,
18,
3413,
18,
588,
2668,
2819,
6134,
309,
1835,
67,
2159,
353,
486,
599,
30,
468,
14088,
296,
4430,
11,
309,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9950,
12,
2890,
4672,
1835,
273,
300,
21,
1835,
67,
2159,
273,
365,
18,
3413,
18,
588,
2668,
2819,
6134,
309,
1835,
67,
2159,
353,
486,
599,
30,
468,
14088,
296,
4430,
11,
309,
518,
... |
new_globals = f.func_globals.copy() | def _exec(self, bound_names, args, kw): """Call a Python Script | 436015ee93d40fa39a5fdf742275a50bf0876a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/436015ee93d40fa39a5fdf742275a50bf0876a6f/FSPythonScript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
12,
2890,
16,
2489,
67,
1973,
16,
833,
16,
5323,
4672,
3536,
1477,
279,
6600,
7739,
2,
0,
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,
389,
4177,
12,
2890,
16,
2489,
67,
1973,
16,
833,
16,
5323,
4672,
3536,
1477,
279,
6600,
7739,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
mode = kwargs.pop('mode', default_mode) | mode = kwargs.pop('mode', get_mode.default_mode) | def make(self, *args, **kwargs): """ Allocates the necessary containers using allocate() and uses build() to make an instance which will be returned. The initialize() method of the instance will be called with the arguments and the keyword arguments. If 'mode' is in the keyword arguments it will be passed to build(). "... | d024e8d129f8f0058f83c7cb189e7bb047174c2f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/d024e8d129f8f0058f83c7cb189e7bb047174c2f/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
12830,
815,
326,
4573,
8475,
1450,
10101,
1435,
471,
4692,
1361,
1435,
358,
1221,
392,
791,
1492,
903,
506,
2106,
18,
1021,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
12830,
815,
326,
4573,
8475,
1450,
10101,
1435,
471,
4692,
1361,
1435,
358,
1221,
392,
791,
1492,
903,
506,
2106,
18,
1021,
404... |
def script_review_moveToCaret(self,keyPress): try: info=api.getReviewPosition().obj.makeTextInfo(textInfos.POSITION_CARET) except NotImplementedError: ui.message(_("No caret")) return api.setReviewPosition(info.copy()) info.expand(textInfos.UNIT_LINE) speech.speakTextInfo(info,reason=speech.REASON_CARET) script_review... | def script_review_endOfLine(self,keyPress): info=api.getReviewPosition().copy() info.expand(textInfos.UNIT_LINE) info.collapse(end=True) info.move(textInfos.UNIT_CHARACTER,-1) api.setReviewPosition(info.copy()) info.expand(textInfos.UNIT_CHARACTER) speech.speakMessage(_("right")) speech.speakTextInfo(info,unit=textInfo... | 0d9f2ddf414be11f29caf21887b349d1e070868f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/0d9f2ddf414be11f29caf21887b349d1e070868f/_default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
16041,
67,
409,
951,
1670,
12,
2890,
16,
856,
11840,
4672,
1123,
33,
2425,
18,
588,
9159,
2555,
7675,
3530,
1435,
1123,
18,
12320,
12,
955,
7655,
18,
15736,
67,
5997,
13,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2728,
67,
16041,
67,
409,
951,
1670,
12,
2890,
16,
856,
11840,
4672,
1123,
33,
2425,
18,
588,
9159,
2555,
7675,
3530,
1435,
1123,
18,
12320,
12,
955,
7655,
18,
15736,
67,
5997,
13,
112... | |
terminal_width = terminal_size[0] else: terminal_width = None | if terminal_size is not None: terminal_width = terminal_size[0] | def run(self, options, args): if not args: print >> sys.stderr, 'ERROR: Missing required argument (search query).' return query = args[0] index_url = options.index | 9415e28449981b0156e553f638d23aca182b1203 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12982/9415e28449981b0156e553f638d23aca182b1203/search.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
702,
16,
833,
4672,
309,
486,
833,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
3589,
30,
10230,
1931,
1237,
261,
3072,
843,
14851,
327,
843,
273,
833,
63,
20,
65,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
702,
16,
833,
4672,
309,
486,
833,
30,
1172,
1671,
2589,
18,
11241,
16,
296,
3589,
30,
10230,
1931,
1237,
261,
3072,
843,
14851,
327,
843,
273,
833,
63,
20,
65,
7... |
author_email= 'wstein@math.ucsd.edu', | author_email= 'wstein@gmail.com', | def pyrex(ext_modules): for m in ext_modules: m.extra_compile_args += extra_compile_args m.extra_link_args += extra_link_args new_sources = [] for i in range(len(m.sources)): f = m.sources[i] s = open(f).read() if f[-5:] == '.pyxe':# and s.find("#embed") != -1 and s.find('#}embed') != -1: new_sources = process_pyrexemb... | 0705d76d821083e55f7cf06d34721df30b87e75c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/0705d76d821083e55f7cf06d34721df30b87e75c/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2395,
266,
92,
12,
408,
67,
6400,
4672,
364,
312,
316,
1110,
67,
6400,
30,
312,
18,
7763,
67,
11100,
67,
1968,
1011,
2870,
67,
11100,
67,
1968,
312,
18,
7763,
67,
1232,
67,
1968,
101... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2395,
266,
92,
12,
408,
67,
6400,
4672,
364,
312,
316,
1110,
67,
6400,
30,
312,
18,
7763,
67,
11100,
67,
1968,
1011,
2870,
67,
11100,
67,
1968,
312,
18,
7763,
67,
1232,
67,
1968,
101... |
action="store", type="string", dest="mid", default = None, | action="store", type="string", dest="mid", default=None, | def common_filter_group(app, parser, tool, mode): """Build Filter OptionGroup for all get variants.""" big_help_string = ( """ WARNING: filters are only partially cumulative. Order """ """of operations: %s %s """ """takes precedence on other inclusive filters (if it is """ """present, any other inclusive filter is pur... | 461c24b546b5d0469c4e29582a85905d96b60351 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/461c24b546b5d0469c4e29582a85905d96b60351/argparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
2188,
67,
1655,
12,
2910,
16,
2082,
16,
5226,
16,
1965,
4672,
3536,
3116,
4008,
2698,
1114,
364,
777,
336,
12935,
12123,
225,
5446,
67,
5201,
67,
1080,
273,
261,
3536,
9744,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2975,
67,
2188,
67,
1655,
12,
2910,
16,
2082,
16,
5226,
16,
1965,
4672,
3536,
3116,
4008,
2698,
1114,
364,
777,
336,
12935,
12123,
225,
5446,
67,
5201,
67,
1080,
273,
261,
3536,
9744,
... |
def oldmanage_editRoles(self,REQUEST,roles=[]): try: del self.__roles__ except: pass if not roles: return self.manage_rolesForm(self,REQUEST) if roles==['Public',]: self.__roles__=None return self.manage_rolesForm(self,REQUEST) if ('Acquire' in roles) or ('Public' in roles): raise 'Bad Request',('<EM>Acquired</EM> a... | def oldmanage_editRoles(self,REQUEST,roles=[]): | d0d9ec96f7c1696daaa9bcc53b7d8d2848f6858c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/d0d9ec96f7c1696daaa9bcc53b7d8d2848f6858c/Role.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
12633,
67,
4619,
6898,
12,
2890,
16,
5519,
16,
7774,
33,
8526,
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,
... | [
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,
1592,
12633,
67,
4619,
6898,
12,
2890,
16,
5519,
16,
7774,
33,
8526,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if self.stream: | if self.stream and hasattr(self.stream, "flush"): | def flush(self): """ Flushes the stream. """ if self.stream: self.stream.flush() | 82fd1b3b58f76905a971d8cb4b024bbf0699fd81 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/82fd1b3b58f76905a971d8cb4b024bbf0699fd81/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
309,
365,
18,
3256,
471,
3859,
12,
2890,
18,
3256,
16,
315,
11330,
6,
4672,
365,
18,
3256,
18,
11330,
1435,
2,
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,
3663,
12,
2890,
4672,
3536,
11624,
281,
326,
1407,
18,
3536,
309,
365,
18,
3256,
471,
3859,
12,
2890,
18,
3256,
16,
315,
11330,
6,
4672,
365,
18,
3256,
18,
11330,
1435,
2,
-100,
-100,
... |
text = parent.name | text = type_str | def top_combiner(base, *rest): if orig_node is not None and isinstance(orig_node, ast.Type): base.is_const = orig_node.is_const return combiner(base, *rest) | 2a70a474c2960496643cf5879158bea26c5648fa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/2a70a474c2960496643cf5879158bea26c5648fa/maintransformer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1760,
67,
832,
4757,
264,
12,
1969,
16,
380,
8792,
4672,
309,
1647,
67,
2159,
353,
486,
599,
471,
1549,
12,
4949,
67,
2159,
16,
3364,
18,
559,
4672,
1026,
18,
291,
67,
10248,
273,
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,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1760,
67,
832,
4757,
264,
12,
1969,
16,
380,
8792,
4672,
309,
1647,
67,
2159,
353,
486,
599,
471,
1549,
12,
4949,
67,
2159,
16,
3364,
18,
559,
4672,
1026,
18,
291,
67,
10248,
273,
16... |
if attr == 'com.apple.FinderInfo' or attr == 'come.apple.ResourceFork': | if attr == 'com.apple.FinderInfo' or attr == 'com.apple.ResourceFork': | def read_from_rp(self, rp): """Set the extended attributes from an rpath""" try: attr_list = rp.conn.xattr.listxattr(rp.path) except IOError, exc: if exc[0] == errno.EOPNOTSUPP: return # if not sup, consider empty if exc[0] == errno.EACCES: log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3) return raise for attr ... | a914bb5923c8ea21abca2aa33be35a2ba70391be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/783/a914bb5923c8ea21abca2aa33be35a2ba70391be/eas_acls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
13832,
12,
2890,
16,
8715,
4672,
3536,
694,
326,
7021,
1677,
628,
392,
436,
803,
8395,
775,
30,
1604,
67,
1098,
273,
8715,
18,
4646,
18,
92,
1747,
18,
1098,
92,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
855,
67,
2080,
67,
13832,
12,
2890,
16,
8715,
4672,
3536,
694,
326,
7021,
1677,
628,
392,
436,
803,
8395,
775,
30,
1604,
67,
1098,
273,
8715,
18,
4646,
18,
92,
1747,
18,
1098,
92,
17... |
tmp = la.cho_solve( factYBY, gramYBV ) | tmp = sc.linalg.cho_solve( factYBY, gramYBV ) | def applyConstraints( blockVectorV, factYBY, blockVectorBY, blockVectorY ): """Internal. Changes blockVectorV in place.""" gramYBV = sc.dot( blockVectorBY.T, blockVectorV ) tmp = la.cho_solve( factYBY, gramYBV ) blockVectorV -= sc.dot( blockVectorY, tmp ) | 4d3e9ff4507c90e9a385976cbcd13d0efd7a5535 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12971/4d3e9ff4507c90e9a385976cbcd13d0efd7a5535/lobpcg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
4878,
12,
1203,
5018,
58,
16,
5410,
61,
6486,
16,
1203,
5018,
6486,
16,
1203,
5018,
61,
262,
30,
3536,
3061,
18,
17776,
1203,
5018,
58,
316,
3166,
12123,
24663,
61,
38,
58,
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,
2230,
4878,
12,
1203,
5018,
58,
16,
5410,
61,
6486,
16,
1203,
5018,
6486,
16,
1203,
5018,
61,
262,
30,
3536,
3061,
18,
17776,
1203,
5018,
58,
316,
3166,
12123,
24663,
61,
38,
58,
273,
... |
if hasattr(self.user, 'id') and self.user.id is not None: user_ids = [self.user.id] elif type(self.user) == int: user_ids = [self.user] | if self.user or (hasattr(self.user, 'id') and self.user.id is not None): cache.delete(self.get_key_to_get_user_key()) | def update(self): """ Purges all userbit-related cache. """ if hasattr(self.user, 'id') and self.user.id is not None: user_ids = [self.user.id] elif type(self.user) == int: user_ids = [self.user] else: user_ids = [ userid['id'] for userid in User.objects.values('id') ] user_ids.append('None') | 941587095d5f96c224fcc018848a40ba2dbe7e68 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12041/941587095d5f96c224fcc018848a40ba2dbe7e68/userbits.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
3536,
14466,
2852,
777,
729,
3682,
17,
9243,
1247,
18,
3536,
309,
365,
18,
1355,
578,
261,
5332,
1747,
12,
2890,
18,
1355,
16,
296,
350,
6134,
471,
365,
18,
1355,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
3536,
14466,
2852,
777,
729,
3682,
17,
9243,
1247,
18,
3536,
309,
365,
18,
1355,
578,
261,
5332,
1747,
12,
2890,
18,
1355,
16,
296,
350,
6134,
471,
365,
18,
1355,... |
paths_file = open(paths_path, 'a') | paths_file = open(paths_path, 'w') | def install(self): | 2f9acf7970eab00cc34f4792976b0dddf2b5de61 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12852/2f9acf7970eab00cc34f4792976b0dddf2b5de61/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if mode == 'FAST_COMPILE': | if mode == theano.compile.mode.get_mode('FAST_COMPILE'): | def test_scale_cost(self): # TODO: add the optimization in FAST_COMPILE? # In the mean time, run it as 'FAST_RUN' instead mode = theano.compile.mode.get_default_mode() if mode == 'FAST_COMPILE': mode = 'FAST_RUN' | 1997674d3802092b0d0cdd11f11d6c76f9806627 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/1997674d3802092b0d0cdd11f11d6c76f9806627/test_nnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5864,
67,
12398,
12,
2890,
4672,
468,
2660,
30,
527,
326,
14850,
316,
24239,
67,
31075,
900,
35,
468,
657,
326,
3722,
813,
16,
1086,
518,
487,
296,
2046,
882,
67,
15238,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5864,
67,
12398,
12,
2890,
4672,
468,
2660,
30,
527,
326,
14850,
316,
24239,
67,
31075,
900,
35,
468,
657,
326,
3722,
813,
16,
1086,
518,
487,
296,
2046,
882,
67,
15238,
11,
... |
def cleanStorageContents(self, directory): | def cleanStorageContents( self, directory ): | def cleanStorageContents(self, directory): for storageElement in self.activeStorages: res = self.__removeStorageDirectory(directory, storageElement) if not res['OK']: return res return S_OK() | c3853ad0438058db66814335a87076cdaecd2d33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/c3853ad0438058db66814335a87076cdaecd2d33/TransformationCleaningAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
3245,
6323,
12,
365,
16,
1867,
262,
30,
364,
2502,
1046,
316,
365,
18,
3535,
510,
280,
1023,
30,
400,
273,
365,
16186,
4479,
3245,
2853,
12,
5149,
16,
2502,
1046,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
3245,
6323,
12,
365,
16,
1867,
262,
30,
364,
2502,
1046,
316,
365,
18,
3535,
510,
280,
1023,
30,
400,
273,
365,
16186,
4479,
3245,
2853,
12,
5149,
16,
2502,
1046,
13,
309,
486,
... |
key = '123123123' | key = '12312312' | def genkey(username): """ <Purpose> Internal method to generate keys for users <Arguments> username: the user who we want to generate key for <Returns> the key for the user """ # write keys to the file #os.system("python generatekeys.py %s %s %s"%(username, 20, "keys")) # read the public key from file #f = open("/key... | 8756e134ebfd025edb0fd5c1f2f31cc78110c07b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/8756e134ebfd025edb0fd5c1f2f31cc78110c07b/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
856,
12,
5053,
4672,
3536,
411,
10262,
4150,
34,
3186,
707,
358,
2103,
1311,
364,
3677,
411,
4628,
34,
2718,
30,
326,
729,
10354,
732,
2545,
358,
2103,
498,
364,
411,
1356,
34,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
856,
12,
5053,
4672,
3536,
411,
10262,
4150,
34,
3186,
707,
358,
2103,
1311,
364,
3677,
411,
4628,
34,
2718,
30,
326,
729,
10354,
732,
2545,
358,
2103,
498,
364,
411,
1356,
34,
3... |
'AdditionalIncludeDirectories': ';'.join(include_dirs), 'PreprocessorDefinitions': ';'.join(defines), 'DisableSpecificWarnings': ';'.join(disabled_warnings), }) | 'AdditionalIncludeDirectories': ';'.join(include_dirs), 'PreprocessorDefinitions': ';'.join(defines), 'DisableSpecificWarnings': ';'.join(disabled_warnings), }) | def GenerateProject(vcproj_filename, build_file, spec): print 'Generating %s' % vcproj_filename p = MSVSProject.Writer(vcproj_filename) p.Create(spec['name']) # Get directory project file is in. gyp_dir = os.path.split(vcproj_filename)[0] # Figure out which vsprops to use. vsprops_dirs = spec.get('vs_props', []) # Ma... | d249efc89497c4f919111f2805c825218080cdd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6220/d249efc89497c4f919111f2805c825218080cdd4/msvs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
1172,
296,
21755,
738,
87,
11,
738,
12802,
17995,
67,
3459,
225,
293,
273,
9238,
14640,
4109,
18,
2289,
12,
422... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6654,
4109,
12,
4227,
17995,
67,
3459,
16,
1361,
67,
768,
16,
857,
4672,
1172,
296,
21755,
738,
87,
11,
738,
12802,
17995,
67,
3459,
225,
293,
273,
9238,
14640,
4109,
18,
2289,
12,
422... |
versionStr = self.map[name][1] if not versionStr: return ("%s was not on found on path %s" \ % (name, ', '.join(x.asString() for x in self.labelPath))) elif self.labelPath: return ("version %s of %s was not on found on path %s" \ % (versionStr, name, ', '.join(x.asString() for x in labelPath))) else: return "version %s... | raise NotImplementedError | def missingMsg(self, name): versionStr = self.map[name][1] if not versionStr: return ("%s was not on found on path %s" \ % (name, ', '.join(x.asString() for x in self.labelPath))) elif self.labelPath: return ("version %s of %s was not on found on path %s" \ % (versionStr, name, ', '.join(x.asString() for x in labelPath... | 79e6e2a291a96606f9f62aab1100232e9a94a97f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/79e6e2a291a96606f9f62aab1100232e9a94a97f/findtrove.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3315,
3332,
12,
2890,
16,
508,
4672,
1177,
1585,
273,
365,
18,
1458,
63,
529,
6362,
21,
65,
309,
486,
1177,
1585,
30,
327,
7566,
9,
87,
1703,
486,
603,
1392,
603,
589,
738,
87,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3315,
3332,
12,
2890,
16,
508,
4672,
1177,
1585,
273,
365,
18,
1458,
63,
529,
6362,
21,
65,
309,
486,
1177,
1585,
30,
327,
7566,
9,
87,
1703,
486,
603,
1392,
603,
589,
738,
87,
6,
... |
return self.pagebacklinks(page, follow_redirects) | return self.pagebacklinks(page, followRedirects) | def pagereferences(self, page, followRedirects, filterRedirects, withTemplateInclusion, onlyTemplateInclusion): """Convenience method combining pagebacklinks and page_embeddedin.""" if onlyTemplateInclusion: return self.page_embeddedin(page) if not withTemplateInclusion: return self.pagebacklinks(page, follow_redirects... | 3310314476c432bf4312d17d014408f5b9153c39 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9005/3310314476c432bf4312d17d014408f5b9153c39/site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4262,
822,
2980,
12,
2890,
16,
1363,
16,
2805,
21978,
16,
1034,
21978,
16,
598,
2283,
382,
15335,
16,
1338,
2283,
382,
15335,
4672,
3536,
14700,
707,
29189,
1363,
823,
7135,
471,
1363,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4262,
822,
2980,
12,
2890,
16,
1363,
16,
2805,
21978,
16,
1034,
21978,
16,
598,
2283,
382,
15335,
16,
1338,
2283,
382,
15335,
4672,
3536,
14700,
707,
29189,
1363,
823,
7135,
471,
1363,
6... |
- tkz_style - a pre-defined ``tkz-graph`` style such as "Art" or "Normal" | - tkz_style - a pre-defined ``tkz-graph`` style such as "Art" or "Normal". Currently, the recognized styles are "Shade", "Art", "Normal", "Dijkstra", "Welsh", "Classic", and "Simple". Any other value will not give an error, but if you run ``latex`` on the graph, then an unrecognized style will be treated as "Normal".... | def set_option(self, option_name, option_value = None): r""" Sets, modifies, clears a legitimate `\mbox{\rm\LaTeX}` option for rendering a graph. | a3b2cef8e720d837003c4db7976ab3e87665c88c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/a3b2cef8e720d837003c4db7976ab3e87665c88c/graph_latex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3482,
12,
2890,
16,
1456,
67,
529,
16,
1456,
67,
1132,
273,
599,
4672,
436,
8395,
11511,
16,
23934,
16,
22655,
279,
4553,
305,
4988,
1375,
64,
81,
2147,
23241,
8864,
64,
30745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3482,
12,
2890,
16,
1456,
67,
529,
16,
1456,
67,
1132,
273,
599,
4672,
436,
8395,
11511,
16,
23934,
16,
22655,
279,
4553,
305,
4988,
1375,
64,
81,
2147,
23241,
8864,
64,
30745... |
self.__size, self.__size, gtk.gdk.INTERP_BILINEAR) | pixbuf_size, pixbuf_size, gtk.gdk.INTERP_BILINEAR) | def __update_icon(self): if self.__size <= 0: return | 40c091a91fa51b5b940963ecf577a7035c3520d2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4764/40c091a91fa51b5b940963ecf577a7035c3520d2/trayicon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
67,
3950,
12,
2890,
4672,
309,
365,
16186,
1467,
1648,
374,
30,
327,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
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,
1001,
2725,
67,
3950,
12,
2890,
4672,
309,
365,
16186,
1467,
1648,
374,
30,
327,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def getJobStatus(self,jobIDList): | def getJobStatus( self, jobIDList ): | def getDynamicInfo( self ): """ Method to return information on running and pending jobs. """ statusList = ['REGISTERED','PENDING','IDLE','RUNNING','REALLY-RUNNING'] cmd = ['glite-ce-job-status','-n','-a','-e', '%s' % self.ceName,'-s', '%s' % ':'.join(statusList) ] result = executeGridCommand(self.proxy,cmd,self.gridEn... | 45afa08b7552c5b79d1cfd9cac53e65115f5e15a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/45afa08b7552c5b79d1cfd9cac53e65115f5e15a/CREAMComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2343,
3920,
966,
12,
365,
262,
30,
3536,
2985,
358,
327,
1779,
603,
3549,
471,
4634,
6550,
18,
3536,
1267,
682,
273,
10228,
27511,
2056,
17023,
25691,
17023,
734,
900,
17023,
29358,
17023,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2343,
3920,
966,
12,
365,
262,
30,
3536,
2985,
358,
327,
1779,
603,
3549,
471,
4634,
6550,
18,
3536,
1267,
682,
273,
10228,
27511,
2056,
17023,
25691,
17023,
734,
900,
17023,
29358,
17023,... |
if(browser_op or browser_saf) | if(browser_op || browser_saf) | def javascript(): s = r""" | a5ba58a7e99b4f4575ece0704d5fe7edcdde5968 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/a5ba58a7e99b4f4575ece0704d5fe7edcdde5968/js.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11341,
13332,
272,
273,
436,
8395,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
'bober' -- use Jonathon Bober's implementation (*very* fast, | 'bober' -- use Jonathan Bober's implementation (*very* fast, | def count(self, algorithm='default'): r""" algorithm -- (default: 'default') 'bober' -- use Jonathon Bober's implementation (*very* fast, but new and not well tested yet). 'gap' -- use GAP (VERY *slow*) 'pari' -- use PARI. Speed seems the same as GAP until $n$ is in the thousands, in which case PARI is faster. *But* P... | 1f2241f60e9fcadd293908c6534bcc24eeead685 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/1f2241f60e9fcadd293908c6534bcc24eeead685/partition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1056,
12,
2890,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
4886,
1493,
261,
1886,
30,
296,
1886,
6134,
296,
1075,
744,
11,
1493,
999,
804,
265,
421,
304,
17980,
744,
1807,
4471,
261,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1056,
12,
2890,
16,
4886,
2218,
1886,
11,
4672,
436,
8395,
4886,
1493,
261,
1886,
30,
296,
1886,
6134,
296,
1075,
744,
11,
1493,
999,
804,
265,
421,
304,
17980,
744,
1807,
4471,
261,
1... |
return format_datetime(dt, 'iso8601') | return format_datetime(from_utimestamp(dt), 'iso8601') | def iso_datetime(dt): return format_datetime(dt, 'iso8601') | 3aea152789cacfddc7e1912407bbba22f247bdb6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/3aea152789cacfddc7e1912407bbba22f247bdb6/report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8702,
67,
6585,
12,
7510,
4672,
327,
740,
67,
6585,
12,
7510,
16,
296,
9699,
14181,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
8702,
67,
6585,
12,
7510,
4672,
327,
740,
67,
6585,
12,
7510,
16,
296,
9699,
14181,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
flags = '' if gp.mode & 0100: flags = 'x' elif gp.mode & 020000: flags = 'l' | islink, isexec = gp.mode | def updatedir(ui, repo, patches): '''Update dirstate after patch application according to metadata''' if not patches: return copies = [] removes = {} cfiles = patches.keys() cwd = repo.getcwd() if cwd: cfiles = [util.pathto(repo.root, cwd, f) for f in patches.keys()] for f in patches: ctype, gp = patches[f] if ctype ==... | 24364832932a2a204e5887d882fef4401374ac2e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/24364832932a2a204e5887d882fef4401374ac2e/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... |
information | >>> v.info 'information' | def __array_finalize__(self,obj): # reset the attribute from passed original object self.info = getattr(obj, 'info', None) # We do not need to return anything | aee35b25ca906c24bf067815ab8f989e993590fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/aee35b25ca906c24bf067815ab8f989e993590fb/subclassing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1126,
67,
30343,
972,
12,
2890,
16,
2603,
4672,
468,
2715,
326,
1566,
628,
2275,
2282,
733,
365,
18,
1376,
273,
3869,
12,
2603,
16,
296,
1376,
2187,
599,
13,
468,
1660,
741,
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,
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,
1126,
67,
30343,
972,
12,
2890,
16,
2603,
4672,
468,
2715,
326,
1566,
628,
2275,
2282,
733,
365,
18,
1376,
273,
3869,
12,
2603,
16,
296,
1376,
2187,
599,
13,
468,
1660,
741,
486,... |
lfns.append(lfn) fileToFTSFileAttributes.append((fileID,fileIDSizes[fileID])) | lfns.append( lfn ) fileToFTSFileAttributes.append( ( fileID, fileIDSizes[fileID] ) ) | def submitTransfer(self,channelDict): """ This method creates and submits FTS jobs based on information it gets from the DB """ | 75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/75a149be6b3b3e1970a5e02d5a7dfaf10cbe2b74/FTSSubmitAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
5912,
12,
2890,
16,
4327,
5014,
4672,
3536,
1220,
707,
3414,
471,
720,
22679,
478,
8047,
6550,
2511,
603,
1779,
518,
5571,
628,
326,
2383,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4879,
5912,
12,
2890,
16,
4327,
5014,
4672,
3536,
1220,
707,
3414,
471,
720,
22679,
478,
8047,
6550,
2511,
603,
1779,
518,
5571,
628,
326,
2383,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-1... |
self.ui.warn(_("Hunk | self.ui.warn(_("Hunk | def apply(self, h, reverse): if not h.complete(): raise PatchError("bad hunk #%d %s (%d %d %d %d)" % (h.number, h.desc, len(h.a), h.lena, len(h.b), h.lenb)) | 252c8d85581f2987e5c62ae7983c3003cc9e5438 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/252c8d85581f2987e5c62ae7983c3003cc9e5438/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
366,
16,
4219,
4672,
309,
486,
366,
18,
6226,
13332,
1002,
12042,
668,
2932,
8759,
366,
1683,
31974,
72,
738,
87,
6142,
72,
738,
72,
738,
72,
738,
72,
2225,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2230,
12,
2890,
16,
366,
16,
4219,
4672,
309,
486,
366,
18,
6226,
13332,
1002,
12042,
668,
2932,
8759,
366,
1683,
31974,
72,
738,
87,
6142,
72,
738,
72,
738,
72,
738,
72,
2225,
738,
... |
retVal = self._query( "SELECT `id` FROM `%s` WHERE `value`=%s" % ( self.__getTableName( "key", typeName, keyName ), | retVal = self._query( "SELECT `id` FROM `%s` WHERE `value`=%s" % ( _getTableName( "key", typeName, keyName ), | def __getIdForKeyValue( self, typeName, keyName, keyValue, conn = False ): """ Finds id number for value in a key table """ retVal = self._escapeString( keyValue ) if not retVal[ 'OK' ]: return retVal keyValue = retVal[ 'Value' ] retVal = self._query( "SELECT `id` FROM `%s` WHERE `value`=%s" % ( self.__getTableName( "k... | 5644734dd5f9b2176cf1b7afc4f6ab55941c88f0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/5644734dd5f9b2176cf1b7afc4f6ab55941c88f0/AccountingDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
26321,
1290,
13841,
12,
365,
16,
8173,
16,
13564,
16,
15082,
16,
1487,
273,
1083,
262,
30,
3536,
4163,
87,
612,
1300,
364,
460,
316,
279,
498,
1014,
3536,
12197,
273,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26321,
1290,
13841,
12,
365,
16,
8173,
16,
13564,
16,
15082,
16,
1487,
273,
1083,
262,
30,
3536,
4163,
87,
612,
1300,
364,
460,
316,
279,
498,
1014,
3536,
12197,
273,
365,
6315,
... |
flush_threshold = int(Globals.pipeline_max_length/2) num_rorps_skipped = 0 | flush_threshold = Globals.pipeline_max_length - 2 num_rorps_seen = 0 | def get_sigs(cls, dest_base_rpath): """Yield signatures of any changed destination files | 2043736eafb05252c4a1f7152643b83bee10e161 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/783/2043736eafb05252c4a1f7152643b83bee10e161/backup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7340,
87,
12,
6429,
16,
1570,
67,
1969,
67,
86,
803,
4672,
3536,
16348,
14862,
434,
1281,
3550,
2929,
1390,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
7340,
87,
12,
6429,
16,
1570,
67,
1969,
67,
86,
803,
4672,
3536,
16348,
14862,
434,
1281,
3550,
2929,
1390,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
to the shell (as with os.system()). If 'bufsize' is specified, | to the shell (as with os.system()). If 'bufsize' is specified, | def popen4(cmd, mode="t", bufsize=-1): """Execute the shell command 'cmd' in a sub-process. On UNIX, 'cmd' may be a sequence, in which case arguments will be passed directly to the program without shell intervention (as with os.spawnv()). If 'cmd' is a string it will be passed to the shell (as with os.system()). If '... | a92757e6b27e6c7cb6fa02f29c9b1ad013296881 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6753/a92757e6b27e6c7cb6fa02f29c9b1ad013296881/javaos.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
24,
12,
4172,
16,
1965,
1546,
88,
3113,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
2755,
23160,
16,
296,
4172,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30925,
24,
12,
4172,
16,
1965,
1546,
88,
3113,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
2755,
23160,
16,
296,
4172,
11... |
DedekindDomain.__init__(self, base = K.base(), names = K.variable_names(), normalize = False) | DedekindDomain.__init__(self, base = K.base_ring().ring_of_integers(), names = K.variable_names(), normalize = False) | def __init__(self, K, is_maximal): """ This is called when creating an order to set the ambient field. | f172d9471945cdcd52c89a4a5d8c2e411a8c4d13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f172d9471945cdcd52c89a4a5d8c2e411a8c4d13/order.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1475,
16,
353,
67,
1896,
2840,
4672,
3536,
1220,
353,
2566,
1347,
4979,
392,
1353,
358,
444,
326,
13232,
1979,
652,
18,
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,
0,
0,
0,
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,
1475,
16,
353,
67,
1896,
2840,
4672,
3536,
1220,
353,
2566,
1347,
4979,
392,
1353,
358,
444,
326,
13232,
1979,
652,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
not cls._connection.tableExists(join.intermediateTable): | not conn.tableExists(join.intermediateTable): | def dropJoinTables(cls, ifExists=False): for join in cls._SO_joinList: if not join: continue if not join.hasIntermediateTable(): continue if join.soClass.__name__ > join.otherClass.__name__: continue if ifExists and \ not cls._connection.tableExists(join.intermediateTable): continue cls._connection._SO_dropJoinTable(jo... | 037450d58325667d5fa7c8539afdd8393fe0bff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6718/037450d58325667d5fa7c8539afdd8393fe0bff2/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
4572,
6905,
12,
6429,
16,
309,
4002,
33,
8381,
4672,
364,
1233,
316,
2028,
6315,
3584,
67,
5701,
682,
30,
309,
486,
1233,
30,
1324,
309,
486,
1233,
18,
5332,
2465,
6785,
1388,
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,
3640,
4572,
6905,
12,
6429,
16,
309,
4002,
33,
8381,
4672,
364,
1233,
316,
2028,
6315,
3584,
67,
5701,
682,
30,
309,
486,
1233,
30,
1324,
309,
486,
1233,
18,
5332,
2465,
6785,
1388,
13... |
full_partner_dir, original_builds_dir, partner_repack_dir, | full_partner_dir, local_filepath, working_dir, final_dir, | def repackBuild(self): zip_cmd = "7za a %s nonlocalized" % self.build shellCommand(zip_cmd) | e36822b26ce81ba3f89d96443ec62c28dbd6e70f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10262/e36822b26ce81ba3f89d96443ec62c28dbd6e70f/partner-repacks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
738,
87,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
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,
2071,
484,
3116,
12,
2890,
4672,
3144,
67,
4172,
273,
315,
27,
11939,
279,
738,
87,
1661,
3729,
1235,
6,
738,
365,
18,
3510,
5972,
2189,
12,
4450,
67,
4172,
13,
2,
-100,
-100,
-100,
... |
e=self.classifier.examples.filterref(r.filter) d=orange.Distribution(r.classifier.classVar,self.classifier.examples.filterref(r.filter)) | d=r.classDistribution | def distText(self,r): e=self.classifier.examples.filterref(r.filter) d=orange.Distribution(r.classifier.classVar,self.classifier.examples.filterref(r.filter)) s=str(d).strip("<>") return "<"+",".join(["%.1f" % float(f) for f in s.split(",")])+">" | f6b6b724b64646141604db59c794c0c0ee707f2d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/f6b6b724b64646141604db59c794c0c0ee707f2d/OWCN2RulesViewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2411,
1528,
12,
2890,
16,
86,
4672,
225,
302,
33,
86,
18,
1106,
9003,
272,
33,
701,
12,
72,
2934,
6406,
2932,
32,
2984,
13,
327,
18165,
15,
3113,
9654,
5701,
3816,
28385,
18,
21,
74,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2411,
1528,
12,
2890,
16,
86,
4672,
225,
302,
33,
86,
18,
1106,
9003,
272,
33,
701,
12,
72,
2934,
6406,
2932,
32,
2984,
13,
327,
18165,
15,
3113,
9654,
5701,
3816,
28385,
18,
21,
74,... |
jobSpec.parameters['ProdAgentName'] = prodAgentName() | def actOnJobSpec(self, jobSpec, jobCache): """ Create an individual self contained job | e3fc5a3d7d04716611607a1548b7e024a5fe05ad /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/e3fc5a3d7d04716611607a1548b7e024a5fe05ad/DefaultGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1328,
1398,
2278,
1990,
12,
2890,
16,
1719,
1990,
16,
1719,
1649,
4672,
3536,
1788,
392,
7327,
365,
7542,
1719,
2,
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,
1328,
1398,
2278,
1990,
12,
2890,
16,
1719,
1990,
16,
1719,
1649,
4672,
3536,
1788,
392,
7327,
365,
7542,
1719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
class AnotherDateTimeClass(object): def __cmp__(self, other): return 0 their = AnotherDateTimeClass() | class SomeClass: pass their = SomeClass() self.assertEqual(our == their, False) self.assertEqual(their == our, False) self.assertEqual(our != their, True) self.assertEqual(their != our, True) self.assertRaises(TypeError, lambda: our < their) self.assertRaises(TypeError, lambda: their < our) | def test_mixed_compare(self): our = self.theclass(2000, 4, 5) self.assertRaises(TypeError, cmp, our, 1) self.assertRaises(TypeError, cmp, 1, our) | 4f251564b1a50b3727c359cc27e9c215d3a0dedd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4f251564b1a50b3727c359cc27e9c215d3a0dedd/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19562,
67,
9877,
12,
2890,
4672,
3134,
273,
365,
18,
451,
557,
459,
12,
17172,
16,
1059,
16,
1381,
13,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
9411,
16,
3134,
16,
404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
67,
19562,
67,
9877,
12,
2890,
4672,
3134,
273,
365,
18,
451,
557,
459,
12,
17172,
16,
1059,
16,
1381,
13,
365,
18,
11231,
12649,
6141,
12,
19030,
16,
9411,
16,
3134,
16,
404,
... |
write_script(path, entry_pt, basename(egg.fpath), script_type) | write_script(path, entry_pt, basename(egg.fpath)) | def create(egg, conf): for script_type in ['gui_scripts', 'console_scripts']: if script_type not in conf.sections(): continue for name, entry_pt in conf.items(script_type): fname = name if on_win: exe_path = join(sys.prefix, r'Scripts\%s.exe' % name) rm_rf(exe_path) cp_exe(exe_path) egg.files.append(exe_path) fname += ... | 2ce722584a0d67836b2c4350ccedff30e58f5af2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7707/2ce722584a0d67836b2c4350ccedff30e58f5af2/scripts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
23171,
16,
2195,
4672,
364,
2728,
67,
723,
316,
10228,
20292,
67,
12827,
2187,
296,
8698,
67,
12827,
3546,
30,
309,
2728,
67,
723,
486,
316,
2195,
18,
11657,
13332,
1324,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
23171,
16,
2195,
4672,
364,
2728,
67,
723,
316,
10228,
20292,
67,
12827,
2187,
296,
8698,
67,
12827,
3546,
30,
309,
2728,
67,
723,
486,
316,
2195,
18,
11657,
13332,
1324,
364,
... |
self.append((author, title, language, file_name)) | return self.append((author, title, language, file_name)) | def add(self, author=u"", title=u"", language=u"", file_name=""): self.append((author, title, language, file_name)) | 6946a582bfd809de64fc01e83e1ba80419b08271 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14744/6946a582bfd809de64fc01e83e1ba80419b08271/model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
2869,
33,
89,
6,
3113,
2077,
33,
89,
6,
3113,
2653,
33,
89,
6,
3113,
585,
67,
529,
1546,
6,
4672,
365,
18,
6923,
12443,
4161,
16,
2077,
16,
2653,
16,
585,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
2869,
33,
89,
6,
3113,
2077,
33,
89,
6,
3113,
2653,
33,
89,
6,
3113,
585,
67,
529,
1546,
6,
4672,
365,
18,
6923,
12443,
4161,
16,
2077,
16,
2653,
16,
585,
67,
... |
zones.remove(16) self.sendSetZone(16, zones) | self.sendSetZone(0, zones) | def initVisibility(self): # start out with every zone visible, since none of the zones have # been hidden self.curVisibleZoneNums = list2dict(self.zoneNums) # we have not entered any zone yet self.curZoneNum = None | 4aa22f8057adc2b19b09a7b0ab9b434f434d6e7d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/4aa22f8057adc2b19b09a7b0ab9b434f434d6e7d/DistributedLevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
10135,
12,
2890,
4672,
468,
787,
596,
598,
3614,
4157,
6021,
16,
3241,
6555,
434,
326,
13975,
1240,
468,
2118,
5949,
365,
18,
1397,
6207,
4226,
25532,
273,
666,
22,
1576,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
10135,
12,
2890,
4672,
468,
787,
596,
598,
3614,
4157,
6021,
16,
3241,
6555,
434,
326,
13975,
1240,
468,
2118,
5949,
365,
18,
1397,
6207,
4226,
25532,
273,
666,
22,
1576,
12,
2890,... |
pInfo = self.pInfo flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContinuePrinting() self['curPage'] = pInfo.GetCurPage() self['numPreviewPages'] = pInfo.GetNumPreviewPages() self[... | pInfo = self.pInfo flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContinuePrinting() self['curPage'] = pInfo.GetCurPage() self['numPreviewPages'] = pInfo.GetNumPreviewPages() self[... | def OnOK(self): '''DoModal has finished. Can now access the users choices''' self._obj_.OnOK() pInfo = self.pInfo # user values flags = pInfo.GetFlags() self['toFile'] = (flags&win32ui.PD_PRINTTOFILE != 0) self['direct'] = pInfo.GetDirect() self['preview'] = pInfo.GetPreview() self['continuePrinting'] = pInfo.GetContin... | 81be9edd0818d0cc5675a75bd7b6fce36ac54c3d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/992/81be9edd0818d0cc5675a75bd7b6fce36ac54c3d/dialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3141,
12,
2890,
4672,
9163,
3244,
20191,
711,
6708,
18,
4480,
2037,
2006,
326,
3677,
7246,
26418,
365,
6315,
2603,
27799,
1398,
3141,
1435,
293,
966,
273,
365,
18,
84,
966,
468,
72... |
global user_key_dict; | def genkey(username): """ <Purpose> Internal method to generate keys for users <Arguments> username: the user who we want to generate key for <Returns> the key for the user """ global user_key_dict; # write keys to the file os.system("python generatekeys.py %s %s %s"%(username, 20, "keys")) # read the public key from... | d8e49897f41c61b9a5dc0d99d62df0418c0571ca /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7995/d8e49897f41c61b9a5dc0d99d62df0418c0571ca/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3157,
856,
12,
5053,
4672,
3536,
411,
10262,
4150,
34,
3186,
707,
358,
2103,
1311,
364,
3677,
411,
4628,
34,
2718,
30,
326,
729,
10354,
732,
2545,
358,
2103,
498,
364,
411,
1356,
34,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3157,
856,
12,
5053,
4672,
3536,
411,
10262,
4150,
34,
3186,
707,
358,
2103,
1311,
364,
3677,
411,
4628,
34,
2718,
30,
326,
729,
10354,
732,
2545,
358,
2103,
498,
364,
411,
1356,
34,
3... | |
self.views = [] | def __init__(self, controller, sessionID): self.sessionID = sessionID self.engine = None self.views = [] self.messages = [] self.messagesSeen = {} self.sequence = 0 self.createTime = time.time() self.lastPollTime = 0 self.lastTouchTime = 0 self.expireDelay = 60 * 10 # ten minutes self.controller = controller self.userN... | dd878e73fa8c508751e0e76f71ed97d2be061251 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12485/dd878e73fa8c508751e0e76f71ed97d2be061251/micropolisturbogearsengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2596,
16,
13737,
4672,
365,
18,
17255,
273,
13737,
365,
18,
8944,
273,
599,
365,
18,
6833,
273,
5378,
365,
18,
6833,
15160,
273,
2618,
365,
18,
6178,
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,
1001,
2738,
972,
12,
2890,
16,
2596,
16,
13737,
4672,
365,
18,
17255,
273,
13737,
365,
18,
8944,
273,
599,
365,
18,
6833,
273,
5378,
365,
18,
6833,
15160,
273,
2618,
365,
18,
6178,
273... | |
print "WE WILL NOT ADD %s" %node.get_id() self.tasks_to_add.pop(node.get_id()) | self.tasks_to_add.remove(node.get_id()) | def on_get_iter(self, path): | acc8ceb5ef4dbd70dfe28012b4d16b2566a2ed8b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/acc8ceb5ef4dbd70dfe28012b4d16b2566a2ed8b/tasktree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
588,
67,
2165,
12,
2890,
16,
589,
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,
603,
67,
588,
67,
2165,
12,
2890,
16,
589,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.