rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
self.record_dependencies = docutils.utils.DependencyList() | if self.record_dependencies is None: self.record_dependencies = docutils.utils.DependencyList() | def __init__(self, *args, **kwargs): optparse.Values.__init__(self, *args, **kwargs) # Set up dependency list, in case it is needed. self.record_dependencies = docutils.utils.DependencyList() | 1a545ba767987beef86d40173f38ec27660cb68e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/1a545ba767987beef86d40173f38ec27660cb68e/frontend.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2153,
2670,
18,
1972,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
468,
1000,
731,
4904,
666,
16,
316,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2153,
2670,
18,
1972,
16186,
2738,
972,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
13,
468,
1000,
731,
4904,
666,
16,
316,... |
command_result = True | connection_result = True | def attemptConnection(hostname, username, password, timeout=30, command=False, local_filepath=False, remote_filepath='/tmp/', execute=False, remove=False, sudo=False, run_as='root'): """Attempt to login to 'hostname' using 'username'/'password' and execute 'command'. Will excute the command via sudo if 'sudo' is set to... | af991bd779b6fc6a4e78f3728de9053171539741 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11566/af991bd779b6fc6a4e78f3728de9053171539741/sshpt.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4395,
1952,
12,
10358,
16,
2718,
16,
2201,
16,
2021,
33,
5082,
16,
1296,
33,
8381,
16,
1191,
67,
10561,
33,
8381,
16,
2632,
67,
10561,
2218,
19,
5645,
19,
2187,
1836,
33,
8381,
16,
1... |
if event.button == 3: | if (event.button == 1 and gpodder.interface == gpodder.MAEMO) or \ (event.button == 3 and gpodder.interface == gpodder.GUI): | def treeview_downloads_button_pressed(self, treeview, event): if event.button == 1: # Catch left mouse button presses, and if we there is no # path at the given position, deselect all items (x, y) = (int(event.x), int(event.y)) (path, column, rx, ry) = treeview.get_path_at_pos(x, y) or (None,)*4 if path is None: treevi... | 510c784e2954344f295cb7cfc7e22925148e180f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12778/510c784e2954344f295cb7cfc7e22925148e180f/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
1945,
67,
7813,
87,
67,
5391,
67,
10906,
12,
2890,
16,
2151,
1945,
16,
871,
4672,
309,
871,
18,
5391,
422,
404,
30,
468,
21984,
2002,
7644,
3568,
11779,
281,
16,
471,
309,
732,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2151,
1945,
67,
7813,
87,
67,
5391,
67,
10906,
12,
2890,
16,
2151,
1945,
16,
871,
4672,
309,
871,
18,
5391,
422,
404,
30,
468,
21984,
2002,
7644,
3568,
11779,
281,
16,
471,
309,
732,
... |
self.assertEqual(err[-1], b'OK') | self.assertIn(b'OK', err) | def get_parse_out_err(p): return [b.splitlines() for b in p.communicate()] | f10c400b91e44c5c744f4ddc05d90933cba3a56b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/f10c400b91e44c5c744f4ddc05d90933cba3a56b/test_runner.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2670,
67,
659,
67,
370,
12,
84,
4672,
327,
306,
70,
18,
4939,
3548,
1435,
364,
324,
316,
293,
18,
5702,
318,
2659,
1435,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2670,
67,
659,
67,
370,
12,
84,
4672,
327,
306,
70,
18,
4939,
3548,
1435,
364,
324,
316,
293,
18,
5702,
318,
2659,
1435,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
errormessage = 'ACTION=MOVE STATUS=ERROR FILE=' + filename + ' ERROR=' + inst | errormessage = 'ACTION=MOVE STATUS=ERROR FILE=' + filename + ' ERROR=' + str(inst) | def do_file_move(showid, showname, snum, enum, epname, quality, fileext, origfilename): season_dir = 'Season ' + snum episode_filename = '[' + snum + 'x' + enum + ']' + ' ' + epname + ' [' + quality + ']' + fileext newpath = os.path.join(tv_dir, showname, season_dir, episode_filename) sdir = os.path.split(newpath) i... | 11d4d3e286e712786517fd0886c19abfc7b080f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13915/11d4d3e286e712786517fd0886c19abfc7b080f4/tvwrangler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
768,
67,
8501,
12,
4500,
350,
16,
2405,
529,
16,
272,
2107,
16,
2792,
16,
5529,
529,
16,
9312,
16,
585,
408,
16,
1647,
3459,
4672,
225,
15874,
67,
1214,
273,
296,
1761,
2753... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
768,
67,
8501,
12,
4500,
350,
16,
2405,
529,
16,
272,
2107,
16,
2792,
16,
5529,
529,
16,
9312,
16,
585,
408,
16,
1647,
3459,
4672,
225,
15874,
67,
1214,
273,
296,
1761,
2753... |
assert len(p)==1 liblist.append(p[0]) return liblist | info = {'extra_objects':p} break if info is None: return for d in incl_dirs: if len(combine_paths(d,['fftc8.h','fftfreq.h']))==2: dict_append(info,include_dirs=[d], define_macros=[('SCIPY_DJBFFT_H',None)]) self.set_info(**info) return | def _lib_list(self, lib_dir, libs, ext): assert type(lib_dir) is type('') liblist = [] for l in libs: p = combine_paths(lib_dir, 'lib'+l+ext) if not p: p = combine_paths(lib_dir, l+ext) if p: assert len(p)==1 liblist.append(p[0]) return liblist | ac14c956d27961edc283b7ee1b08f7497a7678bf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/ac14c956d27961edc283b7ee1b08f7497a7678bf/system_info.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2941,
67,
1098,
12,
2890,
16,
2561,
67,
1214,
16,
15042,
16,
1110,
4672,
1815,
618,
12,
2941,
67,
1214,
13,
353,
618,
2668,
6134,
2561,
1098,
273,
5378,
364,
328,
316,
15042,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2941,
67,
1098,
12,
2890,
16,
2561,
67,
1214,
16,
15042,
16,
1110,
4672,
1815,
618,
12,
2941,
67,
1214,
13,
353,
618,
2668,
6134,
2561,
1098,
273,
5378,
364,
328,
316,
15042,
30,
... |
if e == errno.EACCES: | if e == errno.EACCES or e == errno.EPERM: | def msg(err): if what is not None: log.msg("%s while %s" % (err, what)) | a7ccc100326c948d7e092ad1938dfec2ed9cdd7b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/a7ccc100326c948d7e092ad1938dfec2ed9cdd7b/http.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1234,
12,
370,
4672,
309,
4121,
353,
486,
599,
30,
613,
18,
3576,
27188,
87,
1323,
738,
87,
6,
738,
261,
370,
16,
4121,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1234,
12,
370,
4672,
309,
4121,
353,
486,
599,
30,
613,
18,
3576,
27188,
87,
1323,
738,
87,
6,
738,
261,
370,
16,
4121,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
... | 1.0000000000000000000000000000000000000000000000000000000000*I | #def _singular_(self, singular): | b4b3245d1251e91c0a285bb11f7d5d67dd1a7536 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/b4b3245d1251e91c0a285bb11f7d5d67dd1a7536/constants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
536,
389,
17835,
67,
12,
2890,
16,
10048,
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,
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,
468,
536,
389,
17835,
67,
12,
2890,
16,
10048,
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,
... |
def __init__(self, elem, parent=None): self.parent = parent | def __init__(self, elem, parent=None, index=0): | def __init__(self, elem, parent=None): self.parent = parent if elem.tag != 'Layer': raise ValueError('%s should be a Layer' % (elem,)) for key in ('Name', 'Title'): val = elem.find(key) if val is not None: setattr(self, key.lower(), val.text.strip()) else: setattr(self, key.lower(), 'unnamed_layer') self.id=self.name #... | b48f1be61840bde02950c726a84edc9903c5ea0e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11708/b48f1be61840bde02950c726a84edc9903c5ea0e/wms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
3659,
16,
982,
33,
7036,
16,
770,
33,
20,
4672,
309,
3659,
18,
2692,
480,
296,
4576,
4278,
1002,
2068,
29909,
87,
1410,
506,
279,
12112,
11,
738,
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,
1001,
2738,
972,
12,
2890,
16,
3659,
16,
982,
33,
7036,
16,
770,
33,
20,
4672,
309,
3659,
18,
2692,
480,
296,
4576,
4278,
1002,
2068,
29909,
87,
1410,
506,
279,
12112,
11,
738,
261,
... |
args["rootlabel"] = "live:LABEL=%(fslabel)s" % args | args["rootlabel"] = "live:CDLABEL=%(fslabel)s" % args | def __get_image_stanza(self, is_xen, isDracut, **args): if isDracut: args["rootlabel"] = "live:LABEL=%(fslabel)s" % args else: args["rootlabel"] = "CDLABEL=%(fslabel)s" % args | f6389a616ba162496f373e3ac21bbfec516b42cd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9342/f6389a616ba162496f373e3ac21bbfec516b42cd/live.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
2730,
67,
541,
11939,
12,
2890,
16,
353,
67,
92,
275,
16,
353,
40,
354,
5150,
16,
2826,
1968,
4672,
309,
353,
40,
354,
5150,
30,
833,
9614,
3085,
1925,
11929,
273,
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,
1001,
588,
67,
2730,
67,
541,
11939,
12,
2890,
16,
353,
67,
92,
275,
16,
353,
40,
354,
5150,
16,
2826,
1968,
4672,
309,
353,
40,
354,
5150,
30,
833,
9614,
3085,
1925,
11929,
273,
315... |
self.whiteChars = "".join([c for c in self.whiteChars if c not in self.matchWhite]) | self.setWhitespaceChars( "".join([c for c in self.whiteChars if c not in self.matchWhite]) ) | def __init__(self, ws=" \t\r\n", min=1, max=0, exact=0): super(White,self).__init__() self.matchWhite = ws self.whiteChars = "".join([c for c in self.whiteChars if c not in self.matchWhite]) #~ self.leaveWhitespace() self.name = ("".join([White.whiteStrs[c] for c in self.matchWhite])) self.mayReturnEmpty = True self.er... | f785be5d2ca075a1c7bb01b51854db8384acb590 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3693/f785be5d2ca075a1c7bb01b51854db8384acb590/pyparsing.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
4945,
1546,
521,
88,
64,
86,
64,
82,
3113,
1131,
33,
21,
16,
943,
33,
20,
16,
5565,
33,
20,
4672,
2240,
12,
13407,
16,
2890,
2934,
972,
2738,
972,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4945,
1546,
521,
88,
64,
86,
64,
82,
3113,
1131,
33,
21,
16,
943,
33,
20,
16,
5565,
33,
20,
4672,
2240,
12,
13407,
16,
2890,
2934,
972,
2738,
972,
14... |
cleanquery = make_query(self.cleanrequest).replace('%20', '+') return cleanquery | return make_query(self.cleanrequest) | def cleanQuery(self) : """ make a query_string with clean Request """ cleanquery = make_query(self.cleanrequest).replace('%20', '+') return cleanquery | 4c4b3d3fbcd12c756dae313f8ab4288415d273ff /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9052/4c4b3d3fbcd12c756dae313f8ab4288415d273ff/finder.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
1138,
12,
2890,
13,
294,
3536,
1221,
279,
843,
67,
1080,
598,
2721,
1567,
3536,
282,
327,
1221,
67,
2271,
12,
2890,
18,
6200,
2293,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
1138,
12,
2890,
13,
294,
3536,
1221,
279,
843,
67,
1080,
598,
2721,
1567,
3536,
282,
327,
1221,
67,
2271,
12,
2890,
18,
6200,
2293,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100... |
j.outputsandbox = job.outputsandbox[:] extra = job.application.extra j.application.extra.input_buffers = extra.input_buffers.copy() j.application.extra.input_files = extra.input_files[:] | j.outputsandbox = job.outputsandbox[:] | def create_gaudi_subjob(splitter, job, inputdata): j = splitter.createSubjob(job) j.application = job.application j.backend = job.backend if inputdata: j.inputdata = inputdata j.application.extra.inputdata = j.inputdata else: j.inputdata = None j.application.extra.inputdata = LHCbDataset() j.outputsandbox = job.outputs... | 203f58884a506edd2b980f3b9280acf0663f8d21 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/203f58884a506edd2b980f3b9280acf0663f8d21/Splitters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
15833,
1100,
77,
67,
1717,
4688,
12,
4939,
387,
16,
1719,
16,
810,
892,
4672,
525,
273,
21553,
18,
2640,
1676,
4688,
12,
4688,
13,
525,
18,
3685,
273,
1719,
18,
3685,
525,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
15833,
1100,
77,
67,
1717,
4688,
12,
4939,
387,
16,
1719,
16,
810,
892,
4672,
525,
273,
21553,
18,
2640,
1676,
4688,
12,
4688,
13,
525,
18,
3685,
273,
1719,
18,
3685,
525,
1... |
textmode = eolmode != 'strict' | textmode = eolmode not in ('strict', 'auto') | def applydiff(ui, fp, changed, strip=1, sourcefile=None, eolmode='strict'): """ Reads a patch from fp and tries to apply it. The dict 'changed' is filled in with all of the filenames changed by the patch. Returns 0 for a clean patch, -1 if any rejects were found and 1 if there was any fuzz. If 'eolmode' is 'strict', ... | 70e75580f201a5657647fec96b40a9a4279aa27e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11312/70e75580f201a5657647fec96b40a9a4279aa27e/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
5413,
12,
4881,
16,
4253,
16,
3550,
16,
2569,
33,
21,
16,
1084,
768,
33,
7036,
16,
14775,
3188,
2218,
13948,
11,
4672,
3536,
29185,
279,
4729,
628,
4253,
471,
9327,
358,
2230,
51... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5413,
12,
4881,
16,
4253,
16,
3550,
16,
2569,
33,
21,
16,
1084,
768,
33,
7036,
16,
14775,
3188,
2218,
13948,
11,
4672,
3536,
29185,
279,
4729,
628,
4253,
471,
9327,
358,
2230,
51... |
userName = diracAdmin._getCurrentUser() if not userName['OK']: print 'ERROR: Could not obtain current username from proxy' exitCode = 2 DIRAC.exit(exitCode) userName = userName['Value'] | def usage(): print 'Usage: %s <DIRAC site name> <COMMENT>' %(Script.scriptName) print 'Note: emails should only be disabled for bulk operations.' DIRAC.exit(2) | a3116b1a41aa87c77359a68f43c0b2ef68721bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/a3116b1a41aa87c77359a68f43c0b2ef68721bbe/dirac-admin-allow-site.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
4537,
2226,
2834,
508,
34,
411,
12200,
1870,
8975,
3651,
18,
4263,
461,
13,
1172,
296,
8067,
30,
14255,
1410,
1338,
506,
5673,
364,
8280,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4084,
13332,
1172,
296,
5357,
30,
738,
87,
411,
4537,
2226,
2834,
508,
34,
411,
12200,
1870,
8975,
3651,
18,
4263,
461,
13,
1172,
296,
8067,
30,
14255,
1410,
1338,
506,
5673,
364,
8280,
... | |
return d.keys() | return list(d.keys()) | def fill_dict(d, candidates, numentries): d.clear() for i in xrange(numentries): d[Horrid(random.choice(candidates))] = \ Horrid(random.choice(candidates)) return d.keys() | d7daf226f84645cb14ad0f8050bab79467cdacc4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d7daf226f84645cb14ad0f8050bab79467cdacc4/test_mutants.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
1576,
12,
72,
16,
7965,
16,
818,
8219,
4672,
302,
18,
8507,
1435,
364,
277,
316,
12314,
12,
2107,
8219,
4672,
302,
63,
44,
280,
1691,
12,
9188,
18,
11569,
12,
21635,
3719,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3636,
67,
1576,
12,
72,
16,
7965,
16,
818,
8219,
4672,
302,
18,
8507,
1435,
364,
277,
316,
12314,
12,
2107,
8219,
4672,
302,
63,
44,
280,
1691,
12,
9188,
18,
11569,
12,
21635,
3719,
... |
if self.debug: | if getattr(cls, 'debug', False): | def getSimilarGWResultsGivenResultsByGene(self, phenotype_method_id, call_method_id, results_directory=None, \ analysis_method_id_ls=[1,7]): """ 2009-3-24 default value of analysis_method_id_ls is changed from [1,7,17,18,19] to [1,7] 2008-12-14 default value of analysis_method_id_ls is changed from [1,5,6,7] to [1,7,17... | bdc3752350001c791e90fb2760fcc0578318b113 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9645/bdc3752350001c791e90fb2760fcc0578318b113/DrawSNPRegion.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
381,
5611,
30947,
3447,
6083,
3447,
858,
24442,
12,
2890,
16,
28825,
67,
2039,
67,
350,
16,
745,
67,
2039,
67,
350,
16,
1686,
67,
5149,
33,
7036,
16,
521,
6285,
67,
2039,
67,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
381,
5611,
30947,
3447,
6083,
3447,
858,
24442,
12,
2890,
16,
28825,
67,
2039,
67,
350,
16,
745,
67,
2039,
67,
350,
16,
1686,
67,
5149,
33,
7036,
16,
521,
6285,
67,
2039,
67,
3... |
exes = [ os.path.join(cg_root, 'linux', 'bin', 'cgc'), os.path.join(cg_root, 'linux', 'bin64', 'cgc'), os.path.join(cg_root, 'mac', 'bin', 'cgc'), os.path.join(cg_root, 'win', 'bin', 'cgc.exe') ] for exe in exes: | exe_paths = ['linux/bin/cgc', 'linux/bin64/cgc', 'mac/bin/cgc', 'win/bin/cgc.exe'] for exe_path in exe_paths: | def default_cgc(): paths = [ '/usr/bin/cgc', 'C:/Program Files/NVIDIA Corporation/Cg/bin/cgc.exe', 'C:/Program Files (x86)/NVIDIA Corporation/Cg/bin/cgc.exe' ] for path in paths: if os.path.exists(path): return path script_path = os.path.abspath(sys.path[0]) # Try again looking in the current working directory to match... | b4063f4f2c6fc90bbda47a2fb5e91c437341938f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4063f4f2c6fc90bbda47a2fb5e91c437341938f/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
71,
13241,
13332,
2953,
273,
306,
1173,
13640,
19,
4757,
19,
71,
13241,
2187,
296,
39,
27824,
9459,
6471,
19,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
132... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
71,
13241,
13332,
2953,
273,
306,
1173,
13640,
19,
4757,
19,
71,
13241,
2187,
296,
39,
27824,
9459,
6471,
19,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
132... |
if "new game" in [x.name for x in self.menu]: import pdb; pdb.set_trace() for i in self.menu: i.goto((i.hx,i.hy)) log.debug("fadeOut menu %s"%[x.name for x in self.menu]) | for i in self.menu: self.stuff_event(i.on_goto, (i.hx,i.hy)) log.debug("fadeOut menu using goto %s"%[x.name for x in self.menu]) | def on_menu_fadeOut(self): """ animate hiding the menu """ if "new game" in [x.name for x in self.menu]: import pdb; pdb.set_trace() for i in self.menu: i.goto((i.hx,i.hy)) log.debug("fadeOut menu %s"%[x.name for x in self.menu]) self._event_finish() | ec56067dc0c51f918a919fab40a6c2230499799e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14331/ec56067dc0c51f918a919fab40a6c2230499799e/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5414,
67,
507,
323,
1182,
12,
2890,
4672,
3536,
14671,
366,
10415,
326,
3824,
3536,
364,
277,
316,
365,
18,
5414,
30,
365,
18,
334,
3809,
67,
2575,
12,
77,
18,
265,
67,
75,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
5414,
67,
507,
323,
1182,
12,
2890,
4672,
3536,
14671,
366,
10415,
326,
3824,
3536,
364,
277,
316,
365,
18,
5414,
30,
365,
18,
334,
3809,
67,
2575,
12,
77,
18,
265,
67,
75,
... |
page = None job_id = check_job_id(form) if job_id == None: fault_html = "The Job ID seems to be expired or invalid." page = ErrorPage(form, fault_html) else: page = RefinePrepPage(form) | page = RefinePrepPage(form) | def main(): form = cgi.FieldStorage() page = None job_id = check_job_id(form) if job_id == None: fault_html = "The Job ID seems to be expired or invalid." page = ErrorPage(form, fault_html) else: page = RefinePrepPage(form) try: print page.html_page() except RefinePrepError, err: text = '<p>%s</p>' % (err.text) page... | 506108cc1b3c6c0eaca0e88ca4b1e860b5a5f693 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10674/506108cc1b3c6c0eaca0e88ca4b1e860b5a5f693/refineprep.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
646,
273,
276,
10052,
18,
974,
3245,
1435,
225,
1363,
273,
3941,
558,
15543,
1964,
12,
687,
13,
775,
30,
1172,
1363,
18,
2620,
67,
2433,
1435,
225,
1335,
3941,
558,
15543,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
646,
273,
276,
10052,
18,
974,
3245,
1435,
225,
1363,
273,
3941,
558,
15543,
1964,
12,
687,
13,
775,
30,
1172,
1363,
18,
2620,
67,
2433,
1435,
225,
1335,
3941,
558,
15543,
... |
self.assertEquals(xmlEncoding.decode('X-FAKE', '<x/>', loggedEvents), None) | self.assertEquals(xmlEncoding.decode(ctAX, 'X-FAKE', '<x/>', loggedEvents), None) | def testSupplyUnknownEncoding(self): loggedEvents=[] self.assertEquals(xmlEncoding.decode('X-FAKE', '<x/>', loggedEvents), None) self.assertEquals(len(loggedEvents), 1) self.assertEquals(loggedEvents[0].__class__, UnknownEncoding, 'Must fail if an unknown encoding is used') | c9bc8bbd0880a77ea6553e5286a8d6b8bd59e622 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5012/c9bc8bbd0880a77ea6553e5286a8d6b8bd59e622/testXmlEncodingDecode.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3088,
1283,
4874,
4705,
12,
2890,
4672,
7545,
3783,
33,
8526,
365,
18,
11231,
8867,
12,
2902,
4705,
18,
3922,
12,
299,
2501,
16,
296,
60,
17,
2046,
6859,
2187,
2368,
92,
18280,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3088,
1283,
4874,
4705,
12,
2890,
4672,
7545,
3783,
33,
8526,
365,
18,
11231,
8867,
12,
2902,
4705,
18,
3922,
12,
299,
2501,
16,
296,
60,
17,
2046,
6859,
2187,
2368,
92,
18280,
1... |
' install --force --home="%s" --install-lib="%s" >%s 2>&1' % (sys.executable, INST, PYTHONDIR, installerrs)) | ' install --force --home="%s" --install-lib="%s"' ' --install-scripts="%s" >%s 2>&1' % (sys.executable, INST, PYTHONDIR, BINDIR, installerrs)) | def install_hg(): global python vlog("# Performing temporary installation of HG") installerrs = os.path.join("tests", "install.err") os.chdir("..") # Get back to hg root cmd = ('%s setup.py clean --all' ' install --force --home="%s" --install-lib="%s" >%s 2>&1' % (sys.executable, INST, PYTHONDIR, installerrs)) vlog("#... | cc142fd72f2e3688d8f6c368ad1184e1399327a4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/cc142fd72f2e3688d8f6c368ad1184e1399327a4/run-tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
26981,
13332,
2552,
5790,
331,
1330,
2932,
7,
11217,
310,
6269,
13193,
434,
670,
43,
7923,
3799,
370,
87,
273,
1140,
18,
803,
18,
5701,
2932,
16341,
3113,
315,
5425,
18,
370,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
26981,
13332,
2552,
5790,
331,
1330,
2932,
7,
11217,
310,
6269,
13193,
434,
670,
43,
7923,
3799,
370,
87,
273,
1140,
18,
803,
18,
5701,
2932,
16341,
3113,
315,
5425,
18,
370,
... |
return self.sys_log("./configure --prefix=%s" % self.blddir) | return self.sys_log("./configure --disable-docs --disable-valgrind --prefix=%s" % self.blddir) | def _configure(self): return self.sys_log("./configure --prefix=%s" % self.blddir) | 94b3582c928b074f1eacd1300e1ff24fd4660f7f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5963/94b3582c928b074f1eacd1300e1ff24fd4660f7f/build_packages.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
12,
2890,
4672,
327,
365,
18,
9499,
67,
1330,
2932,
18,
19,
14895,
1493,
3239,
5095,
87,
6,
738,
365,
18,
3083,
449,
481,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
14895,
12,
2890,
4672,
327,
365,
18,
9499,
67,
1330,
2932,
18,
19,
14895,
1493,
3239,
5095,
87,
6,
738,
365,
18,
3083,
449,
481,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
elif type(path) == types.ListType: | elif type(linkTuple) == types.ListType: | def createLink(self,linkTuple): if type(replicaTuple) == types.TupleType: links = [linkTuple] elif type(path) == types.ListType: links = linkTuple else: return S_ERROR('LFCClient.addReplica: Must supply a link tuple of list of tuples') # If we have less than three lfns to query a session doesn't make sense if len(links... | 95f2ea774520863ead2cd9f2cf913232cd97cf6b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12864/95f2ea774520863ead2cd9f2cf913232cd97cf6b/LcgFileCatalogClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
2098,
12,
2890,
16,
1232,
9038,
4672,
309,
618,
12,
30065,
9038,
13,
422,
1953,
18,
9038,
559,
30,
4716,
273,
306,
1232,
9038,
65,
1327,
618,
12,
1232,
9038,
13,
422,
1953,
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,
752,
2098,
12,
2890,
16,
1232,
9038,
4672,
309,
618,
12,
30065,
9038,
13,
422,
1953,
18,
9038,
559,
30,
4716,
273,
306,
1232,
9038,
65,
1327,
618,
12,
1232,
9038,
13,
422,
1953,
18,
... |
" %s %s = GetSharedMemoryAs<%s>(\n" % (dest_arg.type, dest_arg.name, dest_arg.type)) file.Write( " c.%s_shm_id, c.%s_shm_offset, %s);\n" % (dest_arg.name, dest_arg.name, bufsize_arg.name)) for arg in all_but_last_2_args + [dest_arg]: arg.WriteValidationCode(file) func.WriteValidationCode(file) func.WriteHandlerIm... | " %s(%s, len + 1, &len, bucket->GetDataAs<GLchar*>(0, len + 1));\n" % (func.GetGLFunctionName(), id_arg.name)) | def WriteServiceImplementation(self, func, file): """Overrriden from TypeHandler.""" file.Write( "error::Error GLES2DecoderImpl::Handle%s(\n" % func.name) file.Write( " uint32 immediate_data_size, const gles2::%s& c) {\n" % func.name) args = func.GetOriginalArgs() all_but_last_2_args = args[:-2] for arg in all_but_l... | a5eba71687a62fcb4b39f5733a699dba889f0b71 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a5eba71687a62fcb4b39f5733a699dba889f0b71/build_gles2_cmd_buffer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
1636,
2866,
668,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
1179,
13621,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
12,
315,
1636,
2866,
668,
611,
11386,
22,
7975,
2828,
2866,
3259,
9,
... |
if len(args) != 1: parser.error("Must specify exactly one base_dir") | if len(args) < 1: parser.error("Must specify one or more base_dirs") | def purge(base_dir, gigs, ignore, dry_run=False): """Delete directories under `base_dir` until `gigs` GB are free Will not delete directories listed in the ignore list.""" gigs *= 1024 * 1024 * 1024 if freespace(base_dir) >= gigs: return dirs = [os.path.join(base_dir, d) for d in os.listdir(base_dir) if os.path.isdi... | c12b0ed3642211354e16f3ad24c1b0c1d06b35bc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6206/c12b0ed3642211354e16f3ad24c1b0c1d06b35bc/purge_builds.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
1969,
67,
1214,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
1214,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11668,
12,
1969,
67,
1214,
16,
314,
360,
87,
16,
2305,
16,
10299,
67,
2681,
33,
8381,
4672,
3536,
2613,
6402,
3613,
1375,
1969,
67,
1214,
68,
3180,
1375,
75,
360,
87,
68,
25069,
854,
... |
tasks[n] = tasks.pop() heapq._siftup(tasks, n) | tasks[pos] = tasks.pop() heapq._siftup(tasks, pos) | def cancel(self): """Unschedule this call.""" assert not self.cancelled, "Already cancelled" self.cancelled = True del self.__target, self.__args, self.__kwargs if self in tasks: n = tasks.index(self) if n == len(tasks)-1: tasks.pop() else: tasks[n] = tasks.pop() heapq._siftup(tasks, n) | 0a696b6b47f6150c361d4773432b054a4f92c58c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3782/0a696b6b47f6150c361d4773432b054a4f92c58c/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
12,
2890,
4672,
3536,
984,
10676,
333,
745,
12123,
1815,
486,
365,
18,
10996,
1259,
16,
315,
9430,
13927,
6,
365,
18,
10996,
1259,
273,
1053,
1464,
365,
16186,
3299,
16,
365,
16186... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3755,
12,
2890,
4672,
3536,
984,
10676,
333,
745,
12123,
1815,
486,
365,
18,
10996,
1259,
16,
315,
9430,
13927,
6,
365,
18,
10996,
1259,
273,
1053,
1464,
365,
16186,
3299,
16,
365,
16186... |
router.failed_ports.append(s.getpeername()[1]) | def exit_test(self, router): """ Perform port and IP tests on router. Will block until all port tests are finished. Can raise the following errors: socket.error - errno == errno.ECONNREFUSED: Tor refused our SOCKS connected. """ test_data = {} test_ports = [] recv_sockets = [] listen_sockets = [] self.test_exit = route... | 4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/4c865d62c51c3e1a9d19c722ba2e4c12fc91c4eb/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2427,
67,
3813,
12,
2890,
16,
4633,
4672,
3536,
11217,
1756,
471,
2971,
7434,
603,
4633,
18,
9980,
1203,
3180,
777,
1756,
7434,
854,
6708,
18,
4480,
1002,
326,
3751,
1334,
30,
2987,
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,
2427,
67,
3813,
12,
2890,
16,
4633,
4672,
3536,
11217,
1756,
471,
2971,
7434,
603,
4633,
18,
9980,
1203,
3180,
777,
1756,
7434,
854,
6708,
18,
4480,
1002,
326,
3751,
1334,
30,
2987,
18,
... | |
log.debug("%d pending circuits, %d running circuits.", len(self.pending_circuits), len(self.circuits)) | def print_stats(self): TestScheduler.print_stats(self) with self.pending_circuit_cond: self.pending_circuit_cond.notify() #log.debug("new_router_lock.locked(): %s", self.new_router_lock.locked()) log.debug("%d pending new tests, %d pending retries.", len(self.router_list), len(self.retry_routers)) log.debug("%d pending... | 1762dc4155634fb527198d82f9d30f1837936d7d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/1762dc4155634fb527198d82f9d30f1837936d7d/scheduler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
5296,
12,
2890,
4672,
7766,
11870,
18,
1188,
67,
5296,
12,
2890,
13,
598,
365,
18,
9561,
67,
24987,
67,
10013,
30,
365,
18,
9561,
67,
24987,
67,
10013,
18,
12336,
1435,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
5296,
12,
2890,
4672,
7766,
11870,
18,
1188,
67,
5296,
12,
2890,
13,
598,
365,
18,
9561,
67,
24987,
67,
10013,
30,
365,
18,
9561,
67,
24987,
67,
10013,
18,
12336,
1435,
468,
... | |
self._timer.stop() self._conn.disconnect() | if self._timer is not None: self._timer.stop() if self._conn is not None: self._conn.disconnect() | def stop(self): self._timer.stop() self._conn.disconnect() | 8af4a4eaa18d1272d312c395f0395cddb87f76b0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10608/8af4a4eaa18d1272d312c395f0395cddb87f76b0/basic.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
309,
365,
6315,
12542,
353,
486,
599,
30,
365,
6315,
12542,
18,
5681,
1435,
309,
365,
6315,
4646,
353,
486,
599,
30,
365,
6315,
4646,
18,
20177,
1435,
225,
2,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
12,
2890,
4672,
309,
365,
6315,
12542,
353,
486,
599,
30,
365,
6315,
12542,
18,
5681,
1435,
309,
365,
6315,
4646,
353,
486,
599,
30,
365,
6315,
4646,
18,
20177,
1435,
225,
2,
-10... |
def __init__(self, scons, attributes, rand = random.Random()): | def __init__(self, scons, attributes, rand = None): | def __init__(self, scons, attributes, rand = random.Random()): self.scons = scons # split constructor of original tree self.attributes = attributes # number of attributes to consider self.rand = rand # a random generator | 3a56c0b2e5fd60a4468b680643282ceea92ad0aa /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6366/3a56c0b2e5fd60a4468b680643282ceea92ad0aa/orngEnsemble.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
8559,
16,
1677,
16,
5605,
273,
599,
4672,
365,
18,
87,
8559,
273,
272,
8559,
6647,
468,
1416,
3885,
434,
2282,
2151,
365,
18,
4350,
273,
1677,
468,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
8559,
16,
1677,
16,
5605,
273,
599,
4672,
365,
18,
87,
8559,
273,
272,
8559,
6647,
468,
1416,
3885,
434,
2282,
2151,
365,
18,
4350,
273,
1677,
468,
... |
self._statusbar(msg=stat) | self._statusbar(stat) | def repo_changed(self, widget, data=None): repos_tree = self.gld.get_widget("repos_tree") pacs_tree = self.gld.get_widget("pacs_tree") repos_model, tree_iter = repos_tree.get_selection().get_selected() selected = repos_model.get_value(tree_iter, 0) | 9064ea83b7f7c250ddde26dda9d2d559d0848000 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2654/9064ea83b7f7c250ddde26dda9d2d559d0848000/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3538,
67,
6703,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
293,
28965,
67,
3413,
273,
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,
3538,
67,
6703,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
13686,
67,
3413,
273,
365,
18,
75,
1236,
18,
588,
67,
6587,
2932,
15564,
67,
3413,
7923,
293,
28965,
67,
3413,
273,
365,
... |
label = gtk.Label(_('<b><big>Specto is already running.</big></b>')) | label = gtk.Label(_('Specto is already running!')) | def already_running_dialog(self, *args): """ Save the save and position from the notifier and quit Specto. """ #create a dialog self.dialog = gtk.Dialog(_("Specto is already running"), None, gtk.DIALOG_NO_SEPARATOR | gtk.DIALOG_DESTROY_WITH_PARENT, None) self.dialog.set_modal(False) # Needed to prevent the notifier UI... | 37519388789e26a585555e3807ebf9f6fb228b8e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10818/37519388789e26a585555e3807ebf9f6fb228b8e/main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1818,
67,
8704,
67,
12730,
12,
2890,
16,
380,
1968,
4672,
3536,
7074,
326,
1923,
471,
1754,
628,
326,
19057,
471,
9706,
348,
1181,
83,
18,
3536,
468,
2640,
279,
6176,
365,
18,
12730,
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,
1818,
67,
8704,
67,
12730,
12,
2890,
16,
380,
1968,
4672,
3536,
7074,
326,
1923,
471,
1754,
628,
326,
19057,
471,
9706,
348,
1181,
83,
18,
3536,
468,
2640,
279,
6176,
365,
18,
12730,
2... |
"""Mod.SequenceSearcher.localPSIBlast test""" self.search( self.searchLocalPsiBlast ) | """Mod.SequenceSearcher.localPSIBlast test""" self.search( self.searchLocalPsiBlast ) | def test_psiblast(self): | 192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/482/192f7ffa922aed1ead1fed83d7e0b2a4faaea9b9/SequenceSearcher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1121,
495,
2722,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
1121,
495,
2722,
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... |
topicInput = re.sub(self._puncStripRE, "", topicInput) | topicInput = re.sub(self._puncStripRE, " ", topicInput) topicInput = re.sub(self._whitespaceRE, " ", topicInput) | def star(self, starType, pattern, that, topic, index): """Returns a string, the portion of pattern that was matched by a *. | d32edd26fc7b3f1faa848062a1d95eb3826d6376 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6428/d32edd26fc7b3f1faa848062a1d95eb3826d6376/PatternMgr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10443,
12,
2890,
16,
10443,
559,
16,
1936,
16,
716,
16,
3958,
16,
770,
4672,
3536,
1356,
279,
533,
16,
326,
14769,
434,
1936,
716,
1703,
4847,
635,
279,
380,
18,
2,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10443,
12,
2890,
16,
10443,
559,
16,
1936,
16,
716,
16,
3958,
16,
770,
4672,
3536,
1356,
279,
533,
16,
326,
14769,
434,
1936,
716,
1703,
4847,
635,
279,
380,
18,
2,
-100,
-100,
-100,
... |
return '<%s%s>%s%s<%s/>' % (self.tag, phrase_attr, self.comment, body, self.tag) | return '<%s%s>%s%s</%s>' % (self.tag, phrase_attr, self.comment, body, self.tag) | def format_my_tag(self): phrase_attr = self.format_my_phrase() body = self.format_my_body() if body or self.comment: return '<%s%s>%s%s<%s/>' % (self.tag, phrase_attr, self.comment, body, self.tag) else: return '<%s%s/>' % (self.tag, phrase_attr) | cce9c7c68b85957ef5c7ba0eca9d013a22241111 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3446/cce9c7c68b85957ef5c7ba0eca9d013a22241111/errors.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4811,
67,
2692,
12,
2890,
4672,
13045,
67,
1747,
273,
365,
18,
2139,
67,
4811,
67,
9429,
1435,
1417,
273,
365,
18,
2139,
67,
4811,
67,
3432,
1435,
309,
1417,
578,
365,
18,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
67,
4811,
67,
2692,
12,
2890,
4672,
13045,
67,
1747,
273,
365,
18,
2139,
67,
4811,
67,
9429,
1435,
1417,
273,
365,
18,
2139,
67,
4811,
67,
3432,
1435,
309,
1417,
578,
365,
18,
3... |
while (loop_count < 360): top_x = math.sin(loop_count * math.pi / 180) * top_r top_y = math.cos(loop_count * math.pi / 180) * top_r bottom_x = math.sin(loop_count * math.pi / 180) * bottom_r bottom_y = math.cos(loop_count * math.pi / 180) * bottom_r | while (loop_count < 360): top_x = math.sin(loop_count * math.pi / 180) * top_r top_y = math.cos(loop_count * math.pi / 180) * top_r bottom_x = math.sin(loop_count * math.pi / 180) * bottom_r bottom_y = math.cos(loop_count * math.pi / 180) * bottom_r | def cutcone(x_cen, y_cen, z_cen, top_r, bottom_r, depth, step_over): if top_r >= bottom_r: step_count = math.pi * top_r * 2 / step_over else: step_count = math.pi * bottom_r * 2 / step_over loop_count = 0 while (loop_count < 360): top_x = math.sin(loop_count * math.pi / 180) * top_r top_y = math.cos(loop_count * math... | 7b1f7adcc50a8d0dbd3214cd964d89735652e76a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12576/7b1f7adcc50a8d0dbd3214cd964d89735652e76a/cut-cone.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
71,
476,
12,
92,
67,
71,
275,
16,
677,
67,
71,
275,
16,
998,
67,
71,
275,
16,
1760,
67,
86,
16,
5469,
67,
86,
16,
3598,
16,
2235,
67,
1643,
4672,
309,
1760,
67,
86,
1545,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6391,
71,
476,
12,
92,
67,
71,
275,
16,
677,
67,
71,
275,
16,
998,
67,
71,
275,
16,
1760,
67,
86,
16,
5469,
67,
86,
16,
3598,
16,
2235,
67,
1643,
4672,
309,
1760,
67,
86,
1545,
... |
lines = [ ] | lines = [] | def _wrap_tablelinenos(self, inner): dummyoutfile = StringIO.StringIO() lncount = 0 for t, line in inner: if t: lncount += 1 dummyoutfile.write(line) | 301b1b0cae7fcc3c345037719a419835a225495c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2885/301b1b0cae7fcc3c345037719a419835a225495c/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
7032,
80,
292,
267,
275,
538,
12,
2890,
16,
3443,
4672,
9609,
26050,
273,
15777,
18,
780,
4294,
1435,
7211,
1883,
273,
374,
364,
268,
16,
980,
316,
3443,
30,
309,
268,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
7032,
80,
292,
267,
275,
538,
12,
2890,
16,
3443,
4672,
9609,
26050,
273,
15777,
18,
780,
4294,
1435,
7211,
1883,
273,
374,
364,
268,
16,
980,
316,
3443,
30,
309,
268,
... |
moddir = os.path.join(os.getcwd(), 'Modules', srcdir) | moddir = os.path.join(os.getcwd(), srcdir, 'Modules') | def build_extensions(self): | 726b78ecb8660278399abaf36f98dec56ecf1271 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/726b78ecb8660278399abaf36f98dec56ecf1271/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
67,
9489,
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,
1361,
67,
9489,
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,
-10... |
except socket.error: | except: | def close(self): if self.conn != None: try: self.conn.quit() except socket.error: pass | b19d6e06ac1299e6f85f89d08dc3c1f36953daf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6425/b19d6e06ac1299e6f85f89d08dc3c1f36953daf4/metalink.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
309,
365,
18,
4646,
480,
599,
30,
775,
30,
365,
18,
4646,
18,
27176,
1435,
1335,
30,
1342,
225,
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,
1746,
12,
2890,
4672,
309,
365,
18,
4646,
480,
599,
30,
775,
30,
365,
18,
4646,
18,
27176,
1435,
1335,
30,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
self.checker.message("WARNING: duplicate name %s in %s", | self.checker.message("WARNING: duplicate ID name %s in %s", | def start_a(self, attributes): self.link_attr(attributes, 'href') | 2afe5246f2a2897da6602dbcf286b67c150d0f2a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2afe5246f2a2897da6602dbcf286b67c150d0f2a/webchecker.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
69,
12,
2890,
16,
1677,
4672,
365,
18,
1232,
67,
1747,
12,
4350,
16,
296,
7547,
6134,
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,
787,
67,
69,
12,
2890,
16,
1677,
4672,
365,
18,
1232,
67,
1747,
12,
4350,
16,
296,
7547,
6134,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
now=time.time() | def reapOldRecords(self): # walk through contents of session directory and delete any # lapsed files for f in os.listdir(_sesspath): p=os.join(_sesspath, f) lastAccess=os.path.getatime(p) now=time.time() if now-lastAccess>Configuration.SessionTimeout: os.remove(p) | c03b83197fafd318b88ece20b61118c0e545d89c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/c03b83197fafd318b88ece20b61118c0e545d89c/FSSessionStore.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
438,
7617,
6499,
12,
2890,
4672,
468,
5442,
3059,
2939,
434,
1339,
1867,
471,
1430,
1281,
468,
328,
8676,
1390,
364,
284,
316,
1140,
18,
1098,
1214,
24899,
23828,
803,
4672,
293,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
283,
438,
7617,
6499,
12,
2890,
4672,
468,
5442,
3059,
2939,
434,
1339,
1867,
471,
1430,
1281,
468,
328,
8676,
1390,
364,
284,
316,
1140,
18,
1098,
1214,
24899,
23828,
803,
4672,
293,
33... | |
dst = self.copy_none(src) for name in dir(src): setattr(dst, name, getattr(src, name)) for name in exceptions: try: delattr(dst, name) except AttributeError: pass return dst | dst = self.copy_none(src) for name in dir(src): setattr(dst, name, getattr(src, name)) for name in exceptions: try: delattr(dst, name) except AttributeError: pass return dst | def copy_except(self, src, exceptions): | ca6ae39a786f3d7535cba0f2aef10692eb750051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ca6ae39a786f3d7535cba0f2aef10692eb750051/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
14137,
12,
2890,
16,
1705,
16,
4798,
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,
1610,
67,
14137,
12,
2890,
16,
1705,
16,
4798,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
versions.append(key.replace('XSEED-','')) | versions.append(key.replace('XSEED-', '')) | def SEEDAndXSEEDConversion(self, test_examples, blkt_number): """ Takes everything in the prepared list and tests the SEED/XSEED conversion for all given formats. """ # Another loop over all examples. for example in test_examples: # Determine the present XSEED versions. versions = [] for key in example.keys(): if key =... | e941ea0353dd1452c064b49107c82f63b66df94a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10470/e941ea0353dd1452c064b49107c82f63b66df94a/test_blockettes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3174,
2056,
1876,
60,
1090,
2056,
6814,
12,
2890,
16,
1842,
67,
16858,
16,
2811,
8629,
67,
2696,
4672,
3536,
23004,
7756,
316,
326,
8208,
666,
471,
7434,
326,
3174,
2056,
19,
60,
1090,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3174,
2056,
1876,
60,
1090,
2056,
6814,
12,
2890,
16,
1842,
67,
16858,
16,
2811,
8629,
67,
2696,
4672,
3536,
23004,
7756,
316,
326,
8208,
666,
471,
7434,
326,
3174,
2056,
19,
60,
1090,
... |
@jsonify.when("isinstance(obj,sqlalchemy.orm.query.Query) or isinstance(obj, sqlalchemy.ext.selectresults.SelectResults)") | @jsonify.when("isinstance(obj, SABase) and (isinstance(obj, sqlalchemy.orm.query.Query) or isinstance(obj, sqlalchemy.ext.selectresults.SelectResults))") | def __json__(self): '''Transform any SA mapped class into json. | 32b20ea4254a603156eac3aba8781225a78e2975 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9953/32b20ea4254a603156eac3aba8781225a78e2975/json.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1977,
972,
12,
2890,
4672,
9163,
4059,
1281,
17127,
5525,
667,
1368,
1163,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1977,
972,
12,
2890,
4672,
9163,
4059,
1281,
17127,
5525,
667,
1368,
1163,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
except: | else: | def infoSlot( self, nodeid, slotid, label, dntype ): try: self.nodes[ nodeid ].setLabelSlot( slotid, label ) except: print "InfoSlot: nodeid ", nodeid, "not in nodes", self.nodes | 1cac18f12b1b91166cc9cec5d8fe119bffa40e08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10633/1cac18f12b1b91166cc9cec5d8fe119bffa40e08/pydon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
8764,
12,
365,
16,
756,
350,
16,
4694,
350,
16,
1433,
16,
302,
496,
388,
262,
30,
775,
30,
365,
18,
4690,
63,
756,
350,
308,
18,
542,
2224,
8764,
12,
4694,
350,
16,
1433,
262... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
8764,
12,
365,
16,
756,
350,
16,
4694,
350,
16,
1433,
16,
302,
496,
388,
262,
30,
775,
30,
365,
18,
4690,
63,
756,
350,
308,
18,
542,
2224,
8764,
12,
4694,
350,
16,
1433,
262... |
writefile(TARDIR+'/panda3d.spec',SPEC) | def printUsage(): sys.exit("usage: maketarball [version]") | a398545fa3ba7ab3b2a8abd094123019ee11bab3 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/a398545fa3ba7ab3b2a8abd094123019ee11bab3/maketarball.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
5357,
13332,
2589,
18,
8593,
2932,
9167,
30,
29796,
278,
23846,
306,
1589,
4279,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
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,
1172,
5357,
13332,
2589,
18,
8593,
2932,
9167,
30,
29796,
278,
23846,
306,
1589,
4279,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
oldParentObj.handleChildLeave(object, oldZoneId) | oldParentObj.handleChildLeave(do, oldZoneId) | def removeDOFromTables(self, do): assert self.notify.debugStateCall(self) #assert not hasattr(do, "isQueryAllResponse") or not do.isQueryAllResponse #assert do.doId in self.doId2do location = do.getLocation() if location: oldParentId, oldZoneId = location oldParentObj = self.doId2do.get(oldParentId) if oldParentObj: ol... | 50225ec96e4ed77e64d1580cb1a83b49067d1b3d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/50225ec96e4ed77e64d1580cb1a83b49067d1b3d/DoCollectionManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
3191,
1265,
6905,
12,
2890,
16,
741,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
11231,
486,
3859,
12,
2896,
16,
315,
291,
1138,
1595,
1064,
7923,
578,
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,
1206,
3191,
1265,
6905,
12,
2890,
16,
741,
4672,
1815,
365,
18,
12336,
18,
4148,
1119,
1477,
12,
2890,
13,
468,
11231,
486,
3859,
12,
2896,
16,
315,
291,
1138,
1595,
1064,
7923,
578,
4... |
self.location = coord() | self.location = Coord() | def move(self, loc): motion = (loc != self.location) if self.location.i is not None and self.location.j is not None: if motion: if self.type == 'T': game.quad[self.location.i][self.location.j] = '#' else: game.quad[self.location.i][self.location.j] = '.' if loc: self.location = copy.copy(loc) game.quad[self.location.i]... | e571d502c19abfb5a3320300c347793da7b43d05 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3176/e571d502c19abfb5a3320300c347793da7b43d05/sst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
1515,
4672,
21188,
273,
261,
1829,
480,
365,
18,
3562,
13,
309,
365,
18,
3562,
18,
77,
353,
486,
599,
471,
365,
18,
3562,
18,
78,
353,
486,
599,
30,
309,
21188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3635,
12,
2890,
16,
1515,
4672,
21188,
273,
261,
1829,
480,
365,
18,
3562,
13,
309,
365,
18,
3562,
18,
77,
353,
486,
599,
471,
365,
18,
3562,
18,
78,
353,
486,
599,
30,
309,
21188,
... |
fmtr = logging.Formatter(f) handler.setFormatter(fmtr) | handler.setFormatter(logging.Formatter(f)) | def make_handler2(h, f, l, *o): handler = h(*o) fmtr = logging.Formatter(f) handler.setFormatter(fmtr) handler.addFilter(LevelFilter(l)) return handler | 633e00b171a777d923e4aead2f2717108d53a3b9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/633e00b171a777d923e4aead2f2717108d53a3b9/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
4176,
22,
12,
76,
16,
284,
16,
328,
16,
380,
83,
4672,
1838,
273,
366,
30857,
83,
13,
1838,
18,
542,
5074,
12,
11167,
18,
5074,
12,
74,
3719,
1838,
18,
1289,
1586,
12,
23... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
67,
4176,
22,
12,
76,
16,
284,
16,
328,
16,
380,
83,
4672,
1838,
273,
366,
30857,
83,
13,
1838,
18,
542,
5074,
12,
11167,
18,
5074,
12,
74,
3719,
1838,
18,
1289,
1586,
12,
23... |
raise Exception("Invalid number of fields on row: "+str(i+2)) if isanum(fields[0]): nodeName=int(fields[0]) | raise Exception("The number of fields on a row does not match the header line or given list of properties: "+str(i+2)) if isint(fields[0]): nodeName=int(fields[0]) | def isanum(str): | 6105f8eb77d11d886e10a9ffe0430c5282f86ae7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/768/6105f8eb77d11d886e10a9ffe0430c5282f86ae7/netio.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
304,
379,
12,
701,
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,
353,
304,
379,
12,
701,
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,... |
urls = 'dashboard_app.test_urls' | def test_test_result__unknown(self): obj = TestResult(result=TestResult.RESULT_UNKNOWN, id=1) self.assertEqual(unicode(obj), "#1 unknown") | 7362473c8efa9da5331b82251c0ea87009f105dc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12617/7362473c8efa9da5331b82251c0ea87009f105dc/tests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
67,
2088,
972,
8172,
12,
2890,
4672,
1081,
273,
7766,
1253,
12,
2088,
33,
4709,
1253,
18,
12289,
67,
14737,
16,
612,
33,
21,
13,
365,
18,
11231,
5812,
12,
9124,
12,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3813,
67,
2088,
972,
8172,
12,
2890,
4672,
1081,
273,
7766,
1253,
12,
2088,
33,
4709,
1253,
18,
12289,
67,
14737,
16,
612,
33,
21,
13,
365,
18,
11231,
5812,
12,
9124,
12,
2... | |
except AttributeError: pass | def save(self, fname): r""" Save the object to disk. | b866fa681c3bd3c933dce1836c1e90c749ffe493 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3400/b866fa681c3bd3c933dce1836c1e90c749ffe493/base.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
12,
2890,
16,
5299,
4672,
436,
8395,
7074,
326,
733,
358,
4234,
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,
1923,
12,
2890,
16,
5299,
4672,
436,
8395,
7074,
326,
733,
358,
4234,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
def getDBOptions(self, soClass): if soClass.sqlmeta.engineSQL is not None and \ len(soClass.sqlmeta.engineSQL) > 0: return "ENGINE = %s" % soClass.sqlmeta.engineSQL | def getDBOptions(self, SO_or_join): if hasattr(SO_or_join, "sqlmeta"): engineSQL = SO_or_join.sqlmeta.engineSQL else: engineSQL = getattr(SO_or_join, "engineSQL", None) if engineSQL: return "ENGINE = %s" % engineSQL | def getDBOptions(self, soClass): if soClass.sqlmeta.engineSQL is not None and \ len(soClass.sqlmeta.engineSQL) > 0: return "ENGINE = %s" % soClass.sqlmeta.engineSQL else: return "" | 5d1662469ac1624761c2d2ea59b8c06a0d8007fe /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8798/5d1662469ac1624761c2d2ea59b8c06a0d8007fe/dbconnection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31132,
1320,
12,
2890,
16,
7460,
67,
280,
67,
5701,
4672,
309,
3859,
12,
3584,
67,
280,
67,
5701,
16,
315,
4669,
3901,
6,
4672,
4073,
3997,
273,
7460,
67,
280,
67,
5701,
18,
4669,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31132,
1320,
12,
2890,
16,
7460,
67,
280,
67,
5701,
4672,
309,
3859,
12,
3584,
67,
280,
67,
5701,
16,
315,
4669,
3901,
6,
4672,
4073,
3997,
273,
7460,
67,
280,
67,
5701,
18,
4669,
39... |
in=master - master relative to which the widget is placed. | in=master - master relative to which the widget is placed in_=master - see 'in' option description | def place_configure(self, cnf={}, **kw): """Place a widget in the parent widget. Use as options: in=master - master relative to which the widget is placed. x=amount - locate anchor of this widget at position x of master y=amount - locate anchor of this widget at position y of master relx=amount - locate anchor of this ... | 5b912a16970b62a46efa1c90b9e5e7b0acaf60d5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3187/5b912a16970b62a46efa1c90b9e5e7b0acaf60d5/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3166,
67,
14895,
12,
2890,
16,
23118,
28793,
2826,
9987,
4672,
3536,
6029,
279,
3604,
316,
326,
982,
3604,
18,
2672,
487,
702,
30,
316,
33,
7525,
300,
4171,
3632,
358,
1492,
326,
3604,
... |
"init": (init, [], 'hg init'), "branch|clone": (branch, [], 'hg branch [path]'), "heads": (heads, [], 'hg heads'), "help": (help, [], 'hg help [command]'), "checkout|co": (checkout, [], 'hg checkout [changeset]'), | "add": (add, [], "hg add [files]"), "addremove": (addremove, [], "hg addremove"), | def undo(ui, repo): repo.undo() | 696aae8cd8215f7812988063e6685fe6e912a5e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/696aae8cd8215f7812988063e6685fe6e912a5e0/commands.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15436,
12,
4881,
16,
3538,
4672,
3538,
18,
31226,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15436,
12,
4881,
16,
3538,
4672,
3538,
18,
31226,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
self.cycle() | reactor.callLater(0.1, self.cycle) | def connect(self, *args, **peripheralDict): """ TODO: Add error checking and handling """ #Give the ADR a client connection to LabRAD. #ADR's use the same connection as the ADR server. #Each ADR makes LabRAD requests in its own context. | ecc133167eefb5fe6d901da9bd5da2284e919371 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/ecc133167eefb5fe6d901da9bd5da2284e919371/ADR.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
380,
1968,
16,
2826,
457,
4337,
287,
5014,
4672,
3536,
2660,
30,
1436,
555,
6728,
471,
5057,
3536,
468,
43,
688,
326,
432,
6331,
279,
1004,
1459,
358,
511,
378,
288... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
380,
1968,
16,
2826,
457,
4337,
287,
5014,
4672,
3536,
2660,
30,
1436,
555,
6728,
471,
5057,
3536,
468,
43,
688,
326,
432,
6331,
279,
1004,
1459,
358,
511,
378,
288... |
bouquets.append((info.getName(s), s)) else: serviceCount += 1 if len(bouquets) == 0 and serviceCount > 0: info = serviceHandler.info(self.bouquet_root) if not info is None: bouquets.append((info.getName(self.bouquet_root), self.bouquet_root)) return bouquets | bouquets.append((info.getName(self.bouquet_root), self.bouquet_root)) return bouquets | def getBouquetList(self): serviceCount=0 bouquets = [ ] serviceHandler = eServiceCenter.getInstance() list = serviceHandler.list(self.bouquet_root) if not list is None: while True: s = list.getNext() if not s.valid(): break if ((s.flags & eServiceReference.flagDirectory) == eServiceReference.flagDirectory): info = serv... | aa9f2235e7298a65c143678a8b75eaf6ed842462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/aa9f2235e7298a65c143678a8b75eaf6ed842462/ChannelSelection.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
1395,
28357,
682,
12,
2890,
4672,
1156,
1380,
33,
20,
800,
89,
372,
2413,
273,
306,
308,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
666,
273,
1156,
1503,
18,
1098,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2882,
1395,
28357,
682,
12,
2890,
4672,
1156,
1380,
33,
20,
800,
89,
372,
2413,
273,
306,
308,
1156,
1503,
273,
425,
1179,
8449,
18,
588,
1442,
1435,
666,
273,
1156,
1503,
18,
1098,
12... |
self.assertTrue(type(s3) is bytearray) | self.assertTrue(type(s3) is self.type2test) | def test_join(self): # Make sure join returns a NEW object for single item sequences # involving a subclass. # Make sure that it is of the appropriate type. s1 = ByteArraySubclass(b"abcd") s2 = bytearray().join([s1]) self.assertTrue(s1 is not s2) self.assertTrue(type(s2) is bytearray, type(s2)) | 41f58a70ac168c3f468d2dacb945dd88f1c89350 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/41f58a70ac168c3f468d2dacb945dd88f1c89350/test_bytes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5701,
12,
2890,
4672,
468,
4344,
3071,
1233,
1135,
279,
12887,
733,
364,
2202,
761,
8463,
468,
29876,
6282,
279,
10177,
18,
468,
4344,
3071,
716,
518,
353,
434,
326,
5505,
618,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5701,
12,
2890,
4672,
468,
4344,
3071,
1233,
1135,
279,
12887,
733,
364,
2202,
761,
8463,
468,
29876,
6282,
279,
10177,
18,
468,
4344,
3071,
716,
518,
353,
434,
326,
5505,
618,... |
return self.__reportError(diracSite['Message'],**kwargs) | return self.__reportError( diracSite['Message'], **kwargs ) | def setDestinationCE(self,ceName): """ Developer function. Allows to direct a job to a particular Grid CE. """ kwargs = {'ceName':ceName} diracSite = getSiteForCE(ceName) if not diracSite['OK']: return self.__reportError(diracSite['Message'],**kwargs) if not diracSite['Value']: return self.__reportErrror('No DIRAC sit... | 50b3322668816ba92ea3f9b253d993dc34c53a21 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/50b3322668816ba92ea3f9b253d993dc34c53a21/Job.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
5683,
1441,
12,
2890,
16,
311,
461,
4672,
3536,
14526,
445,
18,
225,
25619,
358,
2657,
279,
1719,
358,
279,
6826,
7145,
29538,
18,
3536,
1205,
273,
13666,
311,
461,
4278,
311,
461,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5683,
1441,
12,
2890,
16,
311,
461,
4672,
3536,
14526,
445,
18,
225,
25619,
358,
2657,
279,
1719,
358,
279,
6826,
7145,
29538,
18,
3536,
1205,
273,
13666,
311,
461,
4278,
311,
461,
... |
continue if req_pacs: dlg = warning_dialog(self.gld.get_widget("main_win"), req_pacs, self.icon) if dlg.run() == RESPONSE_YES: pacs_queues["remove"].extend(req_pacs) else: self.queues["remove"].remove(name) pacs_queues["remove"].remove(pac) dlg.destroy() continue if not (pacs_queues["add"] or pacs_queues["remove"]): ... | return queue, req_pacs def _execute_dep_check(self, to_check, flag): to_do = [] try: pac = self.database.get_by_name(to_check) except NameError: dlg = error_dialog(self.gld.get_widget("main_win"), _("%(dep)s is not in the database. %(dep)s is required by %(pkg)s.\nThis maybe either an error in %(pkg)s packaging or a g... | 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.execEnd() | self.execEnd(last=False) | def pushCurrent(self): if self.current_dialog is not None: self.dialog_stack.append(self.current_dialog) self.execEnd() | 5e74dc98aad36025621d14b36faeb0c649bf8b9b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/5e74dc98aad36025621d14b36faeb0c649bf8b9b/mytest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
3935,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12730,
353,
486,
599,
30,
365,
18,
12730,
67,
3772,
18,
6923,
12,
2890,
18,
2972,
67,
12730,
13,
365,
18,
4177,
1638,
12,
2722,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1817,
3935,
12,
2890,
4672,
309,
365,
18,
2972,
67,
12730,
353,
486,
599,
30,
365,
18,
12730,
67,
3772,
18,
6923,
12,
2890,
18,
2972,
67,
12730,
13,
365,
18,
4177,
1638,
12,
2722,
33... |
p.timeout(5) | p.timeout(TIMEOUT) | def connect(self, server, port): """Connect to a heat switch device.""" print 'connecting to "%s" on port "%s"...' % (server.name, port), self.server = server self.ctx = server.context() self.port = port p = self.packet() p.open(port) p.baudrate(2400) p.read() # clear out the read buffer p.timeout(5) | 0f174ddb84302973f7df262aced424f80bc99b49 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7016/0f174ddb84302973f7df262aced424f80bc99b49/heat_switch_server.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1438,
16,
1756,
4672,
3536,
5215,
358,
279,
19347,
1620,
2346,
12123,
1172,
296,
3612,
310,
358,
2213,
87,
6,
603,
1756,
2213,
87,
6,
7821,
738,
261,
3567,
18,
529,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
12,
2890,
16,
1438,
16,
1756,
4672,
3536,
5215,
358,
279,
19347,
1620,
2346,
12123,
1172,
296,
3612,
310,
358,
2213,
87,
6,
603,
1756,
2213,
87,
6,
7821,
738,
261,
3567,
18,
529,... |
m[x] = ch = chr(x & 255) self.assertEqual(m[x], ch) | b[0] = x & 255 m[x] = b self.assertEqual(m[x], b) | def test_anonymous(self): # anonymous mmap.mmap(-1, PAGE) m = mmap.mmap(-1, PAGESIZE) for x in range(PAGESIZE): self.assertEqual(m[x], '\0', "anonymously mmap'ed contents should be zero") | d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/d5ab51392e332ac6a7a37b2fca62a82b1aee9ec7/test_mmap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
19070,
12,
2890,
4672,
468,
13236,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
13,
312,
273,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
4574,
13,
364,
619,
316,
1048,
12,
1121... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19070,
12,
2890,
4672,
468,
13236,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
13,
312,
273,
30749,
18,
81,
1458,
19236,
21,
16,
11549,
4574,
13,
364,
619,
316,
1048,
12,
1121... |
def on_detached_window_close(self, window): self.stop() | def on_detached_window_close(self, window): self.stop() | 609912eea9afe254f171065668d243772922c29a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/609912eea9afe254f171065668d243772922c29a/playback.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
8238,
2004,
67,
5668,
67,
4412,
12,
2890,
16,
2742,
4672,
365,
18,
5681,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
603,
67,
8238,
2004,
67,
5668,
67,
4412,
12,
2890,
16,
2742,
4672,
365,
18,
5681,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... | |
reply = dlg.ShowModal() dlg.Destroy() | reply = dlg.ShowModal() dlg.Destroy() | def OnCloseWindow(self, event): dlg = wx.MessageDialog(self,"This will shutdown PsyCollider and close all code windows, do you want to proceed?") | 875a686f4ba7b255a5449d87dbd4a5611f7ff5e5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11200/875a686f4ba7b255a5449d87dbd4a5611f7ff5e5/Psycollider.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4605,
3829,
12,
2890,
16,
871,
4672,
25840,
273,
7075,
18,
1079,
6353,
12,
2890,
10837,
2503,
903,
5731,
453,
9009,
13535,
3585,
471,
1746,
777,
981,
9965,
16,
741,
1846,
2545,
358... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4605,
3829,
12,
2890,
16,
871,
4672,
25840,
273,
7075,
18,
1079,
6353,
12,
2890,
10837,
2503,
903,
5731,
453,
9009,
13535,
3585,
471,
1746,
777,
981,
9965,
16,
741,
1846,
2545,
358... |
def get_time(self): t = self.timer() if type(t) == type(()) or type(t) == type([]): t = reduce(lambda x,y: x+y, t, 0) return t def get_time_mac(self): return self.timer()/60.0 | def __init__(self, timer=None): self.timings = {} self.cur = None self.cmd = "" | edb5ffb2c145fc52df2195c22688db51034b08d5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/edb5ffb2c145fc52df2195c22688db51034b08d5/profile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5441,
33,
7036,
4672,
365,
18,
8584,
899,
273,
2618,
365,
18,
1397,
273,
599,
365,
18,
4172,
273,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5441,
33,
7036,
4672,
365,
18,
8584,
899,
273,
2618,
365,
18,
1397,
273,
599,
365,
18,
4172,
273,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
that expectation is not true. IF you expect a field to have | that expectation is not true. If you expect a field to have | def __init__(self, environ=os.environ): self.dict = self.data = parse(environ=environ) self.query_string = environ['QUERY_STRING'] | 06dfcf61676c7c31e2c2232d65d1d5286aee095d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/06dfcf61676c7c31e2c2232d65d1d5286aee095d/cgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
33,
538,
18,
28684,
4672,
365,
18,
1576,
273,
365,
18,
892,
273,
1109,
12,
28684,
33,
28684,
13,
365,
18,
2271,
67,
1080,
273,
5473,
3292,
10753,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5473,
33,
538,
18,
28684,
4672,
365,
18,
1576,
273,
365,
18,
892,
273,
1109,
12,
28684,
33,
28684,
13,
365,
18,
2271,
67,
1080,
273,
5473,
3292,
10753,
... |
if config.get(prefs.ENABLE_SUBTITLES): default_track = self.get_enabled_subtitle_track() if default_track is None: tracks = self.get_subtitle_tracks() if len(tracks) > 0: self.enable_subtitle_track(tracks[0]) else: self.disable_subtitles() | if hasattr(self, "pick_subtitle_track"): self.enable_subtitle_track(self.pick_subtitle_track) del self.__dict__["pick_subtitle_track"] else: if config.get(prefs.ENABLE_SUBTITLES): default_track = self.get_enabled_subtitle_track() if default_track is None: tracks = self.get_subtitle_tracks() if len(tracks) > 0: self.en... | def finish_select_file(self): if config.get(prefs.ENABLE_SUBTITLES): default_track = self.get_enabled_subtitle_track() if default_track is None: tracks = self.get_subtitle_tracks() if len(tracks) > 0: self.enable_subtitle_track(tracks[0]) else: self.disable_subtitles() | 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,
4076,
67,
4025,
67,
768,
12,
2890,
4672,
309,
642,
18,
588,
12,
1484,
2556,
18,
29377,
67,
8362,
56,
1285,
11386,
4672,
805,
67,
4101,
273,
365,
18,
588,
67,
5745,
67,
1717,
2649,
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,
4076,
67,
4025,
67,
768,
12,
2890,
4672,
309,
642,
18,
588,
12,
1484,
2556,
18,
29377,
67,
8362,
56,
1285,
11386,
4672,
805,
67,
4101,
273,
365,
18,
588,
67,
5745,
67,
1717,
2649,
67... |
m = self.copy_only(sys, self.ok_sys_names) m.modules = self.modules m.argv = ['RESTRICTED'] m.path = map(None, self.ok_path) m = self.modules['sys'] l = self.modules.keys() + list(self.ok_builtin_modules) l.sort() m.builtin_module_names = tuple(l) | m = self.copy_only(sys, self.ok_sys_names) m.modules = self.modules m.argv = ['RESTRICTED'] m.path = map(None, self.ok_path) m = self.modules['sys'] l = self.modules.keys() + list(self.ok_builtin_modules) l.sort() m.builtin_module_names = tuple(l) | def make_sys(self): | ca6ae39a786f3d7535cba0f2aef10692eb750051 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/ca6ae39a786f3d7535cba0f2aef10692eb750051/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
9499,
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,
1221,
67,
9499,
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,
-10... |
block = True | blockType = True forcePars = True | def invoke(self, tex): cb = self.ownerDocument.createElement('changebar') cb.macroMode = self.MODE_END cb.invoke(tex) return [cb] | e1749ed491da4310531e6005bb61e2456de83b06 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7864/e1749ed491da4310531e6005bb61e2456de83b06/changebar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
16,
16573,
4672,
2875,
273,
365,
18,
8443,
2519,
18,
2640,
1046,
2668,
3427,
3215,
6134,
2875,
18,
26448,
2309,
273,
365,
18,
7038,
67,
4415,
2875,
18,
14407,
12,
21763,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
16,
16573,
4672,
2875,
273,
365,
18,
8443,
2519,
18,
2640,
1046,
2668,
3427,
3215,
6134,
2875,
18,
26448,
2309,
273,
365,
18,
7038,
67,
4415,
2875,
18,
14407,
12,
21763,
... |
_fl_set_button_mouse_buttons = cfuncproto(so_libforms, "fl_set_button_mouse_buttons", None, [cty.POINTER(FL_OBJECT), cty.c_uint], | _fl_set_button_mouse_buttons = cfuncproto(so_libforms, "fl_set_button_mouse_buttons", None, [cty.POINTER(FL_OBJECT), cty.c_uint], | def fl_add_button_class(bclass, py_drawit, py_cleanup): """ fl_add_button_class(bclass, py_drawit, py_cleanup) """ c_drawit = FL_DrawButton(py_drawit) c_cleanup = FL_CleanupButton(py_cleanup) _cfunc_refs[get_rand_dictkey()] = c_drawit _cfunc_refs[get_rand_dictkey()] = c_cleanup _fl_add_button_class(bclass, c_drawit, c... | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
1289,
67,
5391,
67,
1106,
12,
70,
1106,
16,
2395,
67,
9446,
305,
16,
2395,
67,
16732,
4672,
3536,
1183,
67,
1289,
67,
5391,
67,
1106,
12,
70,
1106,
16,
2395,
67,
9446,
305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
1289,
67,
5391,
67,
1106,
12,
70,
1106,
16,
2395,
67,
9446,
305,
16,
2395,
67,
16732,
4672,
3536,
1183,
67,
1289,
67,
5391,
67,
1106,
12,
70,
1106,
16,
2395,
67,
9446,
305,... |
sys.stderr.write("Warning: Undefined behaviour for start tag %s"%name) | def startTagNew(self, name, attributes): """New HTML5 elements, "event-source", "section", "nav", "article", "aside", "header", "footer", "datagrid", "command" """ sys.stderr.write("Warning: Undefined behaviour for start tag %s"%name) self.startTagOther(name, attributes) #raise NotImplementedError | 594b8a848907751283b22737ca5120efd1316ec9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4487/594b8a848907751283b22737ca5120efd1316ec9/html5parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1908,
12,
2890,
16,
508,
16,
1677,
4672,
3536,
1908,
3982,
25,
2186,
16,
315,
2575,
17,
3168,
3113,
315,
3464,
3113,
315,
11589,
3113,
315,
11480,
3113,
315,
345,
831,
3113,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
1805,
1908,
12,
2890,
16,
508,
16,
1677,
4672,
3536,
1908,
3982,
25,
2186,
16,
315,
2575,
17,
3168,
3113,
315,
3464,
3113,
315,
11589,
3113,
315,
11480,
3113,
315,
345,
831,
3113,
... | |
if HDF5_dir is None: | if HDF5_includedir is None and HDF5_dir is None: | def check_ifnetcdf4(netcdf4_dir): try: f = open(os.path.join(netcdf4_dir,'include/netcdf.h')) except IOError: return False isnetcdf4 = False for line in f: if line.startswith('nc_inq_compound'): isnetcdf4 = True return isnetcdf4 | c01e6408fe27e6458627abbf01fb6379fe1f2926 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8103/c01e6408fe27e6458627abbf01fb6379fe1f2926/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
430,
2758,
24799,
24,
12,
2758,
24799,
24,
67,
1214,
4672,
775,
30,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
2758,
24799,
24,
67,
1214,
11189,
6702,
19,
2758,
24799,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
430,
2758,
24799,
24,
12,
2758,
24799,
24,
67,
1214,
4672,
775,
30,
284,
273,
1696,
12,
538,
18,
803,
18,
5701,
12,
2758,
24799,
24,
67,
1214,
11189,
6702,
19,
2758,
24799,
... |
all_conf_files = hashref(ConfFiles(self.api, {'enabled': True}), 'conf_file_id') | all_conf_files = ConfFiles(self.api, {'enabled': True}).dict() | def call(self, auth, node_filter = None): timestamp = int(time.time()) | 5c85cde8979a8919505b22e8c7b573c85d86f7fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/5c85cde8979a8919505b22e8c7b573c85d86f7fb/GetSlivers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
2188,
273,
599,
4672,
2858,
273,
509,
12,
957,
18,
957,
10756,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
2188,
273,
599,
4672,
2858,
273,
509,
12,
957,
18,
957,
10756,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
h.url_for(modelname=modelname, action=action, id=_pk(item)), | h.url_for(controller=controller, modelname=modelname, action=action, id=_pk(item)), | def get_linker(action, modelname=modelname): _ = get_translator().gettext label = action == 'edit' and _('edit') or _('delete') return lambda item: '<a href="%s" title="%s" class="icon %s">%s</a>' % ( h.url_for(modelname=modelname, action=action, id=_pk(item)), label, action, label) | 1b25ac1979620043815bbf1987b480ef59363816 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13203/1b25ac1979620043815bbf1987b480ef59363816/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1232,
264,
12,
1128,
16,
938,
529,
33,
2284,
529,
4672,
389,
273,
336,
67,
17879,
7675,
29967,
1433,
273,
1301,
422,
296,
4619,
11,
471,
389,
2668,
4619,
6134,
578,
389,
2668,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1232,
264,
12,
1128,
16,
938,
529,
33,
2284,
529,
4672,
389,
273,
336,
67,
17879,
7675,
29967,
1433,
273,
1301,
422,
296,
4619,
11,
471,
389,
2668,
4619,
6134,
578,
389,
2668,... |
if single_article_per_section: single_list = [] for book in self.booksByTitle: single_list.append(book) if len(single_list) > 1: short_description = '%s -\n%s' % (single_list[0]['title'], single_list[-1]['title']) | current_letter = self.booksByTitle[0]['title_sort'][0].upper() title_letters = [current_letter] current_book_list = [] current_book = "" for book in self.booksByTitle: if book['title_sort'][0].upper() != current_letter: book_list = " • ".join(current_book_list) short_description = self.generateShortDescription(... | def generateNCXByTitle(self, tocTitle, single_article_per_section=True): | 073710f405f291eedc7992694a78db2be7983d10 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/073710f405f291eedc7992694a78db2be7983d10/catalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10346,
60,
858,
4247,
12,
2890,
16,
17919,
4247,
16,
2202,
67,
11480,
67,
457,
67,
3464,
33,
5510,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
10346,
60,
858,
4247,
12,
2890,
16,
17919,
4247,
16,
2202,
67,
11480,
67,
457,
67,
3464,
33,
5510,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self._caretMovementScriptHelper(textHandler.UNIT_CHARACTER,posUnit=textHandler.UNIT_LINE,extraDetail=True) | self._caretMovementScriptHelper(textHandler.UNIT_CHARACTER,posUnit=textHandler.UNIT_LINE,extraDetail=True,handleSymbols=True) | def script_startOfLine(self,keyPress): self._caretMovementScriptHelper(textHandler.UNIT_CHARACTER,posUnit=textHandler.UNIT_LINE,extraDetail=True) | e542e903259608f1972074fd08f02ca9d350b995 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9340/e542e903259608f1972074fd08f02ca9d350b995/cursorManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
1937,
951,
1670,
12,
2890,
16,
856,
11840,
4672,
365,
6315,
71,
20731,
49,
26140,
3651,
2276,
12,
955,
1503,
18,
15736,
67,
27858,
16,
917,
2802,
33,
955,
1503,
18,
15736,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2728,
67,
1937,
951,
1670,
12,
2890,
16,
856,
11840,
4672,
365,
6315,
71,
20731,
49,
26140,
3651,
2276,
12,
955,
1503,
18,
15736,
67,
27858,
16,
917,
2802,
33,
955,
1503,
18,
15736,
67... |
<th bgcolor=" | <th bgcolor=" | 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... |
for dirpath, dirnames, filenames in os.walk(os.curdir,topdown=True): dirnames[:] = [x for x in dirnames if x not in exclude_dirs] dirpath = os.path.split for filename in filenames: if filename not in exclude_files: filename = os.path.join(dirpath,filename) print "Marking file %s for installation" % filename files_to_in... | for filename in os.listdir(path): abs_file = os.path.join(path,filename) rel_file = os.path.join(prefix,filename) if os.path.isfile(abs_file) and filename not in exclude_files: print "Marking file %s for installation" % rel_file files_to_install.append(rel_file) elif os.path.isdir(abs_file) and filename not in exclude_... | def identify_files(): #set files to a list of the files we want to install for dirpath, dirnames, filenames in os.walk(os.curdir,topdown=True): dirnames[:] = [x for x in dirnames if x not in exclude_dirs] dirpath = os.path.split for filename in filenames: if filename not in exclude_files: filename = os.path.join(dirpat... | 5a1e28f88b1fbffe6a2eb4c7ae121c5169b222af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10693/5a1e28f88b1fbffe6a2eb4c7ae121c5169b222af/install.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9786,
67,
2354,
13332,
468,
542,
1390,
358,
279,
666,
434,
326,
1390,
732,
2545,
358,
3799,
364,
1544,
316,
1140,
18,
1098,
1214,
12,
803,
4672,
2417,
67,
768,
273,
1140,
18,
803,
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,
9786,
67,
2354,
13332,
468,
542,
1390,
358,
279,
666,
434,
326,
1390,
732,
2545,
358,
3799,
364,
1544,
316,
1140,
18,
1098,
1214,
12,
803,
4672,
2417,
67,
768,
273,
1140,
18,
803,
18,
... |
setattr(obj, self.priv_variable2) | setattr(obj, self.priv_variable2, value) | def f(obj, value): setattr(obj, self.priv_variable2) | 29846db121b3201c6733cfcffedb5129c466b792 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6985/29846db121b3201c6733cfcffedb5129c466b792/_records.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
2603,
16,
460,
4672,
9241,
12,
2603,
16,
365,
18,
11365,
67,
6105,
22,
13,
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,
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,
284,
12,
2603,
16,
460,
4672,
9241,
12,
2603,
16,
365,
18,
11365,
67,
6105,
22,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
def init_job_types(config_parser, job_types = ("string", "meas_likelihoodjob", "calc_likelihood")): | runsqlitejob = None def init_job_types(config_parser, job_types = ("string", "meas_likelihoodjob", "calc_likelihood", "runsqlite")): | def compute_segment_lists(seglists, offset_vectors, min_segment_length, pad): # don't modify original seglists = seglists.copy() # ignore offset vectors referencing instruments we don't have offset_vectors = [offset_vector for offset_vector in offset_vectors if set(offset_vector.keys()).issubset(set(seglists.keys()))]... | e50861f46d5439c1c9fb86984403b1d72f14577f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5758/e50861f46d5439c1c9fb86984403b1d72f14577f/cosmicstring.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3671,
67,
9273,
67,
9772,
12,
5680,
9772,
16,
1384,
67,
18535,
16,
1131,
67,
9273,
67,
2469,
16,
4627,
4672,
468,
2727,
1404,
5612,
2282,
2291,
9772,
273,
2291,
9772,
18,
3530,
1435,
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,
3671,
67,
9273,
67,
9772,
12,
5680,
9772,
16,
1384,
67,
18535,
16,
1131,
67,
9273,
67,
2469,
16,
4627,
4672,
468,
2727,
1404,
5612,
2282,
2291,
9772,
273,
2291,
9772,
18,
3530,
1435,
2... |
def get_real_price(res_dict, product_id, pricelist): | def get_real_price(res_dict, product_id, qty, uom, pricelist): | def get_real_price(res_dict, product_id, pricelist): item_obj = self.pool.get('product.pricelist.item') price_type_obj = self.pool.get('product.price.type') product_obj = self.pool.get('product.product') template_obj = self.pool.get('product.template') field_name = 'list_price' | 95124a4a3f5b4124e6d6fd7b365643e639e0c5f7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/95124a4a3f5b4124e6d6fd7b365643e639e0c5f7/product_visible_discount.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7688,
67,
8694,
12,
455,
67,
1576,
16,
3017,
67,
350,
16,
26667,
16,
582,
362,
16,
846,
335,
5449,
4672,
761,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
683,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
7688,
67,
8694,
12,
455,
67,
1576,
16,
3017,
67,
350,
16,
26667,
16,
582,
362,
16,
846,
335,
5449,
4672,
761,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
5896,
18,
683,
3... |
class arch_armv7l(generic_arm): "Builder class for armv7l target" | class arch_armv7r(generic_arm): "Builder class for armv7r target" | def __init__(self,myspec): generic_arm.__init__(self,myspec) self.settings["CHOST"]="armv6zkl-softloat-linux-gnueabi" self.settings["CFLAGS"]="-Os -march=armv6zk -pipe" | 53fab4b752e759327ccdfc975b482828b7745033 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7327/53fab4b752e759327ccdfc975b482828b7745033/arm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
94,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
81,
1900,
705,
4672,
5210,
67,
4610,
16186,
2738,
972,
12,
2890,
16,
81,
1900,
705,
13,
365,
18,
4272,
9614,
1792,
4005,
11929,
1546,
4610,
90,
26,
94,
... |
}, lang=self.getMemberLanguage(member), mlist=self) msg = Message.UserNotification(member, requestaddr, subject, text) | }, lang=lang, mlist=self) msg = Message.UserNotification(member, reqaddr, subject, text, lang) | def sendNextNotification(self, member): info = self.getBounceInfo(member) if info is None: return if info.noticesleft <= 0: # BAW: Remove them now, with a notification message self.ApprovedDeleteMember(member, 'bouncing address', admin_notif=1, userack=1) # Expunge the pending cookie for the user. We throw away the # ... | d87205740a12b181c91a8880106f117cf809ad66 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2120/d87205740a12b181c91a8880106f117cf809ad66/Bouncer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2134,
4386,
12,
2890,
16,
3140,
4672,
1123,
273,
365,
18,
588,
38,
8386,
966,
12,
5990,
13,
309,
1123,
353,
599,
30,
327,
309,
1123,
18,
902,
1242,
4482,
1648,
374,
30,
468,
60... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
2134,
4386,
12,
2890,
16,
3140,
4672,
1123,
273,
365,
18,
588,
38,
8386,
966,
12,
5990,
13,
309,
1123,
353,
599,
30,
327,
309,
1123,
18,
902,
1242,
4482,
1648,
374,
30,
468,
60... |
ac.currentFilename = file[indexer.INDEX_FILE_NAME] ac.currentFileLocation = file[indexer.INDEX_FILE_LOCATION] | ac.currentFilename = referenceFile[indexer.INDEX_FILE_NAME] ac.currentFileLocation = referenceFile[indexer.INDEX_FILE_LOCATION] | def handleStartMoveDirectory(wfile, request, session): productionId=int(request["production_id"]) production=indexer.getProduction(productionId) sourceDirectory= str(request["source_directory"]) targetDirectory= str(request["target_directory"]) targetAbsoluteDirectory = os.path.join(production[indexer.INDEX_PRODUCTION_... | 0d45ee831a13f6613079d388ddc735757f234188 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4259/0d45ee831a13f6613079d388ddc735757f234188/servicerefactor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1685,
7607,
2853,
12,
91,
768,
16,
590,
16,
1339,
4672,
12449,
548,
33,
474,
12,
2293,
9614,
17273,
67,
350,
6,
5717,
12449,
33,
24541,
18,
588,
31590,
12,
17273,
548,
13,
1084,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
1685,
7607,
2853,
12,
91,
768,
16,
590,
16,
1339,
4672,
12449,
548,
33,
474,
12,
2293,
9614,
17273,
67,
350,
6,
5717,
12449,
33,
24541,
18,
588,
31590,
12,
17273,
548,
13,
1084,
... |
'name': '%s:%s' %(procurement.product_id.name or procurement.origin, procurement.name or ''), | 'name': '%s:%s' % name_task, | def action_produce_assign_service(self, cr, uid, ids, context={}): for procurement in self.browse(cr, uid, ids): sline = self.pool.get('sale.order.line') sale_ids = sline.search(cr, uid, [('procurement_id','=',procurement.id)], context) content = '' l = None project_id = None for line in sline.browse(cr, uid, sale_ids,... | dad9653395c1de6c799860d6e9be71f5bb231f3c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/dad9653395c1de6c799860d6e9be71f5bb231f3c/mrp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
11776,
311,
67,
6145,
67,
3278,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
5418,
594,
475,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1301,
67,
11776,
311,
67,
6145,
67,
3278,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
364,
5418,
594,
475,
316,
365,
18,
25731,
12,
3353,
16,
4555,
16,
3258,
4672,
... |
res[line.id] = res[line.id] - tax['amount'] | res[line.id] = res[line.id] - round(tax['amount'], 2) | def _amount_line(self, cr, uid, ids, name, args, context={}): """ Return the subtotal excluding taxes with respect to price_type. """ res = {} tax_obj = self.pool.get('account.tax') res = super(account_invoice_line, self)._amount_line(cr, uid, ids, name, args, context) res2 = res.copy() for line in self.browse(cr, uid,... | 56599c23364229b49096a17a97a8fb2ffffc1c21 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/56599c23364229b49096a17a97a8fb2ffffc1c21/invoice_tax_incl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8949,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
3536,
2000,
326,
720,
4963,
19560,
5320,
281,
598,
8762,
358,
6205,
67,
723,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8949,
67,
1369,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
833,
16,
819,
12938,
4672,
3536,
2000,
326,
720,
4963,
19560,
5320,
281,
598,
8762,
358,
6205,
67,
723,
18,
... |
f = open_file('/tmp/man_extra', 'wb') | f = NamedTemporaryFile() | def install_man_pages(fatal_errors): from bz2 import compress import subprocess print 'Installing MAN pages...' manpath = '/usr/share/man/man1' f = open_file('/tmp/man_extra', 'wb') f.write('[see also]\nhttp://%s.kovidgoyal.net\n'%__appname__) f.close() manifest = [] os.environ['PATH'] += ':'+os.path.expanduser('~/bin'... | 4d3f3fbf8d6b610e35204dc399c3e77cfbf2966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/4d3f3fbf8d6b610e35204dc399c3e77cfbf2966a/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
67,
4728,
67,
7267,
12,
30709,
67,
4324,
4672,
628,
24788,
22,
1930,
8099,
1930,
6652,
1172,
296,
6410,
310,
20972,
4689,
7821,
3161,
803,
273,
1173,
13640,
19,
14419,
19,
4728,
19... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4728,
67,
7267,
12,
30709,
67,
4324,
4672,
628,
24788,
22,
1930,
8099,
1930,
6652,
1172,
296,
6410,
310,
20972,
4689,
7821,
3161,
803,
273,
1173,
13640,
19,
14419,
19,
4728,
19... |
return self.variColumn and [max(M[r:r+3]) for r in range(0,len(M),self.columnMaximum)] or max(M) | if not M: return 0 if self.variColumn: columnMaximum = self.columnMaximum return [max(M[r:r+columnMaximum]) for r in range(0,len(M),self.columnMaximum)] else: return max(M) | def _calculateMaxWidth(self, colorNamePairs): "Calculate the maximum width of some given strings." M = [] a = M.append for t in self._getTexts(colorNamePairs): m = [stringWidth(s, self.fontName, self.fontSize) for s in t.split('\n')] M.append(m and max(m) or 0) return self.variColumn and [max(M[r:r+3]) for r in range(0... | 098f3bd4d85cd2c22ad61362b35f33c2aa589535 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/098f3bd4d85cd2c22ad61362b35f33c2aa589535/legends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
11162,
2747,
2384,
12,
2890,
16,
2036,
461,
10409,
4672,
315,
8695,
326,
4207,
1835,
434,
2690,
864,
2064,
1199,
490,
273,
5378,
279,
273,
490,
18,
6923,
364,
268,
316,
365,
6315,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11162,
2747,
2384,
12,
2890,
16,
2036,
461,
10409,
4672,
315,
8695,
326,
4207,
1835,
434,
2690,
864,
2064,
1199,
490,
273,
5378,
279,
273,
490,
18,
6923,
364,
268,
316,
365,
6315,
... |
def fl_scale_object(ob, xs, ys): """ fl_scale_object(ob, xs, ys) """ _fl_scale_object(ob, xs, ys) | def fl_scale_object(pObject, xs, ys): """ fl_scale_object(pObject, xs, ys) """ _fl_scale_object(pObject, xs, ys) | def fl_scale_object(ob, xs, ys): """ fl_scale_object(ob, xs, ys) """ _fl_scale_object(ob, xs, ys) | 9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
5864,
67,
1612,
12,
84,
921,
16,
9280,
16,
16036,
4672,
3536,
1183,
67,
5864,
67,
1612,
12,
84,
921,
16,
9280,
16,
16036,
13,
3536,
225,
389,
2242,
67,
5864,
67,
1612,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
5864,
67,
1612,
12,
84,
921,
16,
9280,
16,
16036,
4672,
3536,
1183,
67,
5864,
67,
1612,
12,
84,
921,
16,
9280,
16,
16036,
13,
3536,
225,
389,
2242,
67,
5864,
67,
1612,
12,
... |
wikipedia.setAction(msg[wikipedia.chooselang(wikipedia.mylang, msg)]) for pl in generator(source, old, regex, textfilename, sqlfilename): | for pl in generator(source, replacements, exceptions, regex, textfilename, sqlfilename, pagename): | def generator(source, old, regex, textfilename = None, sqlfilename = None): if source == 'sqldump': for pl in read_pages_from_sql_dump(sqlfilename, old, regex): yield pl elif source == 'textfile': for pl in read_pages_from_text_file(textfilename, old, regex): yield pl | d3596dc42562932cbc3b84fdd463983c3a41dcb7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/d3596dc42562932cbc3b84fdd463983c3a41dcb7/replace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4456,
12,
3168,
16,
1592,
16,
3936,
16,
977,
3459,
273,
599,
16,
1847,
3459,
273,
599,
4672,
309,
1084,
422,
296,
4669,
8481,
4278,
364,
886,
316,
855,
67,
7267,
67,
2080,
67,
4669,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4456,
12,
3168,
16,
1592,
16,
3936,
16,
977,
3459,
273,
599,
16,
1847,
3459,
273,
599,
4672,
309,
1084,
422,
296,
4669,
8481,
4278,
364,
886,
316,
855,
67,
7267,
67,
2080,
67,
4669,
... |
print >>sys.stderr, 'WARNING: %s has RecordComputedAction' % path | print >>sys.stderr, 'WARNING: {0} has RecordComputedAction at {1}'.\ format(path, line_number) | def GrepForActions(path, actions): """Grep a source file for calls to UserMetrics functions. Arguments: path: path to the file actions: set of actions to add to """ action_re = re.compile(r'[> ]UserMetrics:?:?RecordAction\(L"(.*)"') other_action_re = re.compile(r'[> ]UserMetrics:?:?RecordAction\(') computed_action_re... | 89622004872be7f7ddaa24fa1694f76c7b9539b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/89622004872be7f7ddaa24fa1694f76c7b9539b6/extract_actions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
611,
14462,
1290,
6100,
12,
803,
16,
4209,
4672,
3536,
43,
14462,
279,
1084,
585,
364,
4097,
358,
2177,
5653,
4186,
18,
225,
13599,
30,
589,
30,
589,
358,
326,
585,
4209,
30,
444,
434,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
611,
14462,
1290,
6100,
12,
803,
16,
4209,
4672,
3536,
43,
14462,
279,
1084,
585,
364,
4097,
358,
2177,
5653,
4186,
18,
225,
13599,
30,
589,
30,
589,
358,
326,
585,
4209,
30,
444,
434,... |
obj = REQUEST.resolve_url(url, REQUEST) | obj = self.resolve_url(url, REQUEST) | def manage_uncatalogObject(self, REQUEST, urls=None): """ removes Zope object 'urls' from catalog """ | 9b4f7bf919597f25b7a5ac3395eb72ac2415c82d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/9b4f7bf919597f25b7a5ac3395eb72ac2415c82d/ZCatalog.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10680,
67,
551,
4392,
921,
12,
2890,
16,
12492,
16,
6903,
33,
7036,
4672,
3536,
7157,
2285,
1306,
733,
296,
10518,
11,
628,
6222,
3536,
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,
0,
0,
0,
0,
0,
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,
10680,
67,
551,
4392,
921,
12,
2890,
16,
12492,
16,
6903,
33,
7036,
4672,
3536,
7157,
2285,
1306,
733,
296,
10518,
11,
628,
6222,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.num_includes = 0 self.max_includes = 20 | self.included_documents = [] | def __init__(self, request): self.request = request | f9853dbb165a9c2f6c5c82fc1d2c76362668e844 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5620/f9853dbb165a9c2f6c5c82fc1d2c76362668e844/rst.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
365,
18,
2293,
273,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
590,
4672,
365,
18,
2293,
273,
590,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
raise Exception("Internal Exception") | return alertError(_(u"This type of account does not support testing"), self) | def OnTestAccount(self, evt): account = self.getSelectedAccount() | 546b110f847c3a5063d84de2ae5d5ca821cc6ab8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9228/546b110f847c3a5063d84de2ae5d5ca821cc6ab8/AccountPreferences.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2755,
4709,
3032,
12,
2890,
16,
6324,
4672,
2236,
273,
365,
18,
588,
7416,
3032,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
2755,
4709,
3032,
12,
2890,
16,
6324,
4672,
2236,
273,
365,
18,
588,
7416,
3032,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
terms = string.split(string.lower(re.sub(chars_alphanumericseparators, ' ', term))) | terms = string.split(string.lower(re.sub(methods[rank_method_code]["chars_alphanumericseparators"], ' ', term))) | def word_frequency(rank_method_code, lwords, hitset, rank_limit_relevance,verbose): """input: list of words, ['ellis', 'muon'] optional list of recIDs output: sorted list of recIDs by summary word frequencies, e.g. [[23,34], [344,24], [1,01]] if not possible (e.g. all stopwords), then return empty list""" global voutp... | 2b7ec6adb61acaf4f4c7868f48416243cf69c71b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/2b7ec6adb61acaf4f4c7868f48416243cf69c71b/bibrank_record_sorter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
14092,
12,
11500,
67,
2039,
67,
710,
16,
328,
3753,
16,
6800,
542,
16,
6171,
67,
3595,
67,
16599,
5882,
16,
11369,
4672,
3536,
2630,
30,
666,
434,
4511,
16,
10228,
1165,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2076,
67,
14092,
12,
11500,
67,
2039,
67,
710,
16,
328,
3753,
16,
6800,
542,
16,
6171,
67,
3595,
67,
16599,
5882,
16,
11369,
4672,
3536,
2630,
30,
666,
434,
4511,
16,
10228,
1165,
291,... |
alpha_available = [point[4] for point in grid if point[1] in FeH_neighbours and point[0] in Teff_neighbours and point[1] in logg_neighbours and point[3] in k_neighbours] | def getNearestNeighbours(model, Teff, logg, FeH, k=2.0, alpha=0.0, level=1): """ Finds the nearest neighbours to a point in a multi-dimensional grid. Parameters: =========== FeH : float The metallicity ([Fe/H]) of the star you plan to interpolate for. Teff : float The effective temperature (Teff in Kelvin)... | e1f4ffdd45680f33feef2b078115e7fc26ccf7a2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7433/e1f4ffdd45680f33feef2b078115e7fc26ccf7a2/interpolate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
28031,
13577,
4390,
12,
2284,
16,
399,
17098,
16,
31443,
16,
5782,
44,
16,
417,
33,
22,
18,
20,
16,
4190,
33,
20,
18,
20,
16,
1801,
33,
21,
4672,
225,
3536,
225,
4163,
87,
326... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
28031,
13577,
4390,
12,
2284,
16,
399,
17098,
16,
31443,
16,
5782,
44,
16,
417,
33,
22,
18,
20,
16,
4190,
33,
20,
18,
20,
16,
1801,
33,
21,
4672,
225,
3536,
225,
4163,
87,
326... | |
animDictItems.append((partName, animDict)) | animDictItems.append((pName, animDict)) | def getAnimControls(self, animName=None, partName=None, lodName=None): """getAnimControls(self, string, string=None, string=None) | 700fa25e6dd12d18f31829fa4d692c52fa2c4e51 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7242/700fa25e6dd12d18f31829fa4d692c52fa2c4e51/Actor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
20892,
16795,
12,
2890,
16,
10536,
461,
33,
7036,
16,
1087,
461,
33,
7036,
16,
328,
369,
461,
33,
7036,
4672,
3536,
588,
20892,
16795,
12,
2890,
16,
533,
16,
533,
33,
7036,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20892,
16795,
12,
2890,
16,
10536,
461,
33,
7036,
16,
1087,
461,
33,
7036,
16,
328,
369,
461,
33,
7036,
4672,
3536,
588,
20892,
16795,
12,
2890,
16,
533,
16,
533,
33,
7036,
16,
... |
logging.critical("Traffic Shaping Exception ", e) | logging.critical("Traffic Shaping Exception: %s ", e) | def set_traffic_shaping(self, up_bandwidth = '0', down_bandwidth = '0', delay_ms = '0', packet_loss_rate = '0'): """Start shaping traffic. | ec5899bdbf8e979d50790730ada20cdcbe66824b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3776/ec5899bdbf8e979d50790730ada20cdcbe66824b/platformsettings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19231,
67,
674,
24447,
12,
2890,
16,
731,
67,
29750,
273,
296,
20,
2187,
2588,
67,
29750,
273,
296,
20,
2187,
4624,
67,
959,
273,
296,
20,
2187,
4414,
67,
7873,
67,
5141,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
19231,
67,
674,
24447,
12,
2890,
16,
731,
67,
29750,
273,
296,
20,
2187,
2588,
67,
29750,
273,
296,
20,
2187,
4624,
67,
959,
273,
296,
20,
2187,
4414,
67,
7873,
67,
5141,
27... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.