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 |
|---|---|---|---|---|---|---|
to the third bit of the output 6 out of 8 times.:: | to the third bit of the output 6 out of 8 times:: | def linear_approximation_matrix(self): """ Return linear approximation matrix ``A`` for this S-box. | 477dd177cfc24bbd1f5de4ffc4b6909b2a017982 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/477dd177cfc24bbd1f5de4ffc4b6909b2a017982/sbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9103,
67,
26742,
5115,
67,
5667,
12,
2890,
4672,
3536,
2000,
9103,
24769,
3148,
12176,
37,
10335,
364,
333,
348,
17,
2147,
18,
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,
0,
0,
0,
0,
0,
0,
0,
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,
9103,
67,
26742,
5115,
67,
5667,
12,
2890,
4672,
3536,
2000,
9103,
24769,
3148,
12176,
37,
10335,
364,
333,
348,
17,
2147,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
return 0 | return Polynomial(0, self.ring()) | def monom_div_new(self, arg): try: return monom_div_old(self,arg) except: return 0 | 4af42afc8140a3273a631d34833125429d1cd5ca /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2046/4af42afc8140a3273a631d34833125429d1cd5ca/PyPolyBoRi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
4708,
67,
2892,
67,
2704,
12,
2890,
16,
1501,
4672,
775,
30,
327,
312,
4708,
67,
2892,
67,
1673,
12,
2890,
16,
3175,
13,
1335,
30,
327,
6730,
13602,
12,
20,
16,
365,
18,
8022,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
312,
4708,
67,
2892,
67,
2704,
12,
2890,
16,
1501,
4672,
775,
30,
327,
312,
4708,
67,
2892,
67,
1673,
12,
2890,
16,
3175,
13,
1335,
30,
327,
6730,
13602,
12,
20,
16,
365,
18,
8022,
... |
def __init__(self, pyfile, close_flag=1): BIO.__init__(self) self.pyfile=pyfile self.close_flag=close_flag self.bio=m2.bio_new_fp(pyfile, close_flag) | def __init__(self, pyfile, close_flag=0): BIO.__init__(self) self.pyfile=pyfile self.close_flag=close_flag self.bio=m2.bio_new_fp(pyfile, 0) | def __init__(self, pyfile, close_flag=1): BIO.__init__(self) self.pyfile=pyfile self.close_flag=close_flag self.bio=m2.bio_new_fp(pyfile, close_flag) | 52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2395,
768,
16,
1746,
67,
6420,
33,
21,
4672,
605,
4294,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2074,
768,
33,
2074,
768,
365,
18,
4412,
67,
6420,
33,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2395,
768,
16,
1746,
67,
6420,
33,
21,
4672,
605,
4294,
16186,
2738,
972,
12,
2890,
13,
365,
18,
2074,
768,
33,
2074,
768,
365,
18,
4412,
67,
6420,
33,... |
def _handle_long_word(self, chunks, cur_line, cur_len, width): | def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width): | def _handle_long_word(self, chunks, cur_line, cur_len, width): """_handle_long_word(chunks : [string], cur_line : [string], cur_len : int, width : int) | dc2b58fec1136c01f1e1810f095012c92e0fed82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/dc2b58fec1136c01f1e1810f095012c92e0fed82/textwrap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
9553,
67,
14691,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
648... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
389,
4110,
67,
5748,
67,
1095,
12,
2890,
16,
9553,
67,
14691,
16,
662,
67,
1369,
16,
662,
67,
1897,
16,
1835,
4672,
3536,
67,
4110,
67,
5748,
67,
1095,
12,
14691,
294,
306,
1080,
648... |
1.73205080757 | 1.73205080756888 | def kloosterman_sum_numerical(self, prec=53, a=1,b=0): r""" Return the Kloosterman sum associated to this Dirichlet character as an approximate complex number with prec bits of precision. See also :meth:`.kloosterman_sum`, which calculates the sum exactly (which is generally slower). INPUT: | fe5eb625c518c2e94cb3e25fd25360a1bec013e2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/fe5eb625c518c2e94cb3e25fd25360a1bec013e2/dirichlet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
383,
669,
29650,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
16,
70,
33,
20,
4672,
436,
8395,
2000,
326,
1475,
383,
669,
29650,
2142,
3627,
358,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
417,
383,
669,
29650,
67,
1364,
67,
2107,
10882,
12,
2890,
16,
13382,
33,
8643,
16,
279,
33,
21,
16,
70,
33,
20,
4672,
436,
8395,
2000,
326,
1475,
383,
669,
29650,
2142,
3627,
358,
3... |
while len(line) == 77: | while line.strip(): | def parse(self, fupdate=0.05, cupdate=0.002): """Extract information from the logfile.""" inputfile = open(self.filename, "r") if self.progress: inputfile.seek(0, 2) #go to end of file nstep = inputfile.tell() inputfile.seek(0) self.progress.initialize(nstep) oldstep = 0 # Used to avoid extracting the final geometry... | 6eed6b36cf50cbf699c75cf7ec38042e0e0cd1ad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8167/6eed6b36cf50cbf699c75cf7ec38042e0e0cd1ad/adfparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
284,
2725,
33,
20,
18,
6260,
16,
276,
2725,
33,
20,
18,
24908,
4672,
3536,
4976,
1779,
628,
326,
15204,
12123,
810,
768,
273,
1696,
12,
2890,
18,
3459,
16,
315,
8... |
head = """// file: %s\n// dealer: %s\n// programmer: %s\n// hint: %s\n\ndigraph {"""%( header['file'],header['dealer'],header['programer'],header['hint']) tail = """}""" dot_file = [head] | dot_file = [make_head(header)] | def make_dot_merged(header, signals, modules): head = """// file: %s\n// dealer: %s\n// programmer: %s\n// hint: %s\n\ndigraph {"""%( header['file'],header['dealer'],header['programer'],header['hint']) tail = """}""" dot_file = [head] limit_mods = filter(lambda m: adv_len(modules[m]['ins']) or adv_len(modules[m]['outs... | 92d449070c08914a89e0b20421f4ac4b4b3bf017 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/280/92d449070c08914a89e0b20421f4ac4b4b3bf017/smw2dot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9811,
67,
15459,
12,
3374,
16,
11505,
16,
4381,
4672,
3928,
67,
768,
273,
306,
6540,
67,
1978,
12,
3374,
25887,
225,
1800,
67,
22760,
273,
1034,
12,
14661,
312,
30,
17825,
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,
1221,
67,
9811,
67,
15459,
12,
3374,
16,
11505,
16,
4381,
4672,
3928,
67,
768,
273,
306,
6540,
67,
1978,
12,
3374,
25887,
225,
1800,
67,
22760,
273,
1034,
12,
14661,
312,
30,
17825,
67... |
if type == 1: return P if type == 2: return P/(1-2*T+2*T**2) if type == 3: return P/(1+3*T**2) if type == 4: return P/(1+2*T) | if type == 1: P0 = P if type == 2: P0 = P/(1-2*T+2*T**2) if type == 3: P0 = P/(1+3*T**2) if type == 4: P0 = P/(1+2*T) return P0/P0(1) | def sd_zeta_polynomial(C,type=1): r""" Returns the Duursma zeta function of a self-dual code using the construction in [D]. | 9005e498622af4f09705105eda4bce91268793cf /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/9005e498622af4f09705105eda4bce91268793cf/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
31... |
self.__threads = {} | def ChangePage(self, pagenr=1, size=None): self.__page = page = self.__pdf.getPage(pagenr) self.__Reload() | def __init__(self): self.__doc = Document() | fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5722/fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2434,
273,
4319,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2434,
273,
4319,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.preffilepath = ":Python:PythonIDE preferences" | self.preffilepath = os.path.join("Python", "PythonIDE preferences") | def __init__(self): self.preffilepath = ":Python:PythonIDE preferences" Wapplication.Application.__init__(self, 'Pide') from Carbon import AE from Carbon import AppleEvents AE.AEInstallEventHandler(AppleEvents.kCoreEventClass, AppleEvents.kAEOpenApplication, self.ignoreevent) AE.AEInstallEventHandler(AppleEvents.kCore... | 979c53757b5a555725bfab5ee65cfb00b763b46b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/979c53757b5a555725bfab5ee65cfb00b763b46b/PythonIDEMain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25724,
10561,
273,
1140,
18,
803,
18,
5701,
2932,
15774,
3113,
315,
15774,
10385,
12750,
7923,
678,
3685,
18,
3208,
16186,
2738,
972,
12,
2890,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25724,
10561,
273,
1140,
18,
803,
18,
5701,
2932,
15774,
3113,
315,
15774,
10385,
12750,
7923,
678,
3685,
18,
3208,
16186,
2738,
972,
12,
2890,
... |
image_data.SetSpacing(spacing, spacing, dicom.image.spacing[2]) | spacing = dicom.image.spacing image_data.SetSpacing(spacing) | def LoadImages(dir_): # TODO!!! SUPER GAMBIARRA!!! DO THIS BETTER if 0: fow = vtk.vtkFileOutputWindow() fow.SetFileName('vtk_output.txt') ow = vtk.vtkOutputWindow () ow.SetInstance (fow) dcm_files, acquisition_modality = GetDicomFiles(dir_) dcm_series = dicom_grouper.DicomGroups() dcm_series.SetFileList(dcm_files) ... | fa852f10be79677d251c7bdf21ae0ed05547b12b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10228/fa852f10be79677d251c7bdf21ae0ed05547b12b/dicom_reader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8946,
12,
1214,
67,
4672,
468,
225,
2660,
25885,
16459,
654,
611,
2192,
31558,
985,
2849,
25885,
5467,
20676,
9722,
11976,
225,
309,
374,
30,
284,
543,
273,
13659,
18,
11734,
79,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8946,
12,
1214,
67,
4672,
468,
225,
2660,
25885,
16459,
654,
611,
2192,
31558,
985,
2849,
25885,
5467,
20676,
9722,
11976,
225,
309,
374,
30,
284,
543,
273,
13659,
18,
11734,
79,
8... |
.. warning:: Calculations are done to double precision, and the output is a complex double element, no matter how big the precision of the input is. | def Ei(z): """ Return the value of the complex exponential integral Ei(z) at a complex number z. .. warning:: Calculations are done to double precision, and the output is a complex double element, no matter how big the precision of the input is. EXAMPLES:: sage: Ei(10) 2492.22897624 sage: Ei(I) 0.337403922901 + 2.5... | 0016d905ae9942ddf6d29c45616a626159148357 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9417/0016d905ae9942ddf6d29c45616a626159148357/transcendental.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
512,
77,
12,
94,
4672,
3536,
2000,
326,
460,
434,
326,
7233,
21774,
21423,
512,
77,
12,
94,
13,
622,
279,
7233,
1300,
998,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
512,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
512,
77,
12,
94,
4672,
3536,
2000,
326,
460,
434,
326,
7233,
21774,
21423,
512,
77,
12,
94,
13,
622,
279,
7233,
1300,
998,
18,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
512,
7... | |
'lines_ids': [(0,0,{ | 'line_ids': [(0,0,{ | def make_po(self, cr, uid, ids, context={}): sequence_obj=self.pool.get('ir.sequence') res = super(mrp_procurement, self).make_po(cr, uid, ids, context) for proc_id,po_id in res.items(): procurement = self.browse(cr, uid, proc_id) if procurement.product_id.purchase_requisition: self.pool.get('purchase.requisition').cre... | 46d953d66031826f0f50781dc8e93ba1efcb2bc5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/46d953d66031826f0f50781dc8e93ba1efcb2bc5/purchase_requisition.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1631,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3102,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
481,
18,
6178,
6134,
400,
273,
2240,
12,
81,
13832,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
1631,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
3102,
67,
2603,
33,
2890,
18,
6011,
18,
588,
2668,
481,
18,
6178,
6134,
400,
273,
2240,
12,
81,
13832,
6... |
res = RecapDecompose(m) | res = RecapDecompose(m,onlyUseReactions=[1]) | def testAmideRxn(self): m = Chem.MolFromSmiles('C1CC1C(=O)NC1OC1') res = RecapDecompose(m) self.failUnless(res) self.failUnless(len(res.GetLeaves())==2) ks = res.GetLeaves().keys() self.failUnless('[*]C(=O)C1CC1' in ks) self.failUnless('[*]NC1CO1' in ks) m = Chem.MolFromSmiles('C1CC1C(=O)N(C)C1OC1') res = RecapDecompo... | e793cf1d5a1abc952de6d7bd7feb70328e8a57c4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9195/e793cf1d5a1abc952de6d7bd7feb70328e8a57c4/Recap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
9864,
831,
54,
22695,
12,
2890,
4672,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
21,
39,
12,
33,
51,
13,
10346,
21,
10809,
21,
6134,
400,
273,
868,
590... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9864,
831,
54,
22695,
12,
2890,
4672,
312,
273,
26542,
18,
49,
355,
1265,
9552,
1449,
2668,
39,
21,
6743,
21,
39,
12,
33,
51,
13,
10346,
21,
10809,
21,
6134,
400,
273,
868,
590... |
try: argcount = self.on_connect.fun_code.co_argcount except RuntimeError: argcount = 2 except AttributeError: argcount = 2 | argcount = self.on_connect.func_code.co_argcount | def _internal_on_connect(self, obj, rc): if self.on_connect: try: argcount = self.on_connect.fun_code.co_argcount except RuntimeError: argcount = 2 except AttributeError: argcount = 2 | a0f44fd30517173ca11b05e244c4e6ae92e1b767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5736/a0f44fd30517173ca11b05e244c4e6ae92e1b767/mosquitto.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7236,
67,
265,
67,
3612,
12,
2890,
16,
1081,
16,
4519,
4672,
309,
365,
18,
265,
67,
3612,
30,
775,
30,
1501,
1883,
273,
365,
18,
265,
67,
3612,
18,
12125,
67,
710,
18,
2894,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7236,
67,
265,
67,
3612,
12,
2890,
16,
1081,
16,
4519,
4672,
309,
365,
18,
265,
67,
3612,
30,
775,
30,
1501,
1883,
273,
365,
18,
265,
67,
3612,
18,
12125,
67,
710,
18,
2894,
6... |
GWYDDION_PATH = "d:\\gwyddion-2.8\\inst\\" | def get_uninstall_line(filename, prefix): if os.path.isdir(filename): return ' RmDir "$INSTDIR\\'+filename.replace(prefix, "", 1)+'"\n' else: return ' Delete "$INSTDIR\\'+filename.replace(prefix, "", 1)+'"\n' | 20508ec0ac349eae5b3270fb6c757ef4bb060d66 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6176/20508ec0ac349eae5b3270fb6c757ef4bb060d66/generate-gwyddion-nsi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
28872,
67,
1369,
12,
3459,
16,
1633,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
3459,
4672,
327,
296,
282,
534,
81,
1621,
4662,
19784,
4537,
10471,
15,
3459,
18,
2079,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
28872,
67,
1369,
12,
3459,
16,
1633,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
3459,
4672,
327,
296,
282,
534,
81,
1621,
4662,
19784,
4537,
10471,
15,
3459,
18,
2079,
12,
... | |
for e in self.incoming_edges(labels = False): p.add_constraint(vertex_used[v] - edge_used[e], min = 0) for e in self.outgoing_edges(labels = False): p.add_constraint(vertex_used[v] - edge_used[e], min = 0) | for e in self.incoming_edges(labels=False): p.add_constraint(vertex_used[v] - edge_used[e], min=0) for e in self.outgoing_edges(labels=False): p.add_constraint(vertex_used[v] - edge_used[e], min=0) | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | 851087dd5fd3776eb2db10b18fb5402a16a5dd17 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/851087dd5fd3776eb2db10b18fb5402a16a5dd17/generic_graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12163,
67,
803,
12,
2890,
16,
272,
273,
599,
16,
268,
273,
599,
16,
13747,
273,
1083,
16,
4886,
273,
315,
49,
2627,
52,
3113,
12776,
273,
599,
16,
3988,
273,
374,
4672,
436,
8395,
28... |
def _getsymlink(self): | def _getsymlink(self, dangling=True): | def _getsymlink(self): """create a symlink""" fh, fname = self._getfile() os.close(fh) os.unlink(fname) os.symlink(fname + ".non-existent", fname) return fname | ba8545e7917826eeb627482cc3ef4f559d0a4f49 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11150/ba8545e7917826eeb627482cc3ef4f559d0a4f49/test_xattr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
21278,
12,
2890,
16,
302,
539,
2456,
33,
5510,
4672,
3536,
2640,
279,
10563,
8395,
7625,
16,
5299,
273,
365,
6315,
588,
768,
1435,
1140,
18,
4412,
12,
19260,
13,
1140,
18,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
21278,
12,
2890,
16,
302,
539,
2456,
33,
5510,
4672,
3536,
2640,
279,
10563,
8395,
7625,
16,
5299,
273,
365,
6315,
588,
768,
1435,
1140,
18,
4412,
12,
19260,
13,
1140,
18,
31... |
self['maximum_traffic_entry'].set_value(val) return | self['maximum_traffic_entry'].set_value(val) | def setup_usage_max_traffic_value(self, val): self['maximum_traffic_entry'].set_value(val) return | 702bdcbb280124408323eaa6a40dcb9bacde8990 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12037/702bdcbb280124408323eaa6a40dcb9bacde8990/preferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
67,
9167,
67,
1896,
67,
19231,
67,
1132,
12,
2890,
16,
225,
1244,
4672,
365,
3292,
15724,
67,
19231,
67,
4099,
29489,
542,
67,
1132,
12,
1125,
13,
327,
225,
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,
3875,
67,
9167,
67,
1896,
67,
19231,
67,
1132,
12,
2890,
16,
225,
1244,
4672,
365,
3292,
15724,
67,
19231,
67,
4099,
29489,
542,
67,
1132,
12,
1125,
13,
327,
225,
2,
-100,
-100,
-100,
... |
for r in ('EXISTS', 'READ-WRITE'): if self.untagged_responses.has_key(r): del self.untagged_responses[r] | self.untagged_responses = {} | def select(self, mailbox='INBOX', readonly=None): """Select a mailbox. | 46586822058b54c93e36247f31b13b4d7286f0a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/46586822058b54c93e36247f31b13b4d7286f0a2/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
12,
2890,
16,
14187,
2218,
706,
16876,
2187,
17102,
33,
7036,
4672,
3536,
3391,
279,
14187,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2027,
12,
2890,
16,
14187,
2218,
706,
16876,
2187,
17102,
33,
7036,
4672,
3536,
3391,
279,
14187,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
raise osv.except_osv(_('UserError'), _('You can not enter an attendance ' \ | raise osv.except_osv(_('UserError'), _('You cannot enter an attendance ' \ | def write(self, cr, uid, ids, vals, context={}): self._check(cr, uid, ids) res = super(hr_attendance,self).write(cr, uid, ids, vals, context=context) if 'sheet_id' in context: for attendance in self.browse(cr, uid, ids, context=context): if context['sheet_id'] != attendance.sheet_id.id: raise osv.except_osv(_('UserErro... | b563f23652c9dbc74e61cb4facfce4e6c07d4b66 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/b563f23652c9dbc74e61cb4facfce4e6c07d4b66/hr_timesheet_sheet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
4672,
365,
6315,
1893,
12,
3353,
16,
4555,
16,
3258,
13,
400,
273,
2240,
12,
7256,
67,
4558,
409,
1359,
16,
28... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
5773,
16,
819,
12938,
4672,
365,
6315,
1893,
12,
3353,
16,
4555,
16,
3258,
13,
400,
273,
2240,
12,
7256,
67,
4558,
409,
1359,
16,
28... |
yarr[xix-1,:,kix] = v[:,kix] | yarr[xix-1][:,kix] = v[:,kix] | def rkdriver_withks(vstart, simtstart, ts, te, allks, h, derivs): """Driver function for classical Runge Kutta 4th Order method. Starting at x1 and proceeding to x2 in nstep number of steps. Copes with multiple start times for different ks if they are sorted in terms of starting time.""" #Make sure h is specified if ... | def7a714cddd6852c80e0d94c6174afbea519005 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7283/def7a714cddd6852c80e0d94c6174afbea519005/rk4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28603,
7407,
67,
1918,
7904,
12,
90,
1937,
16,
3142,
88,
1937,
16,
3742,
16,
6489,
16,
777,
7904,
16,
366,
16,
9630,
87,
4672,
3536,
4668,
445,
364,
667,
1706,
1939,
908,
1475,
322,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
28603,
7407,
67,
1918,
7904,
12,
90,
1937,
16,
3142,
88,
1937,
16,
3742,
16,
6489,
16,
777,
7904,
16,
366,
16,
9630,
87,
4672,
3536,
4668,
445,
364,
667,
1706,
1939,
908,
1475,
322,
... |
test_support.run_unittest(ProxyAuthTests) test_support.run_unittest(TestUrlopen) | test_support.run_unittest(ProxyAuthTests, TestUrlopen) | def test_main(): # We will NOT depend on the network resource flag # (Lib/test/regrtest.py -u network) since all tests here are only # localhost. However, if this is a bad rationale, then uncomment # the next line. #test_support.requires("network") test_support.run_unittest(ProxyAuthTests) test_support.run_unittest(T... | f210feb95bc20808adbf73b6362f0ec8349adfc8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12029/f210feb95bc20808adbf73b6362f0ec8349adfc8/test_urllib2_localnet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
468,
1660,
903,
4269,
2447,
603,
326,
2483,
1058,
2982,
468,
261,
5664,
19,
3813,
19,
1574,
3797,
395,
18,
2074,
300,
89,
2483,
13,
3241,
777,
7434,
2674,
854,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5254,
13332,
468,
1660,
903,
4269,
2447,
603,
326,
2483,
1058,
2982,
468,
261,
5664,
19,
3813,
19,
1574,
3797,
395,
18,
2074,
300,
89,
2483,
13,
3241,
777,
7434,
2674,
854,
1... |
cr.execute('select count(*) from res_users where id=%s and password is null', (int(uid),)) | cr.execute('select count(1) from res_users where id=%s and password is null and active=%s', (int(uid), True)) | def check(db, uid, passwd): if _uid_cache.get(db, {}).get(uid) == passwd: return True cr = pooler.get_db(db).cursor() if passwd: cr.execute('select count(*) from res_users where id=%s and password=%s', (int(uid), passwd)) else: cr.execute('select count(*) from res_users where id=%s and password is null', (int(uid),)) r... | 5fb0001f2968663d3b4c29842c285c3ba8164ca5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/5fb0001f2968663d3b4c29842c285c3ba8164ca5/security.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
389,
1911,
67,
2493,
18,
588,
12,
1966,
16,
2618,
2934,
588,
12,
1911,
13,
422,
19093,
30,
327,
1053,
4422,
273,
2845,
264,
18,
588,
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,
866,
12,
1966,
16,
4555,
16,
19093,
4672,
309,
389,
1911,
67,
2493,
18,
588,
12,
1966,
16,
2618,
2934,
588,
12,
1911,
13,
422,
19093,
30,
327,
1053,
4422,
273,
2845,
264,
18,
588,
67... |
return self.form.type | return self.form | def get_form(self, form_type = "form"): """Return Data Form for the `Register` object. | df0cb72fd8657d63765dd283dcdf98faf4aa67e7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12769/df0cb72fd8657d63765dd283dcdf98faf4aa67e7/register.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
687,
12,
2890,
16,
646,
67,
723,
273,
315,
687,
6,
4672,
3536,
990,
1910,
2748,
364,
326,
1375,
3996,
68,
733,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
687,
12,
2890,
16,
646,
67,
723,
273,
315,
687,
6,
4672,
3536,
990,
1910,
2748,
364,
326,
1375,
3996,
68,
733,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
[cf_remove(self.dbkey, n) for n in name if must_exist or self.exists(n)] def get_freq(self, name): """Finds the frequency of the object stored in the db as `name`""" if not self.dbIsOpen: raise DBError("Database is not open") result = cf_size(self.dbkey, name.upper()) return result['freq'] | [cf_delete(self.dbkey, n) for n in name if must_exist or self.exists(n)] def obj_size(self, name): """basic information about the size of an object(s) in a database""" return _single_or_multi_func(self.dbkey, name, cf_obj_size) | def remove(self, name, must_exist=True): """Deletes the given series from the database""" if isinstance(name, str): name = [name] [cf_remove(self.dbkey, n) for n in name if must_exist or self.exists(n)] | 9a931e02283bbf6d8fe5efbf776f3c06a5418dbe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/9a931e02283bbf6d8fe5efbf776f3c06a5418dbe/fame.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
16,
1297,
67,
7398,
33,
5510,
4672,
3536,
7551,
326,
864,
4166,
628,
326,
2063,
8395,
309,
1549,
12,
529,
16,
609,
4672,
508,
273,
306,
529,
65,
306,
8522,
6... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
12,
2890,
16,
508,
16,
1297,
67,
7398,
33,
5510,
4672,
3536,
7551,
326,
864,
4166,
628,
326,
2063,
8395,
309,
1549,
12,
529,
16,
609,
4672,
508,
273,
306,
529,
65,
306,
8522,
6... |
initOps = [ initSex(), ], | initOps = initSex(), | def infSitesMutate(pop, param): '''Apply an infinite mutation model''' (startPos, endPos, rate) = param # for each individual for ind in pop.individuals(): # for each homologous copy of chromosomes for p in range(2): # using a geometric distribution to determine # the first mutation location loc = GetRNG().randGeometri... | 505ded08bbab01d6828bb201d31e079f6d9e3b55 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/401/505ded08bbab01d6828bb201d31e079f6d9e3b55/userGuide.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
17055,
7420,
340,
12,
5120,
16,
579,
4672,
9163,
7001,
392,
14853,
11934,
938,
26418,
261,
1937,
1616,
16,
19809,
16,
4993,
13,
273,
579,
468,
364,
1517,
7327,
364,
1547,
316,
1843... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8286,
17055,
7420,
340,
12,
5120,
16,
579,
4672,
9163,
7001,
392,
14853,
11934,
938,
26418,
261,
1937,
1616,
16,
19809,
16,
4993,
13,
273,
579,
468,
364,
1517,
7327,
364,
1547,
316,
1843... |
hasattr(klass, 'name'): filter_names.append(klass.__name__) | hasattr(klass, 'name'): filter_names.append(klass.__name__) | def __init__(self, **kwargs): default_kwargs = {'max_length': 255, 'blank': True} default_kwargs.update(kwargs) super(TagField, self).__init__(**default_kwargs) | e23e6752b0a123258c0700ff110999d821d1a02b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10711/e23e6752b0a123258c0700ff110999d821d1a02b/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
4333,
4672,
805,
67,
4333,
273,
13666,
1896,
67,
2469,
4278,
4561,
16,
296,
12111,
4278,
1053,
97,
805,
67,
4333,
18,
2725,
12,
4333,
13,
2240,
12,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2826,
4333,
4672,
805,
67,
4333,
273,
13666,
1896,
67,
2469,
4278,
4561,
16,
296,
12111,
4278,
1053,
97,
805,
67,
4333,
18,
2725,
12,
4333,
13,
2240,
12,... |
def get_valueOf_(self): return self.valueOf_ def set_valueOf_(self, valueOf_): self.valueOf_ = valueOf_ | def get_valueOf_(self): return self.valueOf_ | 9c12e50d449fa27d6f8f3415ece228ae97bb0266 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14016/9c12e50d449fa27d6f8f3415ece228ae97bb0266/_nexml.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1132,
951,
67,
12,
2890,
4672,
327,
365,
18,
1132,
951,
67,
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,
... | [
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,
336,
67,
1132,
951,
67,
12,
2890,
4672,
327,
365,
18,
1132,
951,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.funcparams=Numeric.zeros(self.param_count, self.atype) | def __init__(self, degree, pointhint=1000, xcenter=0.0): fit.__init__(self, pointhint) self.xcenter=xcenter self.param_count=degree+1 self.funcparams=Numeric.zeros(self.param_count, self.atype) | 22b18551a18adf7159a904c3d060aa9e06700260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6028/22b18551a18adf7159a904c3d060aa9e06700260/fitting_toolkit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10782,
16,
293,
885,
451,
474,
33,
18088,
16,
619,
5693,
33,
20,
18,
20,
4672,
4845,
16186,
2738,
972,
12,
2890,
16,
293,
885,
451,
474,
13,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
10782,
16,
293,
885,
451,
474,
33,
18088,
16,
619,
5693,
33,
20,
18,
20,
4672,
4845,
16186,
2738,
972,
12,
2890,
16,
293,
885,
451,
474,
13,
365,
18,
... | |
while True: i = find_token(document.header, "\\use_mathdots" , 0) if i != -1: add_to_preamble(document, ["% this command was inserted by lyx2lyx"]) add_to_preamble(document, ["\\@ifundefined{iddots}{\\usepackage{mathdots}}\n"]) del document.header[i] break | i = 0 ddots = re.compile(r'\\begin_inset Formula .*\\ddots', re.DOTALL) vdots = re.compile(r'\\begin_inset Formula .*\\vdots', re.DOTALL) iddots = re.compile(r'\\begin_inset Formula .*\\iddots', re.DOTALL) mathdots = find_token(document.header, "\\use_mathdots" , 0) no = find_token(document.header, "\\use_mathdots 0" ,... | def revert_mathdots(document): " Load mathdots if used in the document " while True: i = find_token(document.header, "\\use_mathdots" , 0) if i != -1: # use \@ifundefined to catch also the "auto" case add_to_preamble(document, ["% this command was inserted by lyx2lyx"]) add_to_preamble(document, ["\\@ifundefined{iddots... | 4580296b8f5a551c97b4a08f1dd5e1279e2cb5b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7514/4580296b8f5a551c97b4a08f1dd5e1279e2cb5b9/lyx_2_0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
15949,
72,
6968,
12,
5457,
4672,
315,
4444,
4233,
72,
6968,
309,
1399,
316,
326,
1668,
315,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
8422,
1202,
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,
15226,
67,
15949,
72,
6968,
12,
5457,
4672,
315,
4444,
4233,
72,
6968,
309,
1399,
316,
326,
1668,
315,
1323,
1053,
30,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3374,
16,
8422,
1202,
67,... |
defaultParams = {}, | defaultParams = {'legend_x': 'topright'}, | def __init__(self, infoFields=[], byField=False, bySubPop=False, saveAs="", leaveOpen=False, preHook=None, postHook=None, plotHook = None, begin=0, end=-1, step=1, at=[], reps=ALL_AVAIL, subPops=[], **kwargs): ''' infoFields Information fields whose values will be sent to R function ``boxplot``. | c53fdafda3b1414b2342a27ce72ba24507ef678d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/401/c53fdafda3b1414b2342a27ce72ba24507ef678d/plotter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1123,
2314,
22850,
6487,
635,
974,
33,
8381,
16,
635,
1676,
7049,
33,
8381,
16,
1923,
1463,
1546,
3113,
8851,
3678,
33,
8381,
16,
675,
5394,
33,
7036,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1123,
2314,
22850,
6487,
635,
974,
33,
8381,
16,
635,
1676,
7049,
33,
8381,
16,
1923,
1463,
1546,
3113,
8851,
3678,
33,
8381,
16,
675,
5394,
33,
7036,
16... |
statuses = self.status_with_cache(path, recurse=True)[:-1] for status in statuses: if status.data["text_status"] == pysvn.wc_status_kind.ignored: return True return False | return self.has_status(path, pysvn.wc_status_kind.ignored) | def has_ignored(self, path): statuses = self.status_with_cache(path, recurse=True)[:-1] for status in statuses: if status.data["text_status"] == pysvn.wc_status_kind.ignored: return True return False | 83315ccd8ce36cba36ecaf03234b6334b1f2fd4d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5119/83315ccd8ce36cba36ecaf03234b6334b1f2fd4d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
24055,
12,
2890,
16,
589,
4672,
13516,
273,
365,
18,
2327,
67,
1918,
67,
2493,
12,
803,
16,
11502,
33,
5510,
13,
10531,
17,
21,
65,
225,
364,
1267,
316,
13516,
30,
309,
1267... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
24055,
12,
2890,
16,
589,
4672,
13516,
273,
365,
18,
2327,
67,
1918,
67,
2493,
12,
803,
16,
11502,
33,
5510,
13,
10531,
17,
21,
65,
225,
364,
1267,
316,
13516,
30,
309,
1267... |
hostname = dbmodels.CharField(unique=True, max_length=300) | hostname = dbmodels.CharField(unique=True, max_length=255) | def get_num_groups(self, query, group_by): """ Returns the number of distinct groups for the given query grouped by the fields in group_by. """ sql, params = self._get_num_groups_sql(query, group_by) cursor = readonly_connection.connection().cursor() cursor.execute(sql, params) return self._cursor_rowcount(cursor) | b2aa774e124d32ae013ec1ccbb2bbf95acac1a30 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/b2aa774e124d32ae013ec1ccbb2bbf95acac1a30/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2107,
67,
4650,
12,
2890,
16,
843,
16,
1041,
67,
1637,
4672,
3536,
2860,
326,
1300,
434,
10217,
3252,
364,
326,
864,
843,
10303,
635,
326,
1466,
316,
1041,
67,
1637,
18,
3536,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2107,
67,
4650,
12,
2890,
16,
843,
16,
1041,
67,
1637,
4672,
3536,
2860,
326,
1300,
434,
10217,
3252,
364,
326,
864,
843,
10303,
635,
326,
1466,
316,
1041,
67,
1637,
18,
3536,... |
load_components(self) | plugins_dir = self.config.get('inherit', 'plugins_dir') load_components(self, plugins_dir and (plugins_dir,)) | def __init__(self, path, create=False, options=[]): """Initialize the Trac environment. @param path: the absolute path to the Trac environment @param create: if `True`, the environment is created and populated with default data; otherwise, the environment is expected to already exist. @param options: A list of `(sec... | b68adbd6aa6f32b162814aefe75249d7544f6ebe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2831/b68adbd6aa6f32b162814aefe75249d7544f6ebe/env.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
589,
16,
752,
33,
8381,
16,
702,
33,
8526,
4672,
3536,
7520,
326,
2197,
71,
3330,
18,
225,
632,
891,
589,
30,
282,
326,
4967,
589,
358,
326,
2197,
71,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
589,
16,
752,
33,
8381,
16,
702,
33,
8526,
4672,
3536,
7520,
326,
2197,
71,
3330,
18,
225,
632,
891,
589,
30,
282,
326,
4967,
589,
358,
326,
2197,
71,
... |
proutn(_(" blocked by object at %s;") % w) | prout(_(" blocked by object at %s;") % w) | def no_quad_change(): # No quadrant change -- compute new average enemy distances game.quad[game.sector.x][game.sector.y] = game.ship if game.enemies: for enemy in game.enemies: finald = (w-enemy.kloc).distance() enemy.kavgd = 0.5 * (finald + enemy.kdist) enemy.kdist = finald game.enemies.sort(lambda x, y: cmp(x.kdist,... | b33abcf3adfa7e3e8065dd545d770ddf1450172f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3176/b33abcf3adfa7e3e8065dd545d770ddf1450172f/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
67,
21733,
67,
3427,
13332,
468,
2631,
9474,
6890,
2549,
1493,
3671,
394,
8164,
570,
351,
93,
12491,
7920,
18,
21733,
63,
13957,
18,
5709,
280,
18,
92,
6362,
13957,
18,
5709,
280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1158,
67,
21733,
67,
3427,
13332,
468,
2631,
9474,
6890,
2549,
1493,
3671,
394,
8164,
570,
351,
93,
12491,
7920,
18,
21733,
63,
13957,
18,
5709,
280,
18,
92,
6362,
13957,
18,
5709,
280,
... |
'Djblets>=0.5.7alpha0.dev-20100112', | 'Djblets>=0.5.7alpha0.dev-20100206', | def finalize_options(self): # By the time finalize_options is called, install.install_lib is # set to the fixed directory, so we set the installdir to install_lib. # The # install_data class uses ('install_data', 'install_dir') instead. self.set_undefined_options('install', ('install_lib', 'install_dir')) install_data.... | d0155a169980053d052e1f4e98d8a71280d1c355 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1600/d0155a169980053d052e1f4e98d8a71280d1c355/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
12,
2890,
4672,
468,
2525,
326,
813,
12409,
67,
2116,
353,
2566,
16,
3799,
18,
5425,
67,
2941,
353,
468,
444,
358,
326,
5499,
1867,
16,
1427,
732,
444,
326,
3799,
1214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12409,
67,
2116,
12,
2890,
4672,
468,
2525,
326,
813,
12409,
67,
2116,
353,
2566,
16,
3799,
18,
5425,
67,
2941,
353,
468,
444,
358,
326,
5499,
1867,
16,
1427,
732,
444,
326,
3799,
1214... |
elif input['dataType'] == type(''): | elif input['DataType'] == type(''): | def _checkType(self,input=None,values=None): """This function checkes type and value of input values""" if not type(values) == type([]): values = [values] | d33b62d2a6e97ee46ac50876a7fbdd930dc62702 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10967/d33b62d2a6e97ee46ac50876a7fbdd930dc62702/execute.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
559,
12,
2890,
16,
2630,
33,
7036,
16,
2372,
33,
7036,
4672,
3536,
2503,
445,
866,
281,
618,
471,
460,
434,
810,
924,
8395,
225,
309,
486,
618,
12,
2372,
13,
422,
618,
381... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
559,
12,
2890,
16,
2630,
33,
7036,
16,
2372,
33,
7036,
4672,
3536,
2503,
445,
866,
281,
618,
471,
460,
434,
810,
924,
8395,
225,
309,
486,
618,
12,
2372,
13,
422,
618,
381... |
def onRedoEventUpdateUI (self, event): return self._GenericEditUpdateUI (event, 'CanRedo') def onRedoEvent (self, event): return self._GenericEditEvent ('Redo') def onUndoEventUpdateUI (self, event): | def onRedoEventUpdateUI(self, event): return self._GenericEditUpdateUI(event, 'CanRedo') def onRedoEvent(self, event): return self._GenericEditEvent(event, 'Redo') def onUndoEventUpdateUI(self, event): | def onRedoEventUpdateUI (self, event): return self._GenericEditUpdateUI (event, 'CanRedo') | aa12923ea1f3ac157a6e3ae46a45f190958da18b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/aa12923ea1f3ac157a6e3ae46a45f190958da18b/Block.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3715,
83,
1133,
1891,
5370,
261,
2890,
16,
871,
4672,
327,
365,
6315,
7014,
4666,
1891,
5370,
261,
2575,
16,
296,
2568,
3715,
83,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
3715,
83,
1133,
1891,
5370,
261,
2890,
16,
871,
4672,
327,
365,
6315,
7014,
4666,
1891,
5370,
261,
2575,
16,
296,
2568,
3715,
83,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
job.runningJob.warning.append("No output files") | self.logging.warning( job.runningJob['schedulerId'] + \ ' no output files.' ) job.runningJob.errors.append("No output files") | def getOutput( self, obj, outdir='' ): """ retrieve job output """ | 7c4efde2270e23664acd0941720340358547054e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/7c4efde2270e23664acd0941720340358547054e/SchedulerGLite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11062,
12,
365,
16,
1081,
16,
15398,
2218,
11,
262,
30,
3536,
4614,
1719,
876,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
11062,
12,
365,
16,
1081,
16,
15398,
2218,
11,
262,
30,
3536,
4614,
1719,
876,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
'addons/account/report/third_party_ledger.rml',parser=third_party_ledger, header=False) | 'addons/account/report/third_party_ledger.rml',parser=third_party_ledger, header=False) | def _sum_currency_amount_account(self, account, form): self._set_get_account_currency_code(account.id) self.cr.execute("SELECT sum(aml.amount_currency) FROM account_move_line as aml,res_currency as rc WHERE aml.currency_id = rc.id AND aml.account_id= %s ", (account.id,)) total = self.cr.fetchone() if self.account_curr... | 35085e84992f87b57198ecd1a74da6ef671c2bfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/35085e84992f87b57198ecd1a74da6ef671c2bfd/third_party_ledger.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1364,
67,
7095,
67,
8949,
67,
4631,
12,
2890,
16,
2236,
16,
646,
4672,
365,
6315,
542,
67,
588,
67,
4631,
67,
7095,
67,
710,
12,
4631,
18,
350,
13,
365,
18,
3353,
18,
8837,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1364,
67,
7095,
67,
8949,
67,
4631,
12,
2890,
16,
2236,
16,
646,
4672,
365,
6315,
542,
67,
588,
67,
4631,
67,
7095,
67,
710,
12,
4631,
18,
350,
13,
365,
18,
3353,
18,
8837,
29... |
extra_psds = int((float(segment[1] - t) - 2 * filter_corruption - psd_overlap) / (psd_length - psd_overlap)) | extra_psds = int(psds_from_job_length(powerjob, float(segment[1] - t))) | def split_segment(powerjob, segment, psds_per_job): """ Split the data segment into correctly-overlaping segments. We try to have the numbers of PSDs in each segment be equal to psds_per_job, but with a short segment at the end if needed. """ psd_length = float(powerjob.get_opts()["psd-average-points"]) / float(powerj... | 9a126b9922d7ac2d7debb531dbb0f635739b83c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/9a126b9922d7ac2d7debb531dbb0f635739b83c5/power.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
9273,
12,
12238,
4688,
16,
3267,
16,
4250,
2377,
67,
457,
67,
4688,
4672,
3536,
5385,
326,
501,
3267,
1368,
8783,
17,
17946,
310,
5155,
18,
225,
1660,
775,
358,
1240,
326,
56... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
67,
9273,
12,
12238,
4688,
16,
3267,
16,
4250,
2377,
67,
457,
67,
4688,
4672,
3536,
5385,
326,
501,
3267,
1368,
8783,
17,
17946,
310,
5155,
18,
225,
1660,
775,
358,
1240,
326,
56... |
print 'calculated new magnitude for %s: %0.2f (channels: %s)' \ | msg = 'calculated new magnitude for %s: %0.2f (channels: %s)' \ | def calculateStationMagnitudes(self): for i in range(len(self.streams)): if (self.dicts[i].has_key('MagMin1') and self.dicts[i].has_key('MagMin2') and self.dicts[i].has_key('MagMax1') and self.dicts[i].has_key('MagMax2')): amp = self.dicts[i]['MagMax1'] - self.dicts[i]['MagMin1'] timedelta = abs(self.dicts[i]['MagMax1... | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4604,
16672,
11372,
82,
24751,
12,
2890,
4672,
364,
277,
316,
1048,
12,
1897,
12,
2890,
18,
16320,
3719,
30,
309,
261,
2890,
18,
16287,
63,
77,
8009,
5332,
67,
856,
2668,
11372,
2930,
... |
if issubclass(datatype, Boolean): | if is_datatype(datatype, Boolean): | def process_start_tag(tag_uri, tag_name, attributes, stack, repeat, encoding): # Skip "<stl:block>" and "<stl:inline>" if tag_uri == stl_uri: return None # stl:omit-tag if stl_omit_tag in attributes: expression = attributes[stl_omit_tag] if evaluate_if(expression, stack, repeat): return None # Process attributes aux ... | b4d9aae0fb5efd94f7bfc566733615845d1631fc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/b4d9aae0fb5efd94f7bfc566733615845d1631fc/stl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1937,
67,
2692,
12,
2692,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
2110,
16,
7666,
16,
2688,
4672,
468,
6611,
3532,
334,
80,
30,
2629,
2984,
471,
3532,
334,
80,
30,
10047... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
1937,
67,
2692,
12,
2692,
67,
1650,
16,
1047,
67,
529,
16,
1677,
16,
2110,
16,
7666,
16,
2688,
4672,
468,
6611,
3532,
334,
80,
30,
2629,
2984,
471,
3532,
334,
80,
30,
10047... |
if "_dirs" in self.__dict__: c = path.rfind('/') if c >= 0: base = path[:c] dirs = self._dirs if dirs[base] == 1: del dirs[base] self._decpath(base) else: dirs[base] -= 1 | c = path.rfind('/') if c >= 0: base = path[:c] dirs = self._dirs if dirs[base] == 1: del dirs[base] self._decpath(base) else: dirs[base] -= 1 | def _decpath(self, path): if "_dirs" in self.__dict__: c = path.rfind('/') if c >= 0: base = path[:c] dirs = self._dirs if dirs[base] == 1: del dirs[base] self._decpath(base) else: dirs[base] -= 1 | 77c027da3db930123dc583c05ad09b55a604f4b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/77c027da3db930123dc583c05ad09b55a604f4b9/dirstate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4924,
803,
12,
2890,
16,
589,
4672,
309,
4192,
8291,
6,
316,
365,
16186,
1576,
972,
30,
276,
273,
589,
18,
86,
4720,
2668,
2473,
13,
309,
276,
1545,
374,
30,
1026,
273,
589,
105... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4924,
803,
12,
2890,
16,
589,
4672,
309,
4192,
8291,
6,
316,
365,
16186,
1576,
972,
30,
276,
273,
589,
18,
86,
4720,
2668,
2473,
13,
309,
276,
1545,
374,
30,
1026,
273,
589,
105... |
def get_params(self, id): """ Turn the rows matching the process ID id into a dictionary | def appendRow(self, row): if row.param in [r.param for r in self]: raise ligolw.ElementError, "duplicate parameter %s for process ID %s" % (row.param, row.process_id) if row.type not in metaio.Types: raise ligolw.ElementError, "unrecognized Type attribute %s" % row.type metaio.Table.appendRow(self, row) def __getitem_... | def get_params(self, id): """ Turn the rows matching the process ID id into a dictionary of parameter/value pairs. """ params = {} for row in self: if row.process_id != id: pass elif params.has_key(row.param): raise ligolw.ElementError, "duplicate process parameter %s for process ID %s" % (row.param, id) elif row.type ... | 68f3f91e703183aa282de0c00a66accba7437755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/68f3f91e703183aa282de0c00a66accba7437755/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
1999,
12,
2890,
16,
1027,
4672,
309,
1027,
18,
891,
316,
306,
86,
18,
891,
364,
436,
316,
365,
14542,
1002,
16917,
355,
91,
18,
1046,
668,
16,
315,
17342,
1569,
738,
87,
364,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
1999,
12,
2890,
16,
1027,
4672,
309,
1027,
18,
891,
316,
306,
86,
18,
891,
364,
436,
316,
365,
14542,
1002,
16917,
355,
91,
18,
1046,
668,
16,
315,
17342,
1569,
738,
87,
364,
12... |
group.add_option('--email-from', dest='email_from', default='', help='specify the SMTP email address for sending email') group.add_option('--smtp', dest='smtp_server', default='', help='specify the SMTP server for sending email') group.add_option('--smtp-port', dest='smtp_port', default='25', help='specify the SMTP por... | group.add_option('--email-from', dest='email_from', help='specify the SMTP email address for sending email') group.add_option('--smtp', dest='smtp_server', help='specify the SMTP server for sending email') group.add_option('--smtp-port', dest='smtp_port', help='specify the SMTP port', type="int") group.add_option('--sm... | def __init__(self, fname=None): self.options = { 'email_from':False, 'xmlrpc_interface': '', # this will bind the server to all interfaces 'xmlrpc_port': 8069, 'netrpc_interface': '', 'netrpc_port': 8070, 'xmlrpcs_interface': '', # this will bind the server to all interfaces 'xmlrpcs_port': 8071, 'db_host': False... | 6849735d632bc3232089bcba161bf3eaa621c1e5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/6849735d632bc3232089bcba161bf3eaa621c1e5/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
2902,
7452,
67,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
2902,
7452,
67,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326... |
"""Dict wrapper for convenient acces of values through attributes.""" | """Dict wrapper for convenient access of values through attributes.""" | def writeArray(self, array): self.beginElement("array") for value in array: self.writeValue(value) self.endElement("array") | b9bddce5e972eb4c6cc35c0aa5acc1f9d6ad420d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b9bddce5e972eb4c6cc35c0aa5acc1f9d6ad420d/plistlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1076,
12,
2890,
16,
526,
4672,
365,
18,
10086,
1046,
2932,
1126,
7923,
364,
460,
316,
526,
30,
365,
18,
2626,
620,
12,
1132,
13,
365,
18,
409,
1046,
2932,
1126,
7923,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
1076,
12,
2890,
16,
526,
4672,
365,
18,
10086,
1046,
2932,
1126,
7923,
364,
460,
316,
526,
30,
365,
18,
2626,
620,
12,
1132,
13,
365,
18,
409,
1046,
2932,
1126,
7923,
2,
-100,
... |
if options.verbose: print "+ %s is not in Satellite, adding" % (rpm_name) if options.debug: print "DEBUG: Calling: push_rpm(",rpm, channel, options.user, options.password, options.satserver, ")" | if options.verbose: print timestamp(), "+ %s is not in Satellite, adding" % (rpm_name) if options.debug: print timestamp(), "DEBUG: Calling: push_rpm(",rpm, channel, options.user, options.password, options.satserver, ")" | def main(): if options.demo: key = False current_channels = {} current_channel_labels = ['rhel-x86_64-server-5'] else: # Login to Satellite server key = login(options.user, options.password) # Build existing channel list current_channels = client.channel.list_all_channels(key) current_channel_labels = [] for channel in... | 07e2421549e748ccb09a392c60834eaea3e54917 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3457/07e2421549e748ccb09a392c60834eaea3e54917/dell-satellite-sync.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
309,
702,
18,
27928,
30,
498,
273,
1083,
783,
67,
9114,
273,
2618,
783,
67,
4327,
67,
5336,
273,
10228,
30138,
292,
17,
92,
5292,
67,
1105,
17,
3567,
17,
25,
3546,
469,
... |
expr2 = re.compile(r"\[[%s0-9]+\]" % letters ).search): | expr2 = re.compile(r"\[[%s%s]+\]" % (letters, digits) ).search): | def doc_inner_link(self, s, expr1 = re.compile(r"\.\.\s*").search, expr2 = re.compile(r"\[[%s0-9]+\]" % letters ).search): # make sure we dont grab a named link if expr2(s) and expr1(s): start1,end1 = expr1(s).span() start2,end2 = expr2(s).span() if end1 == start2: # uh-oh, looks like a named link return None else: # ... | b29008c90524f37221faf5a492ff5cfc6328548c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b29008c90524f37221faf5a492ff5cfc6328548c/DocumentClass.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
67,
7872,
67,
1232,
12,
2890,
16,
272,
16,
3065,
21,
273,
283,
18,
11100,
12,
86,
6,
5834,
19002,
87,
7388,
2934,
3072,
16,
3065,
22,
273,
283,
18,
11100,
12,
86,
12691,
63,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
67,
7872,
67,
1232,
12,
2890,
16,
272,
16,
3065,
21,
273,
283,
18,
11100,
12,
86,
6,
5834,
19002,
87,
7388,
2934,
3072,
16,
3065,
22,
273,
283,
18,
11100,
12,
86,
12691,
63,
1... |
document = self.get_document(i) | try: document = self.get_document(i) except LookupError: continue | def get_unique_values(self, name): values = set() | 44320a7b77d43a6df0e0a2ac39138195499cb8a4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/44320a7b77d43a6df0e0a2ac39138195499cb8a4/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
6270,
67,
2372,
12,
2890,
16,
508,
4672,
924,
273,
444,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
336,
67,
6270,
67,
2372,
12,
2890,
16,
508,
4672,
924,
273,
444,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
import time | def write_image(self, image, device, callback=None): if tarfile.is_tarfile(image): | a70e957ae62024bb854ab7edb509c3b57e010d96 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1208/a70e957ae62024bb854ab7edb509c3b57e010d96/ufo_dd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2730,
12,
2890,
16,
1316,
16,
2346,
16,
1348,
33,
7036,
4672,
309,
25857,
18,
291,
67,
11718,
768,
12,
2730,
4672,
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,
1045,
67,
2730,
12,
2890,
16,
1316,
16,
2346,
16,
1348,
33,
7036,
4672,
309,
25857,
18,
291,
67,
11718,
768,
12,
2730,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... | |
valueStr = self.rangeMenuWdg.getString() numVal = float(valueStr[:-1]) / 100.0 | strVal = self.rangeMenuWdg.getString() numVal = float(strVal[:-1]) / 100.0 | def doRangeMenu(self, wdg=None, redisplay=True): """Handle new selection from range menu.""" valueStr = self.rangeMenuWdg.getString() numVal = float(valueStr[:-1]) / 100.0 # ignore % from end lowFrac = (1.0 - numVal) / 2.0 highFrac = 1.0 - lowFrac dataLen = len(self.sortedData) self.dataDispMin = self.sortedData[int(lo... | 4e35e7dfcacf352e70e7e9ef698593a84d740a52 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6354/4e35e7dfcacf352e70e7e9ef698593a84d740a52/GrayImageDispWdg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2655,
4599,
12,
2890,
16,
14452,
75,
33,
7036,
16,
5813,
1601,
33,
5510,
4672,
3536,
3259,
394,
4421,
628,
1048,
3824,
12123,
609,
3053,
273,
365,
18,
3676,
4599,
59,
72,
75,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2655,
4599,
12,
2890,
16,
14452,
75,
33,
7036,
16,
5813,
1601,
33,
5510,
4672,
3536,
3259,
394,
4421,
628,
1048,
3824,
12123,
609,
3053,
273,
365,
18,
3676,
4599,
59,
72,
75,
18,
... |
lines = open( self.f_out_name ).readlines() | try: lines = open( self.f_out_name ).readlines() except: raise SurfaceRacer_Error,\ 'SurfaceRacer result file %s does not exist. You have probably encountered a very rare SurfaceRacer round off error that have caused the program to terminate. The simplest remedy to this problem is to increase the probe radii with a ver... | def parse_result( self, output ): """ Parse the SurfaceRacer output file which has the same mane as the input pdb, but with a txt extension. The output ends up un the same folser as the input. In addition a file called result.txt is created in the same directory as the binary. @param output: full path to input pdb-fil... | 9a53b9023dc0694e199f5b1532e9cb9d0dd06a03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/9a53b9023dc0694e199f5b1532e9cb9d0dd06a03/SurfaceRacer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2088,
12,
365,
16,
876,
262,
30,
3536,
2884,
326,
24354,
54,
10598,
876,
585,
1492,
711,
326,
1967,
3161,
73,
487,
326,
810,
10892,
16,
1496,
598,
279,
6463,
2710,
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,
1109,
67,
2088,
12,
365,
16,
876,
262,
30,
3536,
2884,
326,
24354,
54,
10598,
876,
585,
1492,
711,
326,
1967,
3161,
73,
487,
326,
810,
10892,
16,
1496,
598,
279,
6463,
2710,
18,
1021,
... |
output += self.getColor(fg=color, bg=bg) + char + self.reset() | output += self.getColor(fg=color, bg=bg, nextChar=nextChar) + char + self.reset() | def rainbow(self, text=None, offset=None, style='rainbow', bg=None, colorWhitespace=False): if text is None: return if offset is None: try: offset = self.rainbowOffset[style] except KeyError: offset = 0 | 1bc661d0d1bd4f217ec53f1e43c253602a2f6d26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10942/1bc661d0d1bd4f217ec53f1e43c253602a2f6d26/colorlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
267,
70,
543,
12,
2890,
16,
977,
33,
7036,
16,
1384,
33,
7036,
16,
2154,
2218,
7596,
70,
543,
2187,
7611,
33,
7036,
16,
2036,
9431,
33,
8381,
4672,
309,
977,
353,
599,
30,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
767,
267,
70,
543,
12,
2890,
16,
977,
33,
7036,
16,
1384,
33,
7036,
16,
2154,
2218,
7596,
70,
543,
2187,
7611,
33,
7036,
16,
2036,
9431,
33,
8381,
4672,
309,
977,
353,
599,
30,
327,
... |
file.write(_escape_cdata(node.text, encoding)) | file.write(_encode(_escape_cdata(node.text), encoding)) | def _write(self, file, node, encoding, namespaces): # write XML to file tag = node.tag if tag is Comment: file.write("<!-- %s -->" % _escape_cdata(node.text, encoding)) elif tag is ProcessingInstruction: file.write("<?%s?>" % _escape_cdata(node.text, encoding)) else: items = list(node.items()) xmlns_items = [] # new na... | f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/f30bb0eba2d5aeefba5afc5fbc00a0c1ef9c271e/ElementTree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2626,
12,
2890,
16,
585,
16,
756,
16,
2688,
16,
7728,
4672,
468,
1045,
3167,
358,
585,
1047,
273,
756,
18,
2692,
309,
1047,
353,
9821,
30,
585,
18,
2626,
2932,
5586,
413,
738,
8... |
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr... | {'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr... | def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun... | 04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5302,
4873,
1576,
13332,
3536,
6910,
777,
326,
533,
924,
434,
326,
2836,
1576,
2190,
635,
3675,
12697,
10138,
16,
471,
10736,
2690,
1308,
4606,
364,
28769,
434,
999,
18,
1220,
445,
353,
... |
select tablename as name | select tablename as name, schemaname as schema | def loadSchema(self): BaseDatabase.loadSchema(self) c = self.cursor() # get tables c.execute(""" select tablename as name from pg_tables where schemaname not in ('pg_catalog', 'pg_toast', 'information_schema') """) for table, in c.fetchall(): self.tables[table] = Llist() if not len(self.tables): return self.version # v... | 7df9a4c1d3aadabe2befed3be85e455a61878c0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/7df9a4c1d3aadabe2befed3be85e455a61878c0d/postgresql_drv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
3078,
12,
2890,
4672,
3360,
4254,
18,
945,
3078,
12,
2890,
13,
276,
273,
365,
18,
9216,
1435,
468,
336,
4606,
276,
18,
8837,
2932,
3660,
2027,
19096,
487,
508,
16,
30140,
304,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3078,
12,
2890,
4672,
3360,
4254,
18,
945,
3078,
12,
2890,
13,
276,
273,
365,
18,
9216,
1435,
468,
336,
4606,
276,
18,
8837,
2932,
3660,
2027,
19096,
487,
508,
16,
30140,
304,
33... |
self._job.lock_status = msg | def ReportLocks(self, msg): """Write locking information to the job. | 9bdab6219839d70dcea52ad9ffa3b4b449794854 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/9bdab6219839d70dcea52ad9ffa3b4b449794854/jqueue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8706,
19159,
12,
2890,
16,
1234,
4672,
3536,
3067,
18887,
1779,
358,
326,
1719,
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,
8706,
19159,
12,
2890,
16,
1234,
4672,
3536,
3067,
18887,
1779,
358,
326,
1719,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
if o == "-d": | if o == '-c': cmd = a if o == '-d': | def main(): debug = 0 try: opts, args = getopt.getopt(sys.argv[1:], "d") except getopt.error, msg: sys.stderr.write("Error: %s\n" % str(msg)) sys.exit(2) for o, a in opts: if o == "-d": debug = 1 global flist, root root = Tk() fixwordbreaks(root) root.withdraw() flist = PyShellFileList(root) if args: for filename in sy... | 2fac57a506ff1be64ad2b1b6b103465aad5f5d3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2fac57a506ff1be64ad2b1b6b103465aad5f5d3b/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1198,
273,
374,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
72,
7923,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
258... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
1198,
273,
374,
775,
30,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
315,
72,
7923,
1335,
336,
3838,
18,
1636,
16,
1234,
30,
258... |
fp = open(name, '*rb') | fp = openrf(name, '*rb') | def getfileinfo(name): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
768,
1376,
12,
529,
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,
336,
768,
1376,
12,
529,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
cpu=cpuList[0].split(':')[1].strip() | cpu='unknown' if output.count(':') >0: cpu=cpuList[0].split(':')[1].strip() | def getCPU(self): """ get CPU """ | 14e32ae3f52ffa020a4b5120f408b28fc6856d6b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8887/14e32ae3f52ffa020a4b5120f408b28fc6856d6b/BOSSMonitor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
18061,
12,
2890,
4672,
3536,
336,
12154,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
18061,
12,
2890,
4672,
3536,
336,
12154,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
isRedirect = trv.isRedirect() | def cacheTroves(self, troveTupList): troveTupList = [x for x in troveTupList if x not in self] if not troveTupList: return troves = self.repos.getTroves(troveTupList, withFiles=False) | 75845b191cb51b722037a5bdd4c54c024c494415 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8747/75845b191cb51b722037a5bdd4c54c024c494415/grouprecipe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
56,
303,
3324,
12,
2890,
16,
23432,
537,
56,
416,
682,
4672,
23432,
537,
56,
416,
682,
273,
306,
92,
364,
619,
316,
23432,
537,
56,
416,
682,
309,
619,
486,
316,
365,
65,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1247,
56,
303,
3324,
12,
2890,
16,
23432,
537,
56,
416,
682,
4672,
23432,
537,
56,
416,
682,
273,
306,
92,
364,
619,
316,
23432,
537,
56,
416,
682,
309,
619,
486,
316,
365,
65,
309,
... | |
params, query or bquery, fragment)) | params, query, fragment)) | def urljoin(base, url, allow_fragments = 1): """Join a base URL and a possibly relative URL to form an absolute interpretation of the latter.""" if not base: return url bscheme, bnetloc, bpath, bparams, bquery, bfragment = \ urlparse(base, '', allow_fragments) scheme, netloc, path, params, query, fragment = \ urlparse(... | 4611b17b48fbba42d8afeec44a5999dd6c1f9c63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4611b17b48fbba42d8afeec44a5999dd6c1f9c63/urlparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25447,
12,
1969,
16,
880,
16,
1699,
67,
29528,
273,
404,
4672,
3536,
4572,
279,
1026,
1976,
471,
279,
10016,
3632,
1976,
358,
646,
392,
4967,
10634,
367,
434,
326,
23740,
12123,
309,
486... |
self.__ic.getLogger().warning("%s - createSession retry: %s",\ (reason, retries)) | self.__ic.getLogger().warning(\ "%s - createSession retry: %s"% (reason, retries) ) | def createSession(self, username=None, password=None): """ Performs the actual logic of logging in, which is done via the getRouter(). Disallows an extant ServiceFactoryPrx, and tries to re-create a null Ice.Communicator. A null or empty username will throw an exception, but an empty password is allowed. """ import ome... | e4ef73406486f02f3bb105de1d3be42964450b6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12409/e4ef73406486f02f3bb105de1d3be42964450b6d/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2157,
12,
2890,
16,
2718,
33,
7036,
16,
2201,
33,
7036,
4672,
3536,
27391,
326,
3214,
4058,
434,
2907,
316,
16,
1492,
353,
2731,
3970,
326,
4170,
14068,
7675,
3035,
5965,
87,
392,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2157,
12,
2890,
16,
2718,
33,
7036,
16,
2201,
33,
7036,
4672,
3536,
27391,
326,
3214,
4058,
434,
2907,
316,
16,
1492,
353,
2731,
3970,
326,
4170,
14068,
7675,
3035,
5965,
87,
392,
... |
rww_start = 'rww_start="0x%x"' % (int (data, 16)) | if data == 'x': rww_start = '' else: rww_start = 'rww_start="0x%x"' % (int (data, 16)) | def dump_boot_info (root): path = ['AVRPART', 'MEMORY', 'BOOT_CONFIG'] info = root.getSubTree (path) if info: # The device has bootloader support. data = info.getElements ('NRWW_START_ADDR')[0].getData () if data[0] == '$': data = '0x' + data[1:] nrww_start = 'nrww_start="0x%x"' % (int (data, 16)) data = info.getEle... | cfd2a3e7d4b18217073422afbbf32437f59a1161 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/598/cfd2a3e7d4b18217073422afbbf32437f59a1161/Atmel2libc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
7137,
67,
1376,
261,
3085,
4672,
589,
273,
10228,
5856,
54,
15055,
2187,
296,
24329,
2187,
296,
30124,
67,
7203,
3546,
225,
1123,
273,
1365,
18,
588,
1676,
2471,
261,
803,
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,
4657,
67,
7137,
67,
1376,
261,
3085,
4672,
589,
273,
10228,
5856,
54,
15055,
2187,
296,
24329,
2187,
296,
30124,
67,
7203,
3546,
225,
1123,
273,
1365,
18,
588,
1676,
2471,
261,
803,
13,
... |
would suggest. Since a mmCIF file is more-or-less a SQL database dump, | would suggest. Since a mmCIF file is more-or-less a SQL database dump, | def row_index_dict(self, clower): """Return a dictionary mapping the value of the row's value in column 'key' to the row itself. If there are multiple rows with the same key value, they will be overwritten with the last found row. """ dictx = dict() for row in self: try: dictx[row.getitem_lower(clower)] = row except K... | 7875e677f8aac91050c2770247e9ca6fcb234e85 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/7875e677f8aac91050c2770247e9ca6fcb234e85/mmCIF.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1615,
67,
1576,
12,
2890,
16,
276,
8167,
4672,
3536,
990,
279,
3880,
2874,
326,
460,
434,
326,
1027,
1807,
460,
316,
1057,
296,
856,
11,
358,
326,
1027,
6174,
18,
225,
971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1027,
67,
1615,
67,
1576,
12,
2890,
16,
276,
8167,
4672,
3536,
990,
279,
3880,
2874,
326,
460,
434,
326,
1027,
1807,
460,
316,
1057,
296,
856,
11,
358,
326,
1027,
6174,
18,
225,
971,
... |
def linescan(self, current, p1, p2, npoints=None, z=None, width=None): self.calculate_ldos(width) | def linescan(self, current, p1, p2, npoints=None, z=None, width=None, bias=0.0): self.calculate_ldos(width, bias) | def linescan(self, current, p1, p2, npoints=None, z=None, width=None): self.calculate_ldos(width) | 8c12983490ec0c104bb814a81e40822afe33125b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1380/8c12983490ec0c104bb814a81e40822afe33125b/stm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4739,
742,
304,
12,
2890,
16,
783,
16,
293,
21,
16,
293,
22,
16,
1130,
763,
87,
33,
7036,
16,
998,
33,
7036,
16,
1835,
33,
7036,
4672,
365,
18,
11162,
67,
1236,
538,
12,
2819,
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,
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,
4739,
742,
304,
12,
2890,
16,
783,
16,
293,
21,
16,
293,
22,
16,
1130,
763,
87,
33,
7036,
16,
998,
33,
7036,
16,
1835,
33,
7036,
4672,
365,
18,
11162,
67,
1236,
538,
12,
2819,
13,
... |
re_slashes = re.compile('/+') re_special_uri = re.compile('^/record/\d+|^/collection/.+') | def __call__(self, req, form): """ Maybe resolve the final / of a directory """ | 34e3759fd8d988daf736478f488636d4ab5bc8a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2111/34e3759fd8d988daf736478f488636d4ab5bc8a2/webinterface_handler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
14024,
2245,
326,
727,
342,
434,
279,
1867,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
1111,
16,
646,
4672,
3536,
14024,
2245,
326,
727,
342,
434,
279,
1867,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... | |
print new_string | def escape(old_string): # Escape literal < (unmatched tag) and new line from string. hanging = [] open = 0 pending = 0 for i in range(len(old_string)): if old_string[i] == '<': if open != 0: hanging.append(pending) pending = i continue open += 1 pending = i elif old_string[i] == '>': if open > 0: open -= 1 if open ... | a71453e970c027353629ca041c9cececa5fb4ddb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1240/a71453e970c027353629ca041c9cececa5fb4ddb/mnemosyne_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
12,
1673,
67,
1080,
4672,
225,
468,
18025,
7158,
411,
261,
318,
11073,
1047,
13,
471,
394,
980,
628,
533,
18,
225,
366,
18183,
273,
5378,
1696,
273,
374,
4634,
273,
374,
225,
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,
4114,
12,
1673,
67,
1080,
4672,
225,
468,
18025,
7158,
411,
261,
318,
11073,
1047,
13,
471,
394,
980,
628,
533,
18,
225,
366,
18183,
273,
5378,
1696,
273,
374,
4634,
273,
374,
225,
364... | |
w = numpy.r_[w, w[-2::-1]] | w = r_[w, w[-2::-1]] | def triang(M,sym=1): """The M-point triangular window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M + 1 n = arange(1,int((M+1)/2)+1) if M % 2 == 0: w = (2*n-1.0)/M w = numpy.r_[w, w[::-1]] else: w = 2*n/(M+1.0) w = numpy.r_[w, w[-2::-1]] if not ... | 936da8591e6b92539aeda1c0c884ca93d37a2754 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/936da8591e6b92539aeda1c0c884ca93d37a2754/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
539,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
6882,
13077,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
539,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
6882,
13077,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... |
{0 : ("", " as ham"), 1 : ("", " as spam"), None : ("not ", "")} | {'0' : ("", " as ham"), '1' : ("", " as spam"), None : ("not ", "")} | def ShowClues(mgr, explorer): from cgi import escape app = explorer.Application msgstore_message = explorer.GetSelectedMessages(False) if msgstore_message is None: return item = msgstore_message.GetOutlookItem() score, clues = mgr.score(msgstore_message, evidence=True) new_msg = app.CreateItem(0) # NOTE: Silly Outloo... | 4bfcf65342302dc3034e1c111a07abd7bb392ebc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/4bfcf65342302dc3034e1c111a07abd7bb392ebc/addin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
2009,
3610,
12,
13552,
16,
22147,
4672,
628,
276,
10052,
1930,
4114,
225,
595,
273,
22147,
18,
3208,
1234,
2233,
67,
2150,
273,
22147,
18,
967,
7416,
5058,
12,
8381,
13,
309,
1234,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9674,
2009,
3610,
12,
13552,
16,
22147,
4672,
628,
276,
10052,
1930,
4114,
225,
595,
273,
22147,
18,
3208,
1234,
2233,
67,
2150,
273,
22147,
18,
967,
7416,
5058,
12,
8381,
13,
309,
1234,... |
b = qltk.Button(_("_Select..."), gtk.STOCK_OPEN) | b = qltk.Button(_("_Select"), gtk.STOCK_OPEN) | def __init__(self): gtk.VBox.__init__(self, spacing=12) self.set_border_width(12) self.title = _("Library") f = qltk.Frame(_("Scan _Directories"), bold=True) hb = gtk.HBox(spacing=6) b = qltk.Button(_("_Select..."), gtk.STOCK_OPEN) e = gtk.Entry() e.set_text(util.fsdecode(config.get("settings", "scan"))) f.get_label_wi... | f60df8133cf1de007f4b4ee626107d2f3c6bfdff /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4764/f60df8133cf1de007f4b4ee626107d2f3c6bfdff/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
16,
13259,
33,
2138,
13,
365,
18,
542,
67,
8815,
67,
2819,
12,
2138,
13,
365,
18,
2649,
273,
389,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
22718,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
16,
13259,
33,
2138,
13,
365,
18,
542,
67,
8815,
67,
2819,
12,
2138,
13,
365,
18,
2649,
273,
389,
29... |
__version__ = '$Id: ttfonts.py,v 1.1 2002/05/28 15:33:57 rgbecker Exp $' | __version__ = '$Id: ttfonts.py,v 1.2 2002/07/02 21:28:29 dinu_gherman Exp $' | def getSubsetInternalName(self, subset, doc): '''Returns the name of a PDF Font object corresponding to a given subset of this dynamic font. Use this function instead of PDFDocument.getInternalFontName.''' | 07507b8a952bfffc6323d9fd017854aa4f8705ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/07507b8a952bfffc6323d9fd017854aa4f8705ae/ttfonts.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
542,
3061,
461,
12,
2890,
16,
7931,
16,
997,
4672,
9163,
1356,
326,
508,
434,
279,
12667,
10063,
733,
4656,
358,
279,
864,
7931,
434,
333,
5976,
3512,
18,
225,
2672,
333,
445,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7040,
542,
3061,
461,
12,
2890,
16,
7931,
16,
997,
4672,
9163,
1356,
326,
508,
434,
279,
12667,
10063,
733,
4656,
358,
279,
864,
7931,
434,
333,
5976,
3512,
18,
225,
2672,
333,
445,
35... |
(4.854..., 4.854...) | (4.8..., 4.8...) | def minimize_constrained(func,cons,x0,gradient=None, **args): r""" Minimize a function with constraints. INPUT: func - Either a symbolic function, or a Python function whose argument is a tuple with n components x0 - Initial point for finding minimum cons - constraints. This should be either a function or list of fu... | 138af3726535686375623c3a7568c59c01095164 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/138af3726535686375623c3a7568c59c01095164/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
67,
591,
31142,
12,
644,
16,
8559,
16,
92,
20,
16,
20219,
33,
7036,
16,
2826,
1968,
4672,
436,
8395,
5444,
10153,
279,
445,
598,
6237,
18,
225,
12943,
30,
1326,
300,
14635,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
67,
591,
31142,
12,
644,
16,
8559,
16,
92,
20,
16,
20219,
33,
7036,
16,
2826,
1968,
4672,
436,
8395,
5444,
10153,
279,
445,
598,
6237,
18,
225,
12943,
30,
1326,
300,
14635,
279,... |
write_message("Stage 4 : Start (Update the database with the metadata).", verbose=2) | write_message("Stage 4: Start (Update the database with the metadata).", verbose=2) | def bibupload(record): """Main function: process a record and fit it in the tables bibfmt, bibrec, bibrec_bibxxx, bibxxx with proper record metadata. Return (error_code, recID) of the processed record. """ error = None #If there are special tags to proceed check if it exists in the record if options['tag'] != None and... | c01e7675eac4ac02844b96fe38be4646d43de28c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c01e7675eac4ac02844b96fe38be4646d43de28c/bibupload.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25581,
6327,
12,
3366,
4672,
3536,
6376,
445,
30,
1207,
279,
1409,
471,
4845,
518,
316,
326,
4606,
25581,
8666,
16,
25581,
3927,
16,
25581,
3927,
67,
70,
495,
18310,
16,
25581,
18310,
59... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
25581,
6327,
12,
3366,
4672,
3536,
6376,
445,
30,
1207,
279,
1409,
471,
4845,
518,
316,
326,
4606,
25581,
8666,
16,
25581,
3927,
16,
25581,
3927,
67,
70,
495,
18310,
16,
25581,
18310,
59... |
if self._connected: | if self._connectedAddr: | def connect(self, host, port): """'Connect' to remote server.""" if self._connected: raise RuntimeError, "already connected, reconnecting is not currently supported" if not abstract.isIPAddress(host): raise ValueError, "please pass only IP addresses, not domain names" self._connected = True self._connectedAddr = (host,... | 23edc5b661490b32d25a539522b8339b4f2c8195 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/23edc5b661490b32d25a539522b8339b4f2c8195/udp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
16,
1756,
4672,
3536,
11,
5215,
11,
358,
2632,
1438,
12123,
309,
365,
6315,
8537,
3178,
30,
1002,
7265,
16,
315,
17583,
5840,
16,
11812,
310,
353,
486,
4551,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1479,
16,
1756,
4672,
3536,
11,
5215,
11,
358,
2632,
1438,
12123,
309,
365,
6315,
8537,
3178,
30,
1002,
7265,
16,
315,
17583,
5840,
16,
11812,
310,
353,
486,
4551,
... |
self.engine.processFrame(StompFrame('ABORT', headers={'transaction': 'abc'})) | self.engine.process_frame(StompFrame('ABORT', headers={'transaction': 'abc'})) | def test_abort(self): """ Test transaction ABORT. """ self._connect() self.engine.processFrame(StompFrame('BEGIN', headers={'transaction': 'abc'})) self.engine.processFrame(StompFrame('BEGIN', headers={'transaction': '123'})) f1 = StompFrame('SEND', headers={'destination': '/dest', 'transaction': 'abc'}, body='ASDF')... | f9d8d8c4b602e4da62a32eac4e04f31994d99e97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10258/f9d8d8c4b602e4da62a32eac4e04f31994d99e97/test_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
18623,
12,
2890,
4672,
3536,
7766,
2492,
10336,
3871,
18,
3536,
365,
6315,
3612,
1435,
225,
365,
18,
8944,
18,
2567,
3219,
12,
510,
20667,
3219,
2668,
16061,
2187,
1607,
5899,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
18623,
12,
2890,
4672,
3536,
7766,
2492,
10336,
3871,
18,
3536,
365,
6315,
3612,
1435,
225,
365,
18,
8944,
18,
2567,
3219,
12,
510,
20667,
3219,
2668,
16061,
2187,
1607,
5899,
... |
""" Returns True if it is a binary (elf) file, else False """ | """ Returns True if 'filename' is a binary (elf) file, else False """ | def isbinaryfile(filename): """ Returns True if it is a binary (elf) file, else False """ fsize = os.path.getsize(filename) if fsize < 4: # it doesn't have an header return False else: handl = open(filename, 'rb') header = handl.read(4) handl.close() valuefnd = header.find("ELF") if valuefnd == -1: # ELF not found i... | f9b5bccd6b4fd4355a72b9b495908af2da52cae3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2163/f9b5bccd6b4fd4355a72b9b495908af2da52cae3/pyfind_revdep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
8578,
768,
12,
3459,
4672,
3536,
2860,
1053,
309,
296,
3459,
11,
353,
279,
3112,
261,
19079,
13,
585,
16,
469,
1083,
3536,
225,
284,
1467,
273,
1140,
18,
803,
18,
588,
1467,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
8578,
768,
12,
3459,
4672,
3536,
2860,
1053,
309,
296,
3459,
11,
353,
279,
3112,
261,
19079,
13,
585,
16,
469,
1083,
3536,
225,
284,
1467,
273,
1140,
18,
803,
18,
588,
1467,
12,
... |
self.session.open(ChannelContextMenu, self, ) | self.session.open(ChannelContextMenu, self, current) | def doContext(self): current = self.getCurrent() if current is not None: self.session.open(ChannelContextMenu, self, ) | 9259d671be30253630f66787520fded0e15e8c0e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/9259d671be30253630f66787520fded0e15e8c0e/MovieSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1042,
12,
2890,
4672,
783,
273,
365,
18,
588,
3935,
1435,
309,
783,
353,
486,
599,
30,
365,
18,
3184,
18,
3190,
12,
2909,
27315,
16,
365,
16,
262,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
1042,
12,
2890,
4672,
783,
273,
365,
18,
588,
3935,
1435,
309,
783,
353,
486,
599,
30,
365,
18,
3184,
18,
3190,
12,
2909,
27315,
16,
365,
16,
262,
2,
-100,
-100,
-100,
-100,
-10... |
self._check(lgn, 'login') def TrainFolder(self, folder_name, isSpam): folder = IMAPFolder(folder_name) for msg in folder: if msg.isTrndAs(not isSpam): self.classifier.unlearn(msg.asTokens(), not isSpam) msg.notTrained() if not msg.isTrained(): self.classifier.learn(msg.asTokens(), isSpam) msg.trndAs(isSpam) | def Login(self): lgn = imap.login(options.imap_username, options.imap_password) self._check(lgn, 'login') | 78562f294fdc412cde22daf1b88e62102ccf5c10 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/78562f294fdc412cde22daf1b88e62102ccf5c10/imapfilter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11744,
12,
2890,
4672,
328,
1600,
273,
20226,
18,
5819,
12,
2116,
18,
12161,
67,
5053,
16,
702,
18,
12161,
67,
3664,
13,
365,
6315,
1893,
12,
80,
1600,
16,
296,
5819,
6134,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11744,
12,
2890,
4672,
328,
1600,
273,
20226,
18,
5819,
12,
2116,
18,
12161,
67,
5053,
16,
702,
18,
12161,
67,
3664,
13,
365,
6315,
1893,
12,
80,
1600,
16,
296,
5819,
6134,
2,
-100,
... | |
self.reportDeadPort() | self.showLoginStatus( "*** UDP PORT FORWARD REQUIRED ***") text = ( "In order for Dtella to communicate properly, it " "needs to receive UDP traffic from the Internet. " "Dtella is currently listening on UDP port %d, but " "the packets appear to be getting blocked, most " "likely by a firewall or a router. If this i... | def cb(): icm = self.icm self.icm = None if icm.node_ipps: self.startNodeSync(icm.node_ipps) else: reason = icm.getFailReason() | 4d15a295168efe774ccb54e440c566c6d733a535 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11503/4d15a295168efe774ccb54e440c566c6d733a535/dtella_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
13332,
277,
7670,
273,
365,
18,
335,
81,
365,
18,
335,
81,
273,
599,
225,
309,
277,
7670,
18,
2159,
67,
625,
1121,
30,
365,
18,
1937,
907,
4047,
12,
335,
81,
18,
2159,
67,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2875,
13332,
277,
7670,
273,
365,
18,
335,
81,
365,
18,
335,
81,
273,
599,
225,
309,
277,
7670,
18,
2159,
67,
625,
1121,
30,
365,
18,
1937,
907,
4047,
12,
335,
81,
18,
2159,
67,
62... |
""" C1, C2 must be linear codes defined over the same base ring. Returns the (usual vector space) direct sum of the codes. EXAMPLES: sage: C1 = HammingCode(3,GF(2)) sage: C2 = C1.direct_sum(C1); C2 Linear code of length 14, dimension 8 over Finite Field of size 2 sage: C3 = C1.direct_sum(C2); C3 Linear code of length ... | """ C1, C2 must be linear codes defined over the same base ring. Returns the (usual vector space) direct sum of the codes. EXAMPLES: sage: C1 = HammingCode(3,GF(2)) sage: C2 = C1.direct_sum(C1); C2 Linear code of length 14, dimension 8 over Finite Field of size 2 sage: C3 = C1.direct_sum(C2); C3 Linear code of length ... | def direct_sum(self,other): """ C1, C2 must be linear codes defined over the same base ring. Returns the (usual vector space) direct sum of the codes. | 0ba98abb880903a64744b106daee6f5e9f0c2143 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/0ba98abb880903a64744b106daee6f5e9f0c2143/linear_code.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2657,
67,
1364,
12,
2890,
16,
3011,
4672,
3536,
385,
21,
16,
385,
22,
1297,
506,
9103,
6198,
2553,
1879,
326,
1967,
1026,
9221,
18,
2860,
326,
261,
407,
1462,
3806,
3476,
13,
2657,
214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2657,
67,
1364,
12,
2890,
16,
3011,
4672,
3536,
385,
21,
16,
385,
22,
1297,
506,
9103,
6198,
2553,
1879,
326,
1967,
1026,
9221,
18,
2860,
326,
261,
407,
1462,
3806,
3476,
13,
2657,
214... |
self.check_sizeof(class_oldstyle, size(h + '6P')) self.check_sizeof(class_oldstyle(), size(h + '3P')) self.check_sizeof(class_oldstyle().method, size(h + '4P')) | check(class_oldstyle, size(h + '6P')) check(class_oldstyle(), size(h + '3P')) check(class_oldstyle().method, size(h + '4P')) check(complex(0,1), size(h + '2d')) | def method(): pass | c07331adbc49b53dc3f9231078b413ee58cdbee6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/c07331adbc49b53dc3f9231078b413ee58cdbee6/test_sys.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
707,
13332,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.H = None | def replay_trajectory(self, traj): """Initialize hessian from old trajectory.""" if isinstance(traj, str): from ase.io.trajectory import PickleTrajectory traj = PickleTrajectory(traj, 'r') self.H = None atoms = traj[0] r0 = atoms.get_positions().ravel() f0 = atoms.get_forces().ravel() for atoms in traj: r = atoms.get_p... | 0b3089c2dcdcf9dd8d1916c7ea1868df26d91708 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/0b3089c2dcdcf9dd8d1916c7ea1868df26d91708/bfgslinesearch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
67,
2033,
19528,
12,
2890,
16,
1284,
78,
4672,
3536,
7520,
366,
20529,
628,
1592,
27016,
12123,
309,
1549,
12,
30514,
16,
609,
4672,
628,
26561,
18,
1594,
18,
2033,
19528,
1930,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16033,
67,
2033,
19528,
12,
2890,
16,
1284,
78,
4672,
3536,
7520,
366,
20529,
628,
1592,
27016,
12123,
309,
1549,
12,
30514,
16,
609,
4672,
628,
26561,
18,
1594,
18,
2033,
19528,
1930,
2... | |
print "%s EXIT STATUS: NONE (%f seconds)" % (prefix, elapsedtime) | print "\n%s EXIT STATUS: NONE (%f seconds)\n" % (prefix, elapsedtime) | def flushkill(pid, sig): flushbuffers() os.kill(pid, sig) | 40e51f168a1d4c5be0da376001bba226401d3f3c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/40e51f168a1d4c5be0da376001bba226401d3f3c/timed_run.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3663,
16418,
12,
6610,
16,
3553,
4672,
3663,
28101,
1435,
1140,
18,
16418,
12,
6610,
16,
3553,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3663,
16418,
12,
6610,
16,
3553,
4672,
3663,
28101,
1435,
1140,
18,
16418,
12,
6610,
16,
3553,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
tarfile = forms.FileField() | tarfile = forms.FileField(error_messages={'required': 'No file was uploaded.'}) | def check_tarfile(cls, tardata): """ Validate that tardata is gzipped and contains the correct files in a wrapper directory. """ try: tfile = tarfile.open(fileobj=StringIO(tardata), mode='r:gz') except tarfile.ReadError: raise IncorrectTarFile, 'Archive is not a valid gzipped tarball' | cb8bae70bfe55a4ae19c15b00d9ae2e2f7dab4e3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11976/cb8bae70bfe55a4ae19c15b00d9ae2e2f7dab4e3/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11718,
768,
12,
6429,
16,
8232,
892,
4672,
3536,
3554,
716,
8232,
892,
353,
10331,
1845,
471,
1914,
326,
3434,
1390,
316,
279,
4053,
1867,
18,
3536,
775,
30,
268,
768,
273,
25... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
11718,
768,
12,
6429,
16,
8232,
892,
4672,
3536,
3554,
716,
8232,
892,
353,
10331,
1845,
471,
1914,
326,
3434,
1390,
316,
279,
4053,
1867,
18,
3536,
775,
30,
268,
768,
273,
25... |
def print_doc(self, doc, decor=False): if not doc: return self.print_listing(['Command', 'Description'], doc, ' --', decor) | def print_doc(self, docs): if not docs: return for cmd, doc in docs: print cmd print '\n\t-- %s\n' % doc | def print_doc(self, doc, decor=False): if not doc: return self.print_listing(['Command', 'Description'], doc, ' --', decor) | 2d161d49087eb53b87fc18a287d0874bacb983fa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/2d161d49087eb53b87fc18a287d0874bacb983fa/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
2434,
12,
2890,
16,
997,
16,
4839,
33,
8381,
4672,
309,
486,
997,
30,
327,
365,
18,
1188,
67,
21228,
12,
3292,
2189,
2187,
296,
3291,
17337,
997,
16,
296,
225,
1493,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
67,
2434,
12,
2890,
16,
997,
16,
4839,
33,
8381,
4672,
309,
486,
997,
30,
327,
365,
18,
1188,
67,
21228,
12,
3292,
2189,
2187,
296,
3291,
17337,
997,
16,
296,
225,
1493,
2187,
... |
self.workdir=self.f.attrs.get('WorkDir','Unset!') else: self.workdir=workdir | workdir=self.f.attrs.get('WorkDir','Unset!') self.datadir=os.path.join(workdir,'data') self.workdir=workdir | def __init__(self,workdir=None,datafile="datafile.hdf5", force_create=False, force_single=False): '''Create a hdf5 file from pencil code data. | 082bf2268d2d7b8de598296ccb109e521a6c42dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1377/082bf2268d2d7b8de598296ccb109e521a6c42dc/hdf5.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
33,
7036,
16,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
1252,
1214,
33,
7036,
16,
892,
768,
1546,
892,
768,
18,
26428,
25,
3113,
2944,
67,
2640,
33,
8381,
16,
2944,
67,
7526,
33,
8381,
4672,
9163,
1684,
279,
... |
except KeyError: | except ( KeyError, OSError ): | def image( self, file_id, user_id = None ): """ Return the contents of an image file that a user has previously uploaded. This is distinct from the download() method above in that it doesn't set HTTP headers for a file download. | 9bbed27d7368616e9ae1d2a5f0e4e42108c369f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6754/9bbed27d7368616e9ae1d2a5f0e4e42108c369f2/Files.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
12,
365,
16,
585,
67,
350,
16,
729,
67,
350,
273,
599,
262,
30,
3536,
2000,
326,
2939,
434,
392,
1316,
585,
716,
279,
729,
711,
7243,
9140,
18,
1220,
353,
10217,
628,
326,
4224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1316,
12,
365,
16,
585,
67,
350,
16,
729,
67,
350,
273,
599,
262,
30,
3536,
2000,
326,
2939,
434,
392,
1316,
585,
716,
279,
729,
711,
7243,
9140,
18,
1220,
353,
10217,
628,
326,
4224... |
sys.exit(0) | exit(0) | def help(): print 'Usage: fusion-icon [action|interface]' print print ' --help Display this text' print ' --reset Remove fusion-icon configuration file' print print 'Interfaces:' print ' --gtk Use the pygtk 2.10 interface' print ' --qt3 Use the PyQt3 interface (currently not installed by default)' ... | e7a5c0a35998318126872324182943e3afae53c0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/909/e7a5c0a35998318126872324182943e3afae53c0/fusion-icon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
13332,
1172,
296,
5357,
30,
25944,
17,
3950,
306,
1128,
96,
5831,
3864,
1172,
1172,
296,
225,
1493,
5201,
377,
9311,
333,
977,
11,
1172,
296,
225,
1493,
6208,
565,
3581,
25944,
17,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
13332,
1172,
296,
5357,
30,
25944,
17,
3950,
306,
1128,
96,
5831,
3864,
1172,
1172,
296,
225,
1493,
5201,
377,
9311,
333,
977,
11,
1172,
296,
225,
1493,
6208,
565,
3581,
25944,
17,... |
print 'builtin theme' | def LoadThemeCfg(self): ##current theme type radiobutton self.themeIsBuiltin.set(idleConf.GetOption('main','Theme','default', type='bool',default=1)) ##currently set theme currentOption=idleConf.CurrentTheme() print 'current option',currentOption ##load available theme option menus if self.themeIsBuiltin.get(): #defaul... | 3c2750984e96afb31ebdaae101adc0e1b2cb2b3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/3c2750984e96afb31ebdaae101adc0e1b2cb2b3f/configDialog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
8335,
8198,
12,
2890,
4672,
7541,
2972,
5006,
618,
12094,
947,
2644,
365,
18,
7997,
2520,
28032,
18,
542,
12,
20390,
3976,
18,
967,
1895,
2668,
5254,
17023,
8335,
17023,
1886,
2187,
... | |
test(r"""sre.sub('a', 'b', 'aaaaa')""", 'bbbbb') test(r"""sre.sub('a', 'b', 'aaaaa', 1)""", 'baaaa') | test(r"""sre.sub(r'a', 'b', 'aaaaa')""", 'bbbbb') test(r"""sre.sub(r'a', 'b', 'aaaaa', 1)""", 'baaaa') | def bump_num(matchobj): int_value = int(matchobj.group(0)) return str(int_value + 1) | 8b3ad8b8937d0e43717e8c99bf18a17752f68db4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8b3ad8b8937d0e43717e8c99bf18a17752f68db4/test_sre.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23559,
67,
2107,
12,
1916,
2603,
4672,
509,
67,
1132,
273,
509,
12,
1916,
2603,
18,
1655,
12,
20,
3719,
327,
609,
12,
474,
67,
1132,
397,
404,
13,
225,
2,
-100,
-100,
-100,
-100,
-10... |
return sum(l,[]) | return sum(l, []) | def inversion_polynomials_single_sbox(self, x= None, w=None, biaffine_only=None, correct_only=None): """ Generator for S-Box inversion polynomials of a single sbox. | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
316,
1589,
67,
3915,
13602,
87,
67,
7526,
67,
87,
2147,
12,
2890,
16,
619,
33,
599,
16,
341,
33,
7036,
16,
324,
1155,
1403,
558,
67,
3700,
33,
7036,
16,
3434,
67,
3700,
33,
7036,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
316,
1589,
67,
3915,
13602,
87,
67,
7526,
67,
87,
2147,
12,
2890,
16,
619,
33,
599,
16,
341,
33,
7036,
16,
324,
1155,
1403,
558,
67,
3700,
33,
7036,
16,
3434,
67,
3700,
33,
7036,
4... |
if ';' in value: value = value.split(';', 1)[0] | def parse(self, *args, **kwargs): """ return the time value (in seconds since 1970) """ value = self.__call__(*args, **kwargs) if ';' in value: value = value.split(';', 1)[0] if value: try: return mktime_tz(parsedate_tz(value)) except TypeError: raise HTTPBadRequest(( "Received an ill-formed timestamp for %s: %s\r\n") ... | 2089aac3fff40df4544df6f78fb02d227b48d8ee /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11400/2089aac3fff40df4544df6f78fb02d227b48d8ee/httpheaders.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
327,
326,
813,
460,
261,
267,
3974,
3241,
5342,
7301,
13,
3536,
460,
273,
365,
16186,
1991,
972,
30857,
1968,
16,
2826,
4333,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
327,
326,
813,
460,
261,
267,
3974,
3241,
5342,
7301,
13,
3536,
460,
273,
365,
16186,
1991,
972,
30857,
1968,
16,
2826,
4333,
... | |
if not _CreateBlockDevOnPrimary(self, instance.primary_node, instance, new_disk, info): self.LogWarning("Failed to create volume %s on primary!", new_disk.iv_name) | try: _CreateBlockDevOnPrimary(self, instance.primary_node, instance, new_disk, info) except errors.OpExecError, err: self.LogWarning("Failed to create volume %s on primary: %s", new_disk.iv_name, err) | def Exec(self, feedback_fn): """Modifies an instance. | 796cab27f717490434cf75036dab7bc09cf0167d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7542/796cab27f717490434cf75036dab7bc09cf0167d/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
1739,
5032,
392,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
3889,
12,
2890,
16,
10762,
67,
4293,
4672,
3536,
1739,
5032,
392,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
exclusions.append(pjoin('IPython', 'utils', 'platutils_posix')) | exclusions.append(ipjoin('utils', 'platutils_posix')) | def make_exclude(): # For the IPythonDoctest plugin, we need to exclude certain patterns that # cause testing problems. We should strive to minimize the number of # skipped modules, since this means untested code. As the testing # machinery solidifies, this list should eventually become empty. # These modules and pa... | 2b7da9a1bd8876ddac150877e1ae3bd4322848b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3900/2b7da9a1bd8876ddac150877e1ae3bd4322848b6/iptest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
10157,
13332,
225,
468,
2457,
326,
26085,
3244,
299,
395,
1909,
16,
732,
1608,
358,
4433,
8626,
6884,
716,
468,
4620,
7769,
9688,
18,
225,
1660,
1410,
609,
688,
358,
18935,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
10157,
13332,
225,
468,
2457,
326,
26085,
3244,
299,
395,
1909,
16,
732,
1608,
358,
4433,
8626,
6884,
716,
468,
4620,
7769,
9688,
18,
225,
1660,
1410,
609,
688,
358,
18935,
326... |
new_obj = AudioObject.init_from_file(self.wav_filename, request=rqst) | new_obj = AudioObject.init_from_file(wav_filename, request=rqst) | def test_init_from_file(self): new_obj = AudioObject.init_from_file(self.wav_filename) filename = 'example.wav' self.assertEqual(filename, new_obj.label) self.assertEqual(filename, new_obj.mods.content.title) self.assertEqual(filename, new_obj.dc.content.title) self.assert_(isinstance(new_obj.audio.content, file), 'aud... | ebf7098ec98c4922b049ba6136693a701aa15f39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6133/ebf7098ec98c4922b049ba6136693a701aa15f39/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2738,
67,
2080,
67,
768,
12,
2890,
4672,
394,
67,
2603,
273,
15045,
921,
18,
2738,
67,
2080,
67,
768,
12,
2890,
18,
24801,
67,
3459,
13,
1544,
273,
296,
8236,
18,
24801,
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,
2738,
67,
2080,
67,
768,
12,
2890,
4672,
394,
67,
2603,
273,
15045,
921,
18,
2738,
67,
2080,
67,
768,
12,
2890,
18,
24801,
67,
3459,
13,
1544,
273,
296,
8236,
18,
24801,
11... |
:param description: A description for the field, typically used for help text. It is available through the `description` property after construction. :param id: An id to use for the field. A reasonable default is set by the form, and you shouldn't need to set this manually. | def __init__(self, label=u'', validators=None, filters=tuple(), description=u'', id=None, default=None, widget=None, _form=None, _name=None, _prefix=''): """ Construct a new field. | 41b85beabce5c2fb94cabf1b05fb84dda0b52947 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8614/41b85beabce5c2fb94cabf1b05fb84dda0b52947/fields.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
33,
89,
11,
2187,
11632,
33,
7036,
16,
3415,
33,
8052,
9334,
2477,
33,
89,
11,
2187,
612,
33,
7036,
16,
805,
33,
7036,
16,
3604,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1433,
33,
89,
11,
2187,
11632,
33,
7036,
16,
3415,
33,
8052,
9334,
2477,
33,
89,
11,
2187,
612,
33,
7036,
16,
805,
33,
7036,
16,
3604,
33,
7036,
16,
... | |
docstrings, stmts): | docstrings, stmts, suite=None): | def _find_docstrings_helper(self, ast, filename, tokeniter, docstrings, stmts): if ast == '': return # If `ast` is a leaf in the syntax tree, then iterate through the # tokens until we find one that matches the leaf. Record any # tokens that contain docstrings. if isinstance(ast, str): for typ,tok,start,end,line in t... | 188c57154ba273c24ec9032de07558d80360324e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/188c57154ba273c24ec9032de07558d80360324e/docparser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
67,
2434,
10219,
67,
4759,
12,
2890,
16,
3364,
16,
1544,
16,
1147,
2165,
16,
997,
10219,
16,
15452,
16,
11371,
33,
7036,
4672,
309,
3364,
422,
875,
30,
327,
225,
468,
971,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4720,
67,
2434,
10219,
67,
4759,
12,
2890,
16,
3364,
16,
1544,
16,
1147,
2165,
16,
997,
10219,
16,
15452,
16,
11371,
33,
7036,
4672,
309,
3364,
422,
875,
30,
327,
225,
468,
971,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.