rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
authors.add(entry.author) if author in ("ALL", "", entry.author): | m = re_author.match(entry.author) authors[m.group(2)] = m.group(1) if author in ("ALL", "", m.group(2)): | def render(self, myself, tree, author=None): t = self.buildfarm.trees[tree] interesting = list() authors = set(["ALL"]) branch = t.get_branch() for entry in branch.log(limit=HISTORY_HORIZON): authors.add(entry.author) if author in ("ALL", "", entry.author): interesting.append(entry) | 731e40ea6b3f434d9d171d733ed24c390e59be4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/731e40ea6b3f434d9d171d733ed24c390e59be4d/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
2869,
33,
7036,
4672,
268,
273,
365,
18,
3510,
74,
4610,
18,
17204,
63,
3413,
65,
26122,
273,
666,
1435,
14494,
273,
444,
3816,
6,
4685,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
3399,
2890,
16,
2151,
16,
2869,
33,
7036,
4672,
268,
273,
365,
18,
3510,
74,
4610,
18,
17204,
63,
3413,
65,
26122,
273,
666,
1435,
14494,
273,
444,
3816,
6,
4685,
... |
except KeyError: comment = '' | def newimages(self, number = 100, lestart = None, leend = None, leuser = None, letitle = None, repeat = False): """ Yield ImagePages from APIs, call: action=query&list=logevents&letype=upload&lelimit=500 | 54fa5c4791af2d684720c89e9fd87b887b78d41c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/54fa5c4791af2d684720c89e9fd87b887b78d41c/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
7369,
12,
2890,
16,
1300,
273,
2130,
16,
328,
27893,
273,
599,
16,
884,
409,
273,
599,
16,
884,
1355,
273,
599,
16,
2231,
1280,
273,
599,
16,
7666,
273,
1083,
4672,
3536,
31666,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
394,
7369,
12,
2890,
16,
1300,
273,
2130,
16,
328,
27893,
273,
599,
16,
884,
409,
273,
599,
16,
884,
1355,
273,
599,
16,
2231,
1280,
273,
599,
16,
7666,
273,
1083,
4672,
3536,
31666,
... | |
sql = "INSERT INTO `%s` (`sender`, `recipient`, `client_address`, `date`, `state`) VALUES (%%s, %%s, %%s, NOW(), 0)" % table | sql = "INSERT INTO `%s` (`sender`, `recipient`, `client_address`, `date`, `state`) VALUES (%%s, %%s, %%s, NOW(), -1)" % table | def check(self, data, *args, **keywords): sender = data.get('sender', '').lower() recipient = data.get('recipient', '').lower() client_name = data.get('client_name', '').lower() client_address = data.get('client_address') | 2b39916674dfcb14ea61bf240a83d61daf31ba90 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5428/2b39916674dfcb14ea61bf240a83d61daf31ba90/Greylist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
273,
501,
18,
588,
2668,
15330,
2187,
875,
2934,
8167,
1435,
8027,
273,
501,
18,
588,
2668,
20367,
2187,
875,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
16,
501,
16,
380,
1968,
16,
2826,
11771,
4672,
5793,
273,
501,
18,
588,
2668,
15330,
2187,
875,
2934,
8167,
1435,
8027,
273,
501,
18,
588,
2668,
20367,
2187,
875,
2934,
... |
if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles() | if newname: if win32: self.addToShared(u"%s" % newname) else: self.addToShared(newname) self.eventprocessor.sendNumSharedFoldersFiles() | def FileDownload(self, msg): """ A file download is in progress""" needupdate = 1 config = self.eventprocessor.config.sections for i in self.downloads: if i.conn != msg.conn: continue try: if i.transfertimer is not None: i.transfertimer.cancel() curtime = time.time() i.currentbytes = msg.file.tell() if i.lastbytes is N... | e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8738/e04db3135ed71a7bde2b1cf11e3c1ce16abc9eb8/transfers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1387,
7109,
12,
2890,
16,
1234,
4672,
3536,
432,
585,
4224,
353,
316,
4007,
8395,
1608,
2725,
273,
404,
642,
273,
365,
18,
2575,
8700,
18,
1425,
18,
11657,
364,
277,
316,
365,
18,
7813... |
def connect(self, required_args, ConnectorClass, *rest_args, **rest_kwargs): gtransport, factory = self._make_transport_and_factory() args = required_args + (factory, ) + rest_args c = ConnectorClass(*args, **rest_kwargs) c.connect() factory.event.wait() return gtransport | def connect(self, required_args, ConnectorClass, *rest_args, **rest_kwargs): gtransport, factory = self._make_transport_and_factory() args = required_args + (factory, ) + rest_args c = ConnectorClass(*args, **rest_kwargs) c.connect() factory.event.wait() return gtransport | c2a5d3bce6d30b6240322f87dc0cbe81dc538f4c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/c2a5d3bce6d30b6240322f87dc0cbe81dc538f4c/protocol.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1931,
67,
1968,
16,
15779,
797,
16,
380,
8792,
67,
1968,
16,
2826,
8792,
67,
4333,
4672,
314,
13049,
16,
3272,
273,
365,
6315,
6540,
67,
13049,
67,
464,
67,
6848,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3077,
12,
2890,
16,
1931,
67,
1968,
16,
15779,
797,
16,
380,
8792,
67,
1968,
16,
2826,
8792,
67,
4333,
4672,
314,
13049,
16,
3272,
273,
365,
6315,
6540,
67,
13049,
67,
464,
67,
6848,
... | |
bi_self = wholechain.wholechain_baseindex(rail, baseindex) | bi_baseatom = wholechain.wholechain_baseindex(rail, baseindex) | def getToolTipInfo(self, isAtomPosition, isAtomChunkInfo, isAtomMass, atomDistPrecision): """ Returns this atom's basic info string for the dynamic tooltip """ atom = self | 58e4b662d67fdcb37978569adac18e6e93ba4517 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/58e4b662d67fdcb37978569adac18e6e93ba4517/chem.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
29250,
966,
12,
2890,
16,
353,
3641,
2555,
16,
353,
3641,
5579,
966,
16,
353,
3641,
18060,
16,
3179,
5133,
15410,
4672,
3536,
2860,
333,
3179,
1807,
5337,
1123,
533,
364,
326,
5976,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
336,
29250,
966,
12,
2890,
16,
353,
3641,
2555,
16,
353,
3641,
5579,
966,
16,
353,
3641,
18060,
16,
3179,
5133,
15410,
4672,
3536,
2860,
333,
3179,
1807,
5337,
1123,
533,
364,
326,
5976,... |
pkgId, pkgKey = op | pkgId, pkgKey = op[0], op[1] | def addFilesToPkg(self, name, epoch, version, release, arch, filelist, filetypelist): """Add a package to the filelists cache""" cur = self._primarydb.cursor() fcur = self._filelistsdb.cursor() cur.execute('SELECT pkgId, pkgKey FROM packages WHERE name="%s" ' 'and epoch="%s" and version="%s" and release="%s" ' 'and arc... | 1bd6adee371af6defb14a869c8d6fece65e51000 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1143/1bd6adee371af6defb14a869c8d6fece65e51000/sqliterepodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2697,
774,
11264,
12,
2890,
16,
508,
16,
7632,
16,
1177,
16,
3992,
16,
6637,
16,
26204,
16,
661,
278,
879,
5449,
4672,
3536,
986,
279,
2181,
358,
326,
661,
292,
1486,
1247,
8395,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2697,
774,
11264,
12,
2890,
16,
508,
16,
7632,
16,
1177,
16,
3992,
16,
6637,
16,
26204,
16,
661,
278,
879,
5449,
4672,
3536,
986,
279,
2181,
358,
326,
661,
292,
1486,
1247,
8395,
... |
self.desc = ["".join(self.desc)] | self.desc = ["by " + "".join(self.desc)] | def end_span(self): if self.indesc: self.desc = ["".join(self.desc)] self.indesc = False | 20dccb057332bfbcc8b499baf100599e870ebf72 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10627/20dccb057332bfbcc8b499baf100599e870ebf72/events.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
3969,
12,
2890,
4672,
309,
365,
18,
728,
742,
30,
365,
18,
5569,
273,
8247,
1637,
315,
397,
1408,
18,
5701,
12,
2890,
18,
5569,
25887,
365,
18,
728,
742,
273,
1083,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
679,
67,
3969,
12,
2890,
4672,
309,
365,
18,
728,
742,
30,
365,
18,
5569,
273,
8247,
1637,
315,
397,
1408,
18,
5701,
12,
2890,
18,
5569,
25887,
365,
18,
728,
742,
273,
1083,
2,
-100,... |
[2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7)] [ 2*5 + 3*5^2 + 3*5^3 + 3*5^4 + 2*5^5 + O(5^7) 3*5^3 + 5^4 + 5^6 + O(5^7)] | [2*5 + 2*5^2 + 4*5^3 + 3*5^4 + 3*5^5 + 4*5^6 + 3*5^7 + 4*5^8 + O(5^9) 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9)] [ 4*5 + 3*5^3 + 2*5^4 + 5^5 + 3*5^7 + 3*5^8 + O(5^9) 5 + 4*5^2 + 4*5^3 + 2*5^4 + 4*5^5 + 5^6 + O(5^9)] | def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction. | 97a7111045a2e1421945261832ecad2046ecee85 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/97a7111045a2e1421945261832ecad2046ecee85/ell_rational_field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281... |
if isinstance(other, QAnd): | if isinstance(other, DjangoQAnd): | def __and__(self, other): if isinstance(other, QAnd): return QAnd(*(self.args+other.args)) elif isinstance(other, (Q, QOr)): return QAnd(*(self.args+(other,))) else: raise TypeError, other | ec2feccf6f65a442d209665aabd7b4d403d389ea /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12041/ec2feccf6f65a442d209665aabd7b4d403d389ea/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
464,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
18480,
53,
1876,
4672,
327,
2238,
1876,
12,
21556,
2890,
18,
1968,
15,
3011,
18,
1968,
3719,
1327,
1549,
12,
3011,
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,
1001,
464,
972,
12,
2890,
16,
1308,
4672,
309,
1549,
12,
3011,
16,
18480,
53,
1876,
4672,
327,
2238,
1876,
12,
21556,
2890,
18,
1968,
15,
3011,
18,
1968,
3719,
1327,
1549,
12,
3011,
16... |
os.environ['LD_PRELOAD'] = '' | os.system('ls') sys.exit() | def main_func(): # Add the drives to the config.removable_media list. There doesn't have # to be any drives defined. if config.ROM_DRIVES != None: for i in range(len(config.ROM_DRIVES)): (dir, device, name) = config.ROM_DRIVES[i] media = RemovableMedia(mountdir=dir, devicename=device, drivename=name) # close the tray ... | dee069b95425775e38cf7b903938b99451160486 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/dee069b95425775e38cf7b903938b99451160486/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
67,
644,
13332,
225,
468,
1436,
326,
5081,
3606,
358,
326,
642,
18,
2764,
1527,
429,
67,
5829,
666,
18,
6149,
3302,
1404,
1240,
468,
358,
506,
1281,
5081,
3606,
2553,
18,
309,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
67,
644,
13332,
225,
468,
1436,
326,
5081,
3606,
358,
326,
642,
18,
2764,
1527,
429,
67,
5829,
666,
18,
6149,
3302,
1404,
1240,
468,
358,
506,
1281,
5081,
3606,
2553,
18,
309,
64... |
lsctables.SnglInspiralTable.next_id = lsctables.SnglInspiralID_old(0) | lsctables.SnglInspiralTable.next_id = _mangled_next_id | def ReadSnglInspiralFromFiles(fileList, mangle_event_id=False, verbose=False, non_lsc_tables_ok=False, old_document=False): """ Read the SnglInspiralTables from a list of files @param fileList: list of input files @param mangle_event_id: ID remapping is necessary in cases where multiple files might have event_id colli... | f034701ea38b4cafb05183ed54333ccfa17338be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/f034701ea38b4cafb05183ed54333ccfa17338be/SnglInspiralUtils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2720,
55,
3368,
80,
382,
1752,
481,
287,
1265,
2697,
12,
768,
682,
16,
312,
4341,
67,
2575,
67,
350,
33,
8381,
16,
3988,
33,
8381,
16,
1661,
67,
80,
1017,
67,
9373,
67,
601,
33,
83... |
Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x C729 generated by [a*b, c^6, d] sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")) sage: G Multiplicative Abelian Group isomorphic to Z x C5 x C64, which is the su... | Multiplicative Abelian Group isomorphic to C5 x C64 x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C30 x C64 x C729 generated by [a*b, c^6, d] sage: G = F.subgroup([a*b,c^6,d],names = list("xyz")); G Multiplicative Abelian Group isomorphic to C5 x C64 x Z, which is the subgroup of Mul... | def __init__(self, ambient, gens, names="f"): """ EXAMPLES: sage: F = AbelianGroup(5,[30,64,729],names = list("abcde")) sage: a,b,c,d,e = F.gens() sage: F.subgroup([a^3,b]) Multiplicative Abelian Group isomorphic to Z x Z, which is the subgroup of Multiplicative Abelian Group isomorphic to Z x Z x C2 x C3 x C5 x C64 x... | ac7b9e1e09a437ce1112b2a6f61db8126e9ee984 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/ac7b9e1e09a437ce1112b2a6f61db8126e9ee984/abelian_group.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13232,
1979,
16,
314,
773,
16,
1257,
1546,
74,
6,
4672,
3536,
225,
5675,
8900,
11386,
30,
272,
410,
30,
478,
273,
9771,
292,
2779,
1114,
12,
25,
16,
63... |
<separator name="FM2"/> | <separator name="FM2"/> | def __init__(self): try: gettext.install('mirage', '/usr/share/locale', unicode=1) except: gettext.install('mirage', '/usr/local/share/locale', unicode=1) # Constants self.open_mode_smart = 0 self.open_mode_fit = 1 self.open_mode_1to1 = 2 self.open_mode_last = 3 self.max_zoomratio = 5 # 5 x self.zoomratio_for_z... | f4fb8573b027b21956ca815c0edbf66e6ae6e39e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2291/f4fb8573b027b21956ca815c0edbf66e6ae6e39e/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4672,
225,
775,
30,
24972,
18,
5425,
2668,
81,
481,
410,
2187,
1173,
13640,
19,
14419,
19,
6339,
2187,
5252,
33,
21,
13,
1335,
30,
24972,
18,
5425,
2668,
81,... |
self.appriss.xmlstream.send(message) | if (self.appriss): self.appriss.xmlstream.send(message) | def processMessage(self, elem): _from = jid.JID( elem["from"] ) t = "" try: t = elem["type"] except: print elem.toXml(), 'BOOOOOOO' | b893130001f5195f495b0519db505b2476a4a112 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11180/b893130001f5195f495b0519db505b2476a4a112/publicbot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1079,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
268,
273,
1408,
775,
30,
268,
273,
3659,
9614,
723,
11929,
1335,
30,
1172,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
1079,
12,
2890,
16,
3659,
4672,
389,
2080,
273,
14201,
18,
46,
734,
12,
3659,
9614,
2080,
11929,
262,
268,
273,
1408,
775,
30,
268,
273,
3659,
9614,
723,
11929,
1335,
30,
1172,
3... |
self.msgText("Shrink Display!\n") | if (self.debugLevel >= HighDebug) : self.msgText("Shrink Display!\n") | def whenShrinkButtonClicked(self, event): if (self.shrinkGrow == True) : self.msgText("Shrink Display!\n") # add text self.speedPane.setVisible(False) self.shrinkGrow = False self.fullScrollRows = self.scrollArea.getRows() self.scrollArea.setRows(self.fullScrollRows / 2) self.scriptFrame.pack() else : self.msgText(... | 59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2146/59e4aafd20d48b37b8557fb5f47ffa3c8e4ea316/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1347,
28747,
3616,
27633,
12,
2890,
16,
871,
4672,
309,
261,
2890,
18,
674,
12334,
30948,
422,
1053,
13,
294,
309,
261,
2890,
18,
4148,
2355,
1545,
15207,
2829,
13,
294,
365,
18,
3576,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1347,
28747,
3616,
27633,
12,
2890,
16,
871,
4672,
309,
261,
2890,
18,
674,
12334,
30948,
422,
1053,
13,
294,
309,
261,
2890,
18,
4148,
2355,
1545,
15207,
2829,
13,
294,
365,
18,
3576,
... |
lines.append('%s "%s"' % (commandparams_info[name][1], option2.replace('"', '\\"'))) | lines.append('%s "%s"' % (commandparams_info[name][1], option2.replace('\\', '\\\\').replace('"', '\\"'))) | def convert_commandparams(document): """ Convert \begin_inset LatexCommand \cmdname[opt1][opt2]{arg} \end_inset to \begin_inset LatexCommand cmdname name1 "opt1" name2 "opt2" name3 "arg" \end_inset name1, name2 and name3 can be different for each command. | 7feaac16d224b7adb406eb79810b2b84e4816ca0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7514/7feaac16d224b7adb406eb79810b2b84e4816ca0/lyx_1_5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1765,
67,
3076,
2010,
12,
5457,
4672,
3536,
4037,
225,
521,
10086,
67,
267,
542,
11134,
338,
2189,
521,
4172,
529,
63,
3838,
21,
6362,
3838,
22,
7073,
3175,
97,
521,
409,
67,
267,
542,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1765,
67,
3076,
2010,
12,
5457,
4672,
3536,
4037,
225,
521,
10086,
67,
267,
542,
11134,
338,
2189,
521,
4172,
529,
63,
3838,
21,
6362,
3838,
22,
7073,
3175,
97,
521,
409,
67,
267,
542,... |
self._gl_has_been_initialised = False | self.material = gl_managed.material_model() | def __init__(self, fft_map=None, unit_cell=None, raw_map=None, frame=None, wires=True, **kwds): assert fft_map is None or (unit_cell is None and raw_map is None) import time super(map_view, self).__init__(frame, **kwds) self.buffer_factor = 2.0 self.back_colour = (0,)*4 self.wires = wires self._gl_has_been_initialised ... | 7c5e2e9abbc0a0f9ae34009f899290df53499bb6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/7c5e2e9abbc0a0f9ae34009f899290df53499bb6/wx_map_viewer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15741,
67,
1458,
33,
7036,
16,
2836,
67,
3855,
33,
7036,
16,
1831,
67,
1458,
33,
7036,
16,
2623,
33,
7036,
16,
341,
2814,
33,
5510,
16,
2826,
25577,
46... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
15741,
67,
1458,
33,
7036,
16,
2836,
67,
3855,
33,
7036,
16,
1831,
67,
1458,
33,
7036,
16,
2623,
33,
7036,
16,
341,
2814,
33,
5510,
16,
2826,
25577,
46... |
self.transport.write("%s %s\r\n" % (subjectFields[0], subjectFields[1])) | commandLine = "%s %s\r\n" % (subjectFields[0], subjectFields[1]) logCommand(commandLine) self.transport.write(commandLine) | def connectionMade(self): import sys mailMsg = email.message_from_file(sys.stdin) f = open(mailLog, "a") f.write(mailMsg.as_string()) f.close() subjectFields = mailMsg['Subject'].split(" ") message = mailMsg.get_payload() subjectFields[1] = subjectFields[1].lower() if subjectFields[1][0] == "#": subjectFields[1] = sub... | 01718cb5764c72d147feb28170508714b3a91a9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/454/01718cb5764c72d147feb28170508714b3a91a9b/emailBotClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1459,
49,
2486,
12,
2890,
4672,
1930,
2589,
4791,
3332,
225,
273,
2699,
18,
2150,
67,
2080,
67,
768,
12,
9499,
18,
21772,
13,
284,
273,
1696,
12,
4408,
1343,
16,
315,
69,
7923,
284,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1459,
49,
2486,
12,
2890,
4672,
1930,
2589,
4791,
3332,
225,
273,
2699,
18,
2150,
67,
2080,
67,
768,
12,
9499,
18,
21772,
13,
284,
273,
1696,
12,
4408,
1343,
16,
315,
69,
7923,
284,
... |
x = np.array([np.inf + 1j * np.nan, np.inf + 1j * np.inf, np.nan + 1j * np.nan]) y_r = np.array([np.inf, np.inf, np.nan]) y = np.abs(x) for i in range(len(x)): assert_equal_spec(y_r[i], y[i]) | xl = [] yl = [] x = np.array([complex(np.nan, np.nan)], np.complex) y = np.nan assert_almost_equal_spec(np.abs(x), y) xl.append(x) yl.append(y) x = np.array([complex(np.inf, np.nan)], np.complex) y = np.inf assert_almost_equal_spec(np.abs(x), y) xl.append(x) yl.append(y) x = np.array([complex(-np.inf, np.nan)], np... | def test_cabs_inf_nan(self): # According to C99 standard, cabs(inf + j * nan) should be inf x = np.array([np.inf + 1j * np.nan, np.inf + 1j * np.inf, np.nan + 1j * np.nan]) y_r = np.array([np.inf, np.inf, np.nan]) y = np.abs(x) for i in range(len(x)): assert_equal_spec(y_r[i], y[i]) | 75d0322ad6aec180e9eb221f12ee71a81d85ed94 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/75d0322ad6aec180e9eb221f12ee71a81d85ed94/test_umath_complex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
5113,
67,
10625,
67,
13569,
12,
2890,
4672,
468,
12848,
4643,
358,
385,
2733,
4529,
16,
276,
5113,
12,
10625,
397,
525,
380,
6468,
13,
1410,
506,
8286,
619,
273,
1130,
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,
71,
5113,
67,
10625,
67,
13569,
12,
2890,
4672,
468,
12848,
4643,
358,
385,
2733,
4529,
16,
276,
5113,
12,
10625,
397,
525,
380,
6468,
13,
1410,
506,
8286,
619,
273,
1130,
18... |
if '>' in content and '<' in content and not \ | if ('>' in content or '<' in content) and not \ | def escape_if_good_idea(match): before, content, after = match.groups() if '>' in content and '<' in content and not \ content.lstrip().startswith('<!CDATA[['): content = escape(content) return before + content + after | 4b6144366997be49af8a1e1388ca1f02027397ef /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12815/4b6144366997be49af8a1e1388ca1f02027397ef/wordpress.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
430,
67,
19747,
67,
831,
69,
12,
1916,
4672,
1865,
16,
913,
16,
1839,
273,
845,
18,
4650,
1435,
309,
7707,
1870,
316,
913,
578,
9138,
316,
913,
13,
471,
486,
521,
913,
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,
4114,
67,
430,
67,
19747,
67,
831,
69,
12,
1916,
4672,
1865,
16,
913,
16,
1839,
273,
845,
18,
4650,
1435,
309,
7707,
1870,
316,
913,
578,
9138,
316,
913,
13,
471,
486,
521,
913,
18,
... |
self._current_task = None | def run(self): """Main thread function. | b3558df1ce05334d20560d16cec79e7e4286ae09 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7542/b3558df1ce05334d20560d16cec79e7e4286ae09/workerpool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
6376,
2650,
445,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
6376,
2650,
445,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
out.write("TBR=" + author) | out.write("\nTBR=" + author) | def main(options, args): revision = options.revert or options.merge # Initialize some variables used below. They can be overwritten by # the drover.properties file. BASE_URL = "svn://svn.chromium.org/chrome" TRUNK_URL = BASE_URL + "/trunk/src" BRANCH_URL = BASE_URL + "/branches/$branch/src" SKIP_CHECK_WORKING = True P... | 3f75f2c63435159215c8cb70929e3c9a4140a79e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6076/3f75f2c63435159215c8cb70929e3c9a4140a79e/drover.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
473... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2116,
16,
833,
4672,
6350,
273,
702,
18,
266,
1097,
578,
702,
18,
2702,
225,
468,
9190,
2690,
3152,
1399,
5712,
18,
16448,
848,
506,
15345,
635,
468,
326,
31473,
502,
18,
473... |
''' | """ | def mouserightclick(self, window_name, object_name): ''' Mouse right click on an object. @param window_name: Window name to look for, either full name, LDTP's name convention, or a Unix glob. @type window_name: string @param object_name: Object name to look for, either full name, LDTP's name convention, or a Unix glob... | 2840728a35706bfd7cd3e236c75533448a30fc1d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11266/2840728a35706bfd7cd3e236c75533448a30fc1d/mouse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7344,
1355,
750,
7475,
12,
2890,
16,
2742,
67,
529,
16,
733,
67,
529,
4672,
3536,
17013,
2145,
4682,
603,
392,
733,
18,
225,
632,
891,
2742,
67,
529,
30,
6076,
508,
358,
2324,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7344,
1355,
750,
7475,
12,
2890,
16,
2742,
67,
529,
16,
733,
67,
529,
4672,
3536,
17013,
2145,
4682,
603,
392,
733,
18,
225,
632,
891,
2742,
67,
529,
30,
6076,
508,
358,
2324,
364,
1... |
s += chunk | s.append(chunk) | def _safe_read(self, amt): """Read the number of bytes requested, compensating for partial reads. | e44e6f8d0905df90ccdbc34eea46d10061c401d1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/e44e6f8d0905df90ccdbc34eea46d10061c401d1/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
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,
4626,
67,
896,
12,
2890,
16,
25123,
4672,
3536,
1994,
326,
1300,
434,
1731,
3764,
16,
1161,
773,
1776,
364,
4702,
6838,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
api = ComponentAPI(keyfile=keyfile, certfile=certfile) | api = ComponentAPI(key_file=keyfile, cert_file=certfile) | def GetSlivers(data, config=None, plc=None): if not sfa: return keyfile, certfile = get_keypair(config) api = ComponentAPI(keyfile=keyfile, certfile=certfile) slivers = [sliver['name'] for sliver in data['slivers']] install_gids(api, slivers) install_trusted_certs(api) | a1b8649eb48bec7cddb692f115cdc806eddc9baf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6995/a1b8649eb48bec7cddb692f115cdc806eddc9baf/sfagids.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3738,
6760,
12,
892,
16,
642,
33,
7036,
16,
886,
71,
33,
7036,
4672,
309,
486,
272,
507,
30,
327,
225,
28632,
16,
3320,
768,
273,
336,
67,
856,
6017,
12,
1425,
13,
1536,
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,
968,
3738,
6760,
12,
892,
16,
642,
33,
7036,
16,
886,
71,
33,
7036,
4672,
309,
486,
272,
507,
30,
327,
225,
28632,
16,
3320,
768,
273,
336,
67,
856,
6017,
12,
1425,
13,
1536,
273,
... |
) | ) def testRibbonWindingOrder( self ) : c = IECore.CurvesPrimitive( IECore.IntVectorData( [ 4 ] ), IECore.CubicBasisf.bSpline(), True, IECore.V3fVectorData( [ IECore.V3f( 1, 0, 0 ), IECore.V3f( 0, 0, 0 ), IECore.V3f( 0, 1, 0 ), IECore.V3f( 1, 1, 0 ), ] ) ) c["width"] = IECore.PrimitiveVariable( IECore.PrimitiveVaria... | def testSeveralBSplineLines( self ) : self.performTest( IECore.CurvesPrimitive( IECore.IntVectorData( [ 4, 4 ] ), IECore.CubicBasisf.bSpline(), True, IECore.V3fVectorData( [ IECore.V3f( 0.4, 0.2, 0 ), IECore.V3f( 0.2, 0.2, 0 ), IECore.V3f( 0.2, 0.4, 0 ), IECore.V3f( 0.4, 0.4, 0 ), | f01067daadb468b78e0b7a626d849d5e5f697463 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9042/f01067daadb468b78e0b7a626d849d5e5f697463/CurvesPrimitiveTest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1761,
502,
287,
12692,
412,
558,
5763,
12,
365,
262,
294,
225,
365,
18,
16092,
4709,
12,
10897,
4670,
18,
2408,
3324,
9840,
12,
225,
10897,
4670,
18,
1702,
5018,
751,
12,
306,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1761,
502,
287,
12692,
412,
558,
5763,
12,
365,
262,
294,
225,
365,
18,
16092,
4709,
12,
10897,
4670,
18,
2408,
3324,
9840,
12,
225,
10897,
4670,
18,
1702,
5018,
751,
12,
306,
10... |
self.assert_(msg.get_sequences() == ['unseen', 'flagged']) | self.assertEqual(msg.get_sequences(), ['unseen', 'flagged']) | def test_sequences(self): # Get, set, join, and leave sequences msg = mailbox.MHMessage(_sample_message) self.assertEqual(msg.get_sequences(), []) msg.set_sequences(['foobar']) self.assertEqual(msg.get_sequences(), ['foobar']) msg.set_sequences([]) self.assertEqual(msg.get_sequences(), []) msg.add_sequence('unseen') se... | fc9997a71def3361507ae020d7f678e347d8646b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/fc9997a71def3361507ae020d7f678e347d8646b/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
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,
17190,
12,
2890,
4672,
468,
968,
16,
444,
16,
1233,
16,
471,
8851,
8463,
1234,
273,
14187,
18,
49,
44,
1079,
24899,
6358,
67,
2150,
13,
365,
18,
11231,
5812,
12,
3576,
18,
... |
if(log is not None): print >> log, " Bond RMSD: %.3f" % bond_rmsd | print >> log, " Bond RMSD: %.3f" % bond_rmsd | def run_coordinate_refinement( geometry_restraints_manager, selection_variable, density_map, real_space_gradients_delta, work_params, pdb_atoms=None, sites_cart=None, home_restraints_list=[], work_scatterers=None, unit_cell=None, d_min=None, write_pdb_callback=None, log=None): assert [pdb_atoms, sites_cart].count(None)... | 3052a0f1b97a4f3f9518cb82ebd62681810665a1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/3052a0f1b97a4f3f9518cb82ebd62681810665a1/lockit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
29191,
67,
266,
926,
820,
12,
5316,
67,
455,
313,
1598,
87,
67,
4181,
16,
4421,
67,
6105,
16,
12142,
67,
1458,
16,
2863,
67,
2981,
67,
9974,
5828,
67,
9878,
16,
1440,
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,
1086,
67,
29191,
67,
266,
926,
820,
12,
5316,
67,
455,
313,
1598,
87,
67,
4181,
16,
4421,
67,
6105,
16,
12142,
67,
1458,
16,
2863,
67,
2981,
67,
9974,
5828,
67,
9878,
16,
1440,
67,
... |
for filename in zip.cat('/'): | files = zip.cat('/') files.extend(zip.cat('/Pictures')) for filename in files: | def manifest_xml(self, zip): content = """<?xml version="1.0" encoding="UTF-8"?> | 33a7c4866e2877b824abcc7c913f1ca535a0f47f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1278/33a7c4866e2877b824abcc7c913f1ca535a0f47f/preso.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5643,
67,
2902,
12,
2890,
16,
3144,
4672,
913,
273,
3536,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
17,
28,
6,
35,
34,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5643,
67,
2902,
12,
2890,
16,
3144,
4672,
913,
273,
3536,
12880,
2902,
1177,
1546,
21,
18,
20,
6,
2688,
1546,
5159,
17,
28,
6,
35,
34,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README', 'README.html'] | files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README.txt'] | def create_distribution(): outpath = create_doc() # we are in doc/examples/c_example after this outdir = 'robotframework-c-example-%d%02d%02d' % time.localtime()[:3] files = ['login.c', 'LoginLibrary.py', 'LoginTests.tsv', 'Makefile', 'README', 'README.html'] print 'Creating distribution directory ...' if os.path.exis... | ba95e8644209c10e6dcf42fd5c5e971eddea4c7c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/ba95e8644209c10e6dcf42fd5c5e971eddea4c7c/package.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
16279,
13332,
596,
803,
273,
752,
67,
2434,
1435,
225,
468,
732,
854,
316,
997,
19,
16858,
19,
71,
67,
8236,
1839,
333,
15398,
273,
296,
28870,
12303,
17,
71,
17,
8236,
6456,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
16279,
13332,
596,
803,
273,
752,
67,
2434,
1435,
225,
468,
732,
854,
316,
997,
19,
16858,
19,
71,
67,
8236,
1839,
333,
15398,
273,
296,
28870,
12303,
17,
71,
17,
8236,
6456,
... |
Subwidgets Class ---------- ----- label Label entry Entry""" | Subwidgets Class ---------- ----- label Label entry Entry""" | def __init__ (self,master=None,cnf={}, **kw): | 0049f0036898e656085d5c214ba07642a9c25a6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/0049f0036898e656085d5c214ba07642a9c25a6e/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
7525,
33,
7036,
16,
10305,
74,
28793,
2826,
9987,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
'base','include')) | 'core','include')) | def get_numpy_include_dirs(): # numpy_include_dirs are set by numpy/base/setup.py, otherwise [] include_dirs = Configuration.numpy_include_dirs[:] if not include_dirs: import numpy if numpy.show_core_config is None: # running from numpy_core source directory include_dirs.append(os.path.join(os.path.dirname(numpy.__file... | 75077ce6023283d25222768f177e52c5cd0a7904 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/75077ce6023283d25222768f177e52c5cd0a7904/misc_util.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15974,
67,
6702,
67,
8291,
13332,
468,
3972,
67,
6702,
67,
8291,
854,
444,
635,
3972,
19,
1969,
19,
8401,
18,
2074,
16,
3541,
5378,
2341,
67,
8291,
273,
4659,
18,
15974,
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,
15974,
67,
6702,
67,
8291,
13332,
468,
3972,
67,
6702,
67,
8291,
854,
444,
635,
3972,
19,
1969,
19,
8401,
18,
2074,
16,
3541,
5378,
2341,
67,
8291,
273,
4659,
18,
15974,
67,
... |
os.system('%s "%s"'%(PCMANFM,path)) | os.system('%s "%s" &'%(PCMANFM,path)) | def browse_folder(self): """Browse folder""" if self.app.children: child = self.app.childActive if hasattr(child,'fileName'): path = info.dirname(child.fileName) if not os.path.exists(path): path = os.getcwd() else: path = os.getcwd() if os.path.exists(THUNAR): os.system('%s "%s"'%(THUNAR,path)) ... | 3297a811fde121a34b04e766bb0d64586dae5601 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2464/3297a811fde121a34b04e766bb0d64586dae5601/Parent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
5609,
12,
2890,
4672,
3536,
27304,
3009,
8395,
309,
365,
18,
2910,
18,
5906,
30,
1151,
6647,
273,
365,
18,
2910,
18,
3624,
3896,
309,
3859,
12,
3624,
11189,
17812,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
21670,
67,
5609,
12,
2890,
4672,
3536,
27304,
3009,
8395,
309,
365,
18,
2910,
18,
5906,
30,
1151,
6647,
273,
365,
18,
2910,
18,
3624,
3896,
309,
3859,
12,
3624,
11189,
17812,
11,
4672,
... |
def fetch(): return self.client.fetchSimplifiedBody(self.messages, uid=uid) | self.function = self.client.fetchSimplifiedBody | def fetch(): return self.client.fetchSimplifiedBody(self.messages, uid=uid) | fd0ab51569d572065ee4a73067158b7e009de90d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/fd0ab51569d572065ee4a73067158b7e009de90d/test_imap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
13332,
327,
365,
18,
2625,
18,
5754,
24490,
939,
2250,
12,
2890,
18,
6833,
16,
4555,
33,
1911,
13,
225,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2158,
13332,
327,
365,
18,
2625,
18,
5754,
24490,
939,
2250,
12,
2890,
18,
6833,
16,
4555,
33,
1911,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
" error = context.catch(e, Reference(output))", | " error = context.catch(e, Reference(output.getvalue()))", | code.write("def _(context):", code.indent, "stash = context.stash()", "output = StringIO()", "try:", code.indent, "# BLOCK: {", block, "# }", code.unindent, "except base.Exception, e:", " error = context.catch(e, Reference(output))", " if error.type != 'return':", " raise error", "return output.getvalue()") | 2f690578bd6ee4e422e65c5128f4e8c6d02f217b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1390/2f690578bd6ee4e422e65c5128f4e8c6d02f217b/directive.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
981,
18,
2626,
2932,
536,
389,
12,
2472,
13,
2773,
16,
981,
18,
9355,
16,
315,
25915,
273,
819,
18,
25915,
1435,
3113,
315,
2844,
273,
15777,
1435,
3113,
315,
698,
2773,
16,
981,
18,
9355,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
981,
18,
2626,
2932,
536,
389,
12,
2472,
13,
2773,
16,
981,
18,
9355,
16,
315,
25915,
273,
819,
18,
25915,
1435,
3113,
315,
2844,
273,
15777,
1435,
3113,
315,
698,
2773,
16,
981,
18,
9355,
... |
d0 = base.replace(minute=3, tzinfo=OperandDependentOffset()) d1 = base.replace(minute=9, tzinfo=OperandDependentOffset()) d2 = base.replace(minute=11, tzinfo=OperandDependentOffset()) for x in d0, d1, d2: for y in d0, d1, d2: got = cmp(x, y) if (x is d0 or x is d1) and (y is d0 or y is d1): expected = 0 elif x is y is ... | if cls is not timetz: d0 = base.replace(minute=3, tzinfo=OperandDependentOffset()) d1 = base.replace(minute=9, tzinfo=OperandDependentOffset()) d2 = base.replace(minute=11, tzinfo=OperandDependentOffset()) for x in d0, d1, d2: for y in d0, d1, d2: got = cmp(x, y) if (x is d0 or x is d1) and (y is d0 or y is d1): exp... | def utcoffset(self, t): if t.minute < 10: return t.minute # d0 and d1 equal after adjustment else: return 59 # d2 off in the weeds | c7f6862684ec7b935f2913e3e52aab59e378f82b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c7f6862684ec7b935f2913e3e52aab59e378f82b/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
2890,
16,
268,
4672,
309,
268,
18,
17637,
411,
1728,
30,
327,
268,
18,
17637,
468,
302,
20,
471,
302,
21,
3959,
1839,
18335,
469,
30,
327,
14995,
4202,
468,
302,
22,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9439,
3348,
12,
2890,
16,
268,
4672,
309,
268,
18,
17637,
411,
1728,
30,
327,
268,
18,
17637,
468,
302,
20,
471,
302,
21,
3959,
1839,
18335,
469,
30,
327,
14995,
4202,
468,
302,
22,
... |
if match: print 'MATCH:' if match else 'NO MATCH:', meld.content + ' ' + hand.mjStr + ' against ' + self.rule.name, self.rule.value | def appliesToMeld(self, hand, meld): """does this regex match?""" if isinstance(self, RegexIgnoringCase): checkStr = meld.content.lower() + ' ' + hand.mjStr else: checkStr = meld.content + ' ' + hand.mjStr match = self.compiled.match(checkStr) | 2352984d1cedc2fdc4321b71adc2d12b463885ed /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1679/2352984d1cedc2fdc4321b71adc2d12b463885ed/scoringengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10294,
774,
49,
488,
12,
2890,
16,
948,
16,
312,
488,
4672,
3536,
20657,
333,
3936,
845,
35,
8395,
309,
1549,
12,
2890,
16,
15078,
21702,
2449,
4672,
866,
1585,
273,
312,
488,
18,
1745... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10294,
774,
49,
488,
12,
2890,
16,
948,
16,
312,
488,
4672,
3536,
20657,
333,
3936,
845,
35,
8395,
309,
1549,
12,
2890,
16,
15078,
21702,
2449,
4672,
866,
1585,
273,
312,
488,
18,
1745... | |
def _login(self, *args, **kwargs): d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, args[0]) | d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, jdict) | def _login(self, *args, **kwargs): d = self.factory.login(self.creds, (pb.Referenceable(), hf)) d.addCallback(self._logged_in) d.addCallback(self._job_failed, args[0]) return d | 53db6e6d94620c51267e1f2f876662c701f8b791 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/53db6e6d94620c51267e1f2f876662c701f8b791/test_remote.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
18,
29260,
16,
261,
5733,
18,
2404,
429,
9334,
366,
74,
3719,
302,
18,
1289,
2428,
12,
2890,
6315,
19385,
67,
267,
13,
302,
18,
1289,
2428,
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,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
302,
273,
365,
18,
6848,
18,
5819,
12,
2890,
18,
29260,
16,
261,
5733,
18,
2404,
429,
9334,
366,
74,
3719,
302,
18,
1289,
2428,
12,
2890,
6315,
19385,
67,
267,
13,
302,
18,
1289,
2428,
12,... |
s1 = "" and game.thawed and _("thawed ") | s1 = (game.thawed and _("thawed ")) or "" | def report(): # report on general game status scanner.chew() s1 = "" and game.thawed and _("thawed ") s2 = {1:"short", 2:"medium", 4:"long"}[game.length] s3 = (None, _("novice"), _("fair"), _("good"), _("expert"), _("emeritus"))[game.skill] prout(_("You %s a %s%s %s game.") % ((_("were playing"), _("are playing"))[game... | 65ebc303124b932f39a34d20faaa702d07854b82 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/65ebc303124b932f39a34d20faaa702d07854b82/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
13332,
468,
2605,
603,
7470,
7920,
1267,
7683,
18,
343,
359,
1435,
272,
21,
273,
261,
13957,
18,
451,
2219,
329,
471,
389,
2932,
451,
2219,
329,
315,
3719,
578,
1408,
272,
22,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2605,
13332,
468,
2605,
603,
7470,
7920,
1267,
7683,
18,
343,
359,
1435,
272,
21,
273,
261,
13957,
18,
451,
2219,
329,
471,
389,
2932,
451,
2219,
329,
315,
3719,
578,
1408,
272,
22,
27... |
Filters out trips which do not follow the most common stop sequences and sets their trip_type attribute accordingly. <GTFS.zip> is overwritten with the modifed GTFS file unless the --output option is used. | Sets the trip_type for trips that have an unusual pattern for a route. <GTFS.zip> is overwritten with the modifed GTFS file unless the --output option is used. For more information see http://code.google.com/p/googletransitdatafeed/wiki/UnusualTripFilter | def main(): usage = \ | ae74de2f81981085fc5b61d3d5243315b9ba2afe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6829/ae74de2f81981085fc5b61d3d5243315b9ba2afe/unusual_trip_filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
4084,
273,
521,
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,
2774,
13332,
4084,
273,
521,
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,
... |
msg["To"] = ",".join(recipients.keys()) | msg["To"] = ",".join(recipients) | def check_and_send_mails(tree, host, compiler, cur, old): t = buildfarm.trees[tree] (cur_rev, cur_rev_timestamp) = cur.revision_details() cur_status = cur.status() (old_rev, old_rev_timestamp) = old.revision_details() old_status = old.status() if not cur_status.regressed_since(old_status): if opts.verbose >= 3: prin... | 90150b8b7b08904b4ec880822f3208a34c2467ec /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7314/90150b8b7b08904b4ec880822f3208a34c2467ec/import-and-analyse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
464,
67,
4661,
67,
4408,
87,
12,
3413,
16,
1479,
16,
5274,
16,
662,
16,
1592,
4672,
268,
273,
1361,
74,
4610,
18,
17204,
63,
3413,
65,
225,
261,
1397,
67,
9083,
16,
662,
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,
866,
67,
464,
67,
4661,
67,
4408,
87,
12,
3413,
16,
1479,
16,
5274,
16,
662,
16,
1592,
4672,
268,
273,
1361,
74,
4610,
18,
17204,
63,
3413,
65,
225,
261,
1397,
67,
9083,
16,
662,
6... |
class arch_armv6zkl(generic_arm): "Builder class for armv6zkl target" | class arch_armv7a(generic_arm): "Builder class for armv7a target" | def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv6zl-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6z -pipe" | 423613d4d63f3a603ff416edd814c78b4f729c55 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/423613d4d63f3a603ff416edd814c78b4f729c55/arm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
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,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
94,
... |
print 'procesoooo NC VTA padre procesado:' | def validate_nc_vta(self, cr, uid, ids, scl_obj,q_mov,tot,prom,q_des,no_cp,lst_org,act_sml_id,s_ord): if scl_obj.parent_id: print 'validando padre NC VENTA: ',scl_obj.parent_id if scl_obj.parent_id.id in lst_org or scl_obj.parent_id.id in no_cp: no_cp.append(act_sml_id) else: print 'procesoooo NC VTA padre procesado:' ... | 62ca858ba796453e95db5d16001d237fb203c2e9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7359/62ca858ba796453e95db5d16001d237fb203c2e9/stock_card.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
14202,
67,
90,
2351,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
31648,
67,
2603,
16,
85,
67,
81,
1527,
16,
3307,
16,
17401,
16,
85,
67,
5489,
16,
2135,
67,
4057,
16,
169... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1954,
67,
14202,
67,
90,
2351,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
31648,
67,
2603,
16,
85,
67,
81,
1527,
16,
3307,
16,
17401,
16,
85,
67,
5489,
16,
2135,
67,
4057,
16,
169... | |
exit() | rospy.signal_shutdown("ERROR") | def stateCb(self, msg): l_sum_tucked = 0 l_sum_untucked = 0 r_sum_tucked = 0 r_sum_untucked = 0 for name_state, name_desi, value_state, value_l_tucked, value_l_untucked, value_r_tucked, value_r_untucked in zip(msg.joint_names, joint_names, msg.actual.positions , l_arm_tucked, l_arm_untucked, r_arm_tucked, r_arm_untucke... | 24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8822/24ea94a3950f4dbbbedf71c3f6bd5b7996f6c3ff/tuck_arms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
919,
15237,
12,
2890,
16,
1234,
4672,
328,
67,
1364,
67,
88,
9031,
329,
273,
374,
328,
67,
1364,
67,
10032,
9031,
329,
273,
374,
436,
67,
1364,
67,
88,
9031,
329,
273,
374,
436,
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,
919,
15237,
12,
2890,
16,
1234,
4672,
328,
67,
1364,
67,
88,
9031,
329,
273,
374,
328,
67,
1364,
67,
10032,
9031,
329,
273,
374,
436,
67,
1364,
67,
88,
9031,
329,
273,
374,
436,
67,
... |
self.slave_xrestore_unsafe(srcname, dstpath, os.getppid()) | self.slave_xrestore_unsafe(srcname, dstpath, os.getppid(), lstname) | def xrestore(self): if len(self.args) < 2: die(1, "usage: xrestore srcname dstpath") srcname = self.args[0] dstpath = self.args[1] if self.wtype == MASTER: self.master_xrestore(srcname, dstpath) else: self.slave_xrestore_unsafe(srcname, dstpath, os.getppid()) | 5c30a274a6945a32dc53e7725ba74053bda74e5e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14597/5c30a274a6945a32dc53e7725ba74053bda74e5e/walmgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
619,
13991,
12,
2890,
4672,
309,
562,
12,
2890,
18,
1968,
13,
411,
576,
30,
10387,
12,
21,
16,
315,
9167,
30,
619,
13991,
1705,
529,
3046,
803,
7923,
1705,
529,
273,
365,
18,
1968,
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,
619,
13991,
12,
2890,
4672,
309,
562,
12,
2890,
18,
1968,
13,
411,
576,
30,
10387,
12,
21,
16,
315,
9167,
30,
619,
13991,
1705,
529,
3046,
803,
7923,
1705,
529,
273,
365,
18,
1968,
6... |
"when a page is save or rendered."), | "when a page is saved or rendered."), | def __init__(self, tags='', attributes=''): self.tags = tags self.attributes = attributes | c41d32d84dbb6cab6088771d6b8bb2c5124b5a69 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12189/c41d32d84dbb6cab6088771d6b8bb2c5124b5a69/filter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2342,
2218,
2187,
1677,
2218,
11,
4672,
365,
18,
4156,
273,
2342,
365,
18,
4350,
273,
1677,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2342,
2218,
2187,
1677,
2218,
11,
4672,
365,
18,
4156,
273,
2342,
365,
18,
4350,
273,
1677,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if len(descr.childNodes) != 1: raise ValueError, 'Expected a single paragraph' para = descr.childNodes[0] if para.tagName != 'para': raise ValueError, 'Expected a para; got a %s' % para.tagName if len(para.childNodes) != 1: raise ValueError, 'Colorization is not allowed' args = re.split(' *[:;,]+ *', para.childNodes[... | descr = descr.to_plaintext(None).strip() args = re.split(' *[:;,]+ *', descr) | def _descr_to_docfield(arg, descr): tags = [s.lower() for s in re.split('[ :;,]+', arg)] if len(descr.childNodes) != 1: raise ValueError, 'Expected a single paragraph' para = descr.childNodes[0] if para.tagName != 'para': raise ValueError, 'Expected a para; got a %s' % para.tagName if len(para.childNodes) != 1: raise ... | 3483c073f313594e2126bb590c1618ff249ff09b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/3483c073f313594e2126bb590c1618ff249ff09b/objdoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
28313,
67,
869,
67,
2434,
1518,
12,
3175,
16,
18426,
4672,
2342,
273,
306,
87,
18,
8167,
1435,
364,
272,
316,
283,
18,
4939,
2668,
63,
294,
31,
16,
3737,
2187,
1501,
25887,
18426,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
28313,
67,
869,
67,
2434,
1518,
12,
3175,
16,
18426,
4672,
2342,
273,
306,
87,
18,
8167,
1435,
364,
272,
316,
283,
18,
4939,
2668,
63,
294,
31,
16,
3737,
2187,
1501,
25887,
18426,... |
self.DeleteChildren(self.root) | def update(self, evt=None): """Update tree with the source code of the editor""" hierarchy = self.mode.getFoldHierarchy() #dprint(hierarchy) if hierarchy != self.hierarchy: self.hierarchy = hierarchy # native TreeCtrl doesn't Freeze on GTK, which prompted the move to # the CustomTreeCtrl self.Freeze() self.DeleteChild... | 968eca62c67552b807b8dfd14d0b4484a3b9d70c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11522/968eca62c67552b807b8dfd14d0b4484a3b9d70c/code_explorer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
16,
6324,
33,
7036,
4672,
3536,
1891,
2151,
598,
326,
1084,
981,
434,
326,
4858,
8395,
9360,
273,
365,
18,
3188,
18,
588,
15592,
12074,
1435,
468,
72,
1188,
12,
17937,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16,
6324,
33,
7036,
4672,
3536,
1891,
2151,
598,
326,
1084,
981,
434,
326,
4858,
8395,
9360,
273,
365,
18,
3188,
18,
588,
15592,
12074,
1435,
468,
72,
1188,
12,
17937,
... | |
return 'set()' | return 'bag()' | def __str__(self): """ The printable string appears just like a set, except that each element is raised to the power of the multiplicity if it is greater than 1. | 3325486bf02adc2f21c90c503985367500ba994b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5397/3325486bf02adc2f21c90c503985367500ba994b/collections_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
4672,
3536,
1021,
23474,
533,
14606,
2537,
3007,
279,
444,
16,
1335,
716,
1517,
930,
353,
11531,
358,
326,
7212,
434,
326,
3309,
20458,
309,
518,
353,
6802,
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,
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,
701,
972,
12,
2890,
4672,
3536,
1021,
23474,
533,
14606,
2537,
3007,
279,
444,
16,
1335,
716,
1517,
930,
353,
11531,
358,
326,
7212,
434,
326,
3309,
20458,
309,
518,
353,
6802,
235... |
reactor.stop() else: reactor.callFromThread(reactor.stop) | self._stop_reactor() else: reactor.callFromThread(self._stop_reactor) | def _NH_SIPEngineDidEnd(self, notification): if threadable.isInIOThread(): reactor.stop() else: reactor.callFromThread(reactor.stop) | 1882aa55121049242d9523e28e7d44f4ff0fd7d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5703/1882aa55121049242d9523e28e7d44f4ff0fd7d5/sip_register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
4410,
18250,
1638,
12,
2890,
16,
3851,
4672,
309,
2650,
429,
18,
291,
382,
4294,
3830,
13332,
19178,
18,
5681,
1435,
469,
30,
19178,
18,
1991,
1265,
3830,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
50,
44,
67,
17739,
4410,
18250,
1638,
12,
2890,
16,
3851,
4672,
309,
2650,
429,
18,
291,
382,
4294,
3830,
13332,
19178,
18,
5681,
1435,
469,
30,
19178,
18,
1991,
1265,
3830,
12,
2... |
pname = wikidb.print_template_pattern.replace(u'$1', name) | rname = name for k, v in self.redirects.items(): if v == name: rname = k break pname = wikidb.print_template_pattern.replace(u'$1', rname) | def _fetch(**kargs): res = wikidb.api_helper.query(ignore_errors=False, **kargs) assert 'query-continue' not in res | 0158daeb0be3ae432b13addf25e8df857cfc0972 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12391/0158daeb0be3ae432b13addf25e8df857cfc0972/fzipcreator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
12,
636,
79,
1968,
4672,
400,
273,
225,
341,
1766,
350,
70,
18,
2425,
67,
4759,
18,
2271,
12,
6185,
67,
4324,
33,
8381,
16,
2826,
79,
1968,
13,
1815,
296,
2271,
17,
17143,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5754,
12,
636,
79,
1968,
4672,
400,
273,
225,
341,
1766,
350,
70,
18,
2425,
67,
4759,
18,
2271,
12,
6185,
67,
4324,
33,
8381,
16,
2826,
79,
1968,
13,
1815,
296,
2271,
17,
17143,... |
@gobject_utils.async @gtk_toolbox.log_exception(_moduleLogger) | def close(self): self._callback = None | 532e373e023dcb85be242467ebe25773dcddfa8f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/532e373e023dcb85be242467ebe25773dcddfa8f/state_machine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
6315,
3394,
273,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
365,
6315,
3394,
273,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
self.check_session() | def call_wrapper(self, **kw): # Confirm user authentication and make sure we have a webservice object if not self.__name_lock.locked(): raise Exception("Somehow, I don't have my __name_lock. This is very bad.") name = self.__name del self.__name self.__name_lock.release() function = getattr(self.webservice, name) s... | cd18c59ee4852cf03fb663705ff3406696cef4d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7602/cd18c59ee4852cf03fb663705ff3406696cef4d3/ajax.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
67,
8376,
12,
2890,
16,
2826,
9987,
4672,
468,
17580,
729,
5107,
471,
1221,
3071,
732,
1240,
279,
732,
20015,
733,
225,
309,
486,
365,
16186,
529,
67,
739,
18,
15091,
13332,
1002,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
745,
67,
8376,
12,
2890,
16,
2826,
9987,
4672,
468,
17580,
729,
5107,
471,
1221,
3071,
732,
1240,
279,
732,
20015,
733,
225,
309,
486,
365,
16186,
529,
67,
739,
18,
15091,
13332,
1002,
... | |
return N.array([0] * 3 * 9 + list(costgradient[gradparams.xinit_start:gradparams.xinit_end]) + [0] * 9 + costgradient[gradparams.u_start:gradparams.u_end]) def h(p): | gradient = N.array([0] * len(model.getStates()) * (len(grid) - 1) + list(costgradient[gradparams['xinit_start'] : gradparams['xinit_end']]) + [0] * (len(grid) - 1) + list(costgradient[gradparams['u_start'] : gradparams['u_end']])) assert len(p) == len(gradient) print gradient return gradient def h(self, p): | def df(p): # grad(f) - CURRENTLY NOT USED """Returns the gradient of f(cur_u). In the VDP example it depends on the """ ys, us = _split_opt_x(model, len(grid), p) costgradient, last_y, gradparams, sens = shoot_single_segment(us[-1], ys[-1], grid[-1]) print "Evaluating cost function gradient." # HARDCODED # Comments:... | f1dfce1901034f7575c607a69f80948c2d756531 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f1dfce1901034f7575c607a69f80948c2d756531/shooting.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3013,
12,
84,
4672,
468,
6058,
12,
74,
13,
300,
18484,
7076,
4269,
14988,
40,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
2934,
225,
657,
326,
776,
8640,
3454,
518,
10935,
603,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3013,
12,
84,
4672,
468,
6058,
12,
74,
13,
300,
18484,
7076,
4269,
14988,
40,
3536,
1356,
326,
10292,
434,
284,
12,
1397,
67,
89,
2934,
225,
657,
326,
776,
8640,
3454,
518,
10935,
603,... |
'_time__=misc.cputime(); __wall__=misc.walltime(); R = ZZ[\'x\']; print "Time: CPU %.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__)); (x,) = R._first_ngens(1)' | '__time__=misc.cputime(); __wall__=misc.walltime(); R = ZZ[\'x\']; print "Time: CPU %.2f s, Wall: %.2f s"%(misc.cputime(__time__), misc.walltime(__wall__)); (x,) = R._first_ngens(1)' | def preparse(line, reset=True, do_time=False, ignore_prompts=False): r""" EXAMPLES: sage: preparse("ZZ.<x> = ZZ['x']") "ZZ = ZZ['x']; (x,) = ZZ._first_ngens(1)" sage: preparse("ZZ.<x> = ZZ['y']") "ZZ = ZZ['y']; (x,) = ZZ._first_ngens(1)" sage: preparse("ZZ.<x,y> = ZZ[]") "ZZ = ZZ['x, y']; (x, y,) = ZZ._first_ngens(2)" ... | 24b47dac91072a25c13666235ac8db706b2199ad /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/24b47dac91072a25c13666235ac8db706b2199ad/preparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
675,
2670,
12,
1369,
16,
2715,
33,
5510,
16,
741,
67,
957,
33,
8381,
16,
2305,
67,
17401,
1092,
33,
8381,
4672,
436,
8395,
5675,
8900,
11386,
30,
272,
410,
30,
675,
2670,
2932,
27096,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
675,
2670,
12,
1369,
16,
2715,
33,
5510,
16,
741,
67,
957,
33,
8381,
16,
2305,
67,
17401,
1092,
33,
8381,
4672,
436,
8395,
5675,
8900,
11386,
30,
272,
410,
30,
675,
2670,
2932,
27096,
... |
sys.stdout.write('Exit code: ' + str(p.returncode) + "\n") | sys.stdout.write('Exit code: %s\n' % code) | def run_test(test, lib_dir): env = os.environ.copy() if test.tmflags: env['TMFLAGS'] = test.tmflags cmd = get_test_cmd(test.path, test.jitflags, lib_dir) if (test.valgrind and any([os.path.exists(os.path.join(d, 'valgrind')) for d in os.environ['PATH'].split(os.pathsep)])): valgrind_prefix = [ 'valgrind', '-q', '--smc... | cbe1052eea5cd34ebec32bc52a90723ed57eae4e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/cbe1052eea5cd34ebec32bc52a90723ed57eae4e/trace_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
3813,
12,
3813,
16,
2561,
67,
1214,
4672,
1550,
273,
1140,
18,
28684,
18,
3530,
1435,
309,
1842,
18,
16925,
7133,
30,
1550,
3292,
22903,
17836,
3546,
273,
1842,
18,
16925,
7133... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3813,
12,
3813,
16,
2561,
67,
1214,
4672,
1550,
273,
1140,
18,
28684,
18,
3530,
1435,
309,
1842,
18,
16925,
7133,
30,
1550,
3292,
22903,
17836,
3546,
273,
1842,
18,
16925,
7133... |
listOfLists = breakListIntoChunks(urls.keys(),self.filesPerCall) | listOfLists = breakListIntoChunks( urls.keys(), self.filesPerCall ) | def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken ... | 70e66af095cb6701e39b1e701e4a2ce4d012b4f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/70e66af095cb6701e39b1e701e4a2ce4d012b4f7/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... |
self.lines = None TableDialog.__init__(self, parent) def add_table_content(self, table): self.lines = self.add_entry_row(table, 0, "Memdump/disasm lines:", 2) self.lines.connect("activate", self.accept_cb) | table, self.dialog = create_table_dialog(parent, "Debugger UI options", 1) self.lines = table_add_entry_row(table, 0, "Memdump/disasm lines:", 2) self.lines.connect("activate", dialog_accept_cb, self.dialog) | def __init__(self, parent): self.lines = None TableDialog.__init__(self, parent) | 0e0984f57cbf375cc2813fe0509dc8425a475afc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2811/0e0984f57cbf375cc2813fe0509dc8425a475afc/debugui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
365,
18,
3548,
273,
599,
3555,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
4672,
365,
18,
3548,
273,
599,
3555,
6353,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if address in self._connections: | already_on_this_address = False for connection in self._connections: if connection.address == address: already_on_this_address = True break if already_on_this_address: | def _create_connections(self): # order by last connection attempt addresses = [(timestamp, address) for address, timestamp in self._potential_peers.iteritems()] addresses.sort() | b9bec093200551f0c1742a5a8482bf7dc0559673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/b9bec093200551f0c1742a5a8482bf7dc0559673/MiniBitTorrent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
13313,
12,
2890,
4672,
468,
1353,
635,
1142,
1459,
4395,
6138,
273,
306,
12,
5508,
16,
1758,
13,
364,
1758,
16,
2858,
316,
365,
6315,
26451,
67,
30502,
18,
2165,
3319,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
13313,
12,
2890,
4672,
468,
1353,
635,
1142,
1459,
4395,
6138,
273,
306,
12,
5508,
16,
1758,
13,
364,
1758,
16,
2858,
316,
365,
6315,
26451,
67,
30502,
18,
2165,
3319,
1... |
runESC = True | runESC = True | def usage(c): print 'usage: %s [options] [tests]' % basename(argv[0]) print ' -v --verbose enable additional output' print ' -E --avm avmplus command to use' print ' -a --asc compiler to use' print ' -g --globalabc location of global.abc' print ' -x --exclude comma separated list of ... | db237e95891341dd747fc6c2f05772c5033ee4a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/13395/db237e95891341dd747fc6c2f05772c5033ee4a4/runtests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
12,
71,
4672,
1172,
296,
9167,
30,
738,
87,
306,
2116,
65,
306,
16341,
3864,
738,
4882,
12,
19485,
63,
20,
5717,
1172,
296,
300,
90,
1493,
11369,
4202,
4237,
3312,
876,
11,
1172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
12,
71,
4672,
1172,
296,
9167,
30,
738,
87,
306,
2116,
65,
306,
16341,
3864,
738,
4882,
12,
19485,
63,
20,
5717,
1172,
296,
300,
90,
1493,
11369,
4202,
4237,
3312,
876,
11,
1172,... |
'a child of your mani company.', ['company']), | 'a child of your main company.', ['company']), | def __init__(self, pool): super(User, self).__init__(pool) if pool: self._columns['main_company'] = fields.Many2One('company.company', 'Main Company') self._columns['company'] = fields.Many2One('company.company', 'Current Company', domain="[('parent', 'child_of', [main_company])]") self._context_fields = self._context_... | 2245a597a26b0eb46706ae78d16247d1bb946f78 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9291/2245a597a26b0eb46706ae78d16247d1bb946f78/company.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2845,
4672,
2240,
12,
1299,
16,
365,
2934,
972,
2738,
972,
12,
6011,
13,
309,
2845,
30,
365,
6315,
5112,
3292,
5254,
67,
16840,
3546,
273,
1466,
18,
5594... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2845,
4672,
2240,
12,
1299,
16,
365,
2934,
972,
2738,
972,
12,
6011,
13,
309,
2845,
30,
365,
6315,
5112,
3292,
5254,
67,
16840,
3546,
273,
1466,
18,
5594... |
return self.parse( instring, loc, doActions=False )[0] | return self._parse( instring, loc, doActions=False )[0] def _parseCache( self, instring, loc, doActions=True, callPreParse=True ): lookup = (self,instring,loc,callPreParse) if lookup in ParserElement._exprArgCache: value = ParserElement._exprArgCache[ lookup ] if isinstance(value,Exception): if isinstance(value,Pars... | def tryParse( self, instring, loc ): return self.parse( instring, loc, doActions=False )[0] | cf270a876802009d82e8d28923bdd6b889a1f506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/cf270a876802009d82e8d28923bdd6b889a1f506/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
3201,
12,
365,
16,
316,
1080,
16,
1515,
262,
30,
327,
365,
18,
2670,
12,
316,
1080,
16,
1515,
16,
741,
6100,
33,
8381,
262,
63,
20,
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,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
775,
3201,
12,
365,
16,
316,
1080,
16,
1515,
262,
30,
327,
365,
18,
2670,
12,
316,
1080,
16,
1515,
16,
741,
6100,
33,
8381,
262,
63,
20,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
... |
assert req.remote_user, 'Authentication information not available.' | if not req.remote_user: raise TracError(html("Authentication information not available. " "Please refer to the ", html.a('installation documentation', title="Configuring Authentication", href=req.href.wiki('TracInstall') + " | def _do_login(self, req): """Log the remote user in. | d6c5efdde410a5f9f0ce05f92cca653cc459ee31 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/d6c5efdde410a5f9f0ce05f92cca653cc459ee31/auth.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
5819,
12,
2890,
16,
1111,
4672,
3536,
1343,
326,
2632,
729,
316,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
67,
5819,
12,
2890,
16,
1111,
4672,
3536,
1343,
326,
2632,
729,
316,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
columns = int(floor(float(screenWidth) / columnWidth)) lines = int(ceil(float(len(items)) / columns)) | columns = int(math.floor(float(screenWidth) / columnWidth)) lines = int(math.ceil(float(len(items)) / columns)) | def FormattedCondPrint(self, state, items): '''Formatted conditional print''' items.sort() screenWidth = self.width - len("%s[%s]:" % (self.__name__, state)) columnWidth = 1 for item in items: if len(item) > columnWidth: columnWidth = len(item) columnWidth += 1 | 6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/6b7fe3dffd69efeeeabbce0bcd6cab97bde94cef/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4077,
2344,
12441,
5108,
12,
2890,
16,
919,
16,
1516,
4672,
9163,
18298,
11139,
1172,
26418,
1516,
18,
3804,
1435,
5518,
2384,
273,
365,
18,
2819,
300,
562,
27188,
87,
14451,
87,
65,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4077,
2344,
12441,
5108,
12,
2890,
16,
919,
16,
1516,
4672,
9163,
18298,
11139,
1172,
26418,
1516,
18,
3804,
1435,
5518,
2384,
273,
365,
18,
2819,
300,
562,
27188,
87,
14451,
87,
65,
277... |
yield item | if item not in changedItems: yield item | def _run(self, kinds, newItems): | d2d8cf7b1a4a4ff75908d24fb667bc40910672c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/d2d8cf7b1a4a4ff75908d24fb667bc40910672c5/Query.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2681,
12,
2890,
16,
21961,
16,
394,
3126,
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,
389,
2681,
12,
2890,
16,
21961,
16,
394,
3126,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
table:style-name="table-default.cell-C4"> | table:style-name="table-default.cell-C1"> | def test_table_tfoot_no_tbody(self): """Test <tfoot> tag without <tbody>""" html = """<html xmlns="http://www.w3.org/1999/xhtml"> <table> <tfoot> <tr> <td>Cell1</td> <td>Cell2</td> </tr> </tfoot> <tr> <td>Cell3</td> <td>Cell4</td> </tr> </table> </html> """ odt = xhtml2odt(html) # remove namespaces odt = re.sub('(xmlns... | 3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3cc3d03720f39c36a6c4059ab97c21fe3ef8f42c/test_tables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2121,
67,
88,
10923,
67,
2135,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
88,
10923,
34,
1047,
2887,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2121,
67,
88,
10923,
67,
2135,
67,
20779,
12,
2890,
4672,
3536,
4709,
411,
88,
10923,
34,
1047,
2887,
411,
20779,
2984,
3660,
1729,
273,
3536,
32,
2620,
12302,
1546,
2505,
2207... |
d = self.get_data(key) | try: d = self.get_data(key) except web.HTTPError, e: if web.ctx.status.lower() == "404 not found": d = {"key": key} else: raise | def GET(self, key): # only allow admin users to edit yaml if not self.is_admin(): return render.permission_denied(key, 'Permission Denied') d = self.get_data(key) return render.edit_yaml(key, self.dump(d)) | ded72711e9dc2b35673f0850b196c1956bb699ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3913/ded72711e9dc2b35673f0850b196c1956bb699ac/code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4978,
12,
2890,
16,
498,
4672,
468,
1338,
1699,
3981,
3677,
358,
3874,
6097,
309,
486,
365,
18,
291,
67,
3666,
13332,
327,
1743,
18,
9827,
67,
13002,
2092,
12,
856,
16,
296,
5041,
2245... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4978,
12,
2890,
16,
498,
4672,
468,
1338,
1699,
3981,
3677,
358,
3874,
6097,
309,
486,
365,
18,
291,
67,
3666,
13332,
327,
1743,
18,
9827,
67,
13002,
2092,
12,
856,
16,
296,
5041,
2245... |
if self._player in self._dirtyEntities.keys(): | if self._player is not None and self._player in self._dirtyEntities.keys(): | def update(self): # FIXME the best thing to do is to call entity.update() # for now just hack the position if self._player in self._dirtyEntities.keys(): for entity, keypaths in self._dirtyEntities.items(): if entity.has_key("position"): pos = entity.position entity.render.nodepath.setPos(pos.x, pos.y, pos.z) else: pos... | 18e197a2fed4cf58387aff85aa46f3ac3f8b4aa3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/18e197a2fed4cf58387aff85aa46f3ac3f8b4aa3/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
468,
9852,
326,
3796,
7757,
358,
741,
353,
358,
745,
1522,
18,
2725,
1435,
468,
364,
2037,
2537,
11769,
326,
1754,
309,
365,
6315,
14872,
353,
486,
599,
471,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
468,
9852,
326,
3796,
7757,
358,
741,
353,
358,
745,
1522,
18,
2725,
1435,
468,
364,
2037,
2537,
11769,
326,
1754,
309,
365,
6315,
14872,
353,
486,
599,
471,
365,
... |
while vs < nvs and k < maxiter: print "new iteration: vs = ", vs, " nvs = ", nvs, " k = ", k print "mu.shape = ", mu.shape | for k in xrange(p): print "NEW ITERATION k = ", k, " active_set = ", act_set | def lars(X, y): # n is the number of variables, p is the number of "predictors" or # basis vectors # the predictors are assumed to be standardized and y is centered. # in the example of the prostate data n would be the number n,p = X.shape mu = zeros(n) act_set = [] inact_set = range(p) k = 0 vs = 0 nvs = min(n-1,p... | 0db785b39c36b490ef6940e674e6c7ea9ebc6107 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14601/0db785b39c36b490ef6940e674e6c7ea9ebc6107/lars.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5604,
87,
12,
60,
16,
677,
4672,
468,
290,
353,
326,
1300,
434,
3152,
16,
293,
353,
326,
1300,
434,
315,
14491,
1383,
6,
578,
468,
10853,
10046,
225,
468,
326,
7810,
1383,
854,
12034,
... |
self.stopMainLoop() | def OnDebug(self, event): if self.interacting: self.set_continue() self.stopMainLoop() else: self.debug_file(self.filename) self.stopMainLoop() | 4eec0be95e3e66540e1dc5ad80c627444fd82c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/4eec0be95e3e66540e1dc5ad80c627444fd82c18/OldDebugger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
2829,
12,
2890,
16,
871,
4672,
309,
365,
18,
2761,
621,
310,
30,
365,
18,
542,
67,
17143,
1435,
469,
30,
365,
18,
4148,
67,
768,
12,
2890,
18,
3459,
13,
365,
18,
5681,
6376,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2755,
2829,
12,
2890,
16,
871,
4672,
309,
365,
18,
2761,
621,
310,
30,
365,
18,
542,
67,
17143,
1435,
469,
30,
365,
18,
4148,
67,
768,
12,
2890,
18,
3459,
13,
365,
18,
5681,
6376,
... | |
""" | ''' | def testI18nResource(self): self.assertEqual(queryResource('test', request, None), None) | 1cfc7ddd1cac0110cca3e909215477e1c59bbca3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9523/1cfc7ddd1cac0110cca3e909215477e1c59bbca3/test_directives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
45,
2643,
82,
1420,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1420,
2668,
3813,
2187,
590,
16,
599,
3631,
599,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
45,
2643,
82,
1420,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
2271,
1420,
2668,
3813,
2187,
590,
16,
599,
3631,
599,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
char.socket.deltag( 'wood_gem' ) | def successlumberjacking( char, args ): socket = char.socket pos = args[0] # Target POS resource = args[1] amount = args[2] tool = args[3] resname = args[4] table = args[5] # Lets make sure we stayed next to the tree # Player can reach that ? if char.pos.map != pos.map or char.pos.distance( pos ) > chopdistance: socke... | 17b6829a3f12eb2f9286af89e445d64fe22e3222 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/17b6829a3f12eb2f9286af89e445d64fe22e3222/lumberjacking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2216,
80,
1226,
78,
484,
310,
12,
1149,
16,
833,
262,
30,
2987,
273,
1149,
18,
7814,
949,
273,
833,
63,
20,
65,
468,
5916,
12511,
1058,
273,
833,
63,
21,
65,
3844,
273,
833,
63,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2216,
80,
1226,
78,
484,
310,
12,
1149,
16,
833,
262,
30,
2987,
273,
1149,
18,
7814,
949,
273,
833,
63,
20,
65,
468,
5916,
12511,
1058,
273,
833,
63,
21,
65,
3844,
273,
833,
63,
22... | |
gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT) | gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT) | def __init__(self, _device): gtk.ListStore.__init__(self, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_STRING, gobject.TYPE_UINT, gobject.TYPE_STRING, gobject.TYPE_PYOBJECT) self.__cache = {} # lock to prevent more thread for ... | dd3cf1c4e1f5d4e7d093d63a04017b30e61ec998 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2271/dd3cf1c4e1f5d4e7d093d63a04017b30e61ec998/DeviceEngine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
389,
5964,
4672,
22718,
18,
682,
2257,
16186,
2738,
972,
12,
2890,
16,
314,
1612,
18,
2399,
67,
5804,
16,
314,
1612,
18,
2399,
67,
5804,
16,
314,
1612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
5964,
4672,
22718,
18,
682,
2257,
16186,
2738,
972,
12,
2890,
16,
314,
1612,
18,
2399,
67,
5804,
16,
314,
1612,
18,
2399,
67,
5804,
16,
314,
1612,
... |
if line.invoice_id.price_type == 'tax_included': | if line.invoice_id and line.invoice_id.price_type == 'tax_included': | def _amount_line(self, cr, uid, ids, name, args, context={}): """ Return the subtotal excluding taxes with respect to price_type. """ res = {} tax_obj = self.pool.get('account.tax') res = super(account_invoice_line, self)._amount_line(cr, uid, ids, name, args, context) res2 = res.copy() for line in self.browse(cr, uid,... | 5f67e62100578928f518f7119b78592c629d21b8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/5f67e62100578928f518f7119b78592c629d21b8/invoice_tax_incl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8949,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
3536,
2000,
326,
720,
4963,
19560,
5320,
281,
598,
8762,
358,
6205,
67,
723,
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,
389,
8949,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
3536,
2000,
326,
720,
4963,
19560,
5320,
281,
598,
8762,
358,
6205,
67,
723,
18,
... |
user.participant.rsvp = choice | participant = Participant.query.filter_by(user=user, edition=edition).first() if participant: participant.rsvp = choice else: flash(u"You did not register for this edition, %s." % user.fullname, 'error') return redirect(url_for('index'), code=303) | def rsvp(): key = request.args.get('key') choice = request.args.get('rsvp') if key is None: flash(u"You need an access key to RSVP.", 'error') return redirect(url_for('index'), code=303) if choice not in ['Y', 'N', 'M']: flash(u"You need to RSVP with Yes, No or Maybe: Y, N or M.", 'error') return redirect(url_for('inde... | f7cc649d162305e0ce6ef8008f6f776172e0d077 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12083/f7cc649d162305e0ce6ef8008f6f776172e0d077/website.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3597,
20106,
13332,
498,
273,
590,
18,
1968,
18,
588,
2668,
856,
6134,
6023,
273,
590,
18,
1968,
18,
588,
2668,
5453,
20106,
6134,
309,
498,
353,
599,
30,
9563,
12,
89,
6,
6225,
1608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3597,
20106,
13332,
498,
273,
590,
18,
1968,
18,
588,
2668,
856,
6134,
6023,
273,
590,
18,
1968,
18,
588,
2668,
5453,
20106,
6134,
309,
498,
353,
599,
30,
9563,
12,
89,
6,
6225,
1608,
... |
elif (at1.molecule.part is not None) or (at2.molecule.part is not None): | elif (at1.molecule.part is None) or (at2.molecule.part is None): | def changed_atoms(self): """Private method to call when the atoms assigned to this bond are changed. WARNING: does not call setup_invalidate(), though that would often also be needed, as would invalidate_bonded_mols() both before and after the change. """ at1 = self.atom1 at2 = self.atom2 assert at1 is not at2 self.key... | ab12d1fb24b5f03c0416712cb29d44a3ec1091d0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/ab12d1fb24b5f03c0416712cb29d44a3ec1091d0/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
14937,
12,
2890,
4672,
3536,
6014,
707,
358,
745,
1347,
326,
9006,
6958,
358,
333,
8427,
854,
3550,
18,
9744,
30,
1552,
486,
745,
3875,
67,
5387,
340,
9334,
11376,
716,
4102,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3550,
67,
14937,
12,
2890,
4672,
3536,
6014,
707,
358,
745,
1347,
326,
9006,
6958,
358,
333,
8427,
854,
3550,
18,
9744,
30,
1552,
486,
745,
3875,
67,
5387,
340,
9334,
11376,
716,
4102,
... |
if not isunicode(tags): os.system("mid3iconv -q -e%s --remove-v1 '%s'" % (CHARSET, tmp_filename)) except Exception as text: print(text) | if not isunicode(tags): os.system("mid3iconv -q -e%s --remove-v1 '%s'" % (CHARSET, tmp_filename)) converted = True except EOFError: buf = f.read(BUFSIZE) tmp = open(tmp_filename, "ab") tmp.write(buf) tmp.close() except Exception as text: converted = True print(text) | def do_GET(self): if self.path.find('?') != -1: path = self.path.split('?',1)[0] else: path = self.path if path[0] == '/': path = path[1:] # TODO: process 404 and other errors | c0888af3e71886c80c926dec4b400781297acbb9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14156/c0888af3e71886c80c926dec4b400781297acbb9/tagconvd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3264,
12,
2890,
4672,
309,
365,
18,
803,
18,
4720,
2668,
4899,
13,
480,
300,
21,
30,
589,
273,
365,
18,
803,
18,
4939,
2668,
35,
2187,
21,
25146,
20,
65,
469,
30,
589,
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,
741,
67,
3264,
12,
2890,
4672,
309,
365,
18,
803,
18,
4720,
2668,
4899,
13,
480,
300,
21,
30,
589,
273,
365,
18,
803,
18,
4939,
2668,
35,
2187,
21,
25146,
20,
65,
469,
30,
589,
273... |
ans = self._rescale(exp_min, context.rounding) if ans != self: | digits = len(self._int) + self._exp - exp_min if digits < 0: self = _dec_from_triple(self._sign, '1', exp_min-1) digits = 0 this_function = getattr(self, self._pick_rounding_function[context.rounding]) changed = this_function(digits) coeff = self._int[:digits] or '0' if changed == 1: coeff = str(int(coeff)+1) ans = _de... | def _fix(self, context): """Round if it is necessary to keep self within prec precision. | 291ea60bec6861615ac3aedcb91a7d6f3db03771 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/291ea60bec6861615ac3aedcb91a7d6f3db03771/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
12,
2890,
16,
819,
4672,
3536,
11066,
309,
518,
353,
4573,
358,
3455,
365,
3470,
13382,
6039,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
12,
2890,
16,
819,
4672,
3536,
11066,
309,
518,
353,
4573,
358,
3455,
365,
3470,
13382,
6039,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def fromDom(node): | def fromDom(self, node): | def fromDom(node): self.setAttributes(node) contents = self.getContents(node) fields = [] | 5b20f2b0904cc43a45210136aca4b3c019980b52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/5b20f2b0904cc43a45210136aca4b3c019980b52/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
1466,
273,
5378,
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,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
1466,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lambda_ = self.total_charge /(self.z_length*self.units.EL_CHARGE) | lambda_ = abs(self.total_charge) /(self.z_length*self.units.EL_CHARGE) | def get_total_space_charge_parameter(self): from math import pi | 9d5c51afd150494a3de1fe478baa73bccc7cc5ee /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12869/9d5c51afd150494a3de1fe478baa73bccc7cc5ee/distribution.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4963,
67,
2981,
67,
16385,
67,
6775,
12,
2890,
4672,
628,
4233,
1930,
4790,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4963,
67,
2981,
67,
16385,
67,
6775,
12,
2890,
4672,
628,
4233,
1930,
4790,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
props.setDepthBits(1) | props.setDepthBits(depthbits) | def createBuffer(self, name, xsize, ysize, texgroup, depthbits=1): """ Low-level buffer creation. Not intended for public use. """ | d40af7bc80d8eac310f9f81b4bf33b5cd30cd3f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7242/d40af7bc80d8eac310f9f81b4bf33b5cd30cd3f9/FilterManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
1892,
12,
2890,
16,
508,
16,
619,
1467,
16,
677,
1467,
16,
16573,
1655,
16,
3598,
6789,
33,
21,
4672,
3536,
23629,
17,
2815,
1613,
6710,
18,
225,
2288,
12613,
364,
1071,
999,
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,
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,
1892,
12,
2890,
16,
508,
16,
619,
1467,
16,
677,
1467,
16,
16573,
1655,
16,
3598,
6789,
33,
21,
4672,
3536,
23629,
17,
2815,
1613,
6710,
18,
225,
2288,
12613,
364,
1071,
999,
18,
... |
str = '<?xml version="1.0" ?>\n<a b="c"/>' | str = '<?xml version="1.0" ?><a b="c"/>' | def testWriteXML(): str = '<?xml version="1.0" ?>\n<a b="c"/>' dom = parseString(str) domstr = dom.toxml() dom.unlink() confirm(str == domstr) | d2b9565d572761b7027f216799c3094e169892ff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/d2b9565d572761b7027f216799c3094e169892ff/test_minidom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3067,
4201,
13332,
609,
273,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
692,
4438,
69,
324,
1546,
71,
6,
18280,
4092,
273,
23659,
12,
701,
13,
4092,
701,
273,
4092,
18,
869,
2902,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1842,
3067,
4201,
13332,
609,
273,
16617,
2902,
1177,
1546,
21,
18,
20,
6,
692,
4438,
69,
324,
1546,
71,
6,
18280,
4092,
273,
23659,
12,
701,
13,
4092,
701,
273,
4092,
18,
869,
2902,
... |
selNanotubeSegmentList += [obj] | ntSegmentList += [obj] | def addSelectedNanotubeSegment(obj): if obj.picked and isinstance(obj, self.win.assy.NanotubeSegment): selNanotubeSegmentList += [obj] return | e47b7cffba732fb1a6f8d23fbde9e912df369c60 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/e47b7cffba732fb1a6f8d23fbde9e912df369c60/ops_select.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
7416,
10312,
352,
4895,
4131,
12,
2603,
4672,
309,
1081,
18,
11503,
329,
471,
1549,
12,
2603,
16,
365,
18,
8082,
18,
428,
93,
18,
10312,
352,
4895,
4131,
4672,
9513,
4131,
682,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7416,
10312,
352,
4895,
4131,
12,
2603,
4672,
309,
1081,
18,
11503,
329,
471,
1549,
12,
2603,
16,
365,
18,
8082,
18,
428,
93,
18,
10312,
352,
4895,
4131,
4672,
9513,
4131,
682,
10... |
self.target_area = [460.0, 20.0, 740.0, 500.0] | self.target_area = [440.0, 20.0, 720.0, 500.0] | def __init__(self, gcomprisBoard): | 913924c8dcdbcb3da5c60216f2da57d28f6c835f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11306/913924c8dcdbcb3da5c60216f2da57d28f6c835f/redraw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
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,
... | [
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,
1001,
2738,
972,
12,
2890,
16,
314,
832,
683,
291,
22233,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
col = etree.SubElement(node_line, 'col', para='yes', tree='no') | col = etree.SubElement(node_line, 'col', para='group', tree='no') | def _append_node(name, text): n = etree.SubElement(config, name) n.text = text | 043431014637563ca06b30dfced7df8f4140160d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/043431014637563ca06b30dfced7df8f4140160d/ps_list.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1676,
1046,
12,
1425,
16,
508,
13,
290,
18,
955,
273,
977,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6923,
67,
2159,
12,
529,
16,
977,
4672,
290,
273,
12031,
18,
1676,
1046,
12,
1425,
16,
508,
13,
290,
18,
955,
273,
977,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for (undo, pkg, suite) in lundo: | for (undo, pkg, pkg_name, suite) in lundo: | def do_all(self, maxdepth=0, init=None, actions=None): """Testing update runner | d5362ad8a66b3cf545afb782387a1c2c01d551e2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/d5362ad8a66b3cf545afb782387a1c2c01d551e2/britney.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
454,
12,
2890,
16,
943,
5979,
33,
20,
16,
1208,
33,
7036,
16,
4209,
33,
7036,
4672,
3536,
22218,
1089,
8419,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
454,
12,
2890,
16,
943,
5979,
33,
20,
16,
1208,
33,
7036,
16,
4209,
33,
7036,
4672,
3536,
22218,
1089,
8419,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
MemberSpec_('current_state', ['current_state', 'xsd:token'], 0), | MemberSpec_('state', 'xsd:string', 0), MemberSpec_('activated', 'xsd:string', 0), | def buildChildren(self, child_, nodeName_): if child_.nodeType == Node.TEXT_NODE: self.valueOf_ += child_.nodeValue elif child_.nodeType == Node.CDATA_SECTION_NODE: self.valueOf_ += '![CDATA['+child_.nodeValue+']]' | 0edf7ff39fb592b3aec2afae94ce938d1f08b997 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7635/0edf7ff39fb592b3aec2afae94ce938d1f08b997/generateds_system_1_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
4672,
309,
1151,
27799,
2159,
559,
422,
2029,
18,
5151,
67,
8744,
30,
365,
18,
1132,
951,
67,
1011,
1151,
27799,
2159,
620,
1327,
1151... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1361,
4212,
12,
2890,
16,
1151,
67,
16,
7553,
67,
4672,
309,
1151,
27799,
2159,
559,
422,
2029,
18,
5151,
67,
8744,
30,
365,
18,
1132,
951,
67,
1011,
1151,
27799,
2159,
620,
1327,
1151... |
width=min_w, | width=txt_w, | def DoGetBestSize(self): """Calculate the best size of the button @return: wx.Size | 738a116ccda602ca026f61a2c7059c80b0bbe249 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/738a116ccda602ca026f61a2c7059c80b0bbe249/metallicbutton.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
967,
14173,
1225,
12,
2890,
4672,
3536,
8695,
326,
3796,
963,
434,
326,
3568,
632,
2463,
30,
7075,
18,
1225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
967,
14173,
1225,
12,
2890,
4672,
3536,
8695,
326,
3796,
963,
434,
326,
3568,
632,
2463,
30,
7075,
18,
1225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
win = utils.bind_object_from_request_to_form(request, base.get_row, base.edit_window) win.title = base.title win.form.url = base.save_action.get_absolute_url() return ExtUIScriptResult(base.get_edit_window(win)) class DictAddWindowAction(Action): ''' Добавление элемента справочника ''' url = '/add-window$' def run(se... | id = utils.extract_int(request, 'id') obj = base.get_row(id) create_new = True if isinstance(obj, dict) and obj.get('id') != None: create_new = False elif hasattr(obj, 'id') and getattr(obj, 'id') != None: create_new = False if create_new and base.add_window: | def run(self, request, context): base = self.parent win = utils.bind_object_from_request_to_form(request, base.get_row, base.edit_window) win.title = base.title win.form.url = base.save_action.get_absolute_url() return ExtUIScriptResult(base.get_edit_window(win)) | 72c733334f682d5f093a59f7f057b6bf2da5acd1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5296/72c733334f682d5f093a59f7f057b6bf2da5acd1/packs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
590,
16,
819,
4672,
1026,
273,
365,
18,
2938,
5657,
273,
2990,
18,
4376,
67,
1612,
67,
2080,
67,
2293,
67,
869,
67,
687,
12,
2293,
16,
1026,
18,
588,
67,
492,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
590,
16,
819,
4672,
1026,
273,
365,
18,
2938,
5657,
273,
2990,
18,
4376,
67,
1612,
67,
2080,
67,
2293,
67,
869,
67,
687,
12,
2293,
16,
1026,
18,
588,
67,
492,
1... |
result = d.run() d.hide() if result == gtk.RESPONSE_YES: self.emit("action", action, param) | def response (dialog, response): if response == gtk.RESPONSE_YES: self.emit("action", action, param) d.hide() d.connect("response", response) d.show_all() | def _offer (self, action, param, title, desciprtion): d = gtk.MessageDialog ( type = gtk.MESSAGE_QUESTION, buttons = gtk.BUTTONS_YES_NO) d.set_markup (title) d.format_secondary_text (description) result = d.run() d.hide() if result == gtk.RESPONSE_YES: self.emit("action", action, param) | cd594a34df844bbb542b8dc11f598fa062b21917 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5339/cd594a34df844bbb542b8dc11f598fa062b21917/Human.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
23322,
261,
2890,
16,
1301,
16,
579,
16,
2077,
16,
3044,
625,
3797,
285,
4672,
302,
273,
22718,
18,
1079,
6353,
261,
618,
273,
22718,
18,
8723,
67,
4740,
1146,
16,
9502,
273,
2271... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
23322,
261,
2890,
16,
1301,
16,
579,
16,
2077,
16,
3044,
625,
3797,
285,
4672,
302,
273,
22718,
18,
1079,
6353,
261,
618,
273,
22718,
18,
8723,
67,
4740,
1146,
16,
9502,
273,
2271... |
if new_behavior: self.assertResult((p.update_i386, p.requires_update)) else: self.assertResult((p.installed_i386, p.update_x86_64, p.requires_update)) | self.assertResult((p.update_i386, p.requires_update)) | def testUpdatei386ToMultilibForDependency(self): p = self.pkgs res, msg = self.runOperation(['install', 'zsh-utils'], [p.installed_i386], [p.update_i386, p.update_x86_64, p.requires_update]) self.assert_(res=='ok', msg) if new_behavior: self.assertResult((p.update_i386, p.requires_update)) else: self.assertResult((p.in... | 8e2a5f5410c9856fccd419757faf7f21560db8df /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5445/8e2a5f5410c9856fccd419757faf7f21560db8df/operationstests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1891,
77,
23,
5292,
774,
5049,
330,
495,
1290,
7787,
12,
2890,
4672,
293,
273,
365,
18,
25376,
400,
16,
1234,
273,
365,
18,
2681,
2988,
12,
3292,
5425,
2187,
296,
94,
674,
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,
1842,
1891,
77,
23,
5292,
774,
5049,
330,
495,
1290,
7787,
12,
2890,
4672,
293,
273,
365,
18,
25376,
400,
16,
1234,
273,
365,
18,
2681,
2988,
12,
3292,
5425,
2187,
296,
94,
674,
17,
... |
TARGET [0] = t [0] if len (t) > 1: | if t [0] != "": TARGET [0] = t [0] if len (t) > 1 and t [1] != "": | def set_target (t): global TARGET t = t.split ('.') TARGET [0] = t [0] if len (t) > 1: TARGET [1] = t [1] | 73b01283503026b342beabf80f1227ee4a92e0b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2556/73b01283503026b342beabf80f1227ee4a92e0b0/ac.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3299,
261,
88,
4672,
2552,
16964,
268,
273,
268,
18,
4939,
7707,
1093,
13,
309,
268,
306,
20,
65,
480,
1408,
30,
16964,
306,
20,
65,
273,
268,
306,
20,
65,
309,
562,
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,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3299,
261,
88,
4672,
2552,
16964,
268,
273,
268,
18,
4939,
7707,
1093,
13,
309,
268,
306,
20,
65,
480,
1408,
30,
16964,
306,
20,
65,
273,
268,
306,
20,
65,
309,
562,
261,
... |
return S_OK(resultList) def __filterFile(self,lfn,filters=None): | return S_OK( resultList ) def __filterFile( self, lfn, filters = None ): | def __updateFilters(self,connection=False): """ Get filters for all defined input streams in all the transformations. If transID argument is given, get filters only for this transformation. """ resultList = [] # Define the general filter first setup = gConfig.getValue('/DIRAC/Setup','') value = gConfig.getValue('/Opera... | 9ad007ea503b29694fc081c1646b7c5ecd07b1f2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9ad007ea503b29694fc081c1646b7c5ecd07b1f2/TransformationDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
5422,
12,
2890,
16,
4071,
33,
8381,
4672,
3536,
968,
3415,
364,
777,
2553,
810,
8205,
316,
777,
326,
19245,
18,
971,
906,
734,
1237,
353,
864,
16,
336,
3415,
1338,
364,
333... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
5422,
12,
2890,
16,
4071,
33,
8381,
4672,
3536,
968,
3415,
364,
777,
2553,
810,
8205,
316,
777,
326,
19245,
18,
971,
906,
734,
1237,
353,
864,
16,
336,
3415,
1338,
364,
333... |
resource = memory.File('hello') root.set_resource('test.txt', resource) | root.set_resource('test.txt', memory.File('hello')) | def test_add_file(self): root = self.database.get_resource('/') resource = memory.File('hello') root.set_resource('test.txt', resource) | 63faa3ff89eb5a06038d8b7e4351c9327a18dca8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12681/63faa3ff89eb5a06038d8b7e4351c9327a18dca8/test_zodb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1289,
67,
768,
12,
2890,
4672,
1365,
273,
365,
18,
6231,
18,
588,
67,
3146,
2668,
2473,
13,
1058,
273,
3778,
18,
812,
2668,
23711,
6134,
1365,
18,
542,
67,
3146,
2668,
3813,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1289,
67,
768,
12,
2890,
4672,
1365,
273,
365,
18,
6231,
18,
588,
67,
3146,
2668,
2473,
13,
1058,
273,
3778,
18,
812,
2668,
23711,
6134,
1365,
18,
542,
67,
3146,
2668,
3813,
... |
def subImage(self, subnum): return subimage(self, self.data[subnum]) | def subImage(self, subnum): return BaseImage(self.data[subnum], self.xsize, self.ysize, self.zsize, self.tsize, self.x0, self.y0, self.z0) | def subImage(self, subnum): return subimage(self, self.data[subnum]) | 2654ec94d7dd179b942ae470cb77e932a8e9f006 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7241/2654ec94d7dd179b942ae470cb77e932a8e9f006/imageio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
2040,
12,
2890,
16,
720,
2107,
4672,
327,
720,
2730,
12,
2890,
16,
365,
18,
892,
63,
1717,
2107,
5717,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
720,
2040,
12,
2890,
16,
720,
2107,
4672,
327,
720,
2730,
12,
2890,
16,
365,
18,
892,
63,
1717,
2107,
5717,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.m_depth < g_recursionlimit - 10: sys.setprofile(self.profile) | def profile_recursion(self, frame, event, arg): if event == 'call': if self.m_depth > g_recursionlimit: print_debug('Exceeded recursion limit and caught in profile function.') | 855df730877f2c165830062bf43bf6350b314800 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9402/855df730877f2c165830062bf43bf6350b314800/rpdb2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3042,
67,
31347,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
309,
871,
422,
296,
1991,
4278,
309,
365,
18,
81,
67,
5979,
405,
314,
67,
31347,
3595,
30,
1172,
67,
4148,
2668,
10069,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3042,
67,
31347,
12,
2890,
16,
2623,
16,
871,
16,
1501,
4672,
309,
871,
422,
296,
1991,
4278,
309,
365,
18,
81,
67,
5979,
405,
314,
67,
31347,
3595,
30,
1172,
67,
4148,
2668,
10069,
... | |
tabwidth = self.config['diff'].getint('tab_width', self.config['mimeviewer'].getint('tab_width')) | tabwidth = self.config['diff'].getint('tab_width') or \ self.config['mimeviewer'].getint('tab_width', 8) | def _content_changes(old_node, new_node): """Returns the list of differences. | 5ee3189defb5f99dab2e8e196a3eafb934a48fa7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/5ee3189defb5f99dab2e8e196a3eafb934a48fa7/changeset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1745,
67,
6329,
12,
1673,
67,
2159,
16,
394,
67,
2159,
4672,
3536,
1356,
326,
666,
434,
16440,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1745,
67,
6329,
12,
1673,
67,
2159,
16,
394,
67,
2159,
4672,
3536,
1356,
326,
666,
434,
16440,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
coords = polar_to_cartesian(self.base_x, | coords = polar_to_cartesian(self.base_x, | def to_point(self): '''Convert from PolarPoint to (cartesian) Point object''' | ce2b4b6fe9cf3418e9c7ba05c5479e2063ca2945 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5205/ce2b4b6fe9cf3418e9c7ba05c5479e2063ca2945/polar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1153,
12,
2890,
4672,
9163,
2723,
628,
6730,
297,
2148,
358,
261,
11848,
13404,
13,
4686,
733,
26418,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
1153,
12,
2890,
4672,
9163,
2723,
628,
6730,
297,
2148,
358,
261,
11848,
13404,
13,
4686,
733,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
dir_contents = os.listdir(self.simcoal_dir) | def __init__(self, simcoal_dir): """Initializes the controller. simcoal_dir is the directory where simcoal is. The initializer checks for existance and executability of binaries. """ self.simcoal_dir = simcoal_dir self.os_name = os.name if self.os_name=='nt' or sys.platform=='cygwin': self.bin_name = 'simcoal2.exe' #... | 1bea506fdfda2e761062add9b958d45f36a56c08 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7167/1bea506fdfda2e761062add9b958d45f36a56c08/Controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3142,
2894,
287,
67,
1214,
4672,
3536,
9685,
326,
2596,
18,
225,
3142,
2894,
287,
67,
1214,
353,
326,
1867,
1625,
3142,
2894,
287,
353,
18,
225,
1021,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3142,
2894,
287,
67,
1214,
4672,
3536,
9685,
326,
2596,
18,
225,
3142,
2894,
287,
67,
1214,
353,
326,
1867,
1625,
3142,
2894,
287,
353,
18,
225,
1021,
12... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.