rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
I = self.index_set() J = other.index_set() | I = self.index_object() J = other.index_object() | def convolution_periodic(self, other): """ Convolves two collections indexed by a range(...) of the same length (automatically expands the shortest one by extending it by 0 if they have different lengths). If {a_n} and {b_n} are sequences of length N (n=0,1,...,N-1), extended periodically for all n in ZZ, then the conv... | 5d0c7d543a1b24ac0a1d29ac68884870541a3a98 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/5d0c7d543a1b24ac0a1d29ac68884870541a3a98/dft.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26828,
67,
6908,
335,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
6980,
8808,
635,
279,
1048,
5825,
13,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26828,
67,
6908,
335,
12,
2890,
16,
1308,
4672,
3536,
735,
15416,
3324,
2795,
6980,
8808,
635,
279,
1048,
5825,
13,
434,
326,
1967,
769,
261,
5854,
20271,
4542,
87,
326,
20579,
1245,
635... |
v = ' '.join(map(str, v)) | v = ' '.join(nv) | def _options(self, cnf, kw = None): """Internal function.""" if kw: cnf = _cnfmerge((cnf, kw)) else: cnf = _cnfmerge(cnf) res = () for k, v in cnf.items(): if v is not None: if k[-1] == '_': k = k[:-1] if callable(v): v = self._register(v) elif isinstance(v, (tuple, list)): for item in v: if not isinstance(item, (bases... | d08df269fc8ec2c215b0b38dec754149ab56af40 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/d08df269fc8ec2c215b0b38dec754149ab56af40/Tkinter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2116,
12,
2890,
16,
23118,
16,
5323,
273,
599,
4672,
3536,
3061,
445,
12123,
309,
5323,
30,
23118,
273,
389,
10305,
74,
2702,
12443,
10305,
74,
16,
5323,
3719,
469,
30,
23118,
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,
389,
2116,
12,
2890,
16,
23118,
16,
5323,
273,
599,
4672,
3536,
3061,
445,
12123,
309,
5323,
30,
23118,
273,
389,
10305,
74,
2702,
12443,
10305,
74,
16,
5323,
3719,
469,
30,
23118,
273,
... |
listOfLists = breakListIntoChunks(urls.keys(),self.filesPerCall) | listOfLists = breakListIntoChunks( urls.keys(), self.filesPerCall ) | def __gfalls_wrapper(self,urls,depth): """ This is a function that can be reused everywhere to perform the gfal_ls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['srmv2_lslevels'] = depth | 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,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
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,
25602,
87,
67,
8376,
12,
2890,
16,
10518,
16,
5979,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,
67,
3251,
3536,
13828,
287,
... |
if (FSpMakeFSRef(&((FSSpecObject *)v)->ob_itself, fsr)) | if ((err=FSpMakeFSRef(&((FSSpecObject *)v)->ob_itself, fsr)) == 0) | #ifdef WITHOUT_FRAMEWORKS | e55beefed89f21985b3791f4a2a253ba7da508e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e55beefed89f21985b3791f4a2a253ba7da508e9/filesupport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
13601,
5069,
67,
15072,
10566,
55,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
13601,
5069,
67,
15072,
10566,
55,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.CreateModulePcdCode() | for pcd in self.GetPcdList(): self.CreateModulePcdCode(pcd) | def CreatePcdCode(self): if self.IsLibrary: self.CreateLibraryPcdCode() else: self.CreateModulePcdCode() | 502c7f8e852c690f3cb00ab852f2902d8eb0db4f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/502c7f8e852c690f3cb00ab852f2902d8eb0db4f/AutoGen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
4315,
1085,
12,
2890,
4672,
309,
365,
18,
2520,
9313,
30,
365,
18,
1684,
9313,
52,
4315,
1085,
1435,
469,
30,
365,
18,
1684,
3120,
52,
4315,
1085,
1435,
2,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
52,
4315,
1085,
12,
2890,
4672,
309,
365,
18,
2520,
9313,
30,
365,
18,
1684,
9313,
52,
4315,
1085,
1435,
469,
30,
365,
18,
1684,
3120,
52,
4315,
1085,
1435,
2,
-100,
-100,
-100,
... |
scaling_term -- default is 0.05. if nodes are getting chopped off, increase; if graph | scaling_term -- default is 0.05. if vertices are getting chopped off, increase; if graph | def show(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, edge_colors=None, partition=None, scaling_term=0.05, talk=False, iterations=50, color_by_label=False, heights=None, **kwds): """ Shows the (di)graph. | a520fa15cff86fbbd1335f8b6f9d36203c74d574 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a520fa15cff86fbbd1335f8b6f9d36203c74d574/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... |
elif self.__latest_version["type"] != self.__version["type"]: | elif (self.__latest_version["major"], self.__latest_version["minor"], self.__latest_version["development"]) == \ (self.__version["major"], self.__version["minor"], self.__version["development"]): | def endElement(self, name): | 7be9ef93a2dc864ad2f3ab5f27dea94d48d43104 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5768/7be9ef93a2dc864ad2f3ab5f27dea94d48d43104/UpdateChecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14840,
12,
2890,
16,
508,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
"%s-%s" % (myname, myversion), cutoff, ic) _, ratio3 = globdistance(nameversion, "%s-%s" % | "%s_%s" % (myname, myversion), cutoff, ic) _, ratio3 = globdistance(nameversion, "%s_%s" % | def search(self, searcher): myname = self.name myversion = self.version ratio = 0 ic = searcher.ignorecase for nameversion, cutoff in searcher.nameversion: _, ratio1 = globdistance(nameversion, myname, cutoff, ic) _, ratio2 = globdistance(nameversion, "%s-%s" % (myname, myversion), cutoff, ic) _, ratio3 = globdistance(... | dcd43fde5066f1a23333a18e1aec58ac1965b4fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/dcd43fde5066f1a23333a18e1aec58ac1965b4fa/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
27349,
4672,
3399,
529,
273,
365,
18,
529,
3399,
1589,
273,
365,
18,
1589,
7169,
273,
374,
13579,
273,
27349,
18,
6185,
3593,
364,
508,
1589,
16,
13383,
316,
27349,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
12,
2890,
16,
27349,
4672,
3399,
529,
273,
365,
18,
529,
3399,
1589,
273,
365,
18,
1589,
7169,
273,
374,
13579,
273,
27349,
18,
6185,
3593,
364,
508,
1589,
16,
13383,
316,
27349,
... |
if not cache: print >> dag_fh, 'done', | if not inspiral: print >> dag_fh, 'done', | def builddag(self,cache,bank,inspiral): chan = self.config['input']['channel-name'] site = chan[0] ifo = chan[0:2] dag_fh = open( self.basename + ".dag", "w" ) print >> dag_fh, "DOT %s.dot UPDATE OVERWRITE" % self.basename # jobs to generate the frame cache files for seg in self.segments: jobname = 'frcache_%s_%d_%d'... | 2972b3ae4ea6e9568cdde92232b1784aeae59a92 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/2972b3ae4ea6e9568cdde92232b1784aeae59a92/inspiral_pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25666,
330,
449,
346,
12,
2890,
16,
2493,
16,
10546,
16,
267,
1752,
481,
287,
4672,
3861,
273,
365,
18,
1425,
3292,
2630,
21712,
4327,
17,
529,
3546,
2834,
273,
3861,
63,
20,
65,
21479... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25666,
330,
449,
346,
12,
2890,
16,
2493,
16,
10546,
16,
267,
1752,
481,
287,
4672,
3861,
273,
365,
18,
1425,
3292,
2630,
21712,
4327,
17,
529,
3546,
2834,
273,
3861,
63,
20,
65,
21479... |
if self.working: | if self.working and self.exiting.acquire(): | def shutdown(self): """Shutdown B3""" try: if self.working: self.bot('Shutting down...') self.working = False for k,plugin in self._plugins.items(): plugin.parseEvent(b3.events.Event(b3.events.EVT_STOP, '')) if self._cron: self._cron.stop() | 743e6d22d764ade3402396fe0c52f9c6f5d18377 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12909/743e6d22d764ade3402396fe0c52f9c6f5d18377/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
3536,
10961,
605,
23,
8395,
775,
30,
309,
365,
18,
20478,
471,
365,
18,
8593,
310,
18,
1077,
1039,
13332,
365,
18,
4819,
2668,
1555,
25387,
2588,
7821,
13,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5731,
12,
2890,
4672,
3536,
10961,
605,
23,
8395,
775,
30,
309,
365,
18,
20478,
471,
365,
18,
8593,
310,
18,
1077,
1039,
13332,
365,
18,
4819,
2668,
1555,
25387,
2588,
7821,
13,
365,
1... |
fsetup.setUp() | fsetup.base_storage.close = lambda : None | def setUp(self): deleteSet = ' /\\,' name = ''.join([c for c in self.sampleManager if c not in deleteSet]) dbpath = self.path dbDirName = 'var_%s' % name if dbDirName not in os.listdir(dbpath): os.mkdir(os.path.join(dbpath, dbDirName)) filename = os.path.join(dbpath, dbDirName, 'TestData.fs') | 994c35d7343872bb761dbd8dd2d5a396ea6b7750 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9652/994c35d7343872bb761dbd8dd2d5a396ea6b7750/layer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24292,
12,
2890,
4672,
1430,
694,
273,
296,
342,
1695,
11189,
508,
273,
875,
18,
5701,
3816,
71,
364,
276,
316,
365,
18,
6358,
1318,
309,
276,
486,
316,
1430,
694,
5717,
1319,
803,
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,
24292,
12,
2890,
4672,
1430,
694,
273,
296,
342,
1695,
11189,
508,
273,
875,
18,
5701,
3816,
71,
364,
276,
316,
365,
18,
6358,
1318,
309,
276,
486,
316,
1430,
694,
5717,
1319,
803,
273... |
def my_sum(list): """Python2.2 doesn't have sum()""" tot = 0 for item in list: tot += item return tot | try: sum except NameError: def sum(list): """Python2.2 doesn't have sum()""" tot = 0 for item in list: tot += item return tot | def my_sum(list): """Python2.2 doesn't have sum()""" tot = 0 for item in list: tot += item return tot | 8bfd000da40b8168bc7c6543227d6aa794adcb52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/8bfd000da40b8168bc7c6543227d6aa794adcb52/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
775,
30,
2142,
1335,
25473,
30,
1652,
2142,
12,
1098,
4672,
3536,
15774,
22,
18,
22,
3302,
1404,
1240,
2142,
1435,
8395,
9997,
273,
374,
364,
761,
316,
666,
30,
9997,
1011,
761,
327,
9997,
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,
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,
775,
30,
2142,
1335,
25473,
30,
1652,
2142,
12,
1098,
4672,
3536,
15774,
22,
18,
22,
3302,
1404,
1240,
2142,
1435,
8395,
9997,
273,
374,
364,
761,
316,
666,
30,
9997,
1011,
761,
327,
9997,
2... |
from distutils.command.build_scripts import first_line_re lines = script_text.splitlines() if first_line_re.match(lines[0]): return True else: return False if filename.endswith('.py') or filename.endswith('.pyw'): return True if is_python(script_text, filename): return True | return 'python' in script_text.splitlines()[0].lower() | def is_python_script(script_text, filename): """Is this text, as a whole, a Python script? (as opposed to shell/bat/etc. """ if script_text.startswith('#!'): # It begins with a '#!' line, so check if 'python' is in it somewhere from distutils.command.build_scripts import first_line_re lines = script_text.splitlines() ... | 849a997fd01b173fbc0eda32f9a6bdb8232c6f11 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/495/849a997fd01b173fbc0eda32f9a6bdb8232c6f11/easy_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
8103,
67,
4263,
12,
4263,
67,
955,
16,
1544,
4672,
3536,
2520,
333,
977,
16,
487,
279,
7339,
16,
279,
6600,
2728,
35,
261,
345,
1061,
7423,
358,
5972,
19,
28260,
19,
14175,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
67,
8103,
67,
4263,
12,
4263,
67,
955,
16,
1544,
4672,
3536,
2520,
333,
977,
16,
487,
279,
7339,
16,
279,
6600,
2728,
35,
261,
345,
1061,
7423,
358,
5972,
19,
28260,
19,
14175,
... |
return TriageEnum.values[(triageStatusOrder[value]+1) % len(TriageEnum.values)] | return triageStatusClickSequence[value] | def getNextTriageStatus(value): return TriageEnum.values[(triageStatusOrder[value]+1) % len(TriageEnum.values)] | 7d131100b2a0715da9af808a9bedac54a888cc37 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/7d131100b2a0715da9af808a9bedac54a888cc37/items.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
6251,
410,
1482,
12,
1132,
4672,
327,
6882,
410,
1482,
6563,
4021,
63,
1132,
65,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6927,
6251,
410,
1482,
12,
1132,
4672,
327,
6882,
410,
1482,
6563,
4021,
63,
1132,
65,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
NFSRESTORE = u"kernel | NFSRESTORE = u"kernel | def getEntry(self, protocol, network = True): """ Return the entry, in a GRUB compatible format """ buf = 'title %s\n' % self.title if self.desc: buf += 'desc %s\n' % self.desc if self.value: buf += self.value + '\n' return self._applyReplacement(buf, network) | b1c2ac54bc96ef251e89737df9a8044e149ae7b8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5988/b1c2ac54bc96ef251e89737df9a8044e149ae7b8/menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15428,
12,
2890,
16,
1771,
16,
2483,
273,
1053,
4672,
3536,
2000,
326,
1241,
16,
316,
279,
15228,
3457,
7318,
740,
3536,
1681,
273,
296,
2649,
738,
87,
64,
82,
11,
738,
365,
18,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15428,
12,
2890,
16,
1771,
16,
2483,
273,
1053,
4672,
3536,
2000,
326,
1241,
16,
316,
279,
15228,
3457,
7318,
740,
3536,
1681,
273,
296,
2649,
738,
87,
64,
82,
11,
738,
365,
18,
2649,
... |
"because it is already at revision:", uploads | "because it is already up-to-date." | def get_info(name): """ Get info for a locally installed campaign. If expects a direct path to the info.cfg file. """ if not os.path.exists(name): return None p = wmlparser.Parser(None) p.parse_file(name) info = wmldata.DataSub("WML") p.parse_top(info) uploads = info.get_or_create_sub("info").get_text_val("uploads", ""... | 8994b2eead22777a4e67b9a4e2afb8f3fb75b843 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/8994b2eead22777a4e67b9a4e2afb8f3fb75b843/campaigns_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
3536,
968,
1123,
364,
279,
13760,
5876,
8965,
18,
971,
10999,
279,
2657,
589,
358,
326,
1123,
18,
7066,
585,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1376,
12,
529,
4672,
3536,
968,
1123,
364,
279,
13760,
5876,
8965,
18,
971,
10999,
279,
2657,
589,
358,
326,
1123,
18,
7066,
585,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
... |
print "No default SystemQuestion" | def test_alias_question(self): if not has_sound("SystemQuestion"): print "No default SystemQuestion" return if _have_soundcard(): winsound.PlaySound('SystemQuestion', winsound.SND_ALIAS) else: self.assertRaises( RuntimeError, winsound.PlaySound, 'SystemQuestion', winsound.SND_ALIAS ) | f597763f57636e36ff2fc51f7705fbbf9e2ae4cb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3187/f597763f57636e36ff2fc51f7705fbbf9e2ae4cb/test_winsound.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4930,
67,
4173,
12,
2890,
4672,
309,
486,
711,
67,
29671,
2932,
3163,
11665,
6,
4672,
327,
309,
389,
21516,
67,
29671,
3327,
13332,
31307,
772,
18,
11765,
24331,
2668,
3163,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4930,
67,
4173,
12,
2890,
4672,
309,
486,
711,
67,
29671,
2932,
3163,
11665,
6,
4672,
327,
309,
389,
21516,
67,
29671,
3327,
13332,
31307,
772,
18,
11765,
24331,
2668,
3163,
11... | |
for name,value in env.config.options(section): | for name, value in env.config.options(section): | def load_components(env): configured_components = [] # Load configured modules for section in env.config.sections(): for name,value in env.config.options(section): if name == 'module': configured_components.append(value) path = env.config.get(section, 'path') env.log.debug('Loading component module %s from %s' % (name... | 4b69b2bd240089fb099eab7e0a25686cff2b05cd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/4b69b2bd240089fb099eab7e0a25686cff2b05cd/loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8119,
12,
3074,
4672,
4351,
67,
8119,
273,
5378,
225,
468,
4444,
4351,
4381,
364,
2442,
316,
1550,
18,
1425,
18,
11657,
13332,
364,
508,
16,
460,
316,
1550,
18,
1425,
18,
211... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
8119,
12,
3074,
4672,
4351,
67,
8119,
273,
5378,
225,
468,
4444,
4351,
4381,
364,
2442,
316,
1550,
18,
1425,
18,
11657,
13332,
364,
508,
16,
460,
316,
1550,
18,
1425,
18,
211... |
aa_render.argtypes = [ContextPtr, RenderSettingsPtr] + 4 * [_ct.c_int] | aa_render.argtypes = [ContextPtr, RenderSettingsPtr] + 4 * [ctypes.c_int] | def clone(self): clone = type(self)() _ct.pointer(clone)[0] = self return clone | 91de50327532f8765e986c3ad89eacfff8039a77 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3675/91de50327532f8765e986c3ad89eacfff8039a77/aalib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3236,
12,
2890,
4672,
3236,
273,
618,
12,
2890,
13,
1435,
389,
299,
18,
10437,
12,
14056,
25146,
20,
65,
273,
365,
327,
3236,
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,
3236,
12,
2890,
4672,
3236,
273,
618,
12,
2890,
13,
1435,
389,
299,
18,
10437,
12,
14056,
25146,
20,
65,
273,
365,
327,
3236,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
:return: id of the request stanza. | :return: id of the request stanza or `None` if a 'cancel' form was provieded. | def configure_room(self, form): """ Configure the room using the provided data. | 5c8f1da22562c1cc25e955ac93e14b4ca6f441db /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/5c8f1da22562c1cc25e955ac93e14b4ca6f441db/muc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
13924,
12,
2890,
16,
646,
4672,
3536,
11758,
326,
7725,
1450,
326,
2112,
501,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5068,
67,
13924,
12,
2890,
16,
646,
4672,
3536,
11758,
326,
7725,
1450,
326,
2112,
501,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print "MODE_TV" | def pathUp(self, justSet=False): if self.mode == MODE_TV: print "MODE_TV" prev = self.servicePathTV.pop() print "prev", prev.toString() length = len(self.servicePathTV) print "length", length if length: current = self.servicePathTV[length-1] print "current", current.toString() else: prev = self.servicePathRadio.pop() l... | 3e9bd06034d9656d4346225e90e68a65327a4aa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/3e9bd06034d9656d4346225e90e68a65327a4aa0/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
589,
1211,
12,
2890,
16,
2537,
694,
33,
8381,
4672,
309,
365,
18,
3188,
422,
11741,
67,
15579,
30,
2807,
273,
365,
18,
3278,
743,
15579,
18,
5120,
1435,
1172,
315,
10001,
3113,
2807,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
1211,
12,
2890,
16,
2537,
694,
33,
8381,
4672,
309,
365,
18,
3188,
422,
11741,
67,
15579,
30,
2807,
273,
365,
18,
3278,
743,
15579,
18,
5120,
1435,
1172,
315,
10001,
3113,
2807,
1... | |
if num == 0: | if num < 0: | def htmlify(match): m = match.group('spaces') if m: div, mod = divmod(len(m), 2) return div * ' ' + mod * ' ' return (match.group('tag') or '') + ' ' | b8759fc8a7e67ecd25d69ed1c7dd3fbc54d2e715 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/b8759fc8a7e67ecd25d69ed1c7dd3fbc54d2e715/api.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
312,
273,
845,
18,
1655,
2668,
9554,
6134,
309,
312,
30,
3739,
16,
681,
273,
26105,
12,
1897,
12,
81,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
312,
273,
845,
18,
1655,
2668,
9554,
6134,
309,
312,
30,
3739,
16,
681,
273,
26105,
12,
1897,
12,
81,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
... |
if not(self.attributes and 'self' in self.attributes): | if not(self.attributes and self.attributes.has_key('self')): | def toXML(self, debug=False): """ Dump the object as XML | c44973186ff646e53ec9192160c5eb1c6fc7aa1f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/c44973186ff646e53ec9192160c5eb1c6fc7aa1f/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30028,
12,
2890,
16,
1198,
33,
8381,
4672,
3536,
18242,
326,
733,
487,
3167,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30028,
12,
2890,
16,
1198,
33,
8381,
4672,
3536,
18242,
326,
733,
487,
3167,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
ValueError: The given string does not only contain 0 and 1 """ | ValueError: Input must be a binary string. """ | def decode(self, string): r""" Returns a decoded version of the given string corresponding to the current encoding table. | 08cf8218c91d92b4dcb4602a7135f1d9d706af1e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/08cf8218c91d92b4dcb4602a7135f1d9d706af1e/huffman.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2890,
16,
533,
4672,
436,
8395,
2860,
279,
6383,
1177,
434,
326,
864,
533,
4656,
358,
326,
783,
2688,
1014,
18,
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,
2495,
12,
2890,
16,
533,
4672,
436,
8395,
2860,
279,
6383,
1177,
434,
326,
864,
533,
4656,
358,
326,
783,
2688,
1014,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
rd = os.path.abspath(self.rundirectory) if rd in path: fn = fname[len(rd)+1:] path = rd | ua = os.path.abspath(self.userarea) if ua in path: fn = fname[len(ua)+1:] path = ua | def master_prepare(self,app,appconfig): '''Prepare the master job''' | fb1f32ff2e1a962bd56268af37d1ffad50455f48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/fb1f32ff2e1a962bd56268af37d1ffad50455f48/AthenaPandaRTHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
9366,
12,
2890,
16,
2910,
16,
2910,
1425,
4672,
9163,
7543,
326,
4171,
1719,
26418,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4171,
67,
9366,
12,
2890,
16,
2910,
16,
2910,
1425,
4672,
9163,
7543,
326,
4171,
1719,
26418,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not job.case_id: vals.update({'phonecall_id' : new_phonecall.id}) | def _doIt(self, cr, uid, data, context): form = data['form'] pool = pooler.get_pool(cr.dbname) mod_obj = pool.get('ir.model.data') result = mod_obj._get_id(cr, uid, 'hr', 'view_hr_case_phonecalls_filter') res = mod_obj.read(cr, uid, result, ['res_id']) phonecall_case_obj = pool.get('hr.phonecall') job_case_obj = pool.g... | 458d8c28ef774c4a4d5516935a73b3779310078f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/458d8c28ef774c4a4d5516935a73b3779310078f/hr_recruitment_wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2896,
7193,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
646,
273,
501,
3292,
687,
3546,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
681,
67,
2603... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2896,
7193,
12,
2890,
16,
4422,
16,
4555,
16,
501,
16,
819,
4672,
646,
273,
501,
3292,
687,
3546,
2845,
273,
2845,
264,
18,
588,
67,
6011,
12,
3353,
18,
20979,
13,
681,
67,
2603... | |
print 1, content | def create_paragraph(pdf_stylesheet, element, content): """ Create a reportlab paragraph widget. """ # Now, we strip each value in content before call create_paragraph # content = ['Hello', '<i>how are</i>', 'you?'] # Another choice is to strip the content (1 time) here # content = [' Hello\t\', '\t<i>how are</i>', '... | 543b26311a7614f8f96071497a95992a2618dae2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/543b26311a7614f8f96071497a95992a2618dae2/rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
22445,
12,
7699,
67,
19403,
16,
930,
16,
913,
4672,
3536,
1788,
279,
2605,
7411,
10190,
3604,
18,
3536,
225,
468,
4494,
16,
732,
2569,
1517,
460,
316,
913,
1865,
745,
752,
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,
752,
67,
22445,
12,
7699,
67,
19403,
16,
930,
16,
913,
4672,
3536,
1788,
279,
2605,
7411,
10190,
3604,
18,
3536,
225,
468,
4494,
16,
732,
2569,
1517,
460,
316,
913,
1865,
745,
752,
67,... | |
else | else: | def __init__(data = None) if data == None: quickfix.StringField.__init__(self, 923) else quickfix.StringField.__init__(self, 923, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
4366,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
780,
974,
16186,
2738,
972,
12,
2890,
16,
2468,
4366,
13,
469,
30,
9549,
904,
18,
780,
974,
16186,
2738... |
heads = limitheads(chlog, rev) | heads = limitheads(chlog, node) | def stripall(revnum): mm = repo.changectx(rev).manifest() seen = {} | d2c57f799695df6e062a9b05895035a6a4e5dc56 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/d2c57f799695df6e062a9b05895035a6a4e5dc56/repair.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
454,
12,
9083,
2107,
4672,
9740,
273,
3538,
18,
24083,
386,
92,
12,
9083,
2934,
14357,
1435,
5881,
273,
2618,
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,
2569,
454,
12,
9083,
2107,
4672,
9740,
273,
3538,
18,
24083,
386,
92,
12,
9083,
2934,
14357,
1435,
5881,
273,
2618,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
vals = self._xpatheval("//ScalarVariable/ScalarVariableName/text()[../../VariableCategory=\"algebraic\"]") | vals = self._xpatheval("//ScalarVariable/ScalarVariableName/text()[../../VariableCategory=\"algebraic\"]") if len(keys)!=len(vals): raise Exception("Number of vals does not equal number of keys. \ Number of vals are: "+str(len(vals))+" and number of keys are: "+str(len(keys))) | def get_algebraic_variable_names(self): """ Extract the names of the algebraic variables in a model. | f764f349d643190118591f5efb0058e97cef2494 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/f764f349d643190118591f5efb0058e97cef2494/xmlparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
287,
29087,
335,
67,
6105,
67,
1973,
12,
2890,
4672,
3536,
8152,
326,
1257,
434,
326,
524,
29087,
335,
3152,
316,
279,
938,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
287,
29087,
335,
67,
6105,
67,
1973,
12,
2890,
4672,
3536,
8152,
326,
1257,
434,
326,
524,
29087,
335,
3152,
316,
279,
938,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
raise ValueError, "linkname is too long (>%d)" \ % (LENGTH_LINK) | raise ValueError("linkname is too long (>%d)" % (LENGTH_LINK)) | def addfile(self, tarinfo, fileobj=None): """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation... | e4751e3cdc8c271f24e46a6155f255b6e33da158 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/e4751e3cdc8c271f24e46a6155f255b6e33da158/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,... |
print('Lastly, add | print(' (3) Add | fid.write('''#ifndef {0}_H | 318a5c09958ac8ad583cd9ce47d0d45848c3137b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14262/318a5c09958ac8ad583cd9ce47d0d45848c3137b/tabMaker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
13444,
18,
2626,
2668,
6309,
7,
430,
82,
536,
288,
20,
9044,
44,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
13444,
18,
2626,
2668,
6309,
7,
430,
82,
536,
288,
20,
9044,
44,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
signals.form_initialdata.send('ExampleForm', form=self, initial=initial) | signals.form_initialdata.send('CustomChargeForm', form=self, initial=initial) | def __init__(self, *args, **kwargs): initial = kwargs.get('initial', {}) signals.form_initialdata.send('ExampleForm', form=self, initial=initial) kwargs['initial'] = initial super(CustomChargeForm, self).__init__(*args, **kwargs) form_init.send(self.__class__, form=self) | b004ec3072a8d6d4c6879208911a3568bafa922e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13656/b004ec3072a8d6d4c6879208911a3568bafa922e/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2172,
273,
1205,
18,
588,
2668,
6769,
2187,
2618,
13,
11505,
18,
687,
67,
6769,
892,
18,
4661,
2668,
3802,
17649,
1204,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
380,
1968,
16,
2826,
4333,
4672,
2172,
273,
1205,
18,
588,
2668,
6769,
2187,
2618,
13,
11505,
18,
687,
67,
6769,
892,
18,
4661,
2668,
3802,
17649,
1204,
... |
if self.legendLayout.count() > 0: item = self.legendLayout.itemAt(0) item.scene().removeItem(item) self.legendLayout.removeAt(0) | if self.componentLegendItem is not None: self.scene().removeItem(self.componentLegendItem) self.componentLegendItem = None | def setComponentPlane(self, attr): self.componentPlane = attr self.somItem.setComponentPlane(attr) if self.legendLayout.count() > 0: item = self.legendLayout.itemAt(0) item.scene().removeItem(item) self.legendLayout.removeAt(0) if attr is not None: self.legendItem = LegendItem(attr, parent=self) self.legendItem.setOrie... | c2b295319c990527bd9bf9a858df173321bdb062 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6366/c2b295319c990527bd9bf9a858df173321bdb062/OWSOMVisualizer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1841,
19505,
12,
2890,
16,
1604,
4672,
365,
18,
4652,
19505,
273,
1604,
365,
18,
87,
362,
1180,
18,
542,
1841,
19505,
12,
1747,
13,
309,
365,
18,
4652,
16812,
1180,
353,
486,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1841,
19505,
12,
2890,
16,
1604,
4672,
365,
18,
4652,
19505,
273,
1604,
365,
18,
87,
362,
1180,
18,
542,
1841,
19505,
12,
1747,
13,
309,
365,
18,
4652,
16812,
1180,
353,
486,
599,... |
else | else: | def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 487) else quickfix.IntField.__init__(self, 487, data) | 484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
9934,
27,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
892,
273,
599,
13,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
9934,
27,
13,
469,
30,
9549,
904,
18,
1702,
974,
16186,
2738... |
and must be defined in such a way that its progress through any atom is consistent from either direction. That means it's not possible to find a ring which comes back to bond | and must be defined in such a way that its progress from bond to bond, through any atom, is consistent from either direction. (I.e., if given bond1 and atom1 it returns bond2 and atom2, then given bond2 and atom1 it must return bond1 and bond1.other(atom1).) However, we don't promise to do full checking on whether the ... | def grow_bond_chain(bond, atom, next_bond_in_chain): #bruce 070415; generalized from grow_pi_sp_chain """Given a bond and one of its atoms, grow the bond chain containing bond (as defined by next_bond_in_chain, called on a bond and one of its atoms) in the direction of atom, adding newly found bonds and atoms to respec... | d964b3e68c182c35dec802f8c628767cb53060b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/d964b3e68c182c35dec802f8c628767cb53060b1/bonds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
26425,
67,
5639,
12,
26425,
16,
3179,
16,
1024,
67,
26425,
67,
267,
67,
5639,
4672,
468,
2848,
3965,
10934,
3028,
3600,
31,
7470,
1235,
628,
13334,
67,
7259,
67,
1752,
67,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13334,
67,
26425,
67,
5639,
12,
26425,
16,
3179,
16,
1024,
67,
26425,
67,
267,
67,
5639,
4672,
468,
2848,
3965,
10934,
3028,
3600,
31,
7470,
1235,
628,
13334,
67,
7259,
67,
1752,
67,
5... |
login.storecookiedata(cookie, self.site, username) | login.storecookiedata(cookie, self.site, self.username) | def login(self, anonymous): """Initialises site and username data, or anonymous""" if anonymous: self.site = wikipedia.getSite(user=None) else: self.username = self.options.username or wikipedia.input(u"Username: ", encode=True) self.site = wikipedia.getSite(user=self.username) self.site._fill() # load cookies if not s... | 51001a5b3e909c203d861570e6cf4bd1c0495217 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/51001a5b3e909c203d861570e6cf4bd1c0495217/editarticle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
13236,
4672,
3536,
4435,
6141,
2834,
471,
2718,
501,
16,
578,
13236,
8395,
309,
13236,
30,
365,
18,
4256,
273,
21137,
18,
588,
4956,
12,
1355,
33,
7036,
13,
469,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3925,
12,
2890,
16,
13236,
4672,
3536,
4435,
6141,
2834,
471,
2718,
501,
16,
578,
13236,
8395,
309,
13236,
30,
365,
18,
4256,
273,
21137,
18,
588,
4956,
12,
1355,
33,
7036,
13,
469,
30... |
if album is DictWrapper: album = album.dictionary | def add_album_to_playlist(self, mode, album): """ Add an album to the playlist, mode can be: replace, enqueue or enqueue_and_play. """ if album is DictWrapper: album = album.dictionary | db514ed6f5d61929a0b240f7cca7eddc9139f373 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11070/db514ed6f5d61929a0b240f7cca7eddc9139f373/jamendo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
25090,
67,
869,
67,
1601,
1098,
12,
2890,
16,
1965,
16,
14844,
4672,
3536,
1436,
392,
14844,
358,
326,
16428,
16,
1965,
848,
506,
30,
1453,
16,
12850,
578,
12850,
67,
464,
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,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
25090,
67,
869,
67,
1601,
1098,
12,
2890,
16,
1965,
16,
14844,
4672,
3536,
1436,
392,
14844,
358,
326,
16428,
16,
1965,
848,
506,
30,
1453,
16,
12850,
578,
12850,
67,
464,
67,... | |
self._end = other._start | self._end = other._start.copy() | def setEndPoint(self, other, which): if which == "startToStart": self._start = other._start self._startObj = other._startObj elif which == "startToEnd": self._start = other._end self._startObj = other._endObj elif which == "endToStart": self._end = other._start self._endObj = other._starttObj elif which == "endToEnd": ... | a215f89a67fd5d4904cd6880388790436e209bca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/a215f89a67fd5d4904cd6880388790436e209bca/compoundDocuments.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19743,
2148,
12,
2890,
16,
1308,
16,
1492,
4672,
309,
1492,
422,
315,
1937,
28939,
6877,
365,
6315,
1937,
273,
1308,
6315,
1937,
365,
6315,
1937,
2675,
273,
1308,
6315,
1937,
2675,
1327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19743,
2148,
12,
2890,
16,
1308,
16,
1492,
4672,
309,
1492,
422,
315,
1937,
28939,
6877,
365,
6315,
1937,
273,
1308,
6315,
1937,
365,
6315,
1937,
2675,
273,
1308,
6315,
1937,
2675,
1327,
... |
return | return 0, 0 | def write_results_file(self, path, lines, lnotab, lines_hit): """Return a coverage results file in path.""" | 0228e084a628ccdbcaf74b1d234817cf2bfdd87c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/0228e084a628ccdbcaf74b1d234817cf2bfdd87c/trace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
4717,
67,
768,
12,
2890,
16,
589,
16,
2362,
16,
328,
902,
378,
16,
2362,
67,
15989,
4672,
3536,
990,
279,
11196,
1686,
585,
316,
589,
12123,
2,
-100,
-100,
-100,
-100,
-100,
... |
assert isinstance(a.binding(ev), annmodel.SomeInstance) and a.binding(ev).classdef.cls == LookupError | assert isinstance(a.binding(ev), annmodel.SomeInstance) and a.binding(ev).classdef.cls == KeyError | def f(dic): try: dic[5] except: raise | f6ea6194f020485a0f05e964ab59671d680caee1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/f6ea6194f020485a0f05e964ab59671d680caee1/test_annrpython.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
15859,
4672,
775,
30,
11681,
63,
25,
65,
1335,
30,
1002,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
15859,
4672,
775,
30,
11681,
63,
25,
65,
1335,
30,
1002,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return iter(SelectResultSet(self)) | return self.select("SELECT * FROM %s" % self.name) | def __iter__(self): return iter(SelectResultSet(self)) | b873a8f45bea79c953fec124a605e5baa348a0d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1098/b873a8f45bea79c953fec124a605e5baa348a0d4/domain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
327,
1400,
12,
3391,
13198,
12,
2890,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
327,
1400,
12,
3391,
13198,
12,
2890,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if module.vtType == AbstractionModule.vtType: abstraction = \ pipeline.abstraction_map[module.abstraction_id] pipeline.add_abstraction(abstraction) | def write_workflow(self, locator): if self.current_pipeline: pipeline = Pipeline() pipeline.set_abstraction_map(self.vistrail.abstractionMap) for module in self.current_pipeline.modules.itervalues(): if module.vtType == AbstractionModule.vtType: abstraction = \ pipeline.abstraction_map[module.abstraction_id] pipeline.a... | 5ed5a614d9409332544bf008fd79cf4767c31ac1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6341/5ed5a614d9409332544bf008fd79cf4767c31ac1/vistrail_controller.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
13815,
12,
2890,
16,
8871,
4672,
309,
365,
18,
2972,
67,
14511,
30,
5873,
273,
13671,
1435,
5873,
18,
542,
67,
378,
701,
1128,
67,
1458,
12,
2890,
18,
90,
3337,
671,
18,
37... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
13815,
12,
2890,
16,
8871,
4672,
309,
365,
18,
2972,
67,
14511,
30,
5873,
273,
13671,
1435,
5873,
18,
542,
67,
378,
701,
1128,
67,
1458,
12,
2890,
18,
90,
3337,
671,
18,
37... | |
from errno import ENOENT, ENOTDIR | def _execvpe(file, args, env=None): from errno import ENOENT, ENOTDIR if env is not None: func = execve argrest = (args, env) else: func = execv argrest = (args,) env = environ head, tail = path.split(file) if head: func(file, *argrest) return if 'PATH' in env: envpath = env['PATH'] else: envpath = defpath PATH = env... | 5b06fedda35bc8ab9d87795c3823546671253fae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/5b06fedda35bc8ab9d87795c3823546671253fae/os.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4177,
90,
347,
12,
768,
16,
833,
16,
1550,
33,
7036,
4672,
309,
1550,
353,
486,
599,
30,
1326,
273,
1196,
537,
1501,
8792,
273,
261,
1968,
16,
1550,
13,
469,
30,
1326,
273,
1196... | |
retVal = {'confirmed': self.getQForUser(Q(userbit__qsc = qsc, userbit__verb = verb)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached()) &\ Q(userbit__verb = verb2)), | retVal = {'confirmed': self.getQForUser(Q(userbit__qsc = qsc, userbit__verb = verb, userbit__startdate__lte=now, userbit__enddate__gte=now)), 'attended' : self.getQForUser(Q(userbit__qsc = self.program_anchor_cached(), userbit__startdate__lte=now, userbit__enddate__gte=now, userbit__verb = verb2)), | def students(self, QObject = False): verb = GetNode('V/Flags/Public') verb2 = GetNode('V/Flags/Registration/Attended') STUDREP_VERB = GetNode('V/Flags/UserRole/StudentRep') STUDREP_QSC = GetNode('Q') qsc = GetNode("/".join(self.program_anchor_cached().tree_encode()) + "/Confirmation") qsc_waitlist = GetNode("/".join... | 0e5e9cdd2d296834e1b2fc250566b83a6dbac190 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12041/0e5e9cdd2d296834e1b2fc250566b83a6dbac190/studentregcore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10068,
4877,
12,
2890,
16,
2238,
921,
273,
1083,
4672,
6405,
273,
968,
907,
2668,
58,
19,
5094,
19,
4782,
6134,
6405,
22,
273,
968,
907,
2668,
58,
19,
5094,
19,
7843,
19,
3075,
3934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10068,
4877,
12,
2890,
16,
2238,
921,
273,
1083,
4672,
6405,
273,
968,
907,
2668,
58,
19,
5094,
19,
4782,
6134,
6405,
22,
273,
968,
907,
2668,
58,
19,
5094,
19,
7843,
19,
3075,
3934,
... |
return H, relabeling | return H, c_new | def canonical_label(self, partition=None, certify=False, verbosity=0, edge_labels=False): """ Returns the canonical label with respect to the partition. If no partition is given, uses the unit partition. INPUT: - ``partition`` - if given, the canonical label with respect to this partition will be computed. The defa... | b5e5dfc619f6cc30b2f7d1ab5407ca3a6ae71e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/b5e5dfc619f6cc30b2f7d1ab5407ca3a6ae71e4d/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
3320,
1164,
33,
8381,
16,
11561,
33,
20,
16,
3591,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7378,
67,
1925,
12,
2890,
16,
3590,
33,
7036,
16,
3320,
1164,
33,
8381,
16,
11561,
33,
20,
16,
3591,
67,
5336,
33,
8381,
4672,
3536,
2860,
326,
7378,
1433,
598,
8762,
358,
326,
3590,
... |
elif op in (SUCCESS, FAILURE): emit(OPCODES[op]) elif op in (ASSERT, ASSERT_NOT): emit(OPCODES[op]) skip = len(code); emit(0) | elif op in SUCCESS_CODES: emit(OPCODES[op]) elif op in ASSERT_CODES: emit(OPCODES[op]) skip = _len(code); emit(0) | def fixup(literal, flags=flags): return _sre.getlower(literal, flags) | 99965c47f74c2ff93d6757a9e0ee25d545898b7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/99965c47f74c2ff93d6757a9e0ee25d545898b7b/sre_compile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
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,
2917,
416,
12,
13107,
16,
2943,
33,
7133,
4672,
327,
389,
87,
266,
18,
588,
8167,
12,
13107,
16,
2943,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if node.text and node.text.strip(): buffer += node.text, | def look_down(buffer, parent_bbox): for child in node.iterchildren(): _scan(child, buffer, parent_bbox, settings) if child.tail: if child.tail.strip(): buffer += child.tail, else: buffer += Space(), if node.text and node.text.strip(): buffer += node.text, | 9f380b526ac2deda675670ce6832432e382715cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3685/9f380b526ac2deda675670ce6832432e382715cc/hocr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1947,
13,
309,
1151,
18,
13101,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2324,
67,
2378,
12,
4106,
16,
982,
67,
20737,
4672,
364,
1151,
316,
756,
18,
2165,
5906,
13332,
389,
9871,
12,
3624,
16,
1613,
16,
982,
67,
20737,
16,
1947,
13,
309,
1151,
18,
13101,
... | |
return False | return False | def get_logs(self, cr, uid, ids, cron_mode=True, context={}): """ Send a message to OpenERP's publisher warranty server to check the validity of the contracts, get notifications, etc... @param cron_mode: If true, catch all exceptions (appropriate for usage in a cron). @type cron_mode: boolean """ try: try: result = ge... | 2693b386b8cfd9581b35f7894f55624277e4ae45 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/2693b386b8cfd9581b35f7894f55624277e4ae45/publisher_warranty.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10011,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
9998,
67,
3188,
33,
5510,
16,
819,
12938,
4672,
3536,
2479,
279,
883,
358,
3502,
654,
52,
1807,
12855,
341,
5399,
970,
93,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10011,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
9998,
67,
3188,
33,
5510,
16,
819,
12938,
4672,
3536,
2479,
279,
883,
358,
3502,
654,
52,
1807,
12855,
341,
5399,
970,
93,
... |
return publicresource.PublicPage.renderHTTP(self, ctx) | return publicresource.PublicPage.renderHTTP(self, ctx) | def renderHTTP(self, ctx): if self.username: self.original.publicViews += 1 else: self.original.privateViews += 1 return publicresource.PublicPage.renderHTTP(self, ctx) | 6c9ba1c680dfe734b362bce9334091d2c5177869 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6980/6c9ba1c680dfe734b362bce9334091d2c5177869/publicweb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
3693,
12,
2890,
16,
1103,
4672,
309,
365,
18,
5053,
30,
365,
18,
8830,
18,
482,
9959,
1011,
404,
469,
30,
365,
18,
8830,
18,
1152,
9959,
1011,
404,
327,
1071,
3146,
18,
4782,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
3693,
12,
2890,
16,
1103,
4672,
309,
365,
18,
5053,
30,
365,
18,
8830,
18,
482,
9959,
1011,
404,
469,
30,
365,
18,
8830,
18,
1152,
9959,
1011,
404,
327,
1071,
3146,
18,
4782,
1... |
gLogger.debug('SRM2Storage.__getFile: Got a file from storage.') localSize = getSize(dest_file) | gLogger.debug( 'SRM2Storage.__getFile: Got a file from storage.' ) localSize = getSize( dest_file ) | def __getFile(self,src_url,dest_file): if not os.path.exists(os.path.dirname(dest_file)): os.makedirs(os.path.dirname(dest_file)) if os.path.exists(dest_file): gLogger.debug("SRM2Storage.__getFile: Local file already exists %s. Removing..." % dest_file) os.remove(dest_file) srctype = self.defaulttype src_spacetokendesc... | 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,
29925,
12,
2890,
16,
4816,
67,
718,
16,
10488,
67,
768,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
12287,
12,
10488,
67,
768,
3719,
30,
1140,
18,
81,
9477,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
29925,
12,
2890,
16,
4816,
67,
718,
16,
10488,
67,
768,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
538,
18,
803,
18,
12287,
12,
10488,
67,
768,
3719,
30,
1140,
18,
81,
9477,
... |
if self.mask: | if self.mask!=None: | def _savedata(self, jobname, gid, aid, geneindex, expindex): # Save the clustered data. if self.genename == None: genename = self.geneid else: genename = self.genename (ngenes, nexps) = numpy.shape(self.data) try: outputfile = open(jobname+'.cdt', 'w') except IOError: raise IOError("Unable to open output file") if self... | f0e46c903da5db516162da71235bde40e8d0bd6c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/f0e46c903da5db516162da71235bde40e8d0bd6c/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14077,
396,
12,
2890,
16,
1719,
529,
16,
11399,
16,
20702,
16,
7529,
1615,
16,
1329,
1615,
4672,
468,
7074,
326,
2855,
329,
501,
18,
309,
365,
18,
4507,
1069,
422,
599,
30,
3157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14077,
396,
12,
2890,
16,
1719,
529,
16,
11399,
16,
20702,
16,
7529,
1615,
16,
1329,
1615,
4672,
468,
7074,
326,
2855,
329,
501,
18,
309,
365,
18,
4507,
1069,
422,
599,
30,
3157,
... |
c = self.tk.call(self._w, 'info', 'selection') return self.tk.splitlist(c) | c = self.tk.call(self._w, 'info', 'selection') return self.tk.splitlist(c) | def info_selection(self): | 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,
1123,
67,
10705,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
67,
10705,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.GroupItemFrame.updateGeometry() | def showPlayerWidgets(self, item): self.GroupItemFrame.hide() self.showFixWidgets() for w in self.switchOnType['drop']: w.hide() for w in self.switchOnType['player']: w.show() for i in range(0,item.slotCount()): self.GemLabel[i].setEnabled(1) if item.slot(i).slotType() == 'player': self.GemLabel[i].setText('Gem &%d:' %... | e9cb97a07852b15f89969cefa507f1e097a1c9a8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6671/e9cb97a07852b15f89969cefa507f1e097a1c9a8/ScWindow.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12148,
16166,
12,
2890,
16,
761,
4672,
365,
18,
1114,
1180,
3219,
18,
11248,
1435,
365,
18,
4500,
8585,
16166,
1435,
364,
341,
316,
365,
18,
9610,
1398,
559,
3292,
7285,
3546,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
12148,
16166,
12,
2890,
16,
761,
4672,
365,
18,
1114,
1180,
3219,
18,
11248,
1435,
365,
18,
4500,
8585,
16166,
1435,
364,
341,
316,
365,
18,
9610,
1398,
559,
3292,
7285,
3546,
30,
... | |
def Commit(self): '''Commit pending changes to the system. This method allows for interrelated operations to be executed concurrently''' return | def Install(self): self.modified = [k for (k, v) in self.structures.iteritems() if not v] for entry in [k for (k, v) in self.states.iteritems() if not v]: self.InstallEntry(entry) | 7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11867/7f96b6e6c21e510fb73ea66f3c3e52b21d089e3e/Toolset.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
4672,
365,
18,
7342,
225,
273,
225,
306,
79,
364,
261,
79,
16,
331,
13,
316,
365,
18,
27979,
18,
2165,
3319,
1435,
309,
486,
331,
65,
364,
1241,
316,
306,
79,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10284,
12,
2890,
4672,
365,
18,
7342,
225,
273,
225,
306,
79,
364,
261,
79,
16,
331,
13,
316,
365,
18,
27979,
18,
2165,
3319,
1435,
309,
486,
331,
65,
364,
1241,
316,
306,
79,
364,
... | |
"""Object delete handler.""" | """Object delete handler. I think this is obsoleted by manage_beforeDelete """ | def onDeleteObject(self): """Object delete handler.""" self.unindex_object() | 20adcffda5ca4f0567b09597e585eaf7064daaff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/20adcffda5ca4f0567b09597e585eaf7064daaff/CatalogAwareness.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20468,
921,
12,
2890,
4672,
3536,
921,
1430,
1838,
18,
467,
15507,
333,
353,
7160,
355,
278,
329,
635,
10680,
67,
5771,
2613,
3536,
365,
18,
318,
1615,
67,
1612,
1435,
2,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20468,
921,
12,
2890,
4672,
3536,
921,
1430,
1838,
18,
467,
15507,
333,
353,
7160,
355,
278,
329,
635,
10680,
67,
5771,
2613,
3536,
365,
18,
318,
1615,
67,
1612,
1435,
2,
-100,
-100,
-... |
volname = '"%s %s %s DVD"' % (self.config.get('default', 'product_name'), self.config.get('default', 'version'), self.config.get('default', 'arch')) isoname = '%s-%s-%s-DVD.iso' % (self.config.get('default', 'iso_basename'), self.config.get('default', 'version'), self.config.get('default', 'arch')) | extraargs = [] | def doCreateIsos(self): """Create isos from the various split directories.""" | 4e8d70bf9fa3bbca0112014aab29f696ee748b84 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8489/4e8d70bf9fa3bbca0112014aab29f696ee748b84/pungi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1684,
2520,
538,
12,
2890,
4672,
3536,
1684,
353,
538,
628,
326,
11191,
1416,
6402,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1684,
2520,
538,
12,
2890,
4672,
3536,
1684,
353,
538,
628,
326,
11191,
1416,
6402,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
except TypeError: pass else: raise TestFailed, 'expected TypeError' | except TypeError: pass else: raise TestFailed, 'expected TypeError' | def b(): 'my docstring' pass | 19490fcd3650b91ff20afbec3aad3295d3ad9ccd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/19490fcd3650b91ff20afbec3aad3295d3ad9ccd/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.timer_id == 0: | not self.timer_id: | def on_main_window_window_state_event(self, widget, event): """ Snooze when minimized """ if event.new_window_state.value_nicks == ['iconified'] and \ self.timer_id == 0: self.start_relax_time(self.snooze_length) elif self.timer_id: gobject.source_remove(self.timer_id) self.timer_id = 0 | d25de5dc182aef3a8f97ff6b37b8133bed7aa5af /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2313/d25de5dc182aef3a8f97ff6b37b8133bed7aa5af/quizdrill.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5254,
67,
5668,
67,
5668,
67,
2019,
67,
2575,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
348,
2135,
83,
8489,
1347,
18172,
1235,
3536,
309,
871,
18,
2704,
67,
5668,
67,
2019,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5254,
67,
5668,
67,
5668,
67,
2019,
67,
2575,
12,
2890,
16,
3604,
16,
871,
4672,
3536,
348,
2135,
83,
8489,
1347,
18172,
1235,
3536,
309,
871,
18,
2704,
67,
5668,
67,
2019,
... |
self.prefs_tab.setCurrentPage(0) | self._init_prefs() self.prefs_tab.setCurrentPage(0) | def showDialog(self): '''Display the Preferences dialog''' # This sends a signal to self.setup_current_page(), which will call self._setup_general_page() self.prefs_tab.setCurrentPage(0) self.exec_loop() | 3016e55d3518c88ce00a8f44a8c14be4334433de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/3016e55d3518c88ce00a8f44a8c14be4334433de/UserPrefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
6353,
12,
2890,
4672,
9163,
4236,
326,
28310,
6176,
26418,
468,
1220,
9573,
279,
4277,
358,
365,
18,
8401,
67,
2972,
67,
2433,
9334,
1492,
903,
745,
365,
6315,
8401,
67,
12259,
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,
2405,
6353,
12,
2890,
4672,
9163,
4236,
326,
28310,
6176,
26418,
468,
1220,
9573,
279,
4277,
358,
365,
18,
8401,
67,
2972,
67,
2433,
9334,
1492,
903,
745,
365,
6315,
8401,
67,
12259,
67,... |
self.validate_document(document) | try: self.validate_document(document) except Exception: return defer.fail(failure.Failure()) | def put_document(self, uri, document, check_etag): self.validate_document(document) return self.storage.put_document(uri, document, check_etag) | 91951d550a628e5fe561608f6e9b386e3135d13d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3446/91951d550a628e5fe561608f6e9b386e3135d13d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
5457,
12,
2890,
16,
2003,
16,
1668,
16,
866,
67,
20788,
4672,
775,
30,
365,
18,
5662,
67,
5457,
12,
5457,
13,
1335,
1185,
30,
327,
2220,
18,
6870,
12,
12251,
18,
5247,
1075... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
5457,
12,
2890,
16,
2003,
16,
1668,
16,
866,
67,
20788,
4672,
775,
30,
365,
18,
5662,
67,
5457,
12,
5457,
13,
1335,
1185,
30,
327,
2220,
18,
6870,
12,
12251,
18,
5247,
1075... |
return eval(expr, self.globals, self.locals) | try: return eval(expr, self.globals, self.locals) except: t, v, tb = info = sys.exc_info() raise TALESError("evaluation error in %s" % `expr`, info=sys.exc_info()) | def evaluate(self, expression): m = re.match(r"(?s)(%s):(.*)\Z" % NAME_RE, expression) if m: type, expr = m.group(1, 2) else: type = "var" expr = expression if type == "str": return expr if type == "local": return self.locals[string.strip(expr)] if type == "global": return self.globals[string.strip(expr)] if type == "v... | b27a4c428030f2a4a0260d005b057b59964935e9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b27a4c428030f2a4a0260d005b057b59964935e9/DummyEngine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5956,
12,
2890,
16,
2652,
4672,
312,
273,
283,
18,
1916,
12,
86,
6,
3680,
87,
13,
9275,
87,
4672,
27816,
62,
6,
738,
6048,
67,
862,
16,
2652,
13,
309,
312,
30,
618,
16,
3065,
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,
5956,
12,
2890,
16,
2652,
4672,
312,
273,
283,
18,
1916,
12,
86,
6,
3680,
87,
13,
9275,
87,
4672,
27816,
62,
6,
738,
6048,
67,
862,
16,
2652,
13,
309,
312,
30,
618,
16,
3065,
273,
... |
t['images'] = self._extract_all(track, 'image') | extra_info['images'] = self._extract_all(track, 'image') | def getSimilar(self): """Returns similar tracks for this track on Last.fm, based on listening data. """ params = self._getParams() doc = Request(self, 'track.getSimilar', self.api_key, params).execute() if not doc: return None tracks = doc.getElementsByTagName('track') data = [] for track in tracks: extra_info = {}... | b1ed3eef5bf1b1772c55649009d9222691e97329 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/b1ed3eef5bf1b1772c55649009d9222691e97329/pylast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
381,
5611,
12,
2890,
4672,
3536,
1356,
7281,
13933,
364,
333,
3298,
603,
6825,
18,
25089,
16,
2511,
603,
13895,
501,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
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,
1322,
381,
5611,
12,
2890,
4672,
3536,
1356,
7281,
13933,
364,
333,
3298,
603,
6825,
18,
25089,
16,
2511,
603,
13895,
501,
18,
3536,
225,
859,
273,
365,
6315,
588,
1370,
1435,
997,
273,
... |
bbl = env.src_base + ".bbl" | def __init__ (self, env, dict): """ Initialize the state of the module and register appropriate functions in the main process. """ self.env = env self.msg = env.msg | 9c5450cdf085e5012e7ba2134cc6281f3471b3a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10102/9c5450cdf085e5012e7ba2134cc6281f3471b3a1/bibtex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1550,
16,
2065,
4672,
3536,
9190,
326,
919,
434,
326,
1605,
471,
1744,
5505,
4186,
316,
326,
2774,
1207,
18,
3536,
365,
18,
3074,
273,
1550,
365,
18,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
1550,
16,
2065,
4672,
3536,
9190,
326,
919,
434,
326,
1605,
471,
1744,
5505,
4186,
316,
326,
2774,
1207,
18,
3536,
365,
18,
3074,
273,
1550,
365,
18,
35... | |
M = Matrix(k,r, [a,a+1,1,1,\ 1,a,a+1,1,\ 1,1,a,a+1,\ a+1,1,1,a]) mix_columns = Matrix(k,r*c,r*c) | M = Matrix(k, r, [a, a+1, 1, 1, \ 1, a, a+1, 1, \ 1, 1, a, a+1, \ a+1, 1, 1, a]) mix_columns = Matrix(k, r*c, r*c) | def mix_columns_matrix(self): """ Return the MixColumns matrix. | 26b5b14a2a46b23848ccefac3b41425cf353e86a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/26b5b14a2a46b23848ccefac3b41425cf353e86a/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6843,
67,
5112,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
31043,
3380,
3148,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6843,
67,
5112,
67,
5667,
12,
2890,
4672,
3536,
2000,
326,
31043,
3380,
3148,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.rip_thread = None | self.current_track = -1 | def cd_backup_threaded(self, device, rip_format='mp3'): rip_format = rip_format album = 'default_album' artist = 'default_artist' genre = 'default_genre' dir_audio_default = "dir_audio_default" path_head = '' for media in config.REMOVABLE_MEDIA: media.info.handle_type = 'cdrip' # Get the artist, album and song_names (... | d7ee35cefce69dfd1a61796d184aa6f1a917efcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11399/d7ee35cefce69dfd1a61796d184aa6f1a917efcd/cdbackup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7976,
67,
9572,
67,
451,
20528,
12,
2890,
16,
2346,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
436,
625,
67,
2139,
273,
436,
625,
67,
2139,
14844,
273,
296,
1886,
67,
25090,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7976,
67,
9572,
67,
451,
20528,
12,
2890,
16,
2346,
16,
436,
625,
67,
2139,
2218,
1291,
23,
11,
4672,
436,
625,
67,
2139,
273,
436,
625,
67,
2139,
14844,
273,
296,
1886,
67,
25090,
1... |
help = "download the named campaign as a binary WML packet") | action = "store_true", help = "download as a binary WML packet") | def unpackdir(self, data, path, i = 0, verbose = False): """ Call this to unpack a campaign contained in a WML object to the filesystem. The data parameter is the WML object, path is the path under which it will be placed. """ try: os.mkdir(path) except: pass for f in data.get_all("file"): name = f.get_text_val("name",... | d5862358410a02ed84b06aa5e0cf40e34aa96b92 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/d5862358410a02ed84b06aa5e0cf40e34aa96b92/campaigns_client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
1214,
12,
2890,
16,
501,
16,
589,
16,
277,
273,
374,
16,
3988,
273,
1083,
4672,
3536,
3049,
333,
358,
6167,
279,
8965,
7542,
316,
279,
678,
1495,
733,
358,
326,
6496,
18,
1021,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6167,
1214,
12,
2890,
16,
501,
16,
589,
16,
277,
273,
374,
16,
3988,
273,
1083,
4672,
3536,
3049,
333,
358,
6167,
279,
8965,
7542,
316,
279,
678,
1495,
733,
358,
326,
6496,
18,
1021,
... |
def getHash(self, path=None): """Get the hash of a file. | def getHash(self, path): """Get the hash of a file stored in ``path``. | def getHash(self, path=None): """Get the hash of a file. | 361d706fb93c6fcfa5b6b51bf1f3c7bb3ef05509 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9481/361d706fb93c6fcfa5b6b51bf1f3c7bb3ef05509/cachemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16075,
12,
2890,
16,
589,
33,
7036,
4672,
3536,
967,
326,
1651,
434,
279,
585,
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,
16075,
12,
2890,
16,
589,
33,
7036,
4672,
3536,
967,
326,
1651,
434,
279,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print "trying with failsafe" | def logging_set_from_cfg(cfg, logfile=None): if logfile is None: try: open(def_log_file,"a").close() logfile = def_log_file except IOError as e: if e.errno == errno.EACCES: logfile = "/dev/null" else: raise logcfg=util.get_cfg_option_str(cfg, "log_cfg", "built_in") failsafe = "%s\n%s" % (built_in_log_base, built_in_lo... | 52302e59f4d4b22d35021b17e3803658120cf6d7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4319/52302e59f4d4b22d35021b17e3803658120cf6d7/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2907,
67,
542,
67,
2080,
67,
7066,
12,
7066,
16,
15204,
33,
7036,
4672,
309,
15204,
353,
599,
30,
775,
30,
1696,
12,
536,
67,
1330,
67,
768,
10837,
69,
20387,
4412,
1435,
15204,
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,
2907,
67,
542,
67,
2080,
67,
7066,
12,
7066,
16,
15204,
33,
7036,
4672,
309,
15204,
353,
599,
30,
775,
30,
1696,
12,
536,
67,
1330,
67,
768,
10837,
69,
20387,
4412,
1435,
15204,
273,
... | |
print "\tthe source path will then be "+normpath(self.settings["storedir"]+"/builds/"+self.settings["source_subpath"]+".tar.bz2\n") | print "\tthe source path with then be "+normpath(self.settings["storedir"]+"/builds/"+self.settings["source_subpath"]+".tar.bz2\n") | def set_source_path(self): if self.settings.has_key("SEEDCACHE") and os.path.isdir(normpath(self.settings["storedir"]+"/tmp/"+self.settings["source_subpath"]+"/")): self.settings["source_path"]=normpath(self.settings["storedir"]+"/tmp/"+self.settings["source_subpath"]+"/") else: self.settings["source_path"]=normpath(se... | b7f66fde0b567dda7b377272dd27c4a5e5084032 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7327/b7f66fde0b567dda7b377272dd27c4a5e5084032/generic_stage_target.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
3168,
67,
803,
12,
2890,
4672,
309,
365,
18,
4272,
18,
5332,
67,
856,
2932,
1090,
2056,
8495,
7923,
471,
1140,
18,
803,
18,
291,
1214,
12,
7959,
803,
12,
2890,
18,
4272,
961... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3168,
67,
803,
12,
2890,
4672,
309,
365,
18,
4272,
18,
5332,
67,
856,
2932,
1090,
2056,
8495,
7923,
471,
1140,
18,
803,
18,
291,
1214,
12,
7959,
803,
12,
2890,
18,
4272,
961... |
A map from open_symbol to '(' and close_symbol to ')' and otherwise an error is raised. | A map from ``open_symbol`` to ``'('`` and ``close_symbol`` to ``')'`` and otherwise an error is raised. The values of the constants ``open_symbol`` and ``close_symbol`` are subject to change. This is the inverse map of :func:`replace_parens`. INPUT: - ``x`` -- either ``open_symbol`` or ``close_symbol``. OUTPUT: - I... | def replace_symbols(x): r""" A map from open_symbol to '(' and close_symbol to ')' and otherwise an error is raised. EXAMPLES:: sage: from sage.combinat.dyck_word import replace_symbols sage: replace_symbols(1) '(' sage: replace_symbols(0) ')' sage: replace_symbols(3) Traceback (most recent call last): ... ValueError... | 58987736f0b32e9cfa39285a2b0af054cbaf4453 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/58987736f0b32e9cfa39285a2b0af054cbaf4453/dyck_word.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
15536,
12,
92,
4672,
436,
8395,
432,
852,
628,
12176,
3190,
67,
7175,
10335,
358,
1375,
11294,
2668,
10335,
471,
12176,
4412,
67,
7175,
10335,
358,
1375,
11294,
2506,
10335,
471,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1453,
67,
15536,
12,
92,
4672,
436,
8395,
432,
852,
628,
12176,
3190,
67,
7175,
10335,
358,
1375,
11294,
2668,
10335,
471,
12176,
4412,
67,
7175,
10335,
358,
1375,
11294,
2506,
10335,
471,... |
gLogger.error("Failed to update request","%s %s" % (requestName,res['Message'])) def obtainLFNSURL(self,targetSE,lfn): | gLogger.error( "Failed to update request", "%s %s" % ( requestName, res['Message'] ) ) def obtainLFNSURL( self, targetSE, lfn ): | def execute(self): """ The main agent execution method """ # This allows dynamic changing of the throughput timescale self.throughputTimescale = self.am_getOption('ThroughputTimescale',3600) self.throughputTimescale = 60*60*1 #print 'ThroughputTimescale:',self.throughputTimescale ######################################... | 9005c0a96ba1bc0698c543bcb4c1886f4eeee344 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9005c0a96ba1bc0698c543bcb4c1886f4eeee344/ReplicationScheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
225,
468,
1220,
5360,
5976,
12770,
434,
326,
24677,
1658,
31402,
365,
18,
10064,
458,
10178,
31402,
273,
365,
18,
301,
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,
1836,
12,
2890,
4672,
3536,
1021,
2774,
4040,
4588,
707,
3536,
225,
468,
1220,
5360,
5976,
12770,
434,
326,
24677,
1658,
31402,
365,
18,
10064,
458,
10178,
31402,
273,
365,
18,
301,
67,
... |
for name, value in self.attributes: | for name, value in self.attributes.iteritems(): | def printTree(self, indent): tree = '\n|%s%s' % (' '*indent, str(self)) indent += 2 if self.attributes: # XXX need more than 1 value to unpack?? for name, value in self.attributes: tree += '\n|%s%s="%s"' % (' '*indent, name, value) for child in self.childNodes: tree += child.printTree(indent) return tree | 89bd4ab4d1071c59c25c6895b51c8fe70078e49b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10463/89bd4ab4d1071c59c25c6895b51c8fe70078e49b/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
2471,
12,
2890,
16,
3504,
4672,
2151,
273,
2337,
82,
30574,
87,
9,
87,
11,
738,
7707,
14609,
9355,
16,
609,
12,
2890,
3719,
3504,
1011,
576,
309,
365,
18,
4350,
30,
468,
11329,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
2471,
12,
2890,
16,
3504,
4672,
2151,
273,
2337,
82,
30574,
87,
9,
87,
11,
738,
7707,
14609,
9355,
16,
609,
12,
2890,
3719,
3504,
1011,
576,
309,
365,
18,
4350,
30,
468,
11329,
... |
assert not new_keys, "Unexpectedly missing annotation keys: %s" \ | assert not missing_keys, "Unexpectedly missing annotation keys: %s" \ | def compare_records(old, new) : """Compare two SeqRecord or DBSeqRecord objects""" #Sequence: compare_sequences(old.seq, new.seq) #Basics: assert old.id == new.id assert old.name == new.name assert old.description == new.description assert old.dbxrefs == new.dbxrefs, \ "dbxrefs mismatch\nOld: %s\nNew: %s" \ % (old.dbxr... | 8c685ac9cd9f5857bb497332f3b9feee4e4e418a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/8c685ac9cd9f5857bb497332f3b9feee4e4e418a/test_BioSQL_SeqIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
16,
394,
13,
294,
3536,
8583,
2795,
14367,
2115,
578,
2383,
6926,
2115,
2184,
8395,
468,
4021,
30,
3400,
67,
17190,
12,
1673,
18,
5436,
16,
394,
18,
5436,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
16,
394,
13,
294,
3536,
8583,
2795,
14367,
2115,
578,
2383,
6926,
2115,
2184,
8395,
468,
4021,
30,
3400,
67,
17190,
12,
1673,
18,
5436,
16,
394,
18,
5436,
13,... |
trace(1, depth, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) | self.trace(1, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) | def _pending(self, pending): trans = self._trans changeset = self._changeset locked = self._locked depth = self._depth if traceVerbosity<4: trace(1, depth, "_pending(pw=%f, yw=%f)", (self._pruneweight, self._yieldweight)) else: trace(4, depth, "_pending(%s, pw=%f, yw=%f)", (pending, self._pruneweight, self._yieldweight... | b26ec53d5174d18eebf24ded272ad218fb19d0b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8317/b26ec53d5174d18eebf24ded272ad218fb19d0b4/transaction.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9561,
12,
2890,
16,
4634,
4672,
906,
273,
365,
6315,
2338,
22463,
273,
365,
6315,
6329,
278,
8586,
273,
365,
6315,
15091,
3598,
273,
365,
6315,
5979,
309,
2606,
30594,
32,
24,
30,
... |
if self.count == 1: occurrences = _("Replaced %d occurrence") else: occurrences = _("Replaced %d occurrences") | def OnReplaceAll(self, evt): self.count = 0 self.loop = 0 self.last_cursor = 0 # FIXME: this takes more time than it should, probably because there's # a lot of redundant stuff going on in OnReplace. This should be # rewritten for speed at some point. if hasattr(self.stc, 'showBusy'): self.stc.showBusy(True) wx.Yield... | 03705bce57770bc223a46535658ca64f88939f37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/03705bce57770bc223a46535658ca64f88939f37/find_replace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5729,
1595,
12,
2890,
16,
6324,
4672,
365,
18,
1883,
273,
374,
365,
18,
6498,
273,
374,
365,
18,
2722,
67,
9216,
273,
374,
225,
468,
9852,
30,
333,
5530,
1898,
813,
2353,
518,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
5729,
1595,
12,
2890,
16,
6324,
4672,
365,
18,
1883,
273,
374,
365,
18,
6498,
273,
374,
365,
18,
2722,
67,
9216,
273,
374,
225,
468,
9852,
30,
333,
5530,
1898,
813,
2353,
518,
... | |
def get_HTML_mail(self,name='',build_url=None,waterfall_url=None,failed_step='',status_text='',change=''): | def get_HTML_mail(self,name='',build = None,build_url=None,waterfall_url=None,failed_step='',status_text='',change=''): | def get_HTML_mail(self,name='',build_url=None,waterfall_url=None,failed_step='',status_text='',change=''): files_added = [] files_modified = [] files_renamed = [] files_removed = [] files_added_lbl = '' files_modified_lbl = '' files_renamed_lbl = '' files_removed_lbl = '' branch_link = '' rev_no = change.rev_no if chan... | d09b5709e163d35440f472144fc6a75155c9b191 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12355/d09b5709e163d35440f472144fc6a75155c9b191/mail.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
4870,
67,
4408,
12,
2890,
16,
529,
2218,
2187,
3510,
273,
599,
16,
3510,
67,
718,
33,
7036,
16,
91,
2045,
25602,
67,
718,
33,
7036,
16,
7307,
67,
4119,
2218,
2187,
2327,
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,
4870,
67,
4408,
12,
2890,
16,
529,
2218,
2187,
3510,
273,
599,
16,
3510,
67,
718,
33,
7036,
16,
91,
2045,
25602,
67,
718,
33,
7036,
16,
7307,
67,
4119,
2218,
2187,
2327,
67,... |
sb.appendData(m1) f1 = sb.getOneMessage() | sb.append(m1) f1 = sb.extract_message() | def test_getOneMessage_multi(self): """ Test the handling of multiple concatenated messages by the buffer. """ m1 = 'CONNECT\nsession:207567f3-cce7-4a0a-930b-46fc394dd53d\n\n0123456789\x00\n' m2 = 'SUBSCRIBE\nack:auto\ndestination:/queue/test\n\n\x00SEND\ndestination:/queue/test\n\n\x00' sb = StompFrameBuffer() sb.ap... | d449f708e10a4ccd6e53d9237356e9b70565b11d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10258/d449f708e10a4ccd6e53d9237356e9b70565b11d/test_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
588,
3335,
1079,
67,
7027,
12,
2890,
4672,
3536,
7766,
326,
5057,
434,
3229,
22080,
2743,
635,
326,
1613,
18,
3536,
225,
312,
21,
273,
296,
11032,
64,
2387,
893,
30,
3462,
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,
1842,
67,
588,
3335,
1079,
67,
7027,
12,
2890,
4672,
3536,
7766,
326,
5057,
434,
3229,
22080,
2743,
635,
326,
1613,
18,
3536,
225,
312,
21,
273,
296,
11032,
64,
2387,
893,
30,
3462,
27... |
_na_compiled_base_ext = _config_compiled_base( package, local_path, "_na", "NUMARRAY", numarray_info) config['ext_modules'].append(_na_compiled_base_ext) | ext_args = {} dict_append(ext_args, name=dot_join(package,'_na_compiled_base'), sources = [compiled_base_c], depends = [_compiled_base_c], define_macros = [('NUMARRAY',None)], include_dirs = [local_path] ) dict_append(ext_args,**numarray_info) config['ext_modules'].append(Extension(**ext_args)) | def configuration(parent_package='',parent_path=None): from scipy_distutils.system_info import get_info, dict_append from scipy_distutils.core import Extension from scipy_distutils.misc_util import get_path,default_config_dict,dot_join from scipy_distutils.misc_util import get_path,default_config_dict,\ dot_join,Source... | 94d664637f86a02327efa902bc29b82dec58679c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/94d664637f86a02327efa902bc29b82dec58679c/setup_scipy_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1664,
12,
2938,
67,
5610,
2218,
2187,
2938,
67,
803,
33,
7036,
4672,
628,
10966,
67,
4413,
5471,
18,
4299,
67,
1376,
1930,
336,
67,
1376,
16,
2065,
67,
6923,
628,
10966,
67,
4413,
5471... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1664,
12,
2938,
67,
5610,
2218,
2187,
2938,
67,
803,
33,
7036,
4672,
628,
10966,
67,
4413,
5471,
18,
4299,
67,
1376,
1930,
336,
67,
1376,
16,
2065,
67,
6923,
628,
10966,
67,
4413,
5471... |
lines.append(' & & '.join(parts) + ' \\\\\\\\') | lines.append(middle_sep_header.join(parts) + ' \\\\\\\\') | def __table_top(num_tables, num_answers): l = 'p{3mm}'.join(num_tables * ['|'.join(['r'] + num_answers * ['c'] + [''])]) l = '\\\\begin{tabular}{' + l + '}' lines = ['\\\\begin{center}', '\\large', l] parts = [] for i in range(0, num_tables): parts_internal = [] parts_internal.append('\\multicolumn{1}{c}{}') for j in r... | 3266ab2a5a477efe7497af2db7fa11f3cd2e90d2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12267/3266ab2a5a477efe7497af2db7fa11f3cd2e90d2/exammaker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2121,
67,
3669,
12,
2107,
67,
9373,
16,
818,
67,
22340,
4672,
328,
273,
296,
84,
95,
23,
7020,
1713,
18,
5701,
12,
2107,
67,
9373,
380,
10228,
96,
10332,
5701,
12,
3292,
86,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2121,
67,
3669,
12,
2107,
67,
9373,
16,
818,
67,
22340,
4672,
328,
273,
296,
84,
95,
23,
7020,
1713,
18,
5701,
12,
2107,
67,
9373,
380,
10228,
96,
10332,
5701,
12,
3292,
86,
35... |
gLogger.error(errStr,res['Message']) return res failed.update(res['Value']['Failed']) successful.update(res['Value']['Successful']) resDict = {'Successful':successful,'Failed':failed} | gLogger.error( errStr, res['Message'] ) return res failed.update( res['Value']['Failed'] ) successful.update( res['Value']['Successful'] ) resDict = {'Successful':successful, 'Failed':failed} | def removeFile(self,lfn): """ Remove the file (all replicas) from Storage Elements and file catalogue | 9fabceb719d19d46d8b75011d2932552dbe360f9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/9fabceb719d19d46d8b75011d2932552dbe360f9/ReplicaManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
812,
12,
2890,
16,
80,
4293,
4672,
3536,
3581,
326,
585,
261,
454,
21545,
13,
628,
5235,
17219,
471,
585,
20833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
812,
12,
2890,
16,
80,
4293,
4672,
3536,
3581,
326,
585,
261,
454,
21545,
13,
628,
5235,
17219,
471,
585,
20833,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print cleaned | def nonstandard(f): expr = f['override'] id = f['id'] visible = bool(f.get('visible', False)) return expr != '' or visible != DEFAULTS.get(id, False) | aa2682c5315eb59f99481dc72f72e9d8ec6bc38c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10193/aa2682c5315eb59f99481dc72f72e9d8ec6bc38c/plonelibrarytool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
10005,
12,
74,
4672,
3065,
273,
284,
3292,
10601,
3546,
612,
273,
284,
3292,
350,
3546,
6021,
273,
1426,
12,
74,
18,
588,
2668,
8613,
2187,
1083,
3719,
327,
3065,
480,
875,
578,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1661,
10005,
12,
74,
4672,
3065,
273,
284,
3292,
10601,
3546,
612,
273,
284,
3292,
350,
3546,
6021,
273,
1426,
12,
74,
18,
588,
2668,
8613,
2187,
1083,
3719,
327,
3065,
480,
875,
578,
... | |
account=None, view=None): | account=None, view=None, modal=True): | def __init__(self, parent, title, size=wx.DefaultSize, pos=wx.DefaultPosition, style=wx.DEFAULT_DIALOG_STYLE, resources=None, account=None, view=None): | f34ba7645a5a3930a3739b0ca00bdc46fb10715e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/f34ba7645a5a3930a3739b0ca00bdc46fb10715e/AccountPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
2565,
18683,
67,
15066,
16,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
2077,
16,
963,
33,
27226,
18,
1868,
1225,
16,
949,
33,
27226,
18,
1868,
2555,
16,
2154,
33,
27226,
18,
5280,
67,
2565,
18683,
67,
15066,
16,
2... |
else: if not self.fault_tolerance: raise InvalidMLoadPropException(MLOAD_EMPTY_LIST) | else: if not self.fault_tolerance: raise InvalidMLoadPropException(MLOAD_EMPTY_LIST) | def execute_load(self) # Perform validation to ensure that we didn't end up invalid # parameters if self.path_list is not list: raise InvalidMLoadPropException(MLOAD_NOT_LIST) # Only perform an actual import if we have a non-zero list if len(self.path_list) is not 0: # Perform validation of the content of the path_lis... | 75dbf626c3b697e568752995866893479a555cae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/75dbf626c3b697e568752995866893479a555cae/moduleloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
945,
12,
2890,
13,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
365,
18,
803,
67,
1098,
353,
486,
666,
30,
1002,
1962,
1495,
6189,
4658... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1836,
67,
945,
12,
2890,
13,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
365,
18,
803,
67,
1098,
353,
486,
666,
30,
1002,
1962,
1495,
6189,
4658... |
<?php include( '/home/groups/a/ar/aros/htdocs/rsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" | <?php include( '/home/groups/a/ar/aros/htdocs/rsfeed/browserdetect.php'); $win_ie56 = (browser_detection('browser') == 'ie' ) && (browser_detection('number') >= 5 ) && (browser_detection('number') < 7 ); if ($win_ie56) { echo \"<img src=\\"/images/kittymascot.gif\\" | def makePage( _T, _N, _M, MIRRORS_DATA, lang, charset ): navigation = Tree \ ( [ P ( contents = [ Img( src = '/images/pointer.png' ), A( _N['home'], href=makeURL( '', lang ))] ), Tree \ ( [ P ( contents = [ Img( src = '/images/englishlogo.png' ), A( 'English', href='%(BASE)s' )]), P ( contents = [ Img( src = '/images/g... | 846194f3836b7e3473a516c54c1f17757297aebf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4747/846194f3836b7e3473a516c54c1f17757297aebf/page.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1964,
12,
389,
56,
16,
389,
50,
16,
389,
49,
16,
490,
7937,
2784,
55,
67,
4883,
16,
3303,
16,
4856,
262,
30,
10394,
273,
4902,
521,
261,
306,
453,
261,
2939,
273,
306,
2221,
... |
return true | return True | def OnMouseEvent (self, event): x, y = event.GetPositionTuple() x, y = self.CalcUnscrolledPosition (x, y) for drawableObject in self.zOrderedDrawableObjects: if drawableObject.bounds.Inside ((x, y)): event.m_x = x - drawableObject.bounds.GetX() event.m_y = y - drawableObject.bounds.GetY() if drawableObject.ProcessEvent... | c0cecfcb7704c0cc4c05de4b417e49f03bc3a0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/c0cecfcb7704c0cc4c05de4b417e49f03bc3a0f8/SimpleCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
9186,
1133,
261,
2890,
16,
871,
4672,
619,
16,
677,
273,
871,
18,
967,
2555,
9038,
1435,
619,
16,
677,
273,
365,
18,
25779,
984,
1017,
25054,
2555,
261,
92,
16,
677,
13,
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,
2755,
9186,
1133,
261,
2890,
16,
871,
4672,
619,
16,
677,
273,
871,
18,
967,
2555,
9038,
1435,
619,
16,
677,
273,
365,
18,
25779,
984,
1017,
25054,
2555,
261,
92,
16,
677,
13,
364,
1... |
strides : array_like(?), optional | strides : array_like, optional | def isdecimal(a): """ For each element in `a`, return True if there are only decimal characters in the element. Calls `unicode.isdecimal` element-wise. Decimal characters include digit characters, and all characters that that can be used to form decimal-radix numbers, e.g. ``U+0660, ARABIC-INDIC DIGIT ZERO``. Parame... | 05324d0e986a1012a342e2650b3883e13a285029 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14925/05324d0e986a1012a342e2650b3883e13a285029/defchararray.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
12586,
12,
69,
4672,
3536,
2457,
1517,
930,
316,
1375,
69,
9191,
327,
1053,
309,
1915,
854,
1338,
6970,
3949,
316,
326,
930,
18,
225,
23665,
1375,
9124,
18,
291,
12586,
68,
930,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
12586,
12,
69,
4672,
3536,
2457,
1517,
930,
316,
1375,
69,
9191,
327,
1053,
309,
1915,
854,
1338,
6970,
3949,
316,
326,
930,
18,
225,
23665,
1375,
9124,
18,
291,
12586,
68,
930,
1... |
wx.CallAfter(self._job.jobout.startupFailureCallback, msg) | wx.CallAfter(self._job.jobout.startupFailureCallback, self._job, err) | def run(self): """Run the process until finished or aborted. Don't call this directly instead call self.start() to start the thread else this will run in the context of the current thread. @note: overridden from Thread | a93e25bf540182b88282813a53eb40a70e1d8e9a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11522/a93e25bf540182b88282813a53eb40a70e1d8e9a/processmanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
1207,
3180,
6708,
578,
18166,
18,
7615,
1404,
745,
333,
5122,
3560,
745,
365,
18,
1937,
1435,
358,
787,
326,
2650,
469,
333,
903,
1086,
316,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1997,
326,
1207,
3180,
6708,
578,
18166,
18,
7615,
1404,
745,
333,
5122,
3560,
745,
365,
18,
1937,
1435,
358,
787,
326,
2650,
469,
333,
903,
1086,
316,
326,
... |
h = h * 2 - 2 else: w = w * 2 - 2 | h = h + 4 else: w = w + 4 | def double_surface(self, surface, direction = 'h'): w = surface.get_width() h = surface.get_height() # Make a background almost twice as wide or high # as the surface depending on panel orientation. if direction == 'v': h = h * 2 - 2 else: w = w * 2 - 2 bg = cairo.ImageSurface(cairo.FORMAT_ARGB32, w, h) ctx = cairo.Con... | a6f62e4a0e51725e0a3458a686cf8db3a1a3f6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7075/a6f62e4a0e51725e0a3458a686cf8db3a1a3f6a0/dockbarx.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1645,
67,
18266,
12,
2890,
16,
9034,
16,
4068,
273,
296,
76,
11,
4672,
341,
273,
9034,
18,
588,
67,
2819,
1435,
366,
273,
9034,
18,
588,
67,
4210,
1435,
468,
4344,
279,
5412,
23889,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1645,
67,
18266,
12,
2890,
16,
9034,
16,
4068,
273,
296,
76,
11,
4672,
341,
273,
9034,
18,
588,
67,
2819,
1435,
366,
273,
9034,
18,
588,
67,
4210,
1435,
468,
4344,
279,
5412,
23889,
... |
ntuple_comparefunc = lambda events, offset_vector: False, | ntuple_comparefunc = default_ntuple_comparefunc, | def ligolw_thinca( xmldoc, process_id, EventListType, CoincTables, coinc_definer_row, event_comparefunc, thresholds, ntuple_comparefunc = lambda events, offset_vector: False, effective_snr_factor = 250.0, veto_segments = None, trigger_program = u"inspiral", verbose = False | cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/cbadb7f11bf2cc6d45cf04488cf5e6d88f2e7555/ligolw_thinca.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16917,
355,
91,
67,
451,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
16917,
355,
91,
67,
451,
267,
5353,
12,
2025,
2434,
16,
1207,
67,
350,
16,
2587,
19366,
16,
28932,
71,
6905,
16,
13170,
71,
67,
5649,
264,
67,
492,
16,
871,
67,
9877,
644,
16,
19983,... |
if __name__ == "__main__": __builtins__._ = None else: __builtins__['_'] = None | import builtins builtins._ = None | def run(self, test, compileflags=None, out=None, clear_globs=True): """ Run the examples in `test`, and display the results using the writer function `out`. | 0651d6a5e4f5408cf5a0cc997b02f8037e02c04c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/0651d6a5e4f5408cf5a0cc997b02f8037e02c04c/doctest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
16,
4074,
7133,
33,
7036,
16,
596,
33,
7036,
16,
2424,
67,
10581,
87,
33,
5510,
4672,
3536,
1939,
326,
10991,
316,
1375,
3813,
9191,
471,
2562,
326,
1686,
145... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
16,
1842,
16,
4074,
7133,
33,
7036,
16,
596,
33,
7036,
16,
2424,
67,
10581,
87,
33,
5510,
4672,
3536,
1939,
326,
10991,
316,
1375,
3813,
9191,
471,
2562,
326,
1686,
145... |
private_var_docs = doc.select_variables(group=None, imported=False, value_type=value_type, public=False) if private_var_docs: out('<div class="private">\n') self.write_table_header(out, "summary continue") self.write_group_header(out, 'Private %s' % heading, "group continue") self.write_summary_line(out, private_v... | out('\n<br />\n') def write_summary_group(self, out, doc, name, var_docs, grouped_inh_vars): listed_inh_vars = {} normal_vars = [] for i in range(len(var_docs)-1, -1, -1): vardoc = var_docs[i] if vardoc.is_inherited == True: base = vardoc.container if (base not in self.docindex.contained_valdocs or self._inherita... | def write_summary_table(self, out, heading, doc, value_type): """ Generate HTML code for a summary table, and write it to C{out}. A summary table is a table that includes a one-row description for each variable (of a given type) in a module or class. | 2e826daab46d77983d35e6a38ceacf1289828f6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/2e826daab46d77983d35e6a38ceacf1289828f6b/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7687,
67,
2121,
12,
2890,
16,
596,
16,
11053,
16,
997,
16,
460,
67,
723,
4672,
3536,
6654,
3982,
981,
364,
279,
4916,
1014,
16,
471,
1045,
518,
358,
385,
95,
659,
5496,
225... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
7687,
67,
2121,
12,
2890,
16,
596,
16,
11053,
16,
997,
16,
460,
67,
723,
4672,
3536,
6654,
3982,
981,
364,
279,
4916,
1014,
16,
471,
1045,
518,
358,
385,
95,
659,
5496,
225... |
axis = 0 | ndim = arr.ndim axis = ndim-1 | def insertinto(arr, obj, values, axis=None): """Return a new array with values inserted along the given axis before the given indices If axis is None, then ravel the array first. The obj argument can be an integer, a slice, or a sequence of integers. Example: >>> a = array([[1,2,3], [4,5,6], [7,8,9]]) >>> insertint... | 307b1cf34928495500aec4650e8dd6497fdc205c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/307b1cf34928495500aec4650e8dd6497fdc205c/function_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
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,
2243,
18591,
12,
5399,
16,
1081,
16,
924,
16,
2654,
33,
7036,
4672,
3536,
990,
279,
394,
526,
598,
924,
9564,
7563,
326,
864,
2654,
1865,
326,
864,
4295,
225,
971,
2654,
353,
599,
16,
... |
ratio = 0.0 | ratio = 1.0 | def apply(self, _, download_state, storage): # No Bittorrent leeching (minimal ratio of 1.0) ul = storage["total_up"] + download_state.get_total_transferred(UPLOAD) dl = storage["total_down"] + download_state.get_total_transferred(DOWNLOAD) | 4989c503eec8351e86456eb91048dabc86e37d9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9686/4989c503eec8351e86456eb91048dabc86e37d9d/SeedingManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
12,
2890,
16,
389,
16,
4224,
67,
2019,
16,
2502,
4672,
468,
2631,
6539,
13039,
547,
884,
8987,
310,
261,
1154,
2840,
7169,
434,
404,
18,
20,
13,
7493,
273,
2502,
9614,
4963,
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,
2230,
12,
2890,
16,
389,
16,
4224,
67,
2019,
16,
2502,
4672,
468,
2631,
6539,
13039,
547,
884,
8987,
310,
261,
1154,
2840,
7169,
434,
404,
18,
20,
13,
7493,
273,
2502,
9614,
4963,
67,
... |
return maxMatchExp.parse( instring, loc, doActions ) | return maxMatchExp._parse( instring, loc, doActions ) | def parseImpl( self, instring, loc, doActions=True ): maxExcLoc = -1 maxMatchLoc = -1 for e in self.exprs: try: loc2 = e.tryParse( instring, loc ) except ParseException, err: if err.loc > maxExcLoc: maxException = err maxExcLoc = err.loc except IndexError, err: if len(instring) > maxExcLoc: maxException = ParseExceptio... | 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,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
943,
29924,
1333,
273,
300,
21,
943,
2060,
1333,
273,
300,
21,
364,
425,
316,
365,
18,
8638,
87,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
2828,
12,
365,
16,
316,
1080,
16,
1515,
16,
741,
6100,
33,
5510,
262,
30,
943,
29924,
1333,
273,
300,
21,
943,
2060,
1333,
273,
300,
21,
364,
425,
316,
365,
18,
8638,
87,
30,
... |
def print_statistics(): """ Print overall statistics (number of errors and warnings of each type) """ keys = options.counters.keys() | def get_error_statistics(): """Get error statistics.""" return get_statistics("E") def get_warning_statistics(): """Get warning statistics.""" return get_statistics("W") def get_statistics(prefix=''): """ Get statistics for message codes that start with the prefix. prefix='' matches all errors and warnings prefix=... | def print_statistics(): """ Print overall statistics (number of errors and warnings of each type) """ keys = options.counters.keys() keys.sort() for key in keys: if key[0] in 'EW': print '%-7s %s %s' % (options.counters[key], key, options.messages[key]) | 7d24b8c207c8a4475da4b7cb1bb74c8c615b5cd0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3111/7d24b8c207c8a4475da4b7cb1bb74c8c615b5cd0/pep8.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1636,
67,
14438,
13332,
3536,
967,
555,
7691,
12123,
327,
336,
67,
14438,
2932,
41,
7923,
282,
1652,
336,
67,
8551,
67,
14438,
13332,
3536,
967,
3436,
7691,
12123,
327,
336,
67,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1636,
67,
14438,
13332,
3536,
967,
555,
7691,
12123,
327,
336,
67,
14438,
2932,
41,
7923,
282,
1652,
336,
67,
8551,
67,
14438,
13332,
3536,
967,
3436,
7691,
12123,
327,
336,
67,... |
import pdb;pdb.set_trace() vW1 = rng.rand(20,30) vW2 = rng.rand(30,20) | def test_shared_arguments_with_updates(self): rng = numpy.random.RandomState(utt.fetch_seed()) | c6369ea7d8475ea630da8b2a13e6c5ea004cc3b5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12438/c6369ea7d8475ea630da8b2a13e6c5ea004cc3b5/test_scan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11574,
67,
7099,
67,
1918,
67,
14703,
12,
2890,
4672,
11418,
273,
3972,
18,
9188,
18,
8529,
1119,
12,
322,
88,
18,
5754,
67,
12407,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
11574,
67,
7099,
67,
1918,
67,
14703,
12,
2890,
4672,
11418,
273,
3972,
18,
9188,
18,
8529,
1119,
12,
322,
88,
18,
5754,
67,
12407,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-1... | |
if sys.platform == 'win32': foo = 'foo.exe' else: foo = 'foo' test.run(arguments = "--debug=tree " + foo) | test.run(arguments = "--debug=tree foo.xxx") | #ifndef BAR_H | 3b7ff720042f1b4863f7d386963392c0698b4cbf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/3b7ff720042f1b4863f7d386963392c0698b4cbf/option--debug.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
605,
985,
67,
44,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
82,
536,
605,
985,
67,
44,
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,
-1... |
""" | def _setupLightsAndFog(self): dlight = DirectionalLight('dlight') alight = AmbientLight('alight') dlnp = self._rootNode.attachNewNode(dlight) alnp = self._rootNode.attachNewNode(alight) dlight.setColor(Vec4(0.7, 0.7, 0.6, 1)) alight.setColor(Vec4(0.2, 0.2, 0.2, 1)) dlnp.setHpr(0, -60, 0) #self._rootNode.setLight(dlnp) ... | 0148cb9d545388dfde9673a0adca0dbe2c9a532c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/0148cb9d545388dfde9673a0adca0dbe2c9a532c/view.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8401,
48,
10730,
1876,
42,
717,
12,
2890,
4672,
302,
5099,
273,
15280,
287,
12128,
2668,
72,
5099,
6134,
524,
750,
273,
432,
1627,
1979,
12128,
2668,
287,
750,
6134,
302,
2370,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8401,
48,
10730,
1876,
42,
717,
12,
2890,
4672,
302,
5099,
273,
15280,
287,
12128,
2668,
72,
5099,
6134,
524,
750,
273,
432,
1627,
1979,
12128,
2668,
287,
750,
6134,
302,
2370,
84,
... | |
ip_dir = get_special_folder_path('CSIDL_COMMON_PROGRAMS') + r'\XPAXS' lib_dir = prefix+'\Lib\site-packages\XPaXS' | ip_dir = get_special_folder_path('CSIDL_COMMON_PROGRAMS') + r'\XPaXS' lib_dir = prefix+'\Lib\site-packages\xpaxs' | def install(): """Routine to be run by the win32 installer with the -install switch.""" | 03140fe2505a8cc5959007c46612aade9f119056 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14949/03140fe2505a8cc5959007c46612aade9f119056/xpaxs_win_post_install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
13332,
3536,
4583,
558,
358,
506,
1086,
635,
326,
5657,
1578,
16050,
598,
326,
300,
5425,
1620,
12123,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
13332,
3536,
4583,
558,
358,
506,
1086,
635,
326,
5657,
1578,
16050,
598,
326,
300,
5425,
1620,
12123,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.