rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
raise Error, 'Incorrect data size, diff='+`self.rlen` | raise Error, 'Incorrect data size, diff='+`self.rlen` | def close_data(self): | cada31e8208b1e7201f5afc9f9782089bec7ebe3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/cada31e8208b1e7201f5afc9f9782089bec7ebe3/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
892,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
67,
892,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
script_leftMouseClick.__doc__=_("Clicks the left mouse button once where ever it may be at the time.") | script_leftMouseClick.__doc__=_("Clicks the left mouse button once at the current mouse position") | def script_leftMouseClick(self,keyPress): speech.speakMessage(_("left click")) winUser.mouse_event(winUser.MOUSEEVENTF_LEFTDOWN,0,0,None,None) winUser.mouse_event(winUser.MOUSEEVENTF_LEFTUP,0,0,None,None) | e71a52fd4a4b47af55b85211140c5deabbe03c2b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/e71a52fd4a4b47af55b85211140c5deabbe03c2b/_default.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
4482,
9186,
6563,
12,
2890,
16,
856,
11840,
4672,
24556,
18,
87,
10244,
1079,
24899,
2932,
4482,
4682,
6,
3719,
5657,
1299,
18,
11697,
67,
2575,
12,
8082,
1299,
18,
5980,
8001,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
4482,
9186,
6563,
12,
2890,
16,
856,
11840,
4672,
24556,
18,
87,
10244,
1079,
24899,
2932,
4482,
4682,
6,
3719,
5657,
1299,
18,
11697,
67,
2575,
12,
8082,
1299,
18,
5980,
8001,... |
sys.exit(mk_csh_script(sys.argv[2])) | sys.exit(mk_csh_script(sys.argv[2],sys.argv[3])) | def get_pkgdir(root=None): 'Return directory of the RSF Python package' return os.path.join(get_local_site_pkgs(root),'rsf') | 6f411a9c2ac1ce299e662eba6482fb564978eb19 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3143/6f411a9c2ac1ce299e662eba6482fb564978eb19/setenv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10657,
1214,
12,
3085,
33,
7036,
4672,
296,
990,
1867,
434,
326,
14746,
42,
6600,
2181,
11,
225,
327,
1140,
18,
803,
18,
5701,
12,
588,
67,
3729,
67,
4256,
67,
25376,
12,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
10657,
1214,
12,
3085,
33,
7036,
4672,
296,
990,
1867,
434,
326,
14746,
42,
6600,
2181,
11,
225,
327,
1140,
18,
803,
18,
5701,
12,
588,
67,
3729,
67,
4256,
67,
25376,
12,
30... |
element = _encode(element) | def simpleElement(self, element, value=None): if value: element = _encode(element) value = _encode(value) self.writeln("<%s>%s</%s>" % (element, value, element)) else: self.writeln("<%s/>" % element) | b9bddce5e972eb4c6cc35c0aa5acc1f9d6ad420d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b9bddce5e972eb4c6cc35c0aa5acc1f9d6ad420d/plistlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
1046,
12,
2890,
16,
930,
16,
460,
33,
7036,
4672,
309,
460,
30,
460,
273,
389,
3015,
12,
1132,
13,
365,
18,
5363,
292,
82,
2932,
32,
9,
87,
9822,
87,
1757,
9,
87,
2984,
738,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4143,
1046,
12,
2890,
16,
930,
16,
460,
33,
7036,
4672,
309,
460,
30,
460,
273,
389,
3015,
12,
1132,
13,
365,
18,
5363,
292,
82,
2932,
32,
9,
87,
9822,
87,
1757,
9,
87,
2984,
738,
... | |
break else : continue | break | def FixVpdOffset (self): # At first, the offset should start at 0 # Sort fixed offset list in order to find out where has free spaces for the pcd's offset # value is "*" to insert into. self.PcdFixedOffsetSizeList.sort(lambda x,y: cmp(x.PcdBinOffset, y.PcdBinOffset)) # # Sort the un-fixed pcd's offset by it's size. #... | 662e219095e0387039bf7dfd32d2d3fdbba57513 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/914/662e219095e0387039bf7dfd32d2d3fdbba57513/GenVpd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12139,
58,
22353,
2335,
261,
2890,
4672,
468,
2380,
1122,
16,
326,
1384,
1410,
787,
622,
374,
468,
5928,
5499,
1384,
666,
316,
1353,
358,
1104,
596,
1625,
711,
4843,
7292,
364,
326,
293,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12139,
58,
22353,
2335,
261,
2890,
4672,
468,
2380,
1122,
16,
326,
1384,
1410,
787,
622,
374,
468,
5928,
5499,
1384,
666,
316,
1353,
358,
1104,
596,
1625,
711,
4843,
7292,
364,
326,
293,... |
return x*c + n*n.dot(x)*(1-c) + x.cross(n)*s | return x*c + n*n.dot(x)*(1-c) + n.cross(x)*s | def rotate(self, axis, angle, deg=False): assert self.n in ((3,1), (1,3)) assert axis.n == self.n if deg: angle *= math.pi/180 n = axis.normalize() x = self c, s = math.cos(angle), math.sin(angle) return x*c + n*n.dot(x)*(1-c) + x.cross(n)*s | 3d833d1fb97a9301277c78d70d16ee5e622aa5bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/696/3d833d1fb97a9301277c78d70d16ee5e622aa5bc/matrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
12,
2890,
16,
2654,
16,
5291,
16,
5843,
33,
8381,
4672,
1815,
365,
18,
82,
316,
14015,
23,
16,
21,
3631,
261,
21,
16,
23,
3719,
1815,
2654,
18,
82,
422,
365,
18,
82,
309,
584... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8534,
12,
2890,
16,
2654,
16,
5291,
16,
5843,
33,
8381,
4672,
1815,
365,
18,
82,
316,
14015,
23,
16,
21,
3631,
261,
21,
16,
23,
3719,
1815,
2654,
18,
82,
422,
365,
18,
82,
309,
584... |
options = parse_options() if not options : sys.exit(0) markdownFromFile(**options) | sys.exit(main()) | def parse_options() : try : optparse = __import__("optparse") except : if len(sys.argv) == 2 : return {'input' : sys.argv[1], 'output' : None, 'message_threshold' : CRITICAL, 'safe' : False, 'extensions' : [], 'encoding' : None } else : print OPTPARSE_WARNING return None parser = optparse.OptionParser(usage="%prog I... | b0c35ff3dc3d323c935f30635599708ce0d77c23 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/b0c35ff3dc3d323c935f30635599708ce0d77c23/markdown.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
1435,
294,
225,
775,
294,
2153,
2670,
273,
1001,
5666,
972,
2932,
3838,
2670,
7923,
1335,
294,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
294,
327,
13666,
2630,
11,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
1435,
294,
225,
775,
294,
2153,
2670,
273,
1001,
5666,
972,
2932,
3838,
2670,
7923,
1335,
294,
309,
562,
12,
9499,
18,
19485,
13,
422,
576,
294,
327,
13666,
2630,
11,
2... |
todel = [] for prop in props: iface, name = prop.rsplit('.', 1) if name in channel._immutable_properties: if channel._immutable_properties[name] != iface: todel.append(prop) else: todel.append(prop) for p in todel: del props[p] _success(channel._object_path, props) | returnedProps = channel.get_props() _success(channel._object_path, returnedProps) | def CreateChannel(self, request, _success, _error): type, handle_type, handle = self._check_basic_properties(request) self._validate_handle(request) props = self._alter_properties(request) | ec9bf4b762b14e72f0e3ac20848ef6390837be86 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13096/ec9bf4b762b14e72f0e3ac20848ef6390837be86/conn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2909,
12,
2890,
16,
590,
16,
389,
4768,
16,
389,
1636,
4672,
618,
16,
1640,
67,
723,
16,
1640,
273,
365,
6315,
1893,
67,
13240,
67,
4738,
12,
2293,
13,
365,
6315,
5662,
67,
411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1788,
2909,
12,
2890,
16,
590,
16,
389,
4768,
16,
389,
1636,
4672,
618,
16,
1640,
67,
723,
16,
1640,
273,
365,
6315,
1893,
67,
13240,
67,
4738,
12,
2293,
13,
365,
6315,
5662,
67,
411... |
help="something to do with warnings (ask Holger!)")) | help="enable warnings (disabled by default)")) | def objspace_callback(option, opt, value, parser, space): parser.values.spaces.append(space) | c49e47533b88e6f42f44564fe3a75f7c5004d21b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/c49e47533b88e6f42f44564fe3a75f7c5004d21b/option.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1081,
2981,
67,
3394,
12,
3482,
16,
2153,
16,
460,
16,
2082,
16,
3476,
4672,
2082,
18,
2372,
18,
9554,
18,
6923,
12,
2981,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1081,
2981,
67,
3394,
12,
3482,
16,
2153,
16,
460,
16,
2082,
16,
3476,
4672,
2082,
18,
2372,
18,
9554,
18,
6923,
12,
2981,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pat = re.compile(r'^\s*class\s*' + name + r'\b') | pat = re.compile(r'^(\s*)class\s*' + name + r'\b') candidates = [] | def findsource(object): """Return the entire source file and starting line number for an object. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a list of all the lines in the file and the line number indexes a line in that list. An IOError is r... | fcf6696255b36efd73745d4e5e8e9a1dcbd2fd40 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/fcf6696255b36efd73745d4e5e8e9a1dcbd2fd40/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
3168,
12,
1612,
4672,
3536,
990,
326,
7278,
1084,
585,
471,
5023,
980,
1300,
364,
392,
733,
18,
225,
1021,
1237,
2026,
506,
279,
1605,
16,
667,
16,
707,
16,
445,
16,
10820,
16,
... |
self.profile_DeleteButton.on_click += self.delete_profile | self.profile_DeleteButton.on_click += lambda _: self.delete_profile() | def __init__ (self, parent = None): ui.VBox.__init__(self, parent) | 58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
982,
273,
599,
4672,
225,
5915,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
982,
273,
599,
4672,
225,
5915,
18,
58,
3514,
16186,
2738,
972,
12,
2890,
16,
982,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
self.assertEqual(b.split(), [b'\x1c\x1d\x1e\x1f']) | def test_rsplit_unicodewhitespace(self): b = self.type2test(b"\x09\x0A\x0B\x0C\x0D\x1C\x1D\x1E\x1F") self.assertEqual(b.split(), [b'\x1c\x1d\x1e\x1f']) self.assertEqual(b.rsplit(), [b'\x1c\x1d\x1e\x1f']) | 5f31c7d9de42c3e61ab40db94e55abfa958075d1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/5f31c7d9de42c3e61ab40db94e55abfa958075d1/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
86,
4939,
67,
9124,
18777,
12,
2890,
4672,
324,
273,
365,
18,
723,
22,
3813,
12,
70,
12691,
92,
5908,
64,
92,
20,
37,
64,
92,
20,
38,
64,
92,
20,
39,
64,
92,
20,
40,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
86,
4939,
67,
9124,
18777,
12,
2890,
4672,
324,
273,
365,
18,
723,
22,
3813,
12,
70,
12691,
92,
5908,
64,
92,
20,
37,
64,
92,
20,
38,
64,
92,
20,
39,
64,
92,
20,
40,
... | |
"License :: OSI Approved :: BSD License", | "License :: OSI Approved :: LGPL", | def pkgconfig(*packages, **kw): flag_map = {'-I': 'include_dirs', '-L': 'library_dirs', '-l': 'libraries'} pkgs = ' '.join(packages) cmdline = 'pkg-config --libs --cflags %s' % pkgs status, output = commands.getstatusoutput(cmdline) if status != 0: raise ValueError("could not find pkg-config module: %s" % pkgs) for t... | d0039afab9e7bbb859727cd9e12f44e3dfa7772e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12343/d0039afab9e7bbb859727cd9e12f44e3dfa7772e/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3475,
1425,
30857,
10308,
16,
2826,
9987,
4672,
2982,
67,
1458,
273,
13666,
17,
45,
4278,
296,
6702,
67,
8291,
2187,
2400,
48,
4278,
296,
12083,
67,
8291,
2187,
2400,
80,
4278,
296,
3141... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3475,
1425,
30857,
10308,
16,
2826,
9987,
4672,
2982,
67,
1458,
273,
13666,
17,
45,
4278,
296,
6702,
67,
8291,
2187,
2400,
48,
4278,
296,
12083,
67,
8291,
2187,
2400,
80,
4278,
296,
3141... |
avv = base_metas["Access Vector"][:1] if avv not in avset: | av = base_metas["Access Vector"][:1] avs = set(av) if avs.subset(avset): vector += "AV:" + av[0] + "/" else: | def buildVector(base_metas): vector = "" avset = set(['Local', 'Network', 'Adjacent Network']) acset = set(['High', 'Medium', 'Low']) auset = set(['Multiple', 'Single', 'None']) avv = base_metas["Access Vector"][:1] if avv not in avset: return None else: vector += "AV:" + avv[0] + "/" acv = base_metas["Access Complexit... | 3e46d1c18c0a3c88daafcfd2ba83e875083321f8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/888/3e46d1c18c0a3c88daafcfd2ba83e875083321f8/CVSS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5018,
12,
1969,
67,
10578,
345,
4672,
3806,
273,
1408,
1712,
542,
273,
444,
12,
3292,
2042,
2187,
296,
3906,
2187,
296,
17886,
25897,
5128,
19486,
1721,
542,
273,
444,
12,
3292,
85... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
5018,
12,
1969,
67,
10578,
345,
4672,
3806,
273,
1408,
1712,
542,
273,
444,
12,
3292,
2042,
2187,
296,
3906,
2187,
296,
17886,
25897,
5128,
19486,
1721,
542,
273,
444,
12,
3292,
85... |
self.dictOrigin['Used Model'] = "STAUFEN" | self.dictOrigin['Depth Type'] = "from location program" self.dictOrigin['Earth Model'] = "STAUFEN" | def load3dlocData(self): #self.load3dlocSyntheticPhases() event = open(self.threeDlocOutfile).readline().split() self.dictOrigin['Longitude'] = float(event[8]) self.dictOrigin['Latitude'] = float(event[9]) self.dictOrigin['Depth'] = float(event[10]) self.dictOrigin['Longitude Error'] = float(event[11]) self.dictOrigin[... | 4e8f536428831ce605c623aa5fc17a6b33b5b712 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10346/4e8f536428831ce605c623aa5fc17a6b33b5b712/obspyck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
23,
72,
1829,
751,
12,
2890,
4672,
468,
2890,
18,
945,
23,
72,
1829,
10503,
16466,
3731,
3304,
1435,
871,
273,
1696,
12,
2890,
18,
451,
992,
40,
1829,
1182,
768,
2934,
896,
1369,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
23,
72,
1829,
751,
12,
2890,
4672,
468,
2890,
18,
945,
23,
72,
1829,
10503,
16466,
3731,
3304,
1435,
871,
273,
1696,
12,
2890,
18,
451,
992,
40,
1829,
1182,
768,
2934,
896,
1369,... |
if child not in children['Value']: | if child not in children: | def updateData(self, section, dataDict): | 3d4423ccb23cfb9cb160777202cf8a02b6d3e48e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/3d4423ccb23cfb9cb160777202cf8a02b6d3e48e/Mapping.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
751,
12,
2890,
16,
2442,
16,
501,
5014,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
751,
12,
2890,
16,
2442,
16,
501,
5014,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.assertEqual('edit_platform', req.hdf['build.mode']) | self.assertEqual('edit_platform', req.hdf['page.mode']) | def test_edit_platform(self): config = BuildConfig(self.env) config.name = 'test' config.insert() platform = TargetPlatform(self.env) platform.config = 'test' platform.name = 'linux' platform.rules.append(('os', 'linux?')) platform.insert() | a8ece97098e508a94e93a30ef2619051bee13128 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4547/a8ece97098e508a94e93a30ef2619051bee13128/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
4619,
67,
9898,
12,
2890,
4672,
642,
273,
3998,
809,
12,
2890,
18,
3074,
13,
642,
18,
529,
273,
296,
3813,
11,
642,
18,
6387,
1435,
4072,
273,
5916,
8201,
12,
2890,
18,
307... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4619,
67,
9898,
12,
2890,
4672,
642,
273,
3998,
809,
12,
2890,
18,
3074,
13,
642,
18,
529,
273,
296,
3813,
11,
642,
18,
6387,
1435,
4072,
273,
5916,
8201,
12,
2890,
18,
307... |
print "Doing make " + dbgStr + " install\n" log.write("Doing make " + dbgStr + " install\n") | print "Doing make " + dbgStr + " clean install\n" log.write("Doing make " + dbgStr + " clean install\n") | def doInstall(buildmode, workingDir, log): | a87aad854ed1bcb20719ac9f8a0be747a3c3f652 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9228/a87aad854ed1bcb20719ac9f8a0be747a3c3f652/newchandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
6410,
12,
3510,
3188,
16,
5960,
1621,
16,
613,
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,
741,
6410,
12,
3510,
3188,
16,
5960,
1621,
16,
613,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
try: | if hasattr(builtin, object.__name__): | def getmodule(object): """Try to guess which module an object was defined in.""" if isclass(object): return sys.modules.get(object.__module__) try: file = getabsfile(object) except TypeError: return None if modulesbyfile.has_key(file): return sys.modules[modulesbyfile[file]] for module in sys.modules.values(): if hasat... | a50bc378702521085821dd7005c1856e98d7bb5e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a50bc378702521085821dd7005c1856e98d7bb5e/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2978,
12,
1612,
4672,
3536,
7833,
358,
7274,
1492,
1605,
392,
733,
1703,
2553,
316,
12123,
309,
28209,
12,
1612,
4672,
327,
2589,
18,
6400,
18,
588,
12,
1612,
16186,
2978,
972,
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,
336,
2978,
12,
1612,
4672,
3536,
7833,
358,
7274,
1492,
1605,
392,
733,
1703,
2553,
316,
12123,
309,
28209,
12,
1612,
4672,
327,
2589,
18,
6400,
18,
588,
12,
1612,
16186,
2978,
972,
13,
... |
self.make_mi(args,kwargs) | self.make_module_instance(args,kwargs) | def make(self, *args, **kwargs): """ Allocates the necessary containers using allocate() and uses build() to make an instance which will be returned. The initialize() method of the instance will be called with the arguments and the keyword arguments. If 'mode' is in the keyword arguments it will be passed to build(). "... | 669e606d0cf6881b21f222a4125bd622516ec2f8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12438/669e606d0cf6881b21f222a4125bd622516ec2f8/module.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
12830,
815,
326,
4573,
8475,
1450,
10101,
1435,
471,
4692,
1361,
1435,
358,
1221,
392,
791,
1492,
903,
506,
2106,
18,
1021,
404... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
3536,
12830,
815,
326,
4573,
8475,
1450,
10101,
1435,
471,
4692,
1361,
1435,
358,
1221,
392,
791,
1492,
903,
506,
2106,
18,
1021,
404... |
install_file( "../../libutil/slib/liblsf.so" , "%s/lib/python/lib/liblsf.so" % SDP_ROOT) | def install_path( src_path , target_root ): target_dir = "%s/%s" % (target_root , src_path) make_dir( target_dir ) dir_entries = [] file_entries = [] for entry in os.listdir( src_path ): if entry == ".svn": continue if entry[-1] == "~": continue if entry[-3:] == "pyc": continue full_path = "%s/%s" % (src_path , e... | 687edb72e275f95a7a5ae37dc8efeddfc1b23e14 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10268/687edb72e275f95a7a5ae37dc8efeddfc1b23e14/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
803,
12,
1705,
67,
803,
269,
1018,
67,
3085,
262,
30,
1018,
67,
1214,
273,
2213,
87,
5258,
87,
6,
738,
261,
3299,
67,
3085,
269,
1705,
67,
803,
13,
225,
1221,
67,
1214,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
803,
12,
1705,
67,
803,
269,
1018,
67,
3085,
262,
30,
1018,
67,
1214,
273,
2213,
87,
5258,
87,
6,
738,
261,
3299,
67,
3085,
269,
1705,
67,
803,
13,
225,
1221,
67,
1214,
1... | |
'Are you sure you want to check all groups ?', | 'Are you sure you want to check all groups?', | def chk_group(self, opts, args): """ Check one or more group(s). """ include_id_lists=[ (opts.name, LMC.groups.name_to_gid), (opts.gid, LMC.groups.confirm_gid) ] exclude_id_lists = [ (opts.exclude, LMC.groups.guess_identifier), (opts.exclude_group, LMC.groups.name_to_gid), (opts.exclude_gid, LMC.groups.confirm_gid) ] i... | a1acd345c6b587c46acec53d660359e9c2c78c73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/a1acd345c6b587c46acec53d660359e9c2c78c73/rwi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15000,
67,
1655,
12,
2890,
16,
1500,
16,
833,
4672,
3536,
2073,
1245,
578,
1898,
1041,
12,
87,
2934,
3536,
2341,
67,
350,
67,
9772,
22850,
261,
4952,
18,
529,
16,
511,
20022,
18,
4650,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15000,
67,
1655,
12,
2890,
16,
1500,
16,
833,
4672,
3536,
2073,
1245,
578,
1898,
1041,
12,
87,
2934,
3536,
2341,
67,
350,
67,
9772,
22850,
261,
4952,
18,
529,
16,
511,
20022,
18,
4650,... |
cxx.ExprVar(md._cxx.method.name), | cxx.ExprVar(md._cxx.dealloc), | block.addstmt(cxx.CppDirective('endif', '// ifdef DEBUG')) | 53837e42f63c8b55de89d5dc2a96ceb7a76ec3ea /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/53837e42f63c8b55de89d5dc2a96ceb7a76ec3ea/lower.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1203,
18,
1289,
10589,
12,
71,
5279,
18,
39,
11858,
13307,
2668,
409,
430,
2187,
12084,
309,
536,
6369,
26112,
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,
1203,
18,
1289,
10589,
12,
71,
5279,
18,
39,
11858,
13307,
2668,
409,
430,
2187,
12084,
309,
536,
6369,
26112,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
pass | sec.setVoltageMode(switchParam.HV) | def updateAdvanced(self, slotid): sec = eDVBSatelliteEquipmentControl.getInstance() lnbSat = {} for x in range(1,33): lnbSat[x] = [] for x in self.NimManager.satList: lnb = config.Nims[slotid].advanced.sat[x[1]].lnb.value if lnb != 0: lnbSat[lnb].append(x[1]) for x in range(1,33): if len(lnbSat[x]) > 0: currLnb = confi... | 45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
4694,
350,
4672,
1428,
273,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
1435,
328,
6423,
15163,
273,
2618,
364,
619,
316,
1048,
12,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
23618,
12,
2890,
16,
4694,
350,
4672,
1428,
273,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
1435,
328,
6423,
15163,
273,
2618,
364,
619,
316,
1048,
12,
21,
1... |
result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), currency_id= statement.currency.id, ttype=(amount < 0 and 'payment' or 'receipt'), context=context) | result = voucher_obj.onchange_partner_id(cr, uid, [], partner_id=line.partner_id.id, journal_id=statement.journal_id.id, price=abs(amount), currency_id= statement.currency.id, ttype=(amount < 0 and 'payment' or 'receipt'), date=time.strftime('%Y-%m-%d'), context=context) | def populate_statement(self, cr, uid, ids, context=None): if context is None: context = {} statement_id = context.get('statement_id', False) if not statement_id: return {} data = self.read(cr, uid, ids, context=context)[0] line_ids = data['line_ids'] if not line_ids: return {} | 7cd178554d9162e655ae1ad43898cd71b227b0a6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/7cd178554d9162e655ae1ad43898cd71b227b0a6/account_statement_from_invoice.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
11516,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
3021,
67,
350,
273,
819,
18,
588,
2668,
11516,
67,
350,
2187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
11516,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
819,
353,
599,
30,
819,
273,
2618,
3021,
67,
350,
273,
819,
18,
588,
2668,
11516,
67,
350,
2187... |
shutil.copy(f, self.resourceFolder) | shutil.copy(f, os.path.join(self.packageResourceFolder, dst)) | def _addResources(self): "Add Welcome/ReadMe/License files, .lproj folders and scripts." | 9428c10ace2561d7e95b339d8627931d772c6212 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/9428c10ace2561d7e95b339d8627931d772c6212/buildpkg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
3805,
12,
2890,
4672,
315,
986,
678,
16312,
19,
1994,
4667,
19,
13211,
1390,
16,
263,
80,
17995,
9907,
471,
8873,
1199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
result = checkArgumentDict(path) | result = checkArgumentDict( path ) | def checkArgumentFormat(path): """ Bring the various possible form of arguments to FileCatalog methods to the standard dictionary form """ result = checkArgumentDict(path) if not result['OK']: return result # Bring the lfn path to the normalized form urls = {} for url in path: normpath = os.path.normpath(url) urls[nor... | 41eaae9197bb4e4672bf8c41ce46bb8545a582ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/41eaae9197bb4e4672bf8c41ce46bb8545a582ee/Utilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10788,
1630,
12,
803,
4672,
3536,
605,
8022,
326,
11191,
3323,
646,
434,
1775,
358,
1387,
9769,
2590,
358,
326,
4529,
3880,
646,
3536,
563,
273,
10788,
5014,
12,
589,
262,
309,
486,
563,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10788,
1630,
12,
803,
4672,
3536,
605,
8022,
326,
11191,
3323,
646,
434,
1775,
358,
1387,
9769,
2590,
358,
326,
4529,
3880,
646,
3536,
563,
273,
10788,
5014,
12,
589,
262,
309,
486,
563,... |
Diagonal offset (see `tril` for details). | Diagonal offset (see `tril` for details). | def tril_indices(n,k=0): """ Return the indices for the lower-triangle of an (n, n) array. Parameters ---------- n : int Sets the size of the arrays for which the returned indices will be valid. k : int, optional Diagonal offset (see `tril` for details). Returns ------- inds : tuple of arrays The indices for the tria... | 4d40dff448b1b368af6752fa8b9a93716db76b3f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14925/4d40dff448b1b368af6752fa8b9a93716db76b3f/twodim_base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
433,
330,
67,
6836,
12,
82,
16,
79,
33,
20,
4672,
3536,
2000,
326,
4295,
364,
326,
2612,
17,
16857,
4341,
434,
392,
261,
82,
16,
290,
13,
526,
18,
225,
7012,
12181,
290,
294,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
433,
330,
67,
6836,
12,
82,
16,
79,
33,
20,
4672,
3536,
2000,
326,
4295,
364,
326,
2612,
17,
16857,
4341,
434,
392,
261,
82,
16,
290,
13,
526,
18,
225,
7012,
12181,
290,
294,
509,
... |
self.attr_content.append(AttributeReference(self)) | content.append(AttributeReference(self)) | def fromDom(self, node): self.setAttributes(node) contents = self.getContents(node) | 66c6baf2288f065b45db940b63cfc5dba1aa9fb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/13054/66c6baf2288f065b45db940b63cfc5dba1aa9fb0/XMLSchema.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
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,
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,
628,
8832,
12,
2890,
16,
756,
4672,
365,
18,
542,
2498,
12,
2159,
13,
2939,
273,
365,
18,
588,
6323,
12,
2159,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
group.add_option('--ec2-version',metavar='EC2_VER', help='Specifity the EC2 image version.') group.add_option('--ec2-landscape',action='store_true', help='Install landscape client support') | group.add_option('--ec2-version', metavar='EC2_VER', help='Specify the EC2 image version.') group.add_option('--ec2-landscape', action='store_true', help='Install landscape client support') | def register_options(self): group = self.vm.setting_group('EC2 integation') group.add_option('--ec2', action='store_true', help='Build for EC2') group.add_option('--ec2-name','--ec2-prefix', metavar='EC2_NAME', help='Name for the EC2 image.') group.add_option('--ec2-cert', metavar='CERTFILE', help='PEM encoded public c... | c4181abd528fab3e494633ec61680f569c16d1d5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1496/c4181abd528fab3e494633ec61680f569c16d1d5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1744,
67,
2116,
12,
2890,
4672,
1041,
273,
365,
18,
3489,
18,
8920,
67,
1655,
2668,
7228,
22,
5780,
367,
6134,
1041,
18,
1289,
67,
3482,
2668,
413,
557,
22,
2187,
1301,
2218,
2233,
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,
1744,
67,
2116,
12,
2890,
4672,
1041,
273,
365,
18,
3489,
18,
8920,
67,
1655,
2668,
7228,
22,
5780,
367,
6134,
1041,
18,
1289,
67,
3482,
2668,
413,
557,
22,
2187,
1301,
2218,
2233,
67,... |
def _has_data(self, data): return len(data.keys()) | def _has_data(self, data): return len(data.keys()) | 11a4cf487f8450446e902d7b8f4b534faffcc0da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/11a4cf487f8450446e902d7b8f4b534faffcc0da/widgets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5332,
67,
892,
12,
2890,
16,
501,
4672,
327,
562,
12,
892,
18,
2452,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5332,
67,
892,
12,
2890,
16,
501,
4672,
327,
562,
12,
892,
18,
2452,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
self.assertEqual(git.tr[0][1:], (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0)) self.assertEqual(git.tr[1][1:], (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0)) self.assertEqual(git.tr[2][1:], (modfile, 18, 'eggs', [' q = y / 0\n'], 0)) | self.assertEqual(revise(*git.tr[0][1:]), (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0)) self.assertEqual(revise(*git.tr[1][1:]), (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0)) self.assertEqual(revise(*git.tr[2][1:]), (modfile, 18, 'eggs', [' q = y / 0\n'], 0)) | def test_trace(self): self.assertEqual(len(git.tr), 3) self.assertEqual(git.tr[0][1:], (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0)) self.assertEqual(git.tr[1][1:], (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0)) self.assertEqual(git.tr[2][1:], (modfile, 18, 'eggs', [' q = y / 0\n'], 0)) | a3538ebfe3120cf7478f91bd76674234b8cffda8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/a3538ebfe3120cf7478f91bd76674234b8cffda8/test_inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5129,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
1897,
12,
6845,
18,
313,
3631,
890,
13,
365,
18,
11231,
5812,
12,
6845,
18,
313,
63,
20,
6362,
21,
30,
6487,
261,
1711,
768,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5129,
12,
2890,
4672,
365,
18,
11231,
5812,
12,
1897,
12,
6845,
18,
313,
3631,
890,
13,
365,
18,
11231,
5812,
12,
6845,
18,
313,
63,
20,
6362,
21,
30,
6487,
261,
1711,
768,... |
relative_path = layout_package.path_utils.RelativeTestFilename(full_path) | relative_path = path_utils.RelativeTestFilename(full_path) | def FilenameToUri(self, full_path): relative_path = layout_package.path_utils.RelativeTestFilename(full_path) port = None use_ssl = False | 273dc01bed598437f8fe9420a0d18fb95ab85e0e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5060/273dc01bed598437f8fe9420a0d18fb95ab85e0e/platform_utils_win.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16671,
774,
3006,
12,
2890,
16,
1983,
67,
803,
4672,
3632,
67,
803,
273,
589,
67,
5471,
18,
8574,
4709,
5359,
12,
2854,
67,
803,
13,
1756,
273,
599,
999,
67,
8157,
273,
1083,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16671,
774,
3006,
12,
2890,
16,
1983,
67,
803,
4672,
3632,
67,
803,
273,
589,
67,
5471,
18,
8574,
4709,
5359,
12,
2854,
67,
803,
13,
1756,
273,
599,
999,
67,
8157,
273,
1083,
2,
-100... |
.. rubric:: Migrating classes to :class:`UniqueRepresentation` and unpickling | .. rubric:: Migrating classes to ``UniqueRepresentation`` and unpickling | ... def __reduce__(self): | 0135b06bc27670affbc8c410d378805cbf5877e4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/0135b06bc27670affbc8c410d378805cbf5877e4/unique_representation.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
4202,
1652,
1001,
12498,
972,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
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,
1372,
4202,
1652,
1001,
12498,
972,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
visitor.dispatch_visit(self, self.__class__.__name__) | visitor.dispatch_visit(self) | def walk(self, visitor): """ Traverse a tree of `Node` objects, calling ``visit_...`` methods of `visitor` when entering each node. If there is no ``visit_particular_node`` method for a node of type ``particular_node``, the ``unknown_visit`` method is called. (The `walkabout()` method is similar, except it also calls ... | bc3b1525b89b84e4b2c4967caf0e87a96aa7cff4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/bc3b1525b89b84e4b2c4967caf0e87a96aa7cff4/nodes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5442,
12,
2890,
16,
8000,
4672,
3536,
2197,
2476,
279,
2151,
434,
1375,
907,
68,
2184,
16,
4440,
12176,
11658,
67,
2777,
10335,
2590,
434,
1375,
3516,
1811,
68,
1347,
19014,
1517,
756,
1... |
def write(self, data): if DEBUG: testf.write(data) | def write(self, data): | def write(self, data): | a220e67a9ed94d66b81e393a3bb9e6acd10068c1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/a220e67a9ed94d66b81e393a3bb9e6acd10068c1/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
501,
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,
1045,
12,
2890,
16,
501,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
print CODEREVIEW_SETTINGS | del CODEREVIEW_SETTINGS['__just_initialized'] print '\n'.join(("%s: %s" % (str(k), str(v)) for (k,v) in CODEREVIEW_SETTINGS.iteritems())) | def main(argv=None): if argv is None: argv = sys.argv if len(argv) == 1: Help() return 0; # Create the directories where we store information about changelists if it # doesn't exist. if not os.path.exists(GetInfoDir()): os.mkdir(GetInfoDir()) if not os.path.exists(GetChangesDir()): os.mkdir(GetChangesDir()) # For smo... | f63537825d9f59e082f14331ce8c11ffb61a8079 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6076/f63537825d9f59e082f14331ce8c11ffb61a8079/gcl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
309,
562,
12,
19485,
13,
422,
404,
30,
11288,
1435,
327,
374,
31,
225,
468,
1788,
326,
6402,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
33,
7036,
4672,
309,
5261,
353,
599,
30,
5261,
273,
2589,
18,
19485,
225,
309,
562,
12,
19485,
13,
422,
404,
30,
11288,
1435,
327,
374,
31,
225,
468,
1788,
326,
6402,
... |
def restore(self, filename, type='none'): | def restore(self, filename, rtype='none'): | def restore(self, filename, type='none'): """ Restore cross-document information for labeled nodes | 9742d77ae09004cddec8231c03d4d463fe249d92 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/9742d77ae09004cddec8231c03d4d463fe249d92/Context.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5217,
12,
2890,
16,
1544,
16,
9328,
2218,
6102,
11,
4672,
3536,
11197,
6828,
17,
5457,
1779,
364,
23585,
2199,
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,
5217,
12,
2890,
16,
1544,
16,
9328,
2218,
6102,
11,
4672,
3536,
11197,
6828,
17,
5457,
1779,
364,
23585,
2199,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
addr = raw_malloc(16) | addr = llmemory.raw_malloc(16) | def f(value): addr = raw_malloc(16) addr.signed[0] = value res = addr.signed[0] raw_free(addr) return res | 401345f9cba6aa1ad4cb9dd888b1649b3cd0501a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/401345f9cba6aa1ad4cb9dd888b1649b3cd0501a/test_lladdresses.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
1132,
4672,
3091,
273,
6579,
7858,
18,
1899,
67,
81,
9853,
12,
2313,
13,
3091,
18,
5679,
63,
20,
65,
273,
460,
400,
273,
3091,
18,
5679,
63,
20,
65,
1831,
67,
9156,
12,
47... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
284,
12,
1132,
4672,
3091,
273,
6579,
7858,
18,
1899,
67,
81,
9853,
12,
2313,
13,
3091,
18,
5679,
63,
20,
65,
273,
460,
400,
273,
3091,
18,
5679,
63,
20,
65,
1831,
67,
9156,
12,
47... |
-1) | -1) | def set_rate(self, rate): if self.rate == rate: return self.rate = rate position = self.playbin.query_position(gst.FORMAT_TIME, None)[0] if rate >= 0: self.playbin.seek(rate, gst.FORMAT_TIME, gst.SEEK_FLAG_FLUSH | gst.SEEK_FLAG_KEY_UNIT, gst.SEEK_TYPE_SET, position + (rate * gst.SECOND), gst.SEEK_TYPE_SET, -1) else: se... | 408cbef61fa2e462355ba48311f7bbb6475c06f6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12354/408cbef61fa2e462355ba48311f7bbb6475c06f6/gstreamerrenderer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
5141,
12,
2890,
16,
4993,
4672,
309,
365,
18,
5141,
422,
4993,
30,
327,
365,
18,
5141,
273,
4993,
1754,
273,
365,
18,
1601,
4757,
18,
2271,
67,
3276,
12,
75,
334,
18,
7254,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5141,
12,
2890,
16,
4993,
4672,
309,
365,
18,
5141,
422,
4993,
30,
327,
365,
18,
5141,
273,
4993,
1754,
273,
365,
18,
1601,
4757,
18,
2271,
67,
3276,
12,
75,
334,
18,
7254,
... |
except NameError: | except (NameError, ValueError): | def initThreads(): global theScheduler, thread, schedule import thread # Sibling Imports import main # there may already be a registered scheduler, so we need to get # rid of it. try: main.removeDelayed(theScheduler) except NameError: pass theScheduler = ThreadedScheduler() schedule = theScheduler.addTask main.addDe... | d8307b36fa338ee5169704161d84f92ac19ea6be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/d8307b36fa338ee5169704161d84f92ac19ea6be/task.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
13233,
13332,
2552,
326,
11870,
16,
2650,
16,
4788,
1930,
2650,
225,
468,
4321,
2456,
2221,
4363,
1930,
2774,
225,
468,
1915,
2026,
1818,
506,
279,
4104,
8129,
16,
1427,
732,
1608,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
13233,
13332,
2552,
326,
11870,
16,
2650,
16,
4788,
1930,
2650,
225,
468,
4321,
2456,
2221,
4363,
1930,
2774,
225,
468,
1915,
2026,
1818,
506,
279,
4104,
8129,
16,
1427,
732,
1608,
... |
if not dep in self.queues["add"]: | if not dep in queue: | def _req_pac_check(to_check, flag): to_do = [] | fb043dc1229bc5467516bc193644c0d02ad942fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/fb043dc1229bc5467516bc193644c0d02ad942fd/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3658,
67,
84,
1077,
67,
1893,
12,
869,
67,
1893,
16,
2982,
4672,
358,
67,
2896,
273,
5378,
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,
389,
3658,
67,
84,
1077,
67,
1893,
12,
869,
67,
1893,
16,
2982,
4672,
358,
67,
2896,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.old_info = [] | self.old_info = "" | def check(self): """ See if a file was modified or created. """ try: self.info = [] self.file_info = [] self.old_info = [] self.read_cache_file() try: info = tuple(os.stat(self.file)) #mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime = info except OSError: self.actually_changed = True self.file_info.append(_(... | fb92f409b0c872063ed616383fd8d43202dac8c7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10818/fb92f409b0c872063ed616383fd8d43202dac8c7/watch_system_file.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
2164,
309,
279,
585,
1703,
4358,
578,
2522,
18,
3536,
775,
30,
365,
18,
1376,
273,
5378,
365,
18,
768,
67,
1376,
273,
5378,
365,
18,
1673,
67,
1376,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
12,
2890,
4672,
3536,
2164,
309,
279,
585,
1703,
4358,
578,
2522,
18,
3536,
775,
30,
365,
18,
1376,
273,
5378,
365,
18,
768,
67,
1376,
273,
5378,
365,
18,
1673,
67,
1376,
273,
1... |
desired_login = allusers.users[ uid ]['login'] | desired_login = allusers[uid]['login'] | def check_posix_ugid_and_perms(onpath, uid = -1, gid = -1, perms = -1, batch = False, auto_answer = None, allgroups = None, allusers = None): """Check if some path has some desired perms, repair if told to do so.""" if onpath in ("", None): raise exceptions.BadArgumentError("The path you want to check perms on must no... | 09be11c609797e29cd65819ebd1b1b664074d86b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/09be11c609797e29cd65819ebd1b1b664074d86b/fsapi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
24463,
67,
637,
350,
67,
464,
67,
15969,
12,
265,
803,
16,
4555,
273,
300,
21,
16,
11399,
273,
300,
21,
16,
13793,
273,
300,
21,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
24463,
67,
637,
350,
67,
464,
67,
15969,
12,
265,
803,
16,
4555,
273,
300,
21,
16,
11399,
273,
300,
21,
16,
13793,
273,
300,
21,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
... |
for name, vals in funcdict.items(): | for name, uf in funcdict.items(): | def make_ufuncs(funcdict): code3list = [] for name, vals in funcdict.items(): mlist = [] mlist.append(\ | 912beccc011bf60d61b61fa24021f6235dba0225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/912beccc011bf60d61b61fa24021f6235dba0225/generate_umath.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
89,
17728,
12,
644,
1576,
4672,
981,
23,
1098,
273,
5378,
364,
508,
16,
582,
74,
316,
1326,
1576,
18,
3319,
13332,
312,
1098,
273,
5378,
312,
1098,
18,
6923,
4713,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
89,
17728,
12,
644,
1576,
4672,
981,
23,
1098,
273,
5378,
364,
508,
16,
582,
74,
316,
1326,
1576,
18,
3319,
13332,
312,
1098,
273,
5378,
312,
1098,
18,
6923,
4713,
2,
-100,
... |
c.execute("CREATE TABLE %s (%s)" % (planner_table,properties)) | c.execute("CREATE TABLE IF NOT EXISTS %s (%s)" % (planner_table,properties)) | def read_benchmark_log(dbname, filenames): """Parse benchmark log files and store the parsed data in a sqlite3 database.""" conn = sqlite3.connect(dbname) c = conn.cursor() c.execute('PRAGMA FOREIGN_KEYS = ON') c.execute("SELECT name FROM sqlite_master WHERE type='table'") table_names = [ str(t[0]) for t in c.fetchall... | f575fbed1570c5733cfd65620169cf54dd0560de /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7332/f575fbed1570c5733cfd65620169cf54dd0560de/benchmark_statistics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
70,
9737,
67,
1330,
12,
20979,
16,
9066,
4672,
3536,
3201,
14128,
613,
1390,
471,
1707,
326,
2707,
501,
316,
279,
16184,
23,
2063,
12123,
225,
1487,
273,
16184,
23,
18,
3612,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
70,
9737,
67,
1330,
12,
20979,
16,
9066,
4672,
3536,
3201,
14128,
613,
1390,
471,
1707,
326,
2707,
501,
316,
279,
16184,
23,
2063,
12123,
225,
1487,
273,
16184,
23,
18,
3612,
... |
primary_language_id = Column(String(50), ForeignKey('languages.id')) | primary_language_id = Column(Integer, ForeignKey('languages.id')) | def test_single_fksonsub(self): """test single inheritance with a foreign key-holding column on a subclass. | 2ab5b4f30c234e5301f827e335d57fa7e18896e8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/2ab5b4f30c234e5301f827e335d57fa7e18896e8/declarative.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7526,
67,
23120,
816,
1717,
12,
2890,
4672,
3536,
3813,
2202,
16334,
598,
279,
5523,
498,
17,
21056,
310,
1057,
603,
279,
10177,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
7526,
67,
23120,
816,
1717,
12,
2890,
4672,
3536,
3813,
2202,
16334,
598,
279,
5523,
498,
17,
21056,
310,
1057,
603,
279,
10177,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
def FindParent(self, mro, parent=None): | def ensureClassVisible(self, cls): item = self.class_to_item[cls] self.EnsureVisible(item) self.SelectItem(item) def findParent(self, mro, parent=None): | def FindParent(self, mro, parent=None): if parent is None: parent = self.GetRootItem() if len(mro)==0: return parent cls = mro.pop() if 'default_classprefs' not in dir(cls): # ignore intermediate subclasses that don't have any # default settings return self.FindParent(mro, parent) name = cls.__name__ item, cookie = sel... | e529bf7052e4d682be76cb28de0c6a80688a2b73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11522/e529bf7052e4d682be76cb28de0c6a80688a2b73/userparams.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
797,
6207,
12,
2890,
16,
2028,
4672,
761,
273,
365,
18,
1106,
67,
869,
67,
1726,
63,
6429,
65,
365,
18,
12512,
6207,
12,
1726,
13,
365,
18,
3391,
1180,
12,
1726,
13,
225,
1652,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
797,
6207,
12,
2890,
16,
2028,
4672,
761,
273,
365,
18,
1106,
67,
869,
67,
1726,
63,
6429,
65,
365,
18,
12512,
6207,
12,
1726,
13,
365,
18,
3391,
1180,
12,
1726,
13,
225,
1652,... |
this = apply(_quickfix.new_RoundLot, args) | this = _quickfix.new_RoundLot(*args) | def __init__(self, *args): this = apply(_quickfix.new_RoundLot, args) try: self.this.append(this) except: self.this = this | 7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
11066,
48,
352,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
11066,
48,
352,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
36... |
def plotMSFile(self, filename, outfile = None, format = None, size = (800, 200), starttime = False, endtime = False, dpi = 100, color = 'red', bgcolor = 'white', transparent = False, shadows = False, minmaxlist = False): | def plotMSFile(self, filename, outfile=None, format=None, size=(800, 200), starttime=False, endtime=False, dpi=100, color='red', bgcolor='white', transparent=False, shadows=False, minmaxlist=False): | def plotMSFile(self, filename, outfile = None, format = None, size = (800, 200), starttime = False, endtime = False, dpi = 100, color = 'red', bgcolor = 'white', transparent = False, shadows = False, minmaxlist = False): """ Creates a graph of any given Mini-SEED file. It either saves the image directly to the file sys... | da81b4ce7064a28a168b56663efe435b307a52d4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/da81b4ce7064a28a168b56663efe435b307a52d4/libmseed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
3537,
812,
12,
2890,
16,
1544,
16,
8756,
33,
7036,
16,
740,
33,
7036,
16,
963,
28657,
17374,
16,
4044,
3631,
23437,
33,
8381,
16,
31361,
33,
8381,
16,
16361,
33,
6625,
16,
2036,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3537,
812,
12,
2890,
16,
1544,
16,
8756,
33,
7036,
16,
740,
33,
7036,
16,
963,
28657,
17374,
16,
4044,
3631,
23437,
33,
8381,
16,
31361,
33,
8381,
16,
16361,
33,
6625,
16,
2036,
... |
for i in range(hlr_utils.get_length(left,right)): | for i in range(hlr_utils.get_length(left, right)): | def energy_transfer(left,right,**kwargs): """ This function takes a tuple and a SOM, a tuple and a SO or two tuples and calculates the energy transfer in units of THz. The SOM principle axis must be in units of meV. The SO and tuples are assumed to be in units of meV. Parameters: ---------- -> left is a SOM, SO or tup... | 6616e35e539c4c6226057c57a0d82efcc16edee3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/6616e35e539c4c6226057c57a0d82efcc16edee3/hlr_energy_transfer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12929,
67,
13866,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
3193,
471,
279,
348,
1872,
16,
279,
3193,
471,
279,
7460,
578,
2795,
10384,
471,
17264,
326,
12929,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12929,
67,
13866,
12,
4482,
16,
4083,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
3193,
471,
279,
348,
1872,
16,
279,
3193,
471,
279,
7460,
578,
2795,
10384,
471,
17264,
326,
12929,... |
or (mark in self.TONE_MARK_PREFER[toneMarkType] \ and self.TONE_MARK_PREFER[toneMarkType][mark] == tone): | or (mark in self.getOption('preferTone') \ and self.getOption('preferTone')[mark] == tone): | def getToneForToneMark(self, toneMark): # overwrite parent method to deal with variable tone count if not hasattr(self, '_toneMarkLookup'): toneMarkType = self.getOption('toneMarkType') # create lookup dict self._toneMarkLookup = {} for tone in self.TONE_MARK_MAPPING[toneMarkType]: mark = self.TONE_MARK_MAPPING[toneMar... | 3393604da067ca36b1da468c96a925bae792aff6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11128/3393604da067ca36b1da468c96a925bae792aff6/operator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3181,
476,
1290,
56,
476,
3882,
12,
2890,
16,
30600,
3882,
4672,
468,
6156,
982,
707,
358,
10490,
598,
2190,
30600,
1056,
309,
486,
3859,
12,
2890,
16,
2070,
88,
476,
3882,
6609,
11,
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,
3181,
476,
1290,
56,
476,
3882,
12,
2890,
16,
30600,
3882,
4672,
468,
6156,
982,
707,
358,
10490,
598,
2190,
30600,
1056,
309,
486,
3859,
12,
2890,
16,
2070,
88,
476,
3882,
6609,
11,
4... |
if value : self.WordUnderline = True return self def SetExpansion( self, value ) : | if value: self.WordUnderline = True return self def SetExpansion(self, value): | def SetWordUnderline( self, value ) : self.WordUnderline = False if value : self.WordUnderline = True return self | 13865299ef9bc077be9a5eaa4326b7a30307d828 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3330/13865299ef9bc077be9a5eaa4326b7a30307d828/PropertySets.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
3944,
14655,
1369,
12,
365,
16,
460,
262,
294,
365,
18,
3944,
14655,
1369,
273,
1083,
309,
460,
294,
365,
18,
3944,
14655,
1369,
273,
1053,
327,
365,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
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,
1000,
3944,
14655,
1369,
12,
365,
16,
460,
262,
294,
365,
18,
3944,
14655,
1369,
273,
1083,
309,
460,
294,
365,
18,
3944,
14655,
1369,
273,
1053,
327,
365,
2,
-100,
-100,
-100,
-100,
-... |
print "got path to node" | def pathToNode(self, node): path = [node] next = self.predecessors[repr(node)] | bfb9de4fcf1a57a89f60298f41ded554fee9567c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/bfb9de4fcf1a57a89f60298f41ded554fee9567c/Algorithms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12221,
907,
12,
2890,
16,
756,
4672,
589,
273,
306,
2159,
65,
1024,
273,
365,
18,
1484,
14258,
1383,
63,
12715,
12,
2159,
25887,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12221,
907,
12,
2890,
16,
756,
4672,
589,
273,
306,
2159,
65,
1024,
273,
365,
18,
1484,
14258,
1383,
63,
12715,
12,
2159,
25887,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
sys.path.insert(0, bestMatch.pathname) _selected = bestMatch def checkInstalled(versions): """ Check if there is a version of wxPython installed that matches one of the versions given. Returns True if so, False if not. This can be used to determine if calling `select` will succeed or not. :param version: Same as... | if options.version: set_default(options.version) | def ensureMinimal(minVersion): """ Checks to see if the default version of wxPython is greater-than or equal to `minVersion`. If not then it will try to find an installed version that is >= minVersion. If none are available then a message is displayed that will inform the user and will offer to open their web browser... | d27da8a5c14b0d12b001e49aceb463cfeaf4acc6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9957/d27da8a5c14b0d12b001e49aceb463cfeaf4acc6/wxpy-config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
2930,
2840,
12,
1154,
1444,
4672,
3536,
13074,
358,
2621,
309,
326,
805,
1177,
434,
7075,
15774,
353,
6802,
17,
23483,
578,
3959,
358,
1375,
1154,
1444,
8338,
225,
971,
486,
1508,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3387,
2930,
2840,
12,
1154,
1444,
4672,
3536,
13074,
358,
2621,
309,
326,
805,
1177,
434,
7075,
15774,
353,
6802,
17,
23483,
578,
3959,
358,
1375,
1154,
1444,
8338,
225,
971,
486,
1508,
... |
delta = float(xmax-xmin) / plot_points | delta = float(xmax-xmin) / float(plot_points-1) | def generate_plot_points(f, xrange, plot_points=5, adaptive_tolerance=0.01, adaptive_recursion=5, randomize = True): r""" Calculate plot points for a function f in the interval xrange. The adaptive refinement algorithm for plotting a function f. See the docstring for plot for a description of the algorithm. INPUT: - ... | 6ee09620a1c4006adbbc2bd5fab45654116ded1e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/6ee09620a1c4006adbbc2bd5fab45654116ded1e/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
67,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
467... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4032,
67,
4139,
12,
74,
16,
12314,
16,
3207,
67,
4139,
33,
25,
16,
5855,
688,
67,
25456,
33,
20,
18,
1611,
16,
5855,
688,
67,
31347,
33,
25,
16,
2744,
554,
273,
1053,
467... |
obj = self.conn.execute('INSERT INTO books(title, uri, series_index) VALUES (?, ?, ?)', (mi.title, None, series_index)) | aus = mi.author_sort if mi.author_sort else ', '.join(mi.authors) obj = self.conn.execute('INSERT INTO books(title, uri, series_index, author_sort) VALUES (?, ?, ?, ?)', (mi.title, None, series_index, aus)) | def import_book(self, mi, formats): series_index = 1 if mi.series_index is None else mi.series_index obj = self.conn.execute('INSERT INTO books(title, uri, series_index) VALUES (?, ?, ?)', (mi.title, None, series_index)) id = obj.lastrowid self.conn.commit() self.set_metadata(id, mi) for path in formats: ext = os.path.... | 9a29e08d4b10fc6a125850ef809709b7ea27dfc7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/9a29e08d4b10fc6a125850ef809709b7ea27dfc7/database.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3618,
12,
2890,
16,
12837,
16,
6449,
4672,
4166,
67,
1615,
273,
404,
309,
12837,
18,
10222,
67,
1615,
353,
599,
469,
12837,
18,
10222,
67,
1615,
279,
407,
273,
12837,
18,
416... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3618,
12,
2890,
16,
12837,
16,
6449,
4672,
4166,
67,
1615,
273,
404,
309,
12837,
18,
10222,
67,
1615,
353,
599,
469,
12837,
18,
10222,
67,
1615,
279,
407,
273,
12837,
18,
416... |
if var_doc.value.descr in (None, UNKNOWN): | if (var_doc.value not in (None, UNKNOWN) and var_doc.value.descr in (None, UNKNOWN)): | def _inherit_info(self, var_doc): """ Inherit.. - descr - summary - metadata?? - param descrs & types? """ #print 'INHERIT', `var_doc`, '<=', `var_doc.overrides` if var_doc.descr in (None, UNKNOWN): var_doc.descr = var_doc.overrides.descr if var_doc.value.descr in (None, UNKNOWN): #print 'HERE', var_doc.overrides.valu... | 97a66e865010c502d594b573b04c1fdc6e4e952e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/97a66e865010c502d594b573b04c1fdc6e4e952e/docinheriter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6018,
67,
1376,
12,
2890,
16,
569,
67,
2434,
4672,
3536,
25953,
838,
300,
18426,
300,
4916,
300,
1982,
14646,
300,
579,
3044,
5453,
473,
1953,
35,
225,
3536,
468,
1188,
296,
706,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6018,
67,
1376,
12,
2890,
16,
569,
67,
2434,
4672,
3536,
25953,
838,
300,
18426,
300,
4916,
300,
1982,
14646,
300,
579,
3044,
5453,
473,
1953,
35,
225,
3536,
468,
1188,
296,
706,
... |
gobject.threads_init() | def __init__(self, work_callback=None, loop_callback=None, daemon=True): self.counter = 0 gobject.threads_init() #the glib mainloop doesn't love us else self.daemon = daemon | e2a97b83c3fbd53fdebf67d1c001a7055878a97e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/e2a97b83c3fbd53fdebf67d1c001a7055878a97e/gthreads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1440,
67,
3394,
33,
7036,
16,
2798,
67,
3394,
33,
7036,
16,
8131,
33,
5510,
4672,
365,
18,
7476,
273,
374,
468,
5787,
314,
2941,
2774,
6498,
3302,
1404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1440,
67,
3394,
33,
7036,
16,
2798,
67,
3394,
33,
7036,
16,
8131,
33,
5510,
4672,
365,
18,
7476,
273,
374,
468,
5787,
314,
2941,
2774,
6498,
3302,
1404,
... | |
raise RevlogError(_('incompatible revision flag %x') % q) | raise RevlogError(_('incompatible revision flag %x') % (self.index[rev][0] & 0xFFFF)) | def revision(self, node): """return an uncompressed revision of a given""" if node == nullid: return "" if self._cache and self._cache[0] == node: return self._cache[2] | c2eed022559ad58fb1d54249976a9904b9660fbf /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/c2eed022559ad58fb1d54249976a9904b9660fbf/revlog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6350,
12,
2890,
16,
756,
4672,
3536,
2463,
392,
20560,
6350,
434,
279,
864,
8395,
309,
756,
422,
446,
350,
30,
327,
1408,
309,
365,
6315,
2493,
471,
365,
6315,
2493,
63,
20,
65,
422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6350,
12,
2890,
16,
756,
4672,
3536,
2463,
392,
20560,
6350,
434,
279,
864,
8395,
309,
756,
422,
446,
350,
30,
327,
1408,
309,
365,
6315,
2493,
471,
365,
6315,
2493,
63,
20,
65,
422,
... |
NetTool.right_button(self, event, position) | NetTool.right_button_down(self, event, position) | def right_button(self, event, position): self.from_item = None self.action = None NetTool.right_button(self, event, position) self.netview.redraw() | eadc227c0eeef876c4908ab1ecd2d8a77615b4c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6050/eadc227c0eeef876c4908ab1ecd2d8a77615b4c1/nettools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2145,
67,
5391,
12,
2890,
16,
871,
16,
1754,
4672,
365,
18,
2080,
67,
1726,
273,
599,
365,
18,
1128,
273,
599,
8503,
6364,
18,
4083,
67,
5391,
67,
2378,
12,
2890,
16,
871,
16,
1754,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2145,
67,
5391,
12,
2890,
16,
871,
16,
1754,
4672,
365,
18,
2080,
67,
1726,
273,
599,
365,
18,
1128,
273,
599,
8503,
6364,
18,
4083,
67,
5391,
67,
2378,
12,
2890,
16,
871,
16,
1754,
... |
DIRAC.exit(2) | DIRAC.exit( 2 ) | def usage(): print 'Usage: %s [<options>] <Directory>' % (Script.scriptName) print ' Get a summary of the storage usage <for an optionally supplied directory>.' print ' The usage can be given in any of the following units: (MB,GB,TB,PB)' print ' The sites options should be a space or comma separated list e.g. --Sites="... | d2db378c63ced0c70abdfd0e1e47c60e42f24767 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d2db378c63ced0c70abdfd0e1e47c60e42f24767/dirac-dms-storage-usage-summary.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
306,
32,
2116,
34,
65,
411,
2853,
1870,
738,
261,
3651,
18,
4263,
461,
13,
1172,
296,
968,
279,
4916,
434,
326,
2502,
4084,
411,
1884,
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,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
306,
32,
2116,
34,
65,
411,
2853,
1870,
738,
261,
3651,
18,
4263,
461,
13,
1172,
296,
968,
279,
4916,
434,
326,
2502,
4084,
411,
1884,
392,
... |
def setJobCommand(self,jobID,command,arguments=None): | def setJobCommand( self, jobID, command, arguments = None ): | def setJobCommand(self,jobID,command,arguments=None): """ Store a command to be passed to the job together with the next heart beat """ ret = self._escapeString(jobID) if not ret['OK']: return ret jobID = ret['Value'] | 99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
2278,
2189,
12,
365,
16,
28913,
16,
1296,
16,
1775,
273,
599,
262,
30,
3536,
4994,
279,
1296,
358,
506,
2275,
358,
326,
1719,
9475,
598,
326,
1024,
3904,
485,
23795,
3536,
325,
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,
444,
2278,
2189,
12,
365,
16,
28913,
16,
1296,
16,
1775,
273,
599,
262,
30,
3536,
4994,
279,
1296,
358,
506,
2275,
358,
326,
1719,
9475,
598,
326,
1024,
3904,
485,
23795,
3536,
325,
27... |
if group['name'] in self.owner_membershipss]: | if group['name'] in self.owner_memberships]: | def _acl_can_be_held_by_user(self, acl, user=None): '''Return true if the user is allowed to hold the specified acl. | d7693087bf7bae448e7497df397028a5679aa57a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/d7693087bf7bae448e7497df397028a5679aa57a/dispatcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10150,
67,
4169,
67,
2196,
67,
76,
488,
67,
1637,
67,
1355,
12,
2890,
16,
7895,
16,
729,
33,
7036,
4672,
9163,
990,
638,
309,
326,
729,
353,
2935,
358,
6887,
326,
1269,
7895,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
10150,
67,
4169,
67,
2196,
67,
76,
488,
67,
1637,
67,
1355,
12,
2890,
16,
7895,
16,
729,
33,
7036,
4672,
9163,
990,
638,
309,
326,
729,
353,
2935,
358,
6887,
326,
1269,
7895,
18... |
if ('SUBMIT' in request) and not unauthenticated: | if (not unauthenticated) and ('SUBMIT' in request): | def __call__(self): request = self.request principal = request.principal | 91aced67cec671227193b1bdc3bb759916a1e612 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9655/91aced67cec671227193b1bdc3bb759916a1e612/loginform.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
590,
273,
365,
18,
2293,
8897,
273,
590,
18,
26138,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
4672,
590,
273,
365,
18,
2293,
8897,
273,
590,
18,
26138,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
rva = [1.03221168e+02 +0.j, | rva = array([1.03221168e+02 +0.j, | def test_eig_build(self, level = rlevel): """Ticket #652""" rva = [1.03221168e+02 +0.j, -1.91843603e+01 +0.j, -6.04004526e-01+15.84422474j, -6.04004526e-01-15.84422474j, -1.13692929e+01 +0.j, -6.57612485e-01+10.41755503j, -6.57612485e-01-10.41755503j, 1.82126812e+01 +0.j, 1.06011014e+01 +0.j , 7.80732773e+00 +0.j , -7.... | 43cfd258ebff5f4ad5f9a8ebff86e24cd0f96900 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/43cfd258ebff5f4ad5f9a8ebff86e24cd0f96900/test_regression.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22663,
67,
3510,
12,
2890,
16,
1801,
273,
436,
2815,
4672,
3536,
13614,
468,
9222,
22,
8395,
5633,
69,
273,
526,
3816,
21,
18,
20,
1578,
5340,
23329,
73,
15,
3103,
397,
20,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
22663,
67,
3510,
12,
2890,
16,
1801,
273,
436,
2815,
4672,
3536,
13614,
468,
9222,
22,
8395,
5633,
69,
273,
526,
3816,
21,
18,
20,
1578,
5340,
23329,
73,
15,
3103,
397,
20,
... |
ds = self.create_dataset(None, data=obj) | ds = self.create_dataset(None, data=obj, dtype=_guess_dtype(obj)) | def _set18(self, name, obj): """ HDF5 1.8 __setitem__. PHIL should already be held. | 7eaf52681b2b0d95615262bc05fc577f2b47fd97 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10380/7eaf52681b2b0d95615262bc05fc577f2b47fd97/highlevel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
2643,
12,
2890,
16,
508,
16,
1081,
4672,
3536,
21673,
25,
404,
18,
28,
1001,
542,
1726,
25648,
225,
15490,
2627,
1410,
1818,
506,
15770,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
2643,
12,
2890,
16,
508,
16,
1081,
4672,
3536,
21673,
25,
404,
18,
28,
1001,
542,
1726,
25648,
225,
15490,
2627,
1410,
1818,
506,
15770,
18,
2,
-100,
-100,
-100,
-100,
-100,
... |
while 1: | depth = 0 while depth < 10: depth = depth + 1 | def get(self, section, option, raw=0, vars=None): """Get an option value for a given section. | 11fa227eaadc305b69660f9ce526cd92547141c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/11fa227eaadc305b69660f9ce526cd92547141c5/ConfigParser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2442,
16,
1456,
16,
1831,
33,
20,
16,
4153,
33,
7036,
4672,
3536,
967,
392,
1456,
460,
364,
279,
864,
2442,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
2442,
16,
1456,
16,
1831,
33,
20,
16,
4153,
33,
7036,
4672,
3536,
967,
392,
1456,
460,
364,
279,
864,
2442,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return re.compile(r' | return re.compile(r' | def redirectRegex(self): """ Regular expression recognizing redirect pages """ try: redirKeywords = [u'redirect'] + self.family.redirect[self.lang] redirKeywordsR = r'(?:' + '|'.join(redirKeywords) + ')' except KeyError: # no localized keyword for redirects redirKeywordsR = r'redirect' # A redirect starts with hash (#)... | 0da7078f982ebf96210aad95184a1cf07a6d33db /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/0da7078f982ebf96210aad95184a1cf07a6d33db/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
6628,
12,
2890,
4672,
3536,
24544,
2652,
14603,
6894,
3136,
4689,
3536,
775,
30,
283,
1214,
14149,
273,
306,
89,
4565,
7205,
3546,
397,
365,
18,
9309,
18,
7590,
63,
2890,
18,
4936,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3136,
6628,
12,
2890,
4672,
3536,
24544,
2652,
14603,
6894,
3136,
4689,
3536,
775,
30,
283,
1214,
14149,
273,
306,
89,
4565,
7205,
3546,
397,
365,
18,
9309,
18,
7590,
63,
2890,
18,
4936,... |
@memoize('cached_organic_links', time = organic_lifetime) | @memoize('cached_organic_links_user', time = organic_lifetime) | def my_keepfn(l): if l.promoted_subscribersonly and l.sr_id not in subscribed_reddits: return False else: return keep_link(l) | 163c962702762f35e2d14a590c40317b363cdd6e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6723/163c962702762f35e2d14a590c40317b363cdd6e/organic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
10102,
4293,
12,
80,
4672,
309,
328,
18,
17401,
16474,
67,
1717,
4091,
3565,
715,
471,
328,
18,
11254,
67,
350,
486,
316,
16445,
67,
266,
449,
1282,
30,
327,
1083,
469,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3399,
67,
10102,
4293,
12,
80,
4672,
309,
328,
18,
17401,
16474,
67,
1717,
4091,
3565,
715,
471,
328,
18,
11254,
67,
350,
486,
316,
16445,
67,
266,
449,
1282,
30,
327,
1083,
469,
30,
... |
command,line = line[0],line[1:] | command, line = line[0], line[1:] | def htmlify(match): div, mod = divmod(len(match.group(0)), 2) return div * ' ' + mod * ' ' | 95d9300056188a43402457eb71705d22287e67df /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/95d9300056188a43402457eb71705d22287e67df/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
1164,
12,
1916,
4672,
3739,
16,
681,
273,
26105,
12,
1897,
12,
1916,
18,
1655,
12,
20,
13,
3631,
576,
13,
327,
3739,
380,
5183,
10600,
31,
296,
397,
681,
380,
5183,
10600,
4359,
... |
if self.auto_mode: attr = self.curses.color_pair(2) + self.curses.A_STANDOUT + self.curses.A_BOLD else: attr = self.curses.color_pair(8) + self.curses.A_STANDOUT + self.curses.A_BOLD | def put_line(self, row, header=False): col_w = [7 , 15, 10, 21, 7, 11, 25] maxx = self.width if self.y == self.selected_line - self.first_visible_line and self.y > 1: if self.auto_mode: attr = self.curses.color_pair(2) + self.curses.A_STANDOUT + self.curses.A_BOLD #elif self.move_mode: #attr = self.curses.color_pair(7)... | eb271d5bad3c2cb4075e4b8b7a46b93b6a1dc328 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/eb271d5bad3c2cb4075e4b8b7a46b93b6a1dc328/bibsched.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
1369,
12,
2890,
16,
1027,
16,
1446,
33,
8381,
4672,
645,
67,
91,
273,
306,
27,
269,
4711,
16,
1728,
16,
9035,
16,
2371,
16,
4648,
16,
6969,
65,
943,
92,
273,
365,
18,
281... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
1369,
12,
2890,
16,
1027,
16,
1446,
33,
8381,
4672,
645,
67,
91,
273,
306,
27,
269,
4711,
16,
1728,
16,
9035,
16,
2371,
16,
4648,
16,
6969,
65,
943,
92,
273,
365,
18,
281... | |
def getResponse(self): """ Returns the L{Response} object which handles all output related functionality for this PyBlosxom instance. @see: L{Response} @returns: the reponse object @rtype: L{Response} """ | getRequest = get_request def get_response(self): | def getRequest(self): """ Returns the L{Request} object for this PyBlosxom instance. | 2d889182f07a1e20247eba2168cf4d18f81fcdab /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11836/2d889182f07a1e20247eba2168cf4d18f81fcdab/pyblosxom.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4328,
12,
2890,
4672,
3536,
2860,
326,
511,
95,
691,
97,
733,
364,
333,
4707,
38,
383,
30319,
362,
791,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4328,
12,
2890,
4672,
3536,
2860,
326,
511,
95,
691,
97,
733,
364,
333,
4707,
38,
383,
30319,
362,
791,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if len(datalist) == 1: per = 100 else: per = 75 | if len(datalist) == 1: per = '100' else: per = '75' | def addadminbox(header='', datalist=[], cls="admin_wvar"): """used to create table around main data on a page, row based. header - header on top of the table datalist - list of the data to be added row by row cls - possible to select wich css-class to format the look of the table.""" if len(datalist) == 1: per = 10... | 911068548336831a628cc7a6d8a3e449446b6170 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1931/911068548336831a628cc7a6d8a3e449446b6170/webaccessadmin_lib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
3666,
2147,
12,
3374,
2218,
2187,
18462,
376,
22850,
6487,
2028,
1546,
3666,
67,
91,
1401,
6,
4672,
3536,
3668,
358,
752,
1014,
6740,
2774,
501,
603,
279,
1363,
16,
1027,
2511,
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,
527,
3666,
2147,
12,
3374,
2218,
2187,
18462,
376,
22850,
6487,
2028,
1546,
3666,
67,
91,
1401,
6,
4672,
3536,
3668,
358,
752,
1014,
6740,
2774,
501,
603,
279,
1363,
16,
1027,
2511,
18,
... |
self._set_wireframe_state(item) | self._set_wireframe_state(ax, item) | def _set_common_3D_properties(self, ax, item): #self._set_viewpoint(ax) self._set_hidden_state(ax) self._set_colorbar_state(ax) self._set_colormap(ax) self._set_wireframe_state(item) self._set_contour_state(item) self._set_grid_state(ax) self._set_box_state(ax) | 24d9bac443cdfa4eeb7c7b6a2849c01a05165a2e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4727/24d9bac443cdfa4eeb7c7b6a2849c01a05165a2e/gnuplot_.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
6054,
67,
23,
40,
67,
4738,
12,
2890,
16,
1740,
16,
761,
4672,
468,
2890,
6315,
542,
67,
1945,
1153,
12,
651,
13,
365,
6315,
542,
67,
6345,
67,
2019,
12,
651,
13,
365... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
542,
67,
6054,
67,
23,
40,
67,
4738,
12,
2890,
16,
1740,
16,
761,
4672,
468,
2890,
6315,
542,
67,
1945,
1153,
12,
651,
13,
365,
6315,
542,
67,
6345,
67,
2019,
12,
651,
13,
365... |
response.headers['Content-Type'] = status['content_type'] | response.headers['Content-Type'] = status['content_type'].encode('utf-8', 'ignore') | def do_download(self, post_data): collection_id = self.get_collection(post_data) filename = self.get_path(collection_id, self.output_filename) content = open(filename, 'rb').read() status = self.read_status_file(collection_id) response = wsgi.Response(content=content) if 'content_type' in status: response.headers['Cont... | d0d40b8f65469a7ef19c4fd94f04b04a2b2d2417 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12391/d0d40b8f65469a7ef19c4fd94f04b04a2b2d2417/serve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7813,
12,
2890,
16,
1603,
67,
892,
4672,
1849,
67,
350,
273,
365,
18,
588,
67,
5548,
12,
2767,
67,
892,
13,
1544,
273,
365,
18,
588,
67,
803,
12,
5548,
67,
350,
16,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
7813,
12,
2890,
16,
1603,
67,
892,
4672,
1849,
67,
350,
273,
365,
18,
588,
67,
5548,
12,
2767,
67,
892,
13,
1544,
273,
365,
18,
588,
67,
803,
12,
5548,
67,
350,
16,
365,
... |
- 'system users': show only «system» users (root, bin, daemon, apache...), not normal user account. - 'normal users': keep only «normal» users, which includes Licorn administrators | - 'system users': show only «system» users (root, bin, daemon, apache...), not normal user account. - 'normal users': keep only «normal» users, which includes Licorn administrators | def Select( self, filter_string ): """ Filter user accounts on different criteria. Criteria are: - 'system users': show only «system» users (root, bin, daemon, apache...), not normal user account. - 'normal users': keep only «normal» users, which includes Licorn administrators - more to come... """ | 2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
12,
365,
16,
1034,
67,
1080,
262,
30,
3536,
4008,
729,
9484,
603,
3775,
3582,
18,
8356,
854,
30,
300,
296,
4299,
3677,
4278,
2405,
1338,
225,
131,
109,
4299,
131,
124,
3677,
261,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6766,
12,
365,
16,
1034,
67,
1080,
262,
30,
3536,
4008,
729,
9484,
603,
3775,
3582,
18,
8356,
854,
30,
300,
296,
4299,
3677,
4278,
2405,
1338,
225,
131,
109,
4299,
131,
124,
3677,
261,... |
if not next_word.startswith(starts_with): | if next_word and not next_word.startswith(starts_with): | def get_word_list(self, start_word, n): search_pos, starts_with = self.get_search_pos_for(start_word) word_list = [] if search_pos > -1: next_word = None next_ptr = search_pos current_pos = self.header.full_index_offset index_item = None while True: current_pos += next_ptr index_item = self.read_full_index_item(current... | f1e8b77781e42ed464cca102c7f27e2045fe1a73 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/14305/f1e8b77781e42ed464cca102c7f27e2045fe1a73/sdict.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1095,
67,
1098,
12,
2890,
16,
787,
67,
1095,
16,
290,
4672,
1623,
67,
917,
16,
2542,
67,
1918,
273,
365,
18,
588,
67,
3072,
67,
917,
67,
1884,
12,
1937,
67,
1095,
13,
2076... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1095,
67,
1098,
12,
2890,
16,
787,
67,
1095,
16,
290,
4672,
1623,
67,
917,
16,
2542,
67,
1918,
273,
365,
18,
588,
67,
3072,
67,
917,
67,
1884,
12,
1937,
67,
1095,
13,
2076... |
toplevel.unparent() | toplevel.get_parent().remove(toplevel) | def get_builder_toplevel(self, builder): """Get the toplevel widget from a gtk.Builder file. | 3232800e184f2396bf9a7f0cd51a8cdc5cc7580e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11322/3232800e184f2396bf9a7f0cd51a8cdc5cc7580e/delegates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9574,
67,
3669,
2815,
12,
2890,
16,
2089,
4672,
3536,
967,
326,
28999,
3604,
628,
279,
22718,
18,
1263,
585,
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,
336,
67,
9574,
67,
3669,
2815,
12,
2890,
16,
2089,
4672,
3536,
967,
326,
28999,
3604,
628,
279,
22718,
18,
1263,
585,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
print >> s, ' set %s="%s"' % (var_name, path) | print >> s, ' set %s=%s' % (var_name, path) | def write_setpaths_bat(self): setpaths_path = self.under_build("setpaths.bat") unsetpaths_path = self.under_build("unsetpaths.bat") s = open_info(setpaths_path) u = open_info(unsetpaths_path) update_path = windows_update_path(self, s, u) for f in s, u: print >> f, '@ECHO off' print >> f, 'if not exist "%s" goto fatal_e... | 64438d7883e0708b9643be0c227d60303fd6ed3b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/64438d7883e0708b9643be0c227d60303fd6ed3b/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
542,
4481,
67,
28260,
12,
2890,
4672,
444,
4481,
67,
803,
273,
365,
18,
9341,
67,
3510,
2932,
542,
4481,
18,
28260,
7923,
2646,
4481,
67,
803,
273,
365,
18,
9341,
67,
3510,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
542,
4481,
67,
28260,
12,
2890,
4672,
444,
4481,
67,
803,
273,
365,
18,
9341,
67,
3510,
2932,
542,
4481,
18,
28260,
7923,
2646,
4481,
67,
803,
273,
365,
18,
9341,
67,
3510,
... |
return obj_payment_order.set_done(cr, uid, context['active_id'], context) | obj_payment_order.set_done(cr, uid, context['active_id'], context) return {} | def launch_wizard(self, cr, uid, ids, context=None): """ Search for a wizard to launch according to the type. If type is manual. just confirm the order. """ obj_payment_order = self.pool.get('payment.order') | 0a2b5ca83438242580e1a83455ce54515782f334 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/0a2b5ca83438242580e1a83455ce54515782f334/account_payment_pay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
67,
31837,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
5167,
364,
279,
24204,
358,
8037,
4888,
358,
326,
618,
18,
971,
618,
353,
11297,
18,
2537,
6932,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8037,
67,
31837,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
3536,
5167,
364,
279,
24204,
358,
8037,
4888,
358,
326,
618,
18,
971,
618,
353,
11297,
18,
2537,
6932,... |
`pattern_type` defines how the given pattern is interpreted, as explained below. It is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. - If `pattern_type` contains either the string 'simple' or 'glob', the `pattern` is considered a simpl... | `pattern_type` defines how the given pattern is interpreted as explained below. `pattern_type` argument is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equal. 1) If `pattern_type` contains either the strings 'simple' or 'glob', the `pattern`... | def grep(self, text, pattern, pattern_type='literal string'): """Returns the text grepped using `pattern`. `pattern_type` defines how the given pattern is interpreted, as explained below. It is case-insensitive and may contain other text. For example, 'regexp', 'REGEXP' and 'Pattern is a regexp' are all considered equ... | d6b9d098d46c84ec4b6a294f7b21c8c5e908febe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/d6b9d098d46c84ec4b6a294f7b21c8c5e908febe/BuiltIn.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
2890,
16,
977,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
11,
4672,
3536,
1356,
326,
977,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23366,
12,
2890,
16,
977,
16,
1936,
16,
1936,
67,
723,
2218,
13107,
533,
11,
4672,
3536,
1356,
326,
977,
23366,
1845,
1450,
1375,
4951,
8338,
225,
1375,
4951,
67,
723,
68,
11164,
3661,
... |
logger.debug("Set theory: Packages in syncdb not in database") | def db_update(archname, reponame, pkgs, options): """ Parses a list and updates the Arch dev database accordingly. Arguments: pkgs -- A list of Pkg objects. """ logger.info('Updating Arch: %s' % archname) force = options.get('force', False) filesonly = options.get('filesonly', False) repository = Repo.objects.get(nam... | 863d7628175fdb30d29437e81fb3332354621a43 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11256/863d7628175fdb30d29437e81fb3332354621a43/reporead.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1319,
67,
2725,
12,
991,
529,
16,
283,
500,
339,
16,
16922,
16,
702,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
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,
1319,
67,
2725,
12,
991,
529,
16,
283,
500,
339,
16,
16922,
16,
702,
4672,
3536,
2280,
2420,
279,
666,
471,
4533,
326,
16959,
4461,
2063,
15905,
18,
225,
13599,
30,
16922,
1493,
432,
6... | |
s.tk.call( s.f.plf._w, CMD, 'plszax', digmax, digits ) | s.cmd( 'plszax', digmax, digits ) | def plszax( s, digmax, digits ): | 5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2933/5e1e7ef2c61ed08af7184e16b0bac6bebfbe213e/Plframe.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
24575,
651,
12,
272,
16,
3097,
1896,
16,
6815,
262,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
886,
24575,
651,
12,
272,
16,
3097,
1896,
16,
6815,
262,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
os.close(2) if os.dup(errin) <> 2: pass for i in range(3, MAXFD): try: os.close(i) except: pass try: os.execvp(cmd[0], cmd) finally: os._exit(1) os._exit(1) | os.dup2(errin, 2) self._run_child(cmd) | def __init__(self, cmd, capturestderr=0, bufsize=-1): """The parameter 'cmd' is the shell command to execute in a sub-process. The 'capturestderr' flag, if true, specifies that the object should capture standard error output of the child process. The default is false. If the 'bufsize' parameter is specified, it speci... | 153a739f731cf942200e8506e1610b6782ce3e60 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/153a739f731cf942200e8506e1610b6782ce3e60/popen2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1797,
16,
7477,
11241,
33,
20,
16,
1681,
1467,
29711,
21,
4672,
3536,
1986,
1569,
296,
4172,
11,
353,
326,
5972,
1296,
358,
1836,
316,
279,
720,
17,
2567... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1797,
16,
7477,
11241,
33,
20,
16,
1681,
1467,
29711,
21,
4672,
3536,
1986,
1569,
296,
4172,
11,
353,
326,
5972,
1296,
358,
1836,
316,
279,
720,
17,
2567... |
sage: F = GF(2^6,'a') sage: P2.<X,Y,Z> = ProjectiveSpace(F,2) sage: C = Curve(X^5+11*X*Y*Z^3 + X^2*Y^3 - 13*Y^2*Z^3) sage: len(C.rational_points()) 104 :: sage: R.<x,y,z> = GF(2)[] sage: f = x^3*y + y^3*z + x*z^3 sage: C = Curve(f); pts = C.rational_points() sage: pts [(0 : 0 : 1), (0 : 1 : 0), (1 : 0 : 0)] | sage: F = GF(3^2,'a') sage: P2.<X,Y,Z> = ProjectiveSpace(F,2) sage: C = Curve(X^3+5*Y^2*Z-33*X*Y*X) sage: b = C.rational_points_iterator() sage: b.next() (0 : 1 : 0) sage: b.next() (0 : 0 : 1) sage: b.next() (2*a + 2 : 2*a : 1) sage: b.next() (2 : a + 1 : 1) sage: b.next() (a + 1 : a + 2 : 1) sage: b.next() (1 : 2 : 1... | def rational_points(self, algorithm="enum", sort=True): r""" Return the rational points on this curve computed via enumeration. | 60fa2d7563b965c543d95334de8974fbe21499e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/60fa2d7563b965c543d95334de8974fbe21499e1/projective_curve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
436,
8371,
67,
4139,
12,
2890,
16,
4886,
1546,
7924,
3113,
1524,
33,
5510,
4672,
436,
8395,
2000,
326,
436,
8371,
3143,
603,
333,
8882,
8470,
3970,
16836,
18,
225,
2,
-100,
-100,
-100,
... |
self.singleSpecName, time.strftime('%Y%m%d_%H%M%S') ) | self.singleJobDir, time.strftime('%Y%m%d_%H%M%S') ) | def prepareResubmission(self, bossJob): """ __prepareResubmission__ | ff6a7293226c1c67657bcd81e072168fa6b68dbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8887/ff6a7293226c1c67657bcd81e072168fa6b68dbc/BossLiteBulkInterface.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
607,
373,
3951,
12,
2890,
16,
324,
8464,
2278,
4672,
3536,
1001,
9366,
607,
373,
3951,
972,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2911,
607,
373,
3951,
12,
2890,
16,
324,
8464,
2278,
4672,
3536,
1001,
9366,
607,
373,
3951,
972,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
if remaining <= 0: | if remaining < 0.0: | def get(self, block=True, timeout=None): """Remove and return an item from the queue. | 24b591c389afae6378d2e3e841011a539991a8c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/24b591c389afae6378d2e3e841011a539991a8c6/Queue.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
3536,
3288,
471,
327,
392,
761,
628,
326,
2389,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
1203,
33,
5510,
16,
2021,
33,
7036,
4672,
3536,
3288,
471,
327,
392,
761,
628,
326,
2389,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if not callback: callback = print_line | if not callable(callback): callback = print_line | def retrlines(self, cmd, callback = None): '''Retrieve data in line mode. The argument is a RETR or LIST command. The callback function (2nd argument) is called for each line, with trailing CRLF stripped. This creates a new port for you. print_line() is the default callback.''' if not callback: callback = print_line r... | 236d67ae8e96702f3b122e0396579458aa10e8bc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/236d67ae8e96702f3b122e0396579458aa10e8bc/ftplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
3548,
12,
2890,
16,
1797,
16,
1348,
273,
599,
4672,
9163,
5767,
501,
316,
980,
1965,
18,
1021,
1237,
353,
279,
10366,
54,
578,
15130,
1296,
18,
1021,
1348,
445,
261,
22,
4880,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17343,
3548,
12,
2890,
16,
1797,
16,
1348,
273,
599,
4672,
9163,
5767,
501,
316,
980,
1965,
18,
1021,
1237,
353,
279,
10366,
54,
578,
15130,
1296,
18,
1021,
1348,
445,
261,
22,
4880,
1... |
self._console.info("%s" % depId) if depId in self._classList: if dset != "loadtime": gr.add_edge(classId, depId) self._console.outdent() self._console.outdent() self._console.outdent() | yield (packageId, classId, depId, 'run') return def depsToDotFile(logConf, gr): | def usingDeps(logConf, dset): #if dset == "loadtime": # gr = grLoad # file = logConf.get('file', "loaddeps.dot") #elif dset == "runtime": # gr = grRun # file = logConf.get('file', "rundeps.dot") #else: gr = graph.digraph() #gr.add_nodes(self._classList) for cid in self._classList: fsize = self._classes[cid]... | 0c557769fd8c5281018ba8f72d96ce1e01932491 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/0c557769fd8c5281018ba8f72d96ce1e01932491/Generator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1450,
14430,
12,
1330,
3976,
16,
23626,
4672,
468,
430,
23626,
422,
315,
945,
957,
6877,
468,
565,
3821,
273,
3821,
2563,
468,
565,
585,
273,
613,
3976,
18,
588,
2668,
768,
2187,
315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1450,
14430,
12,
1330,
3976,
16,
23626,
4672,
468,
430,
23626,
422,
315,
945,
957,
6877,
468,
565,
3821,
273,
3821,
2563,
468,
565,
585,
273,
613,
3976,
18,
588,
2668,
768,
2187,
315,
... |
if plat == 'sunos5': | if platform == 'sunos5': | def detect_modules(self): # Ensure that /usr/local is always used if '/usr/local/lib' not in self.compiler.library_dirs: self.compiler.library_dirs.append('/usr/local/lib') if '/usr/local/include' not in self.compiler.include_dirs: self.compiler.include_dirs.append( '/usr/local/include' ) | 1fc6b0d7db91d541a72639988978bef873a18f5f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/1fc6b0d7db91d541a72639988978bef873a18f5f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
309,
1173,
13640,
19,
3729,
19,
2941,
11,
486,
316,
365,
18,
9576,
18,
12083,
67,
8291,
30,
365,
... |
for r in newGrid: r.reverse() self.generateVertexes(newGrid,s,e+1,idxStart) tile = tiles[tileStr.rfind("4")] row = newGrid[int(tile.x)] idx = 0 for col in row: if col is not None and col.x > idx: idx = col.x start = int(idx) +1 continue | self.generateVertexes(newGrid,s,e,idxStart,idxEnd) lastVertex = self.tempVertexes[-4]["point"] vert = (lastVertex[0]+1, lastVertex[1]+1, lastVertex[2]) self.addVertexAtCurve(vert, Direction.RIGHT, Direction.BACKWARD) start += (idxEnd - idxStart) | def generateVertexes(self, grid, start=None, end=None, tileIndexStart=None, tileIndexEnd=None): # can't use a for loop since inside I'll change i, not a very good # design though... if start == None: start = 0 if end == None: end = len(grid) if tileIndexStart == None: tileIndexStart = 0 if tileIndexEnd == None: tileInd... | 225697350492711b09cc292c7229559fdda28fd4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7999/225697350492711b09cc292c7229559fdda28fd4/preview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
6475,
281,
12,
2890,
16,
3068,
16,
787,
33,
7036,
16,
679,
33,
7036,
16,
4769,
1016,
1685,
33,
7036,
16,
4769,
1016,
1638,
33,
7036,
4672,
468,
848,
1404,
999,
279,
364,
2798,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6475,
281,
12,
2890,
16,
3068,
16,
787,
33,
7036,
16,
679,
33,
7036,
16,
4769,
1016,
1685,
33,
7036,
16,
4769,
1016,
1638,
33,
7036,
4672,
468,
848,
1404,
999,
279,
364,
2798,
... |
<th class="navbar"> <a class="navbar" | <th> <a | def callgraph_link(self, callgraph): if callgraph is None: return '' return ('<br /><span class="codelink"><a href="javascript: void(0);" ' 'onclick="toggleCallGraph(\'%s-div\');return false;">' 'call graph</a></span> ' % callgraph.uid) | 5c410b5b6e25df3bdbc6da266f7773518165cb02 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/5c410b5b6e25df3bdbc6da266f7773518165cb02/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4660,
67,
1232,
12,
2890,
16,
745,
4660,
4672,
309,
745,
4660,
353,
599,
30,
327,
875,
327,
7707,
32,
2848,
342,
4438,
3969,
667,
1546,
71,
1009,
754,
14050,
69,
3897,
1546,
11242... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
4660,
67,
1232,
12,
2890,
16,
745,
4660,
4672,
309,
745,
4660,
353,
599,
30,
327,
875,
327,
7707,
32,
2848,
342,
4438,
3969,
667,
1546,
71,
1009,
754,
14050,
69,
3897,
1546,
11242... |
self.set_cursor(self.l, self.c) | try: self.set_cursor(self.l, self.c) except: logging.info('cursor set error') logging.info(traceback.format_exc()) pass | def auto_read(self): # {{{ | 2dd0073f0e64ed3a93e544ea5c397d852d1dbc48 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13083/2dd0073f0e64ed3a93e544ea5c397d852d1dbc48/conque.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3656,
67,
896,
12,
2890,
4672,
468,
10179,
95,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3656,
67,
896,
12,
2890,
4672,
468,
10179,
95,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if not server_keys.has_key(server): | if server not in server_keys: | def _map_and_prefix_keys(self, key_iterable, key_prefix): """Compute the mapping of server (_Host instance) -> list of keys to stuff onto that server, as well as the mapping of prefixed key -> original key. | aa973f034fdfe4801db987afda8191177edefc04 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11935/aa973f034fdfe4801db987afda8191177edefc04/memcache.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1458,
67,
464,
67,
3239,
67,
2452,
12,
2890,
16,
498,
67,
15364,
16,
498,
67,
3239,
4672,
3536,
7018,
326,
2874,
434,
1438,
261,
67,
2594,
791,
13,
317,
666,
434,
1311,
358,
107... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1458,
67,
464,
67,
3239,
67,
2452,
12,
2890,
16,
498,
67,
15364,
16,
498,
67,
3239,
4672,
3536,
7018,
326,
2874,
434,
1438,
261,
67,
2594,
791,
13,
317,
666,
434,
1311,
358,
107... |
commands.append ((cmd,args)) | commands.append ((cmd, args)) | def autotrace_path_to_type1_ops (at_file, bitmap_metrics, tfm_wid): inv_scale = 1000.0/magnification (size_y, size_x, off_x,off_y)= map(lambda m, s=inv_scale : m * s, bitmap_metrics) ls = open (at_file).readlines () bbox = (10000,10000,-10000,-10000) while ls and ls[0] <> '*u\n': ls = ls[1:] if ls == []: return (bb... | d96cc8339091f674ea0fc313632dcc5c333eeb78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11856/d96cc8339091f674ea0fc313632dcc5c333eeb78/mftrace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3656,
5129,
67,
803,
67,
869,
67,
723,
21,
67,
4473,
261,
270,
67,
768,
16,
9389,
67,
9597,
16,
3253,
81,
67,
30902,
4672,
2198,
67,
5864,
273,
4336,
18,
20,
19,
4527,
82,
1480,
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,
3656,
5129,
67,
803,
67,
869,
67,
723,
21,
67,
4473,
261,
270,
67,
768,
16,
9389,
67,
9597,
16,
3253,
81,
67,
30902,
4672,
2198,
67,
5864,
273,
4336,
18,
20,
19,
4527,
82,
1480,
22... |
print "Redirected to", nurl | print " Redirected to", nurl | def getpage(self, url): | c0b2bc5762372c26f59bac6bcac026293de24a36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/c0b2bc5762372c26f59bac6bcac026293de24a36/webchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2433,
12,
2890,
16,
880,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2433,
12,
2890,
16,
880,
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,... |
if self.regions.max() == 255: self.regions[self.regions == 255] = 1 | self.regions,_ = label(self.regions) | def load(self): ''' Loads the channel data files and regions. | 94d2ed534a30bdff7b03034dba4403d0848c997d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/94d2ed534a30bdff7b03034dba4403d0848c997d/image.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
9163,
4444,
87,
326,
1904,
501,
1390,
471,
10085,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
12,
2890,
4672,
9163,
4444,
87,
326,
1904,
501,
1390,
471,
10085,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.session.openWithCallback(self.finished_cb, MessageBox, _("Your network configuration has been activated."), type = MessageBox.TYPE_INFO, timeout = 10) | self.session.openWithCallback(lambda x : self.finished_cb(), MessageBox, _("Your network configuration has been activated."), type = MessageBox.TYPE_INFO, timeout = 10) | def applyConfigfinishedCB(self,data): if data is True: num_configured_if = len(iNetwork.getConfiguredAdapters()) if num_configured_if >= 2: self.session.openWithCallback(self.secondIfaceFoundCB, MessageBox, _("Your network configuration has been activated.\nA second configured interface has been found.\n\nDo you want t... | b81939c5a6375795d59a7fd8d9f81c0810c7eebe /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6652/b81939c5a6375795d59a7fd8d9f81c0810c7eebe/NetworkSetup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
809,
13527,
8876,
12,
2890,
16,
892,
4672,
309,
501,
353,
1053,
30,
818,
67,
16449,
67,
430,
273,
562,
12,
77,
3906,
18,
588,
15334,
26620,
10756,
309,
818,
67,
16449,
67,
430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
809,
13527,
8876,
12,
2890,
16,
892,
4672,
309,
501,
353,
1053,
30,
818,
67,
16449,
67,
430,
273,
562,
12,
77,
3906,
18,
588,
15334,
26620,
10756,
309,
818,
67,
16449,
67,
430,
... |
self.getOutputWorkspace().remove(preserve_top=True) | def resubmit(self): """Resubmit a failed or completed job. """ | f10a9e4d3dab16f56015856ee9f0d99103afa944 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1488/f10a9e4d3dab16f56015856ee9f0d99103afa944/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
400,
373,
1938,
12,
2890,
4672,
3536,
607,
373,
1938,
279,
2535,
578,
5951,
1719,
18,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
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,
400,
373,
1938,
12,
2890,
4672,
3536,
607,
373,
1938,
279,
2535,
578,
5951,
1719,
18,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.