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 |
|---|---|---|---|---|---|---|
text = turn_featurenames_into_links(text, savekey = id(obj), saveplace = _actions ) | text = turn_featurenames_into_links\ (text, savekey = id(obj), saveplace = _actions ) | def fix_QAction_whatsthis(obj, mac): text = str(obj.whatsThis()) if mac: text = replace_ctrl_with_cmd(text) if enable_whatsthis_links: text = turn_featurenames_into_links(text, savekey = id(obj), saveplace = _actions ) obj.setWhatsThis(text) return | 596540c24ceb3b478e904a42e26d7d5dd8809d95 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/596540c24ceb3b478e904a42e26d7d5dd8809d95/whatsthis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
53,
1803,
67,
23770,
20244,
291,
12,
2603,
16,
5318,
4672,
977,
273,
609,
12,
2603,
18,
3350,
2323,
2503,
10756,
309,
5318,
30,
977,
273,
1453,
67,
16277,
67,
1918,
67,
4172,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
67,
53,
1803,
67,
23770,
20244,
291,
12,
2603,
16,
5318,
4672,
977,
273,
609,
12,
2603,
18,
3350,
2323,
2503,
10756,
309,
5318,
30,
977,
273,
1453,
67,
16277,
67,
1918,
67,
4172,... |
pixel = x % width sat = satStart + satStep*pixel | gradientIndex = (x - offset + bitmapWidth) % bitmapWidth gradientIndex %= width sat = satStart + satStep*gradientIndex | def MakeGradientBitmap(self, width, leftColor, rightColor): """ Creates a gradient brush from leftColor to rightColor, specified as color tuples (r,g,b) The brush is a bitmap, width of self.dayWidth, height 1. The color gradient is made by varying the color saturation from leftColor to rightColor. This means that the H... | eb038a8d592a9472b37a26775af15c1eb21b246f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/eb038a8d592a9472b37a26775af15c1eb21b246f/CalendarCanvas.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
15651,
12224,
12,
2890,
16,
1835,
16,
2002,
2957,
16,
2145,
2957,
4672,
3536,
10210,
279,
10292,
5186,
1218,
628,
2002,
2957,
358,
2145,
2957,
16,
1269,
487,
2036,
10384,
261,
86,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4344,
15651,
12224,
12,
2890,
16,
1835,
16,
2002,
2957,
16,
2145,
2957,
4672,
3536,
10210,
279,
10292,
5186,
1218,
628,
2002,
2957,
358,
2145,
2957,
16,
1269,
487,
2036,
10384,
261,
86,
... |
fdb_iternext3 = cfunc('tcfdbiternext3', libtc, c_char_p, | fdb_iternext3 = cfunc('tcfdbiternext3', libtc, tc_char_p, | def __del__(self): if self and libtc: libtc.tclistdel(self) | dbbe3962b596ffe7b2155154afc45e1897eb4bb2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4926/dbbe3962b596ffe7b2155154afc45e1897eb4bb2/tc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
471,
2561,
5111,
30,
2561,
5111,
18,
88,
830,
376,
3771,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
3771,
972,
12,
2890,
4672,
309,
365,
471,
2561,
5111,
30,
2561,
5111,
18,
88,
830,
376,
3771,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
file.Write("\nconst PPB_OpenGLES ppb_opengles = {\n") | file.Write("\nconst struct PPB_OpenGLES_Dev ppb_opengles = {\n") | def WritePepperGLES2Implementation(self, filename): """Writes the Pepper OpenGLES interface implementation.""" | fa34f7f0b969cee4616b0a88cc66de6c8ff3746d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/fa34f7f0b969cee4616b0a88cc66de6c8ff3746d/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
28828,
457,
43,
11386,
22,
13621,
12,
2890,
16,
1544,
4672,
3536,
8368,
326,
453,
881,
457,
3502,
43,
11386,
1560,
4471,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
2598,
28828,
457,
43,
11386,
22,
13621,
12,
2890,
16,
1544,
4672,
3536,
8368,
326,
453,
881,
457,
3502,
43,
11386,
1560,
4471,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
cflags = ['/MD'] | cflags = ['/MD', '/O2'] | def _install_msvc_env(): # The same compiler must be used for the python interpreter # and extension modules msc_pos = sys.version.find('MSC v.') if msc_pos == -1: # Not a windows platform... return msc_ver = int(sys.version[msc_pos+6:msc_pos+10]) # 1300 -> 70, 1310 -> 71, 1400 -> 80, 1500 -> 90 vsver = (msc_ver / 10)... | 276db6f60b9b453dae899e25e7442f2004392faa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/276db6f60b9b453dae899e25e7442f2004392faa/windows.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
959,
4227,
67,
3074,
13332,
468,
1021,
1967,
5274,
1297,
506,
1399,
364,
326,
5790,
16048,
468,
471,
2710,
4381,
312,
1017,
67,
917,
273,
2589,
18,
1589,
18,
4720,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5425,
67,
959,
4227,
67,
3074,
13332,
468,
1021,
1967,
5274,
1297,
506,
1399,
364,
326,
5790,
16048,
468,
471,
2710,
4381,
312,
1017,
67,
917,
273,
2589,
18,
1589,
18,
4720,
2668,
... |
extension_attributes=extension_attributes) | extension_attributes=extension_attributes, text=text) | def __init__(self, extension_elements=None, extension_attributes=None): UriEnumElement.__init__(self, 'who', Who.relEnum, attrib_name='rel', extension_elements=extension_elements, extension_attributes=extension_attributes) self.name=None self.email=None self.attendeeStatus=None self.attendeeType=None self.rel=None | 0ba6315ab8118b874d87e51c8f024bfc6f59e8a9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/0ba6315ab8118b874d87e51c8f024bfc6f59e8a9/gcalendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
4672,
10693,
3572,
1046,
16186,
2738,
972,
12,
2890,
16,
296,
3350,
83,
2187,
3497,
83,
18,
2878,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
4672,
10693,
3572,
1046,
16186,
2738,
972,
12,
2890,
16,
296,
3350,
83,
2187,
3497,
83,
18,
2878,... |
Let us compute longest path on random graphs with random weights. We each time ensure the given graph is indeed a | Let us compute longest paths on random graphs with random weights. Each time, we ensure the resulting graph is indeed a | def longest_path(self, s = None, t = None, weighted = False, algorithm = "MILP", solver = None, verbose = 0): r""" Returns a longest path of ``self``. | 815c98d316de2356ea416011f877811bcf39fae3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/815c98d316de2356ea416011f877811bcf39fae3/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... |
self.conditionals.append("!defined(%s)" % apstr) | self.conditionals.append("!defined(%s)" % apstr) | def parsePreproc(self, token): | dee23485f639f0738a4a0cc3159c5140ea425b37 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12659/dee23485f639f0738a4a0cc3159c5140ea425b37/apibuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1386,
9381,
12,
2890,
16,
1147,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
1386,
9381,
12,
2890,
16,
1147,
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,
-10... |
slices[k].append(slice(None)) slices[0][axis] = slice(None,N/2) slices[1][axis] = slice(None,None,2) slices[2][axis] = slice(N/2,None) slices[3][axis] = slice(N,None,-2) | slices[k].append(slice(None)) if even: xtilde = 0.0*x slices[0][axis] = slice(None,N/2) slices[1][axis] = slice(None,None,2) slices[2][axis] = slice(N/2,None) slices[3][axis] = slice(N,None,-2) else: newshape = list(x.shape) newshape[axis] = 2*N xtilde = sb.empty(newshape,sb.Float) slices[0][axis] = slice(None,N) slice... | def dct(x,axis=-1): n = len(x.shape) N = x.shape[axis] if (N%2 != 0): raise ValueError, "Length of sequence must be even." xtilde = 0.0*x slices = [None]*4 for k in range(4): slices[k] = [] for j in range(n): slices[k].append(slice(None)) slices[0][axis] = slice(None,N/2) slices[1][axis] = slice(None,None,2) slices[2][... | 8a6c0e7c7c6d0ef9ca4896d8af69746dcb51ce58 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/8a6c0e7c7c6d0ef9ca4896d8af69746dcb51ce58/transforms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18253,
12,
92,
16,
4890,
29711,
21,
4672,
290,
273,
562,
12,
92,
18,
4867,
13,
423,
273,
619,
18,
4867,
63,
4890,
65,
309,
261,
50,
9,
22,
480,
374,
4672,
1002,
2068,
16,
315,
1782... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18253,
12,
92,
16,
4890,
29711,
21,
4672,
290,
273,
562,
12,
92,
18,
4867,
13,
423,
273,
619,
18,
4867,
63,
4890,
65,
309,
261,
50,
9,
22,
480,
374,
4672,
1002,
2068,
16,
315,
1782... |
morelines = self.file.readlines(random.randrange(0, 300)) | morelines = self.file.readlines(random.randrange(1, 300)) | def test_readlines_max(self): i = 0 stop = 0 samplelines = self.expected_lines() while stop < 5: morelines = self.file.readlines(random.randrange(0, 300)) for inputline in morelines: assert inputline == samplelines[0] samplelines.pop(0) if not samplelines: stop += 1 | 0c5838e3e5b33aa3d7d87ac1580294c1e9bb2812 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/0c5838e3e5b33aa3d7d87ac1580294c1e9bb2812/test_file_extra.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
67,
1896,
12,
2890,
4672,
277,
273,
374,
2132,
273,
374,
272,
2475,
14567,
273,
365,
18,
3825,
67,
3548,
1435,
1323,
2132,
411,
1381,
30,
1898,
3548,
273,
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,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
896,
3548,
67,
1896,
12,
2890,
4672,
277,
273,
374,
2132,
273,
374,
272,
2475,
14567,
273,
365,
18,
3825,
67,
3548,
1435,
1323,
2132,
411,
1381,
30,
1898,
3548,
273,
365,
18,... |
rsync = self._make_rsync_cmd(remote_source, local_dest, | rsync = self._make_rsync_cmd([remote_source], local_dest, | def get_file(self, source, dest, delete_dest=False): """ Copy files from the remote host to a local path. | 664339d283d0ac31a5eaab7be6143031f519d4e7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12268/664339d283d0ac31a5eaab7be6143031f519d4e7/abstract_ssh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
12,
2890,
16,
1084,
16,
1570,
16,
1430,
67,
10488,
33,
8381,
4672,
3536,
5631,
1390,
628,
326,
2632,
1479,
358,
279,
1191,
589,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
768,
12,
2890,
16,
1084,
16,
1570,
16,
1430,
67,
10488,
33,
8381,
4672,
3536,
5631,
1390,
628,
326,
2632,
1479,
358,
279,
1191,
589,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,... |
"2": self.keyNumberGlobal, "3": self.keyNumberGlobal, "4": self.keyNumberGlobal, "5": self.keyNumberGlobal, "6": self.keyNumberGlobal, "7": self.keyNumberGlobal, "8": self.keyNumberGlobal, "9": self.keyNumberGlobal, "0": self.keyNumberGlobal | "2": self.keyNumberGlobal, "3": self.keyNumberGlobal, "4": self.keyNumberGlobal, "5": self.keyNumberGlobal, "6": self.keyNumberGlobal, "7": self.keyNumberGlobal, "8": self.keyNumberGlobal, "9": self.keyNumberGlobal, "0": self.keyNumberGlobal | def __init__(self, session, nim): Screen.__init__(self, session) self.nim = nim | aafd3efd2bb9865fe1c5aa930624cd321f6e2533 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/aafd3efd2bb9865fe1c5aa930624cd321f6e2533/Satconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
290,
381,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
82,
381,
273,
290,
381,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1339,
16,
290,
381,
4672,
10146,
16186,
2738,
972,
12,
2890,
16,
1339,
13,
365,
18,
82,
381,
273,
290,
381,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print attrs | def _normalizeControlField(self,attrs): print attrs level=None accRole=attrs.get('IAccessible::role',0) accRole=int(accRole) if isinstance(accRole,basestring) and accRole.isdigit() else accRole role=IAccessibleHandler.IAccessibleRolesToNVDARoles.get(accRole,controlTypes.ROLE_UNKNOWN) states=set(IAccessibleHandler.IAcce... | 91db3e2640db1ed265f2236bef0991de977fa970 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9340/91db3e2640db1ed265f2236bef0991de977fa970/MSHTML.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12237,
3367,
974,
12,
2890,
16,
7039,
4672,
1801,
33,
7036,
4078,
2996,
33,
7039,
18,
588,
2668,
45,
10451,
2866,
4615,
2187,
20,
13,
4078,
2996,
33,
474,
12,
8981,
2996,
13,
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,
389,
12237,
3367,
974,
12,
2890,
16,
7039,
4672,
1801,
33,
7036,
4078,
2996,
33,
7039,
18,
588,
2668,
45,
10451,
2866,
4615,
2187,
20,
13,
4078,
2996,
33,
474,
12,
8981,
2996,
13,
309,... | |
self.signalBeyondText.text = self.cvtAppearanceText(nearSignal) | self.signalBeyondText.text = self.cvtAppearanceText(farSignal) | def didWeMove(self) : #self.msgText("didWeMove start: " + self.giveBlockName(self.currentBlock) + ":" + self.giveBlockName(self.nextBlock) + "\n") if (self.currentThrottle == None) : #self.msgText("didWeMove called while currentThrottle was None\n") return #if (self.currentBlock != None) : #self.msgText("Current block:... | 4661e9137727c41dce26f1e42795eaf5a6963cb4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1660/4661e9137727c41dce26f1e42795eaf5a6963cb4/RobotThrottle2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5061,
3218,
7607,
12,
2890,
13,
294,
468,
2890,
18,
3576,
1528,
2932,
14044,
3218,
7607,
787,
30,
315,
397,
365,
18,
75,
688,
1768,
461,
12,
2890,
18,
2972,
1768,
13,
397,
6153,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5061,
3218,
7607,
12,
2890,
13,
294,
468,
2890,
18,
3576,
1528,
2932,
14044,
3218,
7607,
787,
30,
315,
397,
365,
18,
75,
688,
1768,
461,
12,
2890,
18,
2972,
1768,
13,
397,
6153,
397,
... |
msg = self.ExecuteCommand( "rm -rf " + self.SandboxDir \ + ' ' + self.zippedISB ) | if sandboxFileList != '' : msg = self.ExecuteCommand( "rm -rf " + self.SandboxDir \ + ' ' + self.zippedISB ) | def wmproxySubmit( self, jdl, wms, sandboxFileList ) : """ actual submission function provides the interaction with the wmproxy. needs some cleaning """ | 686f7a47b3cd8ea6bdd0c47d0a99b0f0005852ce /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8886/686f7a47b3cd8ea6bdd0c47d0a99b0f0005852ce/SchedulerGLiteAPI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18200,
5656,
11620,
12,
365,
16,
525,
5761,
16,
341,
959,
16,
15202,
26098,
262,
294,
3536,
3214,
8515,
445,
225,
8121,
326,
13581,
598,
326,
18200,
5656,
18,
4260,
2690,
24225,
3536,
2,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18200,
5656,
11620,
12,
365,
16,
525,
5761,
16,
341,
959,
16,
15202,
26098,
262,
294,
3536,
3214,
8515,
445,
225,
8121,
326,
13581,
598,
326,
18200,
5656,
18,
4260,
2690,
24225,
3536,
2,... |
self.recall(sel) | self.recall(sel, event) | def enter_callback(self, event): if self.executing and not self.reading: return # Let the default binding (insert '\n') take over # If some text is selected, recall the selection # (but only if this before the I/O mark) try: sel = self.text.get("sel.first", "sel.last") if sel: if self.text.compare("sel.last", "<=", "io... | 4a60c2509101bbcdc5d7ab9cdd50c14feed8709f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/4a60c2509101bbcdc5d7ab9cdd50c14feed8709f/PyShell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
67,
3394,
12,
2890,
16,
871,
4672,
309,
365,
18,
4177,
8490,
471,
486,
365,
18,
21803,
30,
327,
468,
10559,
326,
805,
5085,
261,
6387,
2337,
82,
6134,
4862,
1879,
468,
971,
2690,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
67,
3394,
12,
2890,
16,
871,
4672,
309,
365,
18,
4177,
8490,
471,
486,
365,
18,
21803,
30,
327,
468,
10559,
326,
805,
5085,
261,
6387,
2337,
82,
6134,
4862,
1879,
468,
971,
2690,... |
"""A field for creating references between objects. Values used in get() and set() methods are either string or list depending on multiValued. The strings represent UIDs. If no vocabulary is provided by you, one will be assembled based on allowed_types. """ | def validate_required(self, instance, value, errors): value = sum(self._to_tuple(value)) return ObjectField.validate_required(self, instance, value, errors) | 64c71cec849e633ac53e1bcfe44e2c42bf15bd9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/64c71cec849e633ac53e1bcfe44e2c42bf15bd9b/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
460,
273,
2142,
12,
2890,
6315,
869,
67,
8052,
12,
1132,
3719,
327,
1033,
974,
18,
5662,
67,
4718,
12,
2890,
16,
791,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1954,
67,
4718,
12,
2890,
16,
791,
16,
460,
16,
1334,
4672,
460,
273,
2142,
12,
2890,
6315,
869,
67,
8052,
12,
1132,
3719,
327,
1033,
974,
18,
5662,
67,
4718,
12,
2890,
16,
791,
16,
... | |
func = RPC_FUNCTIONS[request] status,retvalue = func(conn_id,value) | conn_type = CONNECTIONS[conn_id]["type"] allowed = conn_type in RPC_FUNCTION_SECURITY[request] if allowed: func = RPC_FUNCTIONS[request] status,retvalue = func(conn_id,value) else: status = False retvalue = None | def new_rpc(conn_id, sock): # If anything fails, close the socket try: # Get the RPC object rpc_dict = RPC_decode(sock) # DEBUG print getruntime(),"RPC Request:",rpc_dict # Get the RPC call id if RPC_REQUEST_ID in rpc_dict: callID = rpc_dict[RPC_REQUEST_ID] else: callID = 0 # Get the requested function if RPC_FUNCTI... | 97c98a4639b5732c55eb56e45c05285f614b74a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7263/97c98a4639b5732c55eb56e45c05285f614b74a9/forwarder_rpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
7452,
12,
4646,
67,
350,
16,
7313,
4672,
468,
971,
6967,
6684,
16,
1746,
326,
2987,
775,
30,
468,
968,
326,
8295,
733,
6724,
67,
1576,
273,
8295,
67,
3922,
12,
15031,
13,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
7452,
12,
4646,
67,
350,
16,
7313,
4672,
468,
971,
6967,
6684,
16,
1746,
326,
2987,
775,
30,
468,
968,
326,
8295,
733,
6724,
67,
1576,
273,
8295,
67,
3922,
12,
15031,
13,
22... |
datas = request.POST.copy() datas['subject'] = subject datas['content'] = content datas['name'] = name datas['email'] = email form = ContactForm(datas) | form = ContactForm(request.POST) | def _contact(request, name, email, subject, content): if request.method == 'POST': datas = request.POST.copy() datas['subject'] = subject datas['content'] = content datas['name'] = name datas['email'] = email form = ContactForm(datas) if form.is_valid(): __contact(form) return True return form.errors['__all__'] return... | dd912a443f02a6e064e41c2f5178ddde683293b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4038/dd912a443f02a6e064e41c2f5178ddde683293b2/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8994,
12,
2293,
16,
508,
16,
2699,
16,
3221,
16,
913,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
646,
273,
13329,
1204,
12,
2293,
18,
3798,
13,
309,
646,
18,
291,
67,
877,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8994,
12,
2293,
16,
508,
16,
2699,
16,
3221,
16,
913,
4672,
309,
590,
18,
2039,
422,
296,
3798,
4278,
646,
273,
13329,
1204,
12,
2293,
18,
3798,
13,
309,
646,
18,
291,
67,
877,
... |
tokens = { 'sequence' : line[0:7], 'pid' : line[8:27], 'text' : line[27:32], 'X_str' : line[36], 'x' : line[38:50], 'Y_str' : line[51], 'y' : line[53:66], 'Z_str' : line[67], 'z' : line[69:80] } try: int(tokens['sequence']) int(tokens['pid']) float(tokens['x']) float(tokens['y']) float(tokens['z']) except (ValueError... | tokens = { 'sequence' : line[0:7], 'pid' : line[8:27], 'text' : line[27:32], 'X_str' : line[36], 'x' : line[38:50], 'Y_str' : line[51], 'y' : line[53:66], 'Z_str' : line[67], 'z' : line[69:80] } try: int(tokens['sequence']) int(tokens['pid']) float(tokens['x']) float(tokens['y']) float(tokens['z']) except (ValueError... | def is_point(self,line): | 77c432b5e44f51aac25a2b91014f3ae1d0847f16 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5205/77c432b5e44f51aac25a2b91014f3ae1d0847f16/zeiss_elta_r55.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1153,
12,
2890,
16,
1369,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
1153,
12,
2890,
16,
1369,
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,
... |
Title: <INPUT TYPE=text SIZE=70 NAME=title VALUE="%s"<BR> | Title: <INPUT TYPE=text SIZE=70 NAME=title VALUE="%s"><BR> | def showedit(self, name, title, text): | a0dd5c7ba1a16a3f39f963d576d3d261c2fdd34e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/a0dd5c7ba1a16a3f39f963d576d3d261c2fdd34e/faqmain.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
4619,
12,
2890,
16,
508,
16,
2077,
16,
977,
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,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
4619,
12,
2890,
16,
508,
16,
2077,
16,
977,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.__schema = getattr(interfaces, profileSchemaName) | self.__schema = getattr(profileSchemas, profileSchemaName) | def __init__(self, context): self.context = context self.__properties = ODict() | e91e39d9f982bd54da8038629c6faf9e2ee7dba9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6252/e91e39d9f982bd54da8038629c6faf9e2ee7dba9/create_users_from_csv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
819,
4672,
365,
18,
2472,
273,
819,
365,
16186,
4738,
273,
531,
5014,
1435,
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,
2738,
972,
12,
2890,
16,
819,
4672,
365,
18,
2472,
273,
819,
365,
16186,
4738,
273,
531,
5014,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
elif dist.maintainer: if not dist.maintainer_email: | elif metadata.maintainer: if not metadata.maintainer_email: | def check_metadata (self): | 20b4376838dcd2673d5f93274981d152b6081ce7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/20b4376838dcd2673d5f93274981d152b6081ce7/sdist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4165,
261,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4165,
261,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
def set_model_id(self, model_id): """Sets the model_id of all contained objects. """ assert type(model_id)==IntType self.model_id = model_id for frag in self.iter_fragments(): frag.set_model_id(model_id) | def remove_fragment(self, fragment): """Remove the Fragment from the Chain. """ Segment.remove_fragment(self, fragment) fragment.chain = None | 98cad825ba0fabe8950b29dee5164e5a7571a5e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10674/98cad825ba0fabe8950b29dee5164e5a7571a5e1/Structure.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11956,
12,
2890,
16,
5481,
4672,
3536,
3288,
326,
18009,
628,
326,
7824,
18,
3536,
10807,
18,
4479,
67,
11956,
12,
2890,
16,
5481,
13,
5481,
18,
5639,
273,
599,
225,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
67,
11956,
12,
2890,
16,
5481,
4672,
3536,
3288,
326,
18009,
628,
326,
7824,
18,
3536,
10807,
18,
4479,
67,
11956,
12,
2890,
16,
5481,
13,
5481,
18,
5639,
273,
599,
225,
2,
-100,... | |
rounded_time = mx.DateTime.DateTimeDelta( time.day, time.hour, math.ceil(time.minutes)) | rounded_time = round_time_to_minutes(time) | def add_entry(tracker, task, text): current_time = mx.DateTime.now() time = current_time - tracker.starttime rounded_time = mx.DateTime.DateTimeDelta( time.day, time.hour, math.ceil(time.minutes)) task.entries.append(Entry(text, rounded_time)) # Reset the timer's start time tracker.starttime = current_time | 5b4f830c9e3c55def8a244fe3cba8b36027844b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10445/5b4f830c9e3c55def8a244fe3cba8b36027844b3/tracker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
4099,
12,
16543,
16,
1562,
16,
977,
4672,
783,
67,
957,
273,
7938,
18,
5096,
18,
3338,
1435,
813,
273,
783,
67,
957,
300,
9745,
18,
1937,
957,
16729,
67,
957,
273,
3643,
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,
527,
67,
4099,
12,
16543,
16,
1562,
16,
977,
4672,
783,
67,
957,
273,
7938,
18,
5096,
18,
3338,
1435,
813,
273,
783,
67,
957,
300,
9745,
18,
1937,
957,
16729,
67,
957,
273,
3643,
67,... |
'''Send GET request to cmdctl, session id is send with the name | '''Send POST request to cmdctl, session id is send with the name | def send_POST(self, url, post_param = None): '''Send GET request to cmdctl, session id is send with the name 'cookie' in header. Format: /module_name/command_name parameters of command is encoded as a map ''' param = None if (len(post_param) != 0): param = json.dumps(post_param) | 6fe5d6fe60deb4152630d98eba051ff984b6fcf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6792/6fe5d6fe60deb4152630d98eba051ff984b6fcf3/bindcmd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
3798,
12,
2890,
16,
880,
16,
1603,
67,
891,
273,
599,
4672,
9163,
3826,
5485,
590,
358,
1797,
12930,
16,
1339,
612,
353,
1366,
598,
326,
508,
296,
8417,
11,
316,
1446,
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,
1366,
67,
3798,
12,
2890,
16,
880,
16,
1603,
67,
891,
273,
599,
4672,
9163,
3826,
5485,
590,
358,
1797,
12930,
16,
1339,
612,
353,
1366,
598,
326,
508,
296,
8417,
11,
316,
1446,
18,
... |
iter += 1 | iters += 1 | def anneal(func, x0, args=(), schedule='fast', full_output=0, T0=None, Tf=1e-12, maxeval=None, maxaccept=None, maxiter=400, boltzmann=1.0, learn_rate=0.5, feps=1e-6, quench=1.0, m=1.0, n=1.0, lower=-100, upper=100, dwell=50): """Minimize a function using simulated annealing. Schedule is a schedule class implementing t... | cdc22b7f935df58d1b69463351bbb112522c34e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cdc22b7f935df58d1b69463351bbb112522c34e1/anneal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
4644,
287,
12,
644,
16,
619,
20,
16,
833,
33,
9334,
4788,
2218,
8076,
2187,
1983,
67,
2844,
33,
20,
16,
399,
20,
33,
7036,
16,
399,
74,
33,
21,
73,
17,
2138,
16,
943,
8622,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
392,
4644,
287,
12,
644,
16,
619,
20,
16,
833,
33,
9334,
4788,
2218,
8076,
2187,
1983,
67,
2844,
33,
20,
16,
399,
20,
33,
7036,
16,
399,
74,
33,
21,
73,
17,
2138,
16,
943,
8622,
... |
'create'+subAction, name[len(self.name)+1:], None, idx, (acFun, acCtx) | 'create'+subAction, name[:len(self.name)+1], name[len(self.name)+1:], None, idx, (acFun, acCtx) | def __delegate(self, subAction, name, val, idx, (acFun, acCtx)): # Relay operation request to column, expect row operation request. try: getattr(self.getBranch(name, idx), 'write'+subAction)( name, val, idx, (acFun, acCtx) ) except error.RowCreationWanted, why: self.__manageColumns( 'create'+subAction, name[len(self.na... | 99731021fa5ab2f97046e80c30058ba7fcd1aadf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/587/99731021fa5ab2f97046e80c30058ba7fcd1aadf/SNMPv2-SMI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
22216,
12,
2890,
16,
720,
1803,
16,
508,
16,
1244,
16,
2067,
16,
261,
1077,
22783,
16,
1721,
6442,
3719,
30,
468,
4275,
528,
1674,
590,
358,
1057,
16,
4489,
1027,
1674,
590,
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,
1001,
22216,
12,
2890,
16,
720,
1803,
16,
508,
16,
1244,
16,
2067,
16,
261,
1077,
22783,
16,
1721,
6442,
3719,
30,
468,
4275,
528,
1674,
590,
358,
1057,
16,
4489,
1027,
1674,
590,
18,
... |
if not hasattr(globals(), 'tk_root'): | def has_tk(): """Sets up a suitable tk root window if one has not already been setup. Returns true if tk is happy, false if tk throws an error (like its not available)""" if not hasattr(globals(), 'tk_root'): # create a hidden root window to make Tk happy try: global tk_root from Tkinter import Tk tk_root = Tk() tk_roo... | 7170fc183935ab223dd0aeb8f257b350efa792d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1843/7170fc183935ab223dd0aeb8f257b350efa792d7/zopeedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
16099,
13332,
3536,
2785,
731,
279,
10631,
13030,
1365,
2742,
309,
1245,
711,
486,
1818,
2118,
3875,
18,
2860,
638,
309,
13030,
353,
5622,
2074,
16,
629,
309,
13030,
1216,
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,
711,
67,
16099,
13332,
3536,
2785,
731,
279,
10631,
13030,
1365,
2742,
309,
1245,
711,
486,
1818,
2118,
3875,
18,
2860,
638,
309,
13030,
353,
5622,
2074,
16,
629,
309,
13030,
1216,
392,
... | |
print 'Usage: soar <script file> | <agent file>' | print 'Usage: soar [-w<n>] [-l] [-f] <script file> | <agent file>' | def sig_handler(signum, frame): global kernel kernel.Shutdown() | 625d9d8e60523277ea5c00d246d7b2bf58676f2a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7008/625d9d8e60523277ea5c00d246d7b2bf58676f2a/runSoar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
67,
4176,
12,
2977,
379,
16,
2623,
4672,
2552,
5536,
225,
5536,
18,
10961,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3553,
67,
4176,
12,
2977,
379,
16,
2623,
4672,
2552,
5536,
225,
5536,
18,
10961,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
obj=self.obj | return self.obj | def _get_NVDAObjectAtStart(self): p=self.pointAtStart obj=api.getDesktopObject().objectFromPoint(p.x,p.y) from NVDAObjects.window import Window if not obj or not isinstance(obj,Window) or not winUser.isDescendantWindow(self.obj.windowHandle,obj.windowHandle): obj=self.obj return obj | a236ae851fbb85c472b3679d868b1184c6a436cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9340/a236ae851fbb85c472b3679d868b1184c6a436cc/displayModel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
11679,
9793,
921,
861,
1685,
12,
2890,
4672,
293,
33,
2890,
18,
1153,
861,
1685,
1081,
33,
2425,
18,
588,
27583,
921,
7675,
1612,
1265,
2148,
12,
84,
18,
92,
16,
84,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
11679,
9793,
921,
861,
1685,
12,
2890,
4672,
293,
33,
2890,
18,
1153,
861,
1685,
1081,
33,
2425,
18,
588,
27583,
921,
7675,
1612,
1265,
2148,
12,
84,
18,
92,
16,
84,
18... |
result = Repr.repr(self, object) return result | return Repr.repr(self, object) | def repr(self, object): result = Repr.repr(self, object) return result | 37f7b38eb6247564c00c8a355ab12268e8486c4e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/37f7b38eb6247564c00c8a355ab12268e8486c4e/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8480,
12,
2890,
16,
733,
4672,
563,
273,
868,
683,
18,
12715,
12,
2890,
16,
733,
13,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8480,
12,
2890,
16,
733,
4672,
563,
273,
868,
683,
18,
12715,
12,
2890,
16,
733,
13,
327,
563,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
"""The server refused our HELO reply""" | """The server refused our HELO reply.""" | def __init__(self, recipients): self.recipients = recipients self.args = ( recipients,) | e01b9711d468595d7e3ccadaae7ba2cc3df096ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e01b9711d468595d7e3ccadaae7ba2cc3df096ae/smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12045,
4672,
365,
18,
27925,
273,
12045,
365,
18,
1968,
273,
261,
12045,
16,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
12045,
4672,
365,
18,
27925,
273,
12045,
365,
18,
1968,
273,
261,
12045,
16,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
logger.debug("Override encoding of template to %s" % self.encoding) | if self.encoding != 'ascii': logger.debug("Override encoding of %s TGenshi template to %s" % (self.name, self.encoding)) | def bind_entry(self, entry, metadata): '''Build literal file information''' fname = entry.get('realname', entry.get('name')) try: stream = self.template.generate( \ name=fname, metadata=metadata, path=self.name, properties=self.properties).filter(removecomment) if isinstance(self.template, TextTemplate): textdata = str... | ad6ac403ada75067c3858d19f16be97ef971c84d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11867/ad6ac403ada75067c3858d19f16be97ef971c84d/TGenshi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
4099,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
3116,
7158,
585,
1779,
26418,
5299,
273,
1241,
18,
588,
2668,
7688,
529,
2187,
1241,
18,
588,
2668,
529,
26112,
775,
30,
1407,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1993,
67,
4099,
12,
2890,
16,
1241,
16,
1982,
4672,
9163,
3116,
7158,
585,
1779,
26418,
5299,
273,
1241,
18,
588,
2668,
7688,
529,
2187,
1241,
18,
588,
2668,
529,
26112,
775,
30,
1407,
... |
remove(join("module", "links.pkl")) print "Removed Linklist" | try: remove(join("module", "links.pkl")) print "Removed Linklist" except: print "No Linklist found" | def __init__(self): self.doDebug = False self.arg_links = [] self.path = abspath(dirname(__file__)) chdir(self.path) | 602e5d9cc79b752a3204e357cadb147d08c607cd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9838/602e5d9cc79b752a3204e357cadb147d08c607cd/pyLoadCore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
2896,
2829,
273,
1083,
365,
18,
3175,
67,
7135,
273,
5378,
365,
18,
803,
273,
9488,
12,
12287,
12,
972,
768,
972,
3719,
14029,
12,
2890,
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,
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,
18,
2896,
2829,
273,
1083,
365,
18,
3175,
67,
7135,
273,
5378,
365,
18,
803,
273,
9488,
12,
12287,
12,
972,
768,
972,
3719,
14029,
12,
2890,
18,
... |
raise "HPY" | def setBGfreq(self,a,c,g,t): """Sets 0-order background. | 3fa4bbe7abf53f626be90eade2b6257c1c853a63 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11674/3fa4bbe7abf53f626be90eade2b6257c1c853a63/Matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15268,
43,
10212,
12,
2890,
16,
69,
16,
71,
16,
75,
16,
88,
4672,
3536,
2785,
374,
17,
1019,
5412,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15268,
43,
10212,
12,
2890,
16,
69,
16,
71,
16,
75,
16,
88,
4672,
3536,
2785,
374,
17,
1019,
5412,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
if self.activity_combobox.activity.mode & MODE_LIBERE_PLACE: | if self.activity_combobox.activity.mode & MODE_LIBERE_PLACE or line.values[i] in clear_values: | def OnLeftButtonUp(self, event): if self.state != -1: start, end = min(self.curStartX, self.curEndX), max(self.curStartX, self.curEndX) line = self.lines[self.curStartY] line.values = line.original_values[:] if line.get_state() < 0: if creche.presences_previsionnelles and line.date > datetime.date.today(): line.values ... | cf9286579e1f947dba6e2c1fa41ad161a0341244 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8291/cf9286579e1f947dba6e2c1fa41ad161a0341244/planning.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
3616,
1211,
12,
2890,
16,
871,
4672,
309,
365,
18,
2019,
480,
300,
21,
30,
787,
16,
679,
273,
1131,
12,
2890,
18,
1397,
1685,
60,
16,
365,
18,
1397,
1638,
60,
3631,
943,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
3910,
3616,
1211,
12,
2890,
16,
871,
4672,
309,
365,
18,
2019,
480,
300,
21,
30,
787,
16,
679,
273,
1131,
12,
2890,
18,
1397,
1685,
60,
16,
365,
18,
1397,
1638,
60,
3631,
943,
... |
if isinstance(uri, (types.StringType, types.UnicodeType)): | if isinstance(uri, types.StringTypes): | def add_password(self, realm, uri, user, passwd): # uri could be a single URI or a sequence if isinstance(uri, (types.StringType, types.UnicodeType)): uri = [uri] uri = tuple(map(self.reduce_uri, uri)) if not self.passwd.has_key(realm): self.passwd[realm] = {} self.passwd[realm][uri] = (user, passwd) | 7cc432f73152ac06245ea869392b44fb88d4c2f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7cc432f73152ac06245ea869392b44fb88d4c2f8/urllib2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3664,
12,
2890,
16,
11319,
16,
2003,
16,
729,
16,
19093,
4672,
468,
2003,
3377,
506,
279,
2202,
3699,
578,
279,
3102,
309,
1549,
12,
1650,
16,
1953,
18,
780,
2016,
4672,
2003,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
3664,
12,
2890,
16,
11319,
16,
2003,
16,
729,
16,
19093,
4672,
468,
2003,
3377,
506,
279,
2202,
3699,
578,
279,
3102,
309,
1549,
12,
1650,
16,
1953,
18,
780,
2016,
4672,
2003,... |
None,None,None,None, | None, FlagFramework.query_type((), family="Network Forensics", case=query['case'], report='BrowseMSNUsers', __target__='where_Data Type'), FlagFramework.query_type((), family="Network Forensics", case=query['case'], report='BrowseMSNUsers', __target__='where_Nick'), None, | def display(self,query,result): result.heading("MSN User Information Captured") result.table( columns = ['inode','session_id','concat(from_unixtime(pcap.ts_sec),".",pcap.ts_usec)','user_data_type','nick','user_data','cast(packet_id as char)','transaction_id'], names = ['Stream','Session ID','Timestamp','Data Type','Ni... | 80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/80596cb4e5bd83259bd52b61bb7dd6a3b3b8d784/MSN.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
2271,
16,
2088,
4672,
563,
18,
19948,
2932,
3537,
50,
2177,
15353,
385,
1657,
2862,
7923,
225,
563,
18,
2121,
12,
2168,
273,
10228,
267,
390,
17023,
3184,
67,
350,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
2890,
16,
2271,
16,
2088,
4672,
563,
18,
19948,
2932,
3537,
50,
2177,
15353,
385,
1657,
2862,
7923,
225,
563,
18,
2121,
12,
2168,
273,
10228,
267,
390,
17023,
3184,
67,
350,
... |
TestUnicode._connection.query('SET client_encoding TO latin1') | if TestUnicode._connection.dbName == 'postgres': TestUnicode._connection.query('SET client_encoding TO latin1') | def setup(): global items items = [] setupClass(TestUnicode) TestUnicode._connection.query('SET client_encoding TO latin1') for i, n in enumerate(data): items.append(TestUnicode(count=i, col1=n, col2=n)) | 084abb57b61eb27675d67b4da3979a032ad841cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6718/084abb57b61eb27675d67b4da3979a032ad841cf/test_unicode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13332,
2552,
1516,
1516,
273,
5378,
3875,
797,
12,
4709,
16532,
13,
309,
7766,
16532,
6315,
4071,
18,
1966,
461,
422,
296,
2767,
14107,
4278,
7766,
16532,
6315,
4071,
18,
2271,
2668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13332,
2552,
1516,
1516,
273,
5378,
3875,
797,
12,
4709,
16532,
13,
309,
7766,
16532,
6315,
4071,
18,
1966,
461,
422,
296,
2767,
14107,
4278,
7766,
16532,
6315,
4071,
18,
2271,
2668,... |
return "(ternary%s %s %s %s)" % (props(),o(n[0],i,c),o(n[1],i,c), | return "(TERNARY%s %s %s %s)" % (props(),o(n[0],i,c),o(n[1],i,c), | def props(): if c["include_props"]: props_to_include = [x for x in ("lineno", "start", "end", "readOnly") if hasattr(n, x)] if len(props_to_include) > 0: s = " (@" for prop in props_to_include: s += " (%s %s)" % (prop, getattr(n, prop)) return s +")" return "" | df699fbcef0551b57fbcf593691a41515ef3b880 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4710/df699fbcef0551b57fbcf593691a41515ef3b880/sexp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3458,
13332,
309,
276,
9614,
6702,
67,
9693,
11929,
30,
3458,
67,
869,
67,
6702,
273,
306,
92,
364,
619,
316,
7566,
17782,
3113,
315,
1937,
3113,
315,
409,
3113,
315,
896,
3386,
7923,
... |
if 0 and hasattr(object, '__all__'): | if 0 and hasattr(object, '__all__'): | def docmodule(self, object, name=None): """Produce HTML documentation for a module object.""" name = object.__name__ # ignore the passed-in name parts = split(name, '.') links = [] for i in range(len(parts)-1): links.append( '<a href="%s.html"><font color="#ffffff">%s</font></a>' % (join(parts[:i+1], '.'), parts[i])) l... | 4674b66c782ad2278636bfafd7e6a39b6dc0f0c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/4674b66c782ad2278636bfafd7e6a39b6dc0f0c1/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
468,
2305,
326,
2275,
17,
267,
508,
2140,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
997,
2978,
12,
2890,
16,
733,
16,
508,
33,
7036,
4672,
3536,
25884,
3982,
7323,
364,
279,
1605,
733,
12123,
508,
273,
733,
16186,
529,
972,
468,
2305,
326,
2275,
17,
267,
508,
2140,
27... |
In the notebook, one can use r.png() to open the device, but would need to use the following since R lattice graphics do not automatically print away from the command line. | In the notebook, one can use r.png() to open the device, but would need to use the following since R lattice graphics do not automatically print away from the command line:: | def plot(self, *args, **kwds): """ The R plot function. Type r.help('plot') for much more extensive documentation about this function. See also below for a brief introduction to more plotting with R. | 3877f05f12e7a835daa529997002c9253cf03ad3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/3877f05f12e7a835daa529997002c9253cf03ad3/r.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
7323,
2973,
333,
445,
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,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
380,
1968,
16,
2826,
25577,
4672,
3536,
1021,
534,
3207,
445,
18,
225,
1412,
436,
18,
5201,
2668,
4032,
6134,
364,
9816,
1898,
1110,
14315,
7323,
2973,
333,
445,
18,
... |
numtrips = 3 def task2(ident): global running for i in range(numtrips): if ident == 0: delay = 0.001 else: rmutex.acquire() delay = random.random() * numtasks rmutex.release() if verbose: print 'task', ident, 'will run for', round(delay, 1), 'sec' time.sleep(delay) if verbose: print 'task', ident, 'entering barrier'... | def enter(self): checkin, checkout = self.checkin, self.checkout | 66865d2ebd5a877523dbc87be2d86aafb3cdc59a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/66865d2ebd5a877523dbc87be2d86aafb3cdc59a/test_thread.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6103,
12,
2890,
4672,
866,
267,
16,
13926,
273,
365,
18,
1893,
267,
16,
365,
18,
17300,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
for exe in '/usr/local/bin/python2.5 python2.4 python2.3'.split(): | for exe in 'python2.4 python2.3'.split(): | def main(): benchmark_result = BenchmarkResult('bench-unix.benchmark_result') print 'date size codesize executable richards pystone' sys.stdout.flush() ref_rich, ref_stone = None, None for exe in '/usr/local/bin/python2.5 py... | c4daa5612baf8a3e81ffae454b20ab15d6bb9445 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/c4daa5612baf8a3e81ffae454b20ab15d6bb9445/bench-unix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
14128,
67,
2088,
273,
21854,
1253,
2668,
22144,
17,
21136,
18,
70,
9737,
67,
2088,
6134,
225,
1172,
296,
712,
21821,
963,
6198,
554,
565,
9070,
4766,
8227,
23657,
14727,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14128,
67,
2088,
273,
21854,
1253,
2668,
22144,
17,
21136,
18,
70,
9737,
67,
2088,
6134,
225,
1172,
296,
712,
21821,
963,
6198,
554,
565,
9070,
4766,
8227,
23657,
14727,
5411,... |
return zc.buildout.easy_install.build( distribution, options['_d'], self.build_ext, self.links, self.index, options['executable'], [options['_e']], newest=self.newest, ) | self._set_environment() try: return zc.buildout.easy_install.build( distribution, options['_d'], self.build_ext, self.links, self.index, options['executable'], [options['_e']], newest=self.newest, ) finally: self._restore_environment() def _set_environment(self): self._saved_environment = {} for key, value in self.en... | def install(self): options = self.options distribution = options.get('egg') if distribution is None: distribution = options.get('eggs') if distribution is None: distribution = self.name else: logger.warn("The eggs option is deprecated. Use egg instead") | d2e467446c76da861bcd04a6314866e3885cc635 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11359/d2e467446c76da861bcd04a6314866e3885cc635/custom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
7006,
273,
702,
18,
588,
2668,
23171,
6134,
309,
7006,
353,
599,
30,
7006,
273,
702,
18,
588,
2668,
1332,
564,
6134,
309,
7006,
353,
599,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
7006,
273,
702,
18,
588,
2668,
23171,
6134,
309,
7006,
353,
599,
30,
7006,
273,
702,
18,
588,
2668,
1332,
564,
6134,
309,
7006,
353,
599,... |
self.insertEntity(entId, 'zone', None) | self.insertEntity(entId, 'zone') | def __init__(self, spec=None, scenario=0): """spec must be passed in as a python module or a dictionary. If not passed in, will create a new spec.""" newSpec = 0 if type(spec) is types.ModuleType: if __dev__: # reload the spec module to pick up changes reload(spec) self.specDict = spec.levelSpec if __dev__: self.setFil... | 6aaa15f2f2242bf3d0d0b846af96ddf08f07748e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8543/6aaa15f2f2242bf3d0d0b846af96ddf08f07748e/LevelSpec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
857,
33,
7036,
16,
10766,
33,
20,
4672,
3536,
2793,
1297,
506,
2275,
316,
487,
279,
5790,
1605,
578,
279,
3880,
18,
971,
486,
2275,
316,
16,
903,
752,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
857,
33,
7036,
16,
10766,
33,
20,
4672,
3536,
2793,
1297,
506,
2275,
316,
487,
279,
5790,
1605,
578,
279,
3880,
18,
971,
486,
2275,
316,
16,
903,
752,
... |
dist.append(pop.locusDist(ld[0])) | dist.append(pop.locusPos(ld[0])) | def plotLD(pop, epsFile, jpgFile): ''' plot LD values in R and convert to jpg if possible ''' # return max LD res = {} # dist: distance (location) of marker # ldprime: D' value dist = [] ldprime = [] # D' ldvalue = [] # D for ld in pop.dvars().ctrDSLLD: if ld[1] == pop.dvars().ctrChromDSL: dist.append(pop.locusDist(ld[... | 3048db801937fd19a95ac18edc460a40a051066f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/3048db801937fd19a95ac18edc460a40a051066f/simuComplexDisease.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12069,
12,
5120,
16,
7785,
812,
16,
525,
8365,
812,
4672,
9163,
3207,
28083,
924,
316,
534,
471,
1765,
358,
525,
8365,
309,
3323,
9163,
468,
327,
943,
28083,
400,
273,
2618,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12069,
12,
5120,
16,
7785,
812,
16,
525,
8365,
812,
4672,
9163,
3207,
28083,
924,
316,
534,
471,
1765,
358,
525,
8365,
309,
3323,
9163,
468,
327,
943,
28083,
400,
273,
2618,
468,
... |
if lang not in (False, 'en') and text and not text.isspace(): | if lang not in (False, 'en_US') and text and not text.isspace(): | def _parse_text(self, text, level=[]): res = self._regex.findall(text) todo = [] # translate the text # the "split [[]] if not match [[]]" is not very nice, but I # don't see how I could do it better... # what I'd like to do is a re.sub(NOT pattern, func, string) # but I don't know how to do that... # translate the RML... | a92e05ddc8691803593e37742c07e188f2a2f5f1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/a92e05ddc8691803593e37742c07e188f2a2f5f1/report_sxw.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
955,
12,
2890,
16,
977,
16,
1801,
33,
8526,
4672,
400,
273,
365,
6315,
7584,
18,
4720,
454,
12,
955,
13,
10621,
273,
5378,
468,
4204,
326,
977,
468,
326,
315,
4939,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
955,
12,
2890,
16,
977,
16,
1801,
33,
8526,
4672,
400,
273,
365,
6315,
7584,
18,
4720,
454,
12,
955,
13,
10621,
273,
5378,
468,
4204,
326,
977,
468,
326,
315,
4939,
30... |
if space_rp.touch() and space_rp.lstat(): | space_rp.touch() if space_rp.lstat(): | def set_must_escape_trailing_spaces(self, rbdir): """If local ets or src ets, then must escape """ if getattr(self, "src_fsa", None) is not None: src_ets = self.src_fsa.escape_trailing_spaces else: src_ets = 0 try: space_rp = rbdir.append("test ") if space_rp.touch() and space_rp.lstat(): local_ets = 0 space_rp.delete(... | f60608f98fd8ab8c759a2551cbdf0e1be9520518 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/783/f60608f98fd8ab8c759a2551cbdf0e1be9520518/fs_abilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
11926,
67,
6939,
67,
26453,
67,
9554,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
225,
2413,
578,
1705,
225,
2413,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
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,
444,
67,
11926,
67,
6939,
67,
26453,
67,
9554,
12,
2890,
16,
7138,
1214,
4672,
3536,
2047,
1191,
225,
2413,
578,
1705,
225,
2413,
16,
1508,
1297,
4114,
3536,
309,
3869,
12,
2890,
16,
3... |
values=converter.values where, wvals=cls._processWhere(conn, args, fieldData) | where, values=cls._processWhere(conn, args, fieldData, converter) | def updateSome(cls, adict, *args, **fieldData): """update possibly many records at once, and return the number updated""" if not cls.mutable: raise ValueError, "class isn't mutable!" # N.B. it *is* possible to use this method without a unique index if not adict: # vacuous update, just return return cls._validateFields(... | 3546b489c540e47c23cc09d9dbc54588c9d46a36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/3546b489c540e47c23cc09d9dbc54588c9d46a36/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
17358,
12,
6429,
16,
1261,
933,
16,
380,
1968,
16,
2826,
1518,
751,
4672,
3536,
2725,
10016,
4906,
3853,
622,
3647,
16,
471,
327,
326,
1300,
3526,
8395,
309,
486,
2028,
18,
5146,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
17358,
12,
6429,
16,
1261,
933,
16,
380,
1968,
16,
2826,
1518,
751,
4672,
3536,
2725,
10016,
4906,
3853,
622,
3647,
16,
471,
327,
326,
1300,
3526,
8395,
309,
486,
2028,
18,
5146,
... |
return content | print ':<:<:<:<:<:<:<::<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:<:content<:<:<:<:<' print ''.join(content) return ''.join(content) | def link_stream(stream , tag_name, attributes): """ stream : parser stream """ stack = [] story = [] content = [] has_content = False stack.append((tag_name, attributes)) attrs = {} if exist_attribute(attributes, ['href']): attrs['href'] = attributes.get((None,'href')).lower() content.append("<a href=\"%s\">" % attrs[... | 2e751f44e4043fa2f937b2ae7511263713a23922 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12681/2e751f44e4043fa2f937b2ae7511263713a23922/rml2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
3256,
12,
3256,
269,
1047,
67,
529,
16,
1677,
4672,
3536,
1407,
294,
2082,
1407,
3536,
225,
2110,
273,
5378,
17285,
273,
5378,
913,
273,
5378,
711,
67,
1745,
273,
1083,
2110,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1692,
67,
3256,
12,
3256,
269,
1047,
67,
529,
16,
1677,
4672,
3536,
1407,
294,
2082,
1407,
3536,
225,
2110,
273,
5378,
17285,
273,
5378,
913,
273,
5378,
711,
67,
1745,
273,
1083,
2110,
... |
print "???",info.Module.ModuleEntryPointList | def CreateModuleEntryPointCode(info, autoGenC, autoGenH): if info.IsLibrary: return # # Module Entry Points # NumEntryPoints = len(info.Module.ModuleEntryPointList) Dict = {'Function':info.Module.ModuleEntryPointList} if info.ModuleType in ['PEI_CORE', 'DXE_CORE']: if NumEntryPoints != 1: EdkLogger.error('ERROR: %s mu... | 286abb1038f54ccc0309eebeb13ebd34344e7508 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/914/286abb1038f54ccc0309eebeb13ebd34344e7508/GenC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
3120,
1622,
2148,
1085,
12,
1376,
16,
3656,
7642,
39,
16,
3656,
7642,
44,
4672,
309,
1123,
18,
2520,
9313,
30,
327,
468,
468,
5924,
3841,
22464,
468,
6805,
1622,
5636,
273,
562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
3120,
1622,
2148,
1085,
12,
1376,
16,
3656,
7642,
39,
16,
3656,
7642,
44,
4672,
309,
1123,
18,
2520,
9313,
30,
327,
468,
468,
5924,
3841,
22464,
468,
6805,
1622,
5636,
273,
562,
... | |
if self._tracing: | if self._tracing: | def _goto(self, x1, y1): x0, y0 = start = self._position self._position = map(float, (x1, y1)) if self._filling: self._path.append(self._position) if self._drawing: if self._tracing: dx = float(x1 - x0) dy = float(y1 - y0) distance = hypot(dx, dy) nhops = int(distance) item = self._canvas.create_line(x0, y0, x0, y0, wi... | c5d3e9bf5bf70879f5f9edff7e3a7908a84e4f44 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c5d3e9bf5bf70879f5f9edff7e3a7908a84e4f44/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
75,
6302,
12,
2890,
16,
619,
21,
16,
677,
21,
4672,
619,
20,
16,
677,
20,
273,
787,
273,
365,
6315,
3276,
365,
6315,
3276,
273,
852,
12,
5659,
16,
261,
92,
21,
16,
677,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
75,
6302,
12,
2890,
16,
619,
21,
16,
677,
21,
4672,
619,
20,
16,
677,
20,
273,
787,
273,
365,
6315,
3276,
365,
6315,
3276,
273,
852,
12,
5659,
16,
261,
92,
21,
16,
677,
21,
... |
self.hamster=dbus.SessionBus().get_object(tmp_dbus[0], tmp_dbus[1]) | dbus.SessionBus().get_object(tmp_dbus[0], tmp_dbus[1]) | def LoadPlugins(self): # find all the plugin config files (only!) plugin_configs = [] for f in os.listdir(self.plugin_path[0]): try: if not os.path.isdir(os.path.join(self.plugin_path[0], f)): if len(os.path.splitext(f)) > 1: if os.path.splitext(f)[1] == ".gtg-plugin": plugin_configs.append(os.path.join(self.plugin_pat... | 6ee3bd6ad88495bc7319b4d9345f2c1b25932dec /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7036/6ee3bd6ad88495bc7319b4d9345f2c1b25932dec/engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
9461,
12,
2890,
4672,
468,
1104,
777,
326,
1909,
642,
1390,
261,
3700,
24949,
1909,
67,
10955,
273,
5378,
364,
284,
316,
1140,
18,
1098,
1214,
12,
2890,
18,
4094,
67,
803,
63,
20... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4444,
9461,
12,
2890,
4672,
468,
1104,
777,
326,
1909,
642,
1390,
261,
3700,
24949,
1909,
67,
10955,
273,
5378,
364,
284,
316,
1140,
18,
1098,
1214,
12,
2890,
18,
4094,
67,
803,
63,
20... |
self.repServer.auth.setAdmin(newRoleName, isAdmin) | self.repServer.auth.setAdmin(newRoleName, roleIsAdmin) | def addRole(self, auth, newRoleName, memberList, canMirror, isAdmin): try: self.repServer.auth.addRole(newRoleName) except errors.RoleAlreadyExists: return self._write("error", shortError="Invalid Role Name", error = "The role name you have chosen is already in use.") | 595e6e3465e13ab86839de1dbff1745bfb5e94d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8747/595e6e3465e13ab86839de1dbff1745bfb5e94d9/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2996,
12,
2890,
16,
1357,
16,
394,
31278,
16,
3140,
682,
16,
848,
13035,
16,
23467,
4672,
775,
30,
365,
18,
14462,
2081,
18,
1944,
18,
1289,
2996,
12,
2704,
31278,
13,
1335,
1334,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2996,
12,
2890,
16,
1357,
16,
394,
31278,
16,
3140,
682,
16,
848,
13035,
16,
23467,
4672,
775,
30,
365,
18,
14462,
2081,
18,
1944,
18,
1289,
2996,
12,
2704,
31278,
13,
1335,
1334,... |
class CallFront_doubleSpin(ControlledCallFront): | class CallFrontDoubleSpin(ControlledCallFront): | def action(self, value): if value != None: self.control.setValue(value) | d26de079e17bbf73783829e143857af9e4646987 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/d26de079e17bbf73783829e143857af9e4646987/OWGUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
365,
18,
7098,
18,
542,
620,
12,
1132,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
12,
2890,
16,
460,
4672,
309,
460,
480,
599,
30,
365,
18,
7098,
18,
542,
620,
12,
1132,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if node: return (node.get_completions(params), pos) | if xnode: return (xnode.get_completions(params), xpos) | def find_suggestions_real(self, pfx, params): # find level node = top_level pos = 0 for typ, w, pos in self.sql_words(pfx): if typ == 'ident': w = normalize_any(w) node = node.get_next(typ, w, params) if not node: break | 7d10b10c682f58751239c9bd81207a634a60e6a8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14597/7d10b10c682f58751239c9bd81207a634a60e6a8/qadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
87,
12500,
67,
7688,
12,
2890,
16,
31592,
16,
859,
4672,
468,
1104,
1801,
756,
273,
1760,
67,
2815,
949,
273,
374,
364,
3815,
16,
341,
16,
949,
316,
365,
18,
4669,
67,
3753... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
87,
12500,
67,
7688,
12,
2890,
16,
31592,
16,
859,
4672,
468,
1104,
1801,
756,
273,
1760,
67,
2815,
949,
273,
374,
364,
3815,
16,
341,
16,
949,
316,
365,
18,
4669,
67,
3753... |
spd2 = arma1.spdshift(2**10) | spd2, w2 = arma1.spdshift(2**10) | def spdar1(ar, w): if len(ar) == 1: rho = ar else: rho = ar[1] return 0.5 / np.pi /(1 + rho*rho - 2 * rho * np.cos(w)) | 684b683042373c8b8942d6959a27ab65aeed7ee5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12658/684b683042373c8b8942d6959a27ab65aeed7ee5/fftarma.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
72,
297,
21,
12,
297,
16,
341,
4672,
309,
562,
12,
297,
13,
422,
404,
30,
10360,
273,
419,
469,
30,
10360,
273,
419,
63,
21,
65,
327,
374,
18,
25,
342,
1130,
18,
7259,
342,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1694,
72,
297,
21,
12,
297,
16,
341,
4672,
309,
562,
12,
297,
13,
422,
404,
30,
10360,
273,
419,
469,
30,
10360,
273,
419,
63,
21,
65,
327,
374,
18,
25,
342,
1130,
18,
7259,
342,
... |
buf = struct.pack("%ds" % BLOCKSIZE, "".join(parts)) | buf += struct.pack("%ds" % BLOCKSIZE, "".join(parts)) | def tobuf(self, posix=False): """Return a tar header block as a 512 byte string. """ parts = [ stn(self.name, 100), itn(self.mode & 07777, 8, posix), itn(self.uid, 8, posix), itn(self.gid, 8, posix), itn(self.size, 12, posix), itn(self.mtime, 12, posix), " ", # checksum field self.type, stn(self.linkname, 100), ... | 90ce5908d2ea58a840421d27e19e71de9322dfc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/90ce5908d2ea58a840421d27e19e71de9322dfc5/tarfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
2890,
18,
529,
16,
2130,
3631,
518,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
4385,
12,
2890,
16,
16366,
33,
8381,
4672,
3536,
990,
279,
8232,
1446,
1203,
487,
279,
13908,
1160,
533,
18,
3536,
2140,
273,
306,
384,
82,
12,
2890,
18,
529,
16,
2130,
3631,
518,... |
libkerrighed.krg_nodes_add(node_set) | libkerrighed.krg_nodes_add(node_set.c) | def krg_nodes_add(node_set): """ """ libkerrighed.krg_nodes_add(node_set) | bbb575785890cf03c5c4045cb9edaf29b6954511 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1816/bbb575785890cf03c5c4045cb9edaf29b6954511/kerrighed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23953,
75,
67,
4690,
67,
1289,
12,
2159,
67,
542,
4672,
3536,
3536,
2561,
79,
370,
2031,
329,
18,
79,
26876,
67,
4690,
67,
1289,
12,
2159,
67,
542,
18,
71,
13,
225,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23953,
75,
67,
4690,
67,
1289,
12,
2159,
67,
542,
4672,
3536,
3536,
2561,
79,
370,
2031,
329,
18,
79,
26876,
67,
4690,
67,
1289,
12,
2159,
67,
542,
18,
71,
13,
225,
2,
-100,
-100,
... |
log.Log("Warning: listattr(%s): %s" % (rp.path, exc), 3) | log.Log("Warning: listattr(%s): %s" % (repr(rp.path), exc), 3) | def read_from_rp(self, rp): """Set the extended attributes from an rpath""" try: attr_list = rp.conn.xattr.listxattr(rp.path) except IOError, exc: if exc[0] == errno.EOPNOTSUPP or exc[0] == errno.EPERM: return # if not supported, consider empty if exc[0] == errno.EACCES: log.Log("Warning: listattr(%s): %s" % (rp.path, ... | f6081252b4c456ff4b3987778ae49c98560275d9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6202/f6081252b4c456ff4b3987778ae49c98560275d9/eas_acls.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
13832,
12,
2890,
16,
8715,
4672,
3536,
694,
326,
7021,
1677,
628,
392,
436,
803,
8395,
775,
30,
1604,
67,
1098,
273,
8715,
18,
4646,
18,
92,
1747,
18,
1098,
92,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
2080,
67,
13832,
12,
2890,
16,
8715,
4672,
3536,
694,
326,
7021,
1677,
628,
392,
436,
803,
8395,
775,
30,
1604,
67,
1098,
273,
8715,
18,
4646,
18,
92,
1747,
18,
1098,
92,
17... |
self.setDaemon(True) | self.set_daemon(True) | def __init__(self, certfile): self.flag = None self.active = False self.RootedHTTPRequestHandler.root = os.path.split(CERTFILE)[0] self.port = support.find_unused_port() self.server = self.HTTPSServer( (HOST, self.port), self.RootedHTTPRequestHandler, certfile) threading.Thread.__init__(self) self.setDaemon(True) | 9e2dd31311a416fccd858a927e808293fdb947c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/9e2dd31311a416fccd858a927e808293fdb947c6/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3320,
768,
4672,
365,
18,
6420,
273,
599,
365,
18,
3535,
273,
1083,
365,
18,
2375,
329,
23891,
1503,
18,
3085,
273,
1140,
18,
803,
18,
4939,
12,
22367,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3320,
768,
4672,
365,
18,
6420,
273,
599,
365,
18,
3535,
273,
1083,
365,
18,
2375,
329,
23891,
1503,
18,
3085,
273,
1140,
18,
803,
18,
4939,
12,
22367,
... |
wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap.so') | wanted = os.path.join(curdir, 'twisted', 'runner', 'portmap' + ext) | def test_ext_fullpath(self): # building lxml.etree inplace #etree_c = os.path.join(self.tmp_dir, 'lxml.etree.c') #etree_ext = Extension('lxml.etree', [etree_c]) #dist = Distribution({'name': 'lxml', 'ext_modules': [etree_ext]}) dist = Distribution() cmd = build_ext(dist) cmd.inplace = 1 cmd.distribution.package_dir = {... | 8c40001175f354b6e05d38a7f403afb5686c6013 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/8c40001175f354b6e05d38a7f403afb5686c6013/test_build_ext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
408,
67,
2854,
803,
12,
2890,
4672,
468,
10504,
328,
2902,
18,
31303,
11783,
468,
31303,
67,
71,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5645,
67,
1214,
16,
296,
80,
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,
1842,
67,
408,
67,
2854,
803,
12,
2890,
4672,
468,
10504,
328,
2902,
18,
31303,
11783,
468,
31303,
67,
71,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
5645,
67,
1214,
16,
296,
80,
29... |
class Task(object) : | class Task(object): | def cancel(self): # some Jobs might have a better idea of how to cancel a job self.abort() | 98f7390aeb2c7b1ef3963fef83a6eeae367256a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/98f7390aeb2c7b1ef3963fef83a6eeae367256a6/Task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
12,
2890,
4672,
468,
2690,
26909,
4825,
1240,
279,
7844,
21463,
434,
3661,
358,
3755,
279,
1719,
365,
18,
18623,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3755,
12,
2890,
4672,
468,
2690,
26909,
4825,
1240,
279,
7844,
21463,
434,
3661,
358,
3755,
279,
1719,
365,
18,
18623,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
successful[directory] = directorySize | directoryFiles += 1 gLogger.info("SRM2Storage.getDirectorySize: Successfully obtained size of %s." % directory) successful[directory] = {'Files':directoryFiles,'Size':directorySize} | def getDirectorySize(self,path): """ Get the size of the directory on the storage """ if type(path) == types.StringType: urls = [path] elif type(path) == types.ListType: urls = path else: return S_ERROR("SRM2Storage.getDirectorySize: Supplied path must be string or list of strings") | 0c142939ddc410eebdc2cef5627d4332317e31b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/0c142939ddc410eebdc2cef5627d4332317e31b1/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
1225,
12,
2890,
16,
803,
4672,
3536,
968,
326,
963,
434,
326,
1867,
603,
326,
2502,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
6903,
273,
306,
803,
65,
1327,
61... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19831,
1225,
12,
2890,
16,
803,
4672,
3536,
968,
326,
963,
434,
326,
1867,
603,
326,
2502,
3536,
309,
618,
12,
803,
13,
422,
1953,
18,
780,
559,
30,
6903,
273,
306,
803,
65,
1327,
61... |
C{ParsedDocstring}. | C{ParsedDocstring}. If any fatal C{ParseError}s are encountered while parsing the docstring, then the docstring will be rendered as plaintext, instead. | def parse(docstring, markup): """ Parse the given docstring, and use it to construct a C{ParsedDocstring}. @rtype: C{(L{ParsedDocstring}, list of L{ParseError})} @return: A tuple C{(M{parsed_docstring}, M{errors})}, where: - C{M{parsed_docstring}} is a L{ParsedDocstring} that encodes the contents of C{docstring}. - C{... | a34ef38592d70569e5d780000480219b6fd0641b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/a34ef38592d70569e5d780000480219b6fd0641b/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
24675,
16,
9813,
4672,
3536,
2884,
326,
864,
14525,
16,
471,
999,
518,
358,
4872,
279,
385,
95,
11257,
1759,
1080,
5496,
225,
971,
1281,
10081,
385,
95,
21004,
97,
87,
854,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24675,
16,
9813,
4672,
3536,
2884,
326,
864,
14525,
16,
471,
999,
518,
358,
4872,
279,
385,
95,
11257,
1759,
1080,
5496,
225,
971,
1281,
10081,
385,
95,
21004,
97,
87,
854,
9... |
The definition of tau1 is: tau1 : T1 -> T1 tau1 = beta^(-1)_2 beta_3 (composing left to right) | The definition of tau2 is: tau2 : T1 -> T1 tau2 = beta\^(-1)_3 beta_1 (composing left to right) | def tau2(T1, T2, cells_map): """ The definition of tau1 is: tau1 : T1 -> T1 tau1 = beta^(-1)_2 beta_3 (composing left to right) where beta_i : T2 -> T1 changes just the i-th coordinate of a triple. EXAMPLES: sage: from sage.combinat.matrices.latin import * sage: T1 = back_circulant(5) sage: x = isotopism( (0,1,2... | 940ac7fc9c99ff948cd46103f8ba7e338a7354d6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/940ac7fc9c99ff948cd46103f8ba7e338a7354d6/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
22,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
22,
353,
30,
225,
12284,
22,
294,
399,
21,
317,
399,
21,
12284,
22,
273,
6796,
64,
66,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12284,
22,
12,
56,
21,
16,
399,
22,
16,
5983,
67,
1458,
4672,
3536,
1021,
2379,
434,
12284,
22,
353,
30,
225,
12284,
22,
294,
399,
21,
317,
399,
21,
12284,
22,
273,
6796,
64,
66,
1... |
dsetlist = dq2.listDatasets('%s*' % datasetname) | dsetlist = dq2.listDatasets('%s' % datasetname) | def get_dataset_suffix(self, dataset,jobid): """generate final output dataset name using dataset and jobid. Returns the created suffix""" # first, create the jid suffix. First part is the job id, zfill to make it 6 digits. | 8173647c1db4e5b8b55f46c19595a5e97f474bcb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/8173647c1db4e5b8b55f46c19595a5e97f474bcb/AthenaMCDatasets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8682,
67,
8477,
12,
2890,
16,
3709,
16,
4688,
350,
4672,
3536,
7163,
727,
876,
3709,
508,
1450,
3709,
471,
1719,
350,
18,
2860,
326,
2522,
3758,
8395,
468,
1122,
16,
752,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8682,
67,
8477,
12,
2890,
16,
3709,
16,
4688,
350,
4672,
3536,
7163,
727,
876,
3709,
508,
1450,
3709,
471,
1719,
350,
18,
2860,
326,
2522,
3758,
8395,
468,
1122,
16,
752,
326,... |
locale = locale.getdefaultlocale() | locale = _locale.getdefaultlocale() | def __init__(self, firstweekday=0, locale=None): TextCalendar.__init__(self, firstweekday) if locale is None: locale = locale.getdefaultlocale() self.locale = locale | 7b97bb009e78ea61dcb8a9a1e403e4a44e8692e6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/7b97bb009e78ea61dcb8a9a1e403e4a44e8692e6/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
33,
20,
16,
2573,
33,
7036,
4672,
3867,
7335,
16186,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
13,
309,
2573,
353,
599,
30,
2573,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
33,
20,
16,
2573,
33,
7036,
4672,
3867,
7335,
16186,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
13,
309,
2573,
353,
599,
30,
2573,
27... |
self.atcr = False | def __init__(self, stream, errors='strict'): | 95f96d570ba78b0ba5b869a8e87f1517ee20e301 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/95f96d570ba78b0ba5b869a8e87f1517ee20e301/codecs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
1334,
2218,
13948,
11,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1407,
16,
1334,
2218,
13948,
11,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
'lambda': ('ref/lambda', 'FUNCTIONS'), | 'lambda': ('ref/lambdas', 'FUNCTIONS'), | def writedocs(dir, pkgpath='', done=None): """Write out HTML documentation for all modules in a directory tree.""" if done is None: done = {} for file in os.listdir(dir): path = os.path.join(dir, file) if ispackage(path): writedocs(path, pkgpath + file + '.', done) elif os.path.isfile(path): modname = inspect.getmodule... | 742dde4ddd178ee5ac80ae0d4a599a67437d9635 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/742dde4ddd178ee5ac80ae0d4a599a67437d9635/pydoc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
22280,
12,
1214,
16,
3475,
803,
2218,
2187,
2731,
33,
7036,
4672,
3536,
3067,
596,
3982,
7323,
364,
777,
4381,
316,
279,
1867,
2151,
12123,
309,
2731,
353,
599,
30,
2731,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2518,
329,
22280,
12,
1214,
16,
3475,
803,
2218,
2187,
2731,
33,
7036,
4672,
3536,
3067,
596,
3982,
7323,
364,
777,
4381,
316,
279,
1867,
2151,
12123,
309,
2731,
353,
599,
30,
2731,
273,... |
if state == 9 and ((not isinstance(Formula, quad[subj]) or not self.anyOccurrences(variables, quad[subj])) and (not isinstance(Formula, quad[obj]) or not self.anyOccurrences(variables, quad[obj]))): | if state == 9 and ((not isinstance(quad[SUBJ], Formula) or not self.anyOccurrences(variables, quad[SUBJ])) and (not isinstance(quad[OBJ], Formula) or not self.anyOccurrences(variables, quad[OBJ]))): | def query(self, # Neded for getting interned constants queue, # Ordered queue of items we are trying to match CORRUPTED variables, # List of variables to match and return existentials, # List of variables to match to anything # Existentials or any kind of variable in subex... | ca530b45d594eb0d06c5de2d6bcb779d0e257d72 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/ca530b45d594eb0d06c5de2d6bcb779d0e257d72/llyn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
843,
12,
2890,
16,
7734,
468,
423,
2830,
364,
8742,
8216,
329,
6810,
2389,
16,
9079,
468,
8524,
2389,
434,
1516,
732,
854,
8374,
358,
845,
28359,
54,
3079,
6404,
3152,
16,
6647,
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,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
225,
843,
12,
2890,
16,
7734,
468,
423,
2830,
364,
8742,
8216,
329,
6810,
2389,
16,
9079,
468,
8524,
2389,
434,
1516,
732,
854,
8374,
358,
845,
28359,
54,
3079,
6404,
3152,
16,
6647,
4... |
register("gnome", None, BackgroundBrowser(commd)) | register("gnome", None, BackgroundBrowser(commd.split())) | def register_X_browsers(): # The default Gnome browser if _iscommand("gconftool-2"): # get the web browser string from gconftool gc = 'gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null' out = os.popen(gc) commd = out.read().strip() retncode = out.close() # if successful, register it if retncode is No... | 33fd30e311eee29d351b05bb6e2eb25edb59a504 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/33fd30e311eee29d351b05bb6e2eb25edb59a504/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
60,
67,
70,
13221,
13332,
468,
1021,
805,
611,
82,
1742,
4748,
309,
389,
291,
3076,
2932,
75,
3923,
6738,
17,
22,
6,
4672,
468,
336,
326,
3311,
4748,
533,
628,
314,
3923,
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,
1744,
67,
60,
67,
70,
13221,
13332,
468,
1021,
805,
611,
82,
1742,
4748,
309,
389,
291,
3076,
2932,
75,
3923,
6738,
17,
22,
6,
4672,
468,
336,
326,
3311,
4748,
533,
628,
314,
3923,
6... |
def find_library_file (self, dirs, lib): | def find_library_file (self, dirs, lib, debug=0): if debug: try_names = [lib + "_d", lib] else: try_names = [lib] | def find_library_file (self, dirs, lib): | d142564821b8427e8839742ef0813f776fb7ba78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/d142564821b8427e8839742ef0813f776fb7ba78/msvccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
12083,
67,
768,
261,
2890,
16,
7717,
16,
2561,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
stateFlags = {"title":"RCDATA", "style":"CDATA"} | cmFlags = {"title":"RCDATA", "style":"CDATA"} | def startTagTitleStyle(self, name, attributes): stateFlags = {"title":"RCDATA", "style":"CDATA"} element = self.parser.createElement(name, attributes) self.appendToHead(element) self.parser.tokenizer.state = self.parser.tokenizer.states[stateFlags[name]] # We have to start collecting characters self.collectingCharacter... | 3f6081e8cdf476677cbd0ea3842a280aa8d91840 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4487/3f6081e8cdf476677cbd0ea3842a280aa8d91840/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
4247,
2885,
12,
2890,
16,
508,
16,
1677,
4672,
5003,
5094,
273,
12528,
2649,
15563,
11529,
4883,
3113,
315,
4060,
15563,
18375,
6,
97,
930,
273,
365,
18,
4288,
18,
2640,
1046,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
4247,
2885,
12,
2890,
16,
508,
16,
1677,
4672,
5003,
5094,
273,
12528,
2649,
15563,
11529,
4883,
3113,
315,
4060,
15563,
18375,
6,
97,
930,
273,
365,
18,
4288,
18,
2640,
1046,... |
self.textOutput.append(text) | self.textOutput.setText(str(self.textOutput.text()) + text) | def exceptionHandler(self, type, value, tracebackInfo): if self.focusOnCatchException: self.canvasDlg.menuItemShowOutputWindow() self.canvasDlg.workspace.cascade() # cascade shown windows | b2656ae570f7b3421360ebf79830008e8b88da06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/b2656ae570f7b3421360ebf79830008e8b88da06/orngOutput.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
1503,
12,
2890,
16,
618,
16,
460,
16,
10820,
966,
4672,
309,
365,
18,
13923,
1398,
14842,
503,
30,
365,
18,
15424,
40,
23623,
18,
5414,
1180,
5706,
1447,
3829,
1435,
365,
18,
154... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1520,
1503,
12,
2890,
16,
618,
16,
460,
16,
10820,
966,
4672,
309,
365,
18,
13923,
1398,
14842,
503,
30,
365,
18,
15424,
40,
23623,
18,
5414,
1180,
5706,
1447,
3829,
1435,
365,
18,
154... |
login, edit, login, | login, edit, login, | def html_build_compact(index, accounts = accounts): uid = ordered[index] login = u[uid]['login'] edit = (_("""<em>Click to edit current user account parameters:</em><br /> UID: <strong>%d</strong><br /> GID: %d (primary group <strong>%s</strong>)<br /><br /> Groups: <strong>%s</strong><br /><br /> Privileges:&#... | 1ac7de7fa0474fe0812c899f93a87f4be2a8eadb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/1ac7de7fa0474fe0812c899f93a87f4be2a8eadb/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
3510,
67,
21038,
12,
1615,
16,
9484,
273,
9484,
4672,
4555,
282,
273,
5901,
63,
1615,
65,
3925,
273,
582,
63,
1911,
23962,
5819,
3546,
3874,
225,
273,
261,
67,
2932,
3660,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
3510,
67,
21038,
12,
1615,
16,
9484,
273,
9484,
4672,
4555,
282,
273,
5901,
63,
1615,
65,
3925,
273,
582,
63,
1911,
23962,
5819,
3546,
3874,
225,
273,
261,
67,
2932,
3660,
32... |
contact['number']) | contact['number']) | def test_ContactsList_2(self): """Test for Contacts.List""" contacts = [ { 'name' : "FooAnt" , 'number' : "+34666666666" , 'index' : 0 }, { 'name' : "BarAnt" , 'number' : "+34666666665" , 'index' : 0 }, { 'name' : "BazAnt" , 'number' : "+34666666664" , 'index' : 0 } ] | 1bc55fc255f9cd8034f3552d27b0d2294cd0a5ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12036/1bc55fc255f9cd8034f3552d27b0d2294cd0a5ff/test_dbus.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
20017,
682,
67,
22,
12,
2890,
4672,
3536,
4709,
364,
13329,
87,
18,
682,
8395,
14841,
273,
306,
288,
296,
529,
11,
294,
315,
42,
5161,
14925,
6,
269,
296,
2696,
11,
294,
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,
1842,
67,
20017,
682,
67,
22,
12,
2890,
4672,
3536,
4709,
364,
13329,
87,
18,
682,
8395,
14841,
273,
306,
288,
296,
529,
11,
294,
315,
42,
5161,
14925,
6,
269,
296,
2696,
11,
294,
13... |
self.typecode += '\n%sdef __init__(self):' %(ID1) | self.typecode += '\n%sdef __init__(self, name=None, ns=None):' \ % (ID1) | self.typecode += '\n%sdef __init__(self):' %(ID1) | 0985689ec7bf293016071dd2a958894f48142513 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14538/0985689ec7bf293016071dd2a958894f48142513/wsdl2python.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
723,
710,
1011,
2337,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
13,
2497,
8975,
734,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
365,
18,
723,
710,
1011,
2337,
82,
9,
87,
536,
1001,
2738,
972,
12,
2890,
13,
2497,
8975,
734,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print "Unknown State" | self.debug("Unknown State") | def changeState(self, new_state): ''' Close down the old state and enter new_state, if it differs. ''' if self.state == new_state: return | 0e195ec6143d96d961fbd6105afacdff62d3b51a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8066/0e195ec6143d96d961fbd6105afacdff62d3b51a/sodagui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
1119,
12,
2890,
16,
394,
67,
2019,
4672,
9163,
3527,
2588,
326,
1592,
919,
471,
6103,
394,
67,
2019,
16,
309,
518,
21944,
18,
9163,
309,
365,
18,
2019,
422,
394,
67,
2019,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2549,
1119,
12,
2890,
16,
394,
67,
2019,
4672,
9163,
3527,
2588,
326,
1592,
919,
471,
6103,
394,
67,
2019,
16,
309,
518,
21944,
18,
9163,
309,
365,
18,
2019,
422,
394,
67,
2019,
30,
... |
system_table.c.user_id==None), user_id=user.id)).rowcount == 1: | system_table.c.user_id==None)), user_id=user.user_id).rowcount == 1: | def pick(self, distro=None, user=None, xml=None): if not distro: return (0,"You must supply a distro") if not user: return (0,"You must supply a user name") if not xml: return (0,"No xml query provided") user = User.by_user_name(user) distro = Distro.by_install_name(distro) systems = distro.systems(user) #FIXME Should ... | a2372d4c604ce7f035f9c5120b0d0c35d41db234 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/a2372d4c604ce7f035f9c5120b0d0c35d41db234/controllers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6002,
12,
2890,
16,
27450,
33,
7036,
16,
729,
33,
7036,
16,
2025,
33,
7036,
4672,
309,
486,
27450,
30,
327,
261,
20,
10837,
6225,
1297,
14467,
279,
27450,
7923,
309,
486,
729,
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,
6002,
12,
2890,
16,
27450,
33,
7036,
16,
729,
33,
7036,
16,
2025,
33,
7036,
4672,
309,
486,
27450,
30,
327,
261,
20,
10837,
6225,
1297,
14467,
279,
27450,
7923,
309,
486,
729,
30,
327,... |
elif (text[i+1] is self.white_space or text[i+1] is self.new_line): | elif text[i-1][-1] in (" ", "\n",): | def check_whitespace(self): i = 0 text = self.text while i < len(text): if text[i] is self.white_space: if i == 0 or i == len(text)-1: text[0:0] = [" "] # del? XXX this is either a bug or a missing comment - what does that mean? why 0:0? i += 1 elif text[i-1][-1] in (" ", "\n",): # last char of previous ... | 42c78e4bf66225ded0ec258e0428aa13ac54679b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/42c78e4bf66225ded0ec258e0428aa13ac54679b/text_html_text_x_moin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
18777,
12,
2890,
4672,
277,
273,
374,
977,
273,
365,
18,
955,
1323,
277,
411,
562,
12,
955,
4672,
309,
977,
63,
77,
65,
353,
365,
18,
14739,
67,
2981,
30,
309,
277,
422,
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,
866,
67,
18777,
12,
2890,
4672,
277,
273,
374,
977,
273,
365,
18,
955,
1323,
277,
411,
562,
12,
955,
4672,
309,
977,
63,
77,
65,
353,
365,
18,
14739,
67,
2981,
30,
309,
277,
422,
3... |
q = DiffSet.objects.filter(files__comment__review=review) q = q.filter(files__comment__interfilediff__isnull=True).distinct() | q = DiffSet.objects.filter(files__comments__review=review) q = q.filter(files__comments__interfilediff__isnull=True).distinct() | def has_comments_in_diffsets_excluding(review, diffset_pair): """ Returns whether or not the specified review has any comments that aren't in the specified diffset or interdiff. """ if not review: return False current_diffset, interdiff = diffset_pair # See if there are any diffsets with comments on them in this revi... | 2518f266ac1faa0fe8e7f8c161b72a450b24cec1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1600/2518f266ac1faa0fe8e7f8c161b72a450b24cec1/reviewtags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
711,
67,
9231,
67,
267,
67,
11593,
988,
87,
67,
338,
18596,
12,
16041,
16,
1901,
988,
67,
6017,
4672,
3536,
2860,
2856,
578,
486,
326,
1269,
10725,
711,
1281,
5678,
716,
11526,
1404,
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,
711,
67,
9231,
67,
267,
67,
11593,
988,
87,
67,
338,
18596,
12,
16041,
16,
1901,
988,
67,
6017,
4672,
3536,
2860,
2856,
578,
486,
326,
1269,
10725,
711,
1281,
5678,
716,
11526,
1404,
3... |
def TestGoogleurl(self): | def TestGURL(self): | def TestGoogleurl(self): return self.SimpleTest("chrome", "googleurl_unittests") | 2014142d5e9ff025d569d5249ff7790f0a31aa0f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/2014142d5e9ff025d569d5249ff7790f0a31aa0f/chrome_tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7766,
43,
1785,
12,
2890,
4672,
327,
365,
18,
5784,
4709,
2932,
343,
10896,
3113,
315,
9536,
718,
67,
4873,
16341,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7766,
43,
1785,
12,
2890,
4672,
327,
365,
18,
5784,
4709,
2932,
343,
10896,
3113,
315,
9536,
718,
67,
4873,
16341,
7923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.generateFeed(True) | def __init__(self,url, initiallyAutoDownloadable=True): self.origURL = url self.errorState = False self.initiallyAutoDownloadable = initiallyAutoDownloadable self.loading = True self.actualFeed = FeedImpl(url,self) self.download = None self.generateFeed(True) self.iconCache = IconCache(self, is_vital = True) self.infor... | b9fa7453c854a732f1ade4f738443bb91863e0f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/b9fa7453c854a732f1ade4f738443bb91863e0f8/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
718,
16,
22458,
4965,
7109,
429,
33,
5510,
4672,
365,
18,
4949,
1785,
273,
880,
365,
18,
1636,
1119,
273,
1083,
365,
18,
2738,
6261,
4965,
7109,
429,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
718,
16,
22458,
4965,
7109,
429,
33,
5510,
4672,
365,
18,
4949,
1785,
273,
880,
365,
18,
1636,
1119,
273,
1083,
365,
18,
2738,
6261,
4965,
7109,
429,
273... | |
html = self._pin_add.__of__(self.context)(latitude=latitude, longitude=longitude, address=address, country=country, type=type) | html = self._pin_add(latitude=latitude, longitude=longitude, address=address, country=country, type=type) | def pin_add(self, latitude, longitude, REQUEST, type=None): """ """ lat, lon = float(latitude), float(longitude) author, session_key = self.get_author_and_session(REQUEST) | a922e36072d7253a4c0585510c2c58807a11552b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3287/a922e36072d7253a4c0585510c2c58807a11552b/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7092,
67,
1289,
12,
2890,
16,
8904,
16,
9192,
16,
12492,
16,
618,
33,
7036,
4672,
3536,
3536,
2516,
16,
4281,
273,
1431,
12,
16967,
3631,
1431,
12,
16867,
13,
2869,
16,
1339,
67,
856,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7092,
67,
1289,
12,
2890,
16,
8904,
16,
9192,
16,
12492,
16,
618,
33,
7036,
4672,
3536,
3536,
2516,
16,
4281,
273,
1431,
12,
16967,
3631,
1431,
12,
16867,
13,
2869,
16,
1339,
67,
856,
... |
def __init__(self, tag, enum_map, attrib_name='value', | def __init__(self, tag, enum_map, attrib_name='value', | def __init__(self, tag, enum_map, attrib_name='value', extension_elements=None, extension_attributes=None, text=None): self.tag=tag self.enum_map=enum_map self.attrib_name=attrib_name self.value=None self.text=text self.extension_elements = extension_elements or [] self.extension_attributes = extension_attributes or {}... | 6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6580/6a016768dbbd7d5ee9c62bcd2d2ce3bf7f6d1048/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1047,
16,
2792,
67,
1458,
16,
5885,
67,
529,
2218,
1132,
2187,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
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,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1047,
16,
2792,
67,
1458,
16,
5885,
67,
529,
2218,
1132,
2187,
2710,
67,
6274,
33,
7036,
16,
2710,
67,
4350,
33,
7036,
16,
977,
33,
7036,
4672,
365,
18... |
flatPath = cdb.lookup(when, "flat", event.get("ccdId"), | flatPath = self.cdb.lookup(when, "flat", event.get("ccdId"), | def process(self): self.activeClipboard = self.inputQueue.getNextDataset() | 83eea9f38860c2c3450ebebf413fa15e858aa696 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6526/83eea9f38860c2c3450ebebf413fa15e858aa696/IdentifyCalibrationProductsStage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
12,
2890,
4672,
365,
18,
3535,
15339,
3752,
273,
365,
18,
2630,
3183,
18,
588,
2134,
10656,
1435,
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,
1207,
12,
2890,
4672,
365,
18,
3535,
15339,
3752,
273,
365,
18,
2630,
3183,
18,
588,
2134,
10656,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if self.redundancy_req and not self.redundancy_link and not self.is_down(): | if self.redundancy_req and not self.redundancy_link: | def get_warnings(self): """ Returns a list of warnings for this node. """ w = [] if self.status == NodeStatus.Invalid: w.append(_("Node is not registered in the node database!")) | 3f6d1139eac138c3715c8c157eb42dfb5c246c61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11345/3f6d1139eac138c3715c8c157eb42dfb5c246c61/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12103,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
5599,
364,
333,
756,
18,
3536,
341,
273,
5378,
309,
365,
18,
2327,
422,
2029,
1482,
18,
1941,
30,
341,
18,
6923,
24899,
2932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12103,
12,
2890,
4672,
3536,
2860,
279,
666,
434,
5599,
364,
333,
756,
18,
3536,
341,
273,
5378,
309,
365,
18,
2327,
422,
2029,
1482,
18,
1941,
30,
341,
18,
6923,
24899,
2932,... |
_mapping_ = { Entry._xml_tag : Entry, EntryRef._xml_tag : EntryRef, List._xml_tag : List, External._xml_tag : External, DisplayName._xml_tag : DisplayName } class MainListElement(TypedList): default_validate = True default_encoding = 'UTF-8' default_xml_declaration = True | _mapping_ = { Entry.tag() : Entry, EntryRef.tag() : EntryRef, List.tag() : List, External.tag() : External, DisplayName.tag() : DisplayName } class SimpleList(TypedList): | def externals(self): return [x for x in self if isinstance(x, External)] | 3a6f8ef591b8d187eeffafcb45f678e86136c6e9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5703/3a6f8ef591b8d187eeffafcb45f678e86136c6e9/resourcelists.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18885,
1031,
12,
2890,
4672,
327,
306,
92,
364,
619,
316,
365,
309,
1549,
12,
92,
16,
11352,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18885,
1031,
12,
2890,
4672,
327,
306,
92,
364,
619,
316,
365,
309,
1549,
12,
92,
16,
11352,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
print "<varlistentry>" | sys.stdout.write("<varlistentry>\n") | def unpack(pkgfilename): '''unpack a tar[.gz|.bz2] source distribution package.''' if pkgfilename.endswith('.bz2'): d = 'j' elif pkgfilename.endswith('.gz'): d = 'z' shellCommand('tar ' + d + 'xf ' + pkgfilename) return os.path.basename(os.path.splitext(os.path.splitext(pkgfilename)[0])) | b4796f12253039e6a154e7c6028fd2f4e9ade2a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1360/b4796f12253039e6a154e7c6028fd2f4e9ade2a2/dws.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
10657,
3459,
4672,
9163,
17309,
279,
8232,
63,
18,
9764,
96,
18,
25292,
22,
65,
1084,
7006,
2181,
1093,
6309,
309,
3475,
3459,
18,
5839,
1918,
2668,
18,
25292,
22,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6167,
12,
10657,
3459,
4672,
9163,
17309,
279,
8232,
63,
18,
9764,
96,
18,
25292,
22,
65,
1084,
7006,
2181,
1093,
6309,
309,
3475,
3459,
18,
5839,
1918,
2668,
18,
25292,
22,
11,
4672,
... |
return True; | queue = vortex.AsyncQueue (); iterator = 0 while iterator < 1000: queue.push ((2, 3)) queue.push ("This is an string") queue.push ([1, 2, 3, 4]) iterator += 1 iterator = 0 while iterator < 1000: if not test_00_a_check (queue): return False; iterator += 1 queue.unref (); return True | def test_00_a(): ########## # create a queue queue = vortex.AsyncQueue (); # call to terminate queue del queue; ######### # create a queue queue = vortex.AsyncQueue (); # call to unref iterator = 0 while iterator < 100: # unref queue.unref (); # next operation iterator += 1; # and now finish del queue; #########... | 44bc361f3b497230e1d601079e2df89085d4b1cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1306/44bc361f3b497230e1d601079e2df89085d4b1cd/vortex-regression-client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
713,
67,
69,
13332,
468,
3228,
7,
468,
752,
279,
2389,
2389,
273,
331,
20873,
18,
2771,
3183,
261,
1769,
225,
468,
745,
358,
10850,
2389,
1464,
2389,
31,
225,
468,
3228,
225,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
713,
67,
69,
13332,
468,
3228,
7,
468,
752,
279,
2389,
2389,
273,
331,
20873,
18,
2771,
3183,
261,
1769,
225,
468,
745,
358,
10850,
2389,
1464,
2389,
31,
225,
468,
3228,
225,... |
if not self.suppress_para: self.w('<para>') | if not self.suppress_para: self.w('<para style="BodyText">') | def visit_paragraph(self, node): if not self.suppress_para: self.w('<para>') | 46d27fd0988345162aa05e8c8214fca51757feb4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/46d27fd0988345162aa05e8c8214fca51757feb4/pythonpoint.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3757,
67,
22445,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
10840,
67,
25072,
30,
365,
18,
91,
2668,
32,
25072,
1870,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3757,
67,
22445,
12,
2890,
16,
756,
4672,
309,
486,
365,
18,
10840,
67,
25072,
30,
365,
18,
91,
2668,
32,
25072,
1870,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
x = M2Z(x) | x = mi2x2(M2Z, x, copy=True, coerce=True) | def __init__(self, parent, x, check=True): """ Create an element of a congruence subgroup. | 19d8f3e8204041eb4f38f55b1209a9bddf41d226 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/19d8f3e8204041eb4f38f55b1209a9bddf41d226/congroup_element.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
279,
356,
3197,
23209,
720,
1655,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
619,
16,
866,
33,
5510,
4672,
3536,
1788,
392,
930,
434,
279,
356,
3197,
23209,
720,
1655,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
single_line = self.update(index, left_score, right_score, valid) if self.verbose or single_line.color != Color.NONE: self.context.add_line(single_line) if not valid: non_valid += 1 self.add_newline() if self.count <= 0: self.add_line("No results found, exit") else: self.do_some_calc() if non_valid: self.add_line("N... | self.update(left_score, right_score, valid) self.do_some_calc() self.do_some_formatting() | def generate_context(self, lines): index = -1 non_valid = 0 for line in lines: index += 1 if index <= 0: self.add_line(line, color=Color.BLUE) #title self.add_newline() self.add_line(" No. Score Point") #head continue parts = line.split() for i in range(len(parts)): parts[i] = int(parts[i]) | cb6bc49d36771dd5e95ebfdee0c01b59a5a8c9b7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/600/cb6bc49d36771dd5e95ebfdee0c01b59a5a8c9b7/process.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
2472,
12,
2890,
16,
2362,
4672,
770,
273,
300,
21,
1661,
67,
877,
273,
374,
364,
980,
316,
2362,
30,
770,
1011,
404,
309,
770,
1648,
374,
30,
365,
18,
1289,
67,
1369,
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,
2103,
67,
2472,
12,
2890,
16,
2362,
4672,
770,
273,
300,
21,
1661,
67,
877,
273,
374,
364,
980,
316,
2362,
30,
770,
1011,
404,
309,
770,
1648,
374,
30,
365,
18,
1289,
67,
1369,
12,
... |
print "Install NumPy to plot plot NumPy arrays" | print "Install NumPy to plot NumPy arrays" | def __init__(self, *args): qt.QWidget.__init__(self, *args) | c5b7de18eda95af59a71dd614f7811c9cf950f26 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5650/c5b7de18eda95af59a71dd614f7811c9cf950f26/MultiDemo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
25672,
18,
53,
4609,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
25672,
18,
53,
4609,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
-X --exclude exclude names matching the given patterns | -X --exclude exclude names matching the given patterns diff -- (default: True) if True show diffs between your repository and your working repository before recording changes. | def commit(self, files='', comment=None, options=''): """ Commit your changes to the repository. | 539ba3e989ccd0a414cf274d05dfdde43cbcdc5c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/539ba3e989ccd0a414cf274d05dfdde43cbcdc5c/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
1390,
2218,
2187,
2879,
33,
7036,
16,
702,
2218,
11,
4672,
3536,
10269,
3433,
3478,
358,
326,
3352,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3294,
12,
2890,
16,
1390,
2218,
2187,
2879,
33,
7036,
16,
702,
2218,
11,
4672,
3536,
10269,
3433,
3478,
358,
326,
3352,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if n == 1: a1 = self.base_ring()(1) self.__eigenvalues[1] = a1 return a1 if arith.is_prime(n): | if (arith.is_prime(n) or n==1): | def eigenvalue(self, n): """ Assuming that self is a simple space, return the eigenvalue of the $n$th Hecke operator on self. | 4c5163e04badfb377e33e9789853f1639d35781f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9890/4c5163e04badfb377e33e9789853f1639d35781f/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16719,
1132,
12,
2890,
16,
290,
4672,
3536,
4725,
21249,
716,
365,
353,
279,
4143,
3476,
16,
327,
326,
16719,
1132,
434,
326,
271,
82,
8,
451,
670,
762,
73,
3726,
603,
365,
18,
2,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16719,
1132,
12,
2890,
16,
290,
4672,
3536,
4725,
21249,
716,
365,
353,
279,
4143,
3476,
16,
327,
326,
16719,
1132,
434,
326,
271,
82,
8,
451,
670,
762,
73,
3726,
603,
365,
18,
2,
-1... |
Returns the Molien series of a transtive permutation group. The | Returns the Molien series of a transitive permutation group. The | def molien_series(self): r""" Returns the Molien series of a transtive permutation group. The function .. math:: M(x) = (1/|G|)\sum_{g\in G} det(1-x*g)^(-1) is sometimes called the "Molien series" of G. GAP's ``MolienSeries`` is associated to a character of a group G. How are these related? A group G, given as a pe... | 6ac30ecf5071d4fb909072e90d2311932d8c2165 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ac30ecf5071d4fb909072e90d2311932d8c2165/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
225,
6116,
4233,
2866,
225,
490,
12,
92,
13,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12629,
77,
275,
67,
10222,
12,
2890,
4672,
436,
8395,
2860,
326,
490,
355,
77,
275,
4166,
434,
279,
30442,
17440,
1041,
18,
1021,
445,
225,
6116,
4233,
2866,
225,
490,
12,
92,
13,
273,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.