rem stringlengths 2 226k | add stringlengths 0 227k | context stringlengths 8 228k | meta stringlengths 156 215 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
assert_valid_index(idx, w_obj) return w_obj, idx, w_val | assert_valid_index(idx-1, w_obj) return w_obj, idx-1, w_val | def common_at_put((w_obj, w_idx, w_val)): idx = unwrap_int(w_idx) # XXX should be idx-1, probably assert_valid_index(idx, w_obj) return w_obj, idx, w_val | 1cd2f94f24d85594410fffacac763d4908fd214b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/1cd2f94f24d85594410fffacac763d4908fd214b/primitives.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
270,
67,
458,
12443,
91,
67,
2603,
16,
341,
67,
3465,
16,
341,
67,
1125,
3719,
30,
2067,
273,
11014,
67,
474,
12,
91,
67,
3465,
13,
468,
11329,
1410,
506,
2067,
17,
21,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2975,
67,
270,
67,
458,
12443,
91,
67,
2603,
16,
341,
67,
3465,
16,
341,
67,
1125,
3719,
30,
2067,
273,
11014,
67,
474,
12,
91,
67,
3465,
13,
468,
11329,
1410,
506,
2067,
17,
21,
1... |
avail = self.pkgSack.returnNewestByNameArch(patterns=patterns, | avail = self.pkgSack.returnNewestByNameArch(patterns=patterns, | def doPackageLists(self, pkgnarrow='all', patterns=None, showdups=None, ignore_case=False): """generates lists of packages, un-reduced, based on pkgnarrow option""" | 73608510136c99d64d53a82d34851986935d56d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/73608510136c99d64d53a82d34851986935d56d3/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
2261,
7432,
12,
2890,
16,
2365,
1600,
7815,
2218,
454,
2187,
6884,
33,
7036,
16,
2405,
72,
18294,
33,
7036,
16,
2305,
67,
3593,
33,
8381,
4672,
3536,
3441,
815,
6035,
434,
5907,
1... |
def _str(self,structure,level): | def _str(self,structure,level, bullet=ts_regex.compile('[ \t\n]*[o*-][ \t\n]+\([^\0]*\)' ).match_group, example=ts_regex.compile('[\0- ]examples?:[\0- ]*$' ).search, dl=ts_regex.compile('\([^\n]+\)[ \t]+--[ \t\n]+\([^\0]*\)' ).match_group, nl=ts_regex.compile('\n').search, ol=ts_regex.compile( '[ \t]*\(\([0-9]+\|[a-zA... | def _str(self,structure,level): r='' for s in structure: # print s[0],'\n', len(s[1]), '\n\n' ts_results = bullet.match_group(s[0], (1,)) if ts_results: p = ts_results[1] r=self.ul(r,p,self._str(s[1],level)) else: ts_results = ol.match_group(s[0], (3,)) if ts_results: p = ts_results[1] r=self.ol(r,p,self._str(s[1],lev... | b0fc40be7f6311ce8b53427d0435318a0e976412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/b0fc40be7f6311ce8b53427d0435318a0e976412/StructuredText.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
701,
12,
2890,
16,
7627,
16,
2815,
16,
225,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
20,
277... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
12,
2890,
16,
7627,
16,
2815,
16,
225,
31650,
33,
3428,
67,
7584,
18,
11100,
2668,
63,
521,
88,
64,
82,
5772,
63,
83,
14,
17,
6362,
521,
88,
64,
82,
26446,
19042,
20,
277... |
self.verbose = verbose | def __init__(self, arch, listfile, binfile, verbose=False): self.verbose = verbose self.arch = arch self.listfile = listfile self.binfile = binfile self.srcfile = None self.verbose = verbose self.opcodes = OPCODES[self.arch] self.symtab = SymbolTable(self) self.linenum = 0 self.global_linenum = 0 self.mode = OpcodeType... | aa2487a16b40e95f65eefb24726b03a4319e7554 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8152/aa2487a16b40e95f65eefb24726b03a4319e7554/assembler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
6637,
16,
666,
768,
16,
4158,
768,
16,
3988,
33,
8381,
4672,
365,
18,
991,
273,
6637,
365,
18,
1098,
768,
273,
666,
768,
365,
18,
4757,
768,
273,
4158,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6637,
16,
666,
768,
16,
4158,
768,
16,
3988,
33,
8381,
4672,
365,
18,
991,
273,
6637,
365,
18,
1098,
768,
273,
666,
768,
365,
18,
4757,
768,
273,
4158,... | |
'WHERE '+self._table+'.id IN ('+ids_str+')'+' and '.join(d1), d2) | 'WHERE '+self._table+'.id IN ('+ids_str+')'+d1, d2) | def write(self, cr, user, ids, vals, context=None): readonly = None for field in vals.copy(): fobj = None if field in self._columns: fobj = self._columns[field] else: fobj = self._inherit_fields[field][2] if not fobj: continue groups = fobj.write | 2066752cd337d55e8862acbb15a39dc95e67f310 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/2066752cd337d55e8862acbb15a39dc95e67f310/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
4422,
16,
729,
16,
3258,
16,
5773,
16,
819,
33,
7036,
4672,
17102,
273,
599,
364,
652,
316,
5773,
18,
3530,
13332,
24705,
273,
599,
309,
652,
316,
365,
6315,
5112,
... |
2 => install_file_path is a Folder''' 1 => update file 2 => upgrade file | 2 => install_file_path is a Folder ''' | def syncer(install_file_path, target_path, path_type=None, file_type=None): '''Syncer does the work of syncing the downloaded files. It syncs "install_file_path" which could be a valid file path or a zip archive to "target_path" path_type defines whether install_file_path is a zip file or a folder path # path_type 1 =... | bf27eda3758a3b77fdeff5b846a63c1c8feb3962 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/bf27eda3758a3b77fdeff5b846a63c1c8feb3962/pypt_core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
264,
12,
5425,
67,
768,
67,
803,
16,
1018,
67,
803,
16,
589,
67,
723,
33,
7036,
16,
585,
67,
723,
33,
7036,
4672,
9163,
4047,
264,
1552,
326,
1440,
434,
3792,
310,
326,
13549,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3792,
264,
12,
5425,
67,
768,
67,
803,
16,
1018,
67,
803,
16,
589,
67,
723,
33,
7036,
16,
585,
67,
723,
33,
7036,
4672,
9163,
4047,
264,
1552,
326,
1440,
434,
3792,
310,
326,
13549,
... |
str(self.lfnGroup)) | lfnGroup) | def __call__(self, node): """ _operator(JobSpecNode)_ | 49ab424653b0da15e75c1e31fd1d4ad4581dffcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8886/49ab424653b0da15e75c1e31fd1d4ad4581dffcd/LFNAlgorithm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
756,
4672,
3536,
389,
9497,
12,
2278,
1990,
907,
13,
67,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
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,
1001,
1991,
972,
12,
2890,
16,
756,
4672,
3536,
389,
9497,
12,
2278,
1990,
907,
13,
67,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
for word, nbhits in browsed_words_in_colls[:-1]: | for phrase, nbhits in browsed_phrases_in_colls[:-1]: | def browse_pattern(req, colls, p, f, rg): """Browse either biliographic phrases or words indexes, and display it.""" ## do we search in words indexes? if not f: return browse_in_bibwords(req, p, f) ## prepare collection urlargument for later printing: p_orig = p urlarg_colls = "" for coll in colls: urlarg_colls += "&c=... | c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/c8bc8e9e8dcaad50892504a6b2ad935d0e8bb72d/search_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
21670,
67,
4951,
12,
3658,
16,
645,
3251,
16,
293,
16,
284,
16,
14524,
4672,
3536,
27304,
3344,
324,
15700,
16983,
31413,
578,
4511,
5596,
16,
471,
2562,
518,
12123,
7541,
741,
732,
1623... |
waste = self.rfile._sock.recv(1) | if not self.rfile._sock.recv(1): break | def run_cgi(self): """Execute a CGI script.""" dir, rest = self.cgi_info i = rest.rfind('?') if i >= 0: rest, query = rest[:i], rest[i+1:] else: query = '' i = rest.find('/') if i >= 0: script, rest = rest[:i], rest[i:] else: script, rest = rest, '' scriptname = dir + '/' + script scriptfile = self.translate_path(scrip... | 7a40b14b65083150d38e48641c61432e7d35308f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/7a40b14b65083150d38e48641c61432e7d35308f/CGIHTTPServer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
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,
1086,
67,
19062,
12,
2890,
4672,
3536,
5289,
279,
385,
13797,
2728,
12123,
1577,
16,
3127,
273,
365,
18,
19062,
67,
1376,
277,
273,
3127,
18,
86,
4720,
2668,
4899,
13,
309,
277,
1545,
... |
if format != 'group': return tag.ul([tag.li(tag.a(wiki.format_page_name(page), href=formatter.href.wiki(page))) for page in pages if depth < 0 or depth >= page.count('/') - start]) pages = [(self.SPLIT_RE.split(wiki.format_page_name(page, split=True)), page) for page in pages if depth < 0 or depth >= page.count('/') ... | def split_pages_group(pages): return [(self.SPLIT_RE.split( wiki.format_page_name(page, split=True)), page) for page in pages if depth < 0 or depth >= page.count('/') - start] def split_pages_hierarchy(pages): return [(wiki.format_page_name(page).split("/"), page) for page in pages if depth < 0 or depth >= page.cou... | def expand_macro(self, formatter, name, content): args, kw = parse_args(content) prefix = args and args[0] or None format = kw.get('format', '') minsize = max(int(kw.get('min', 2)), 2) depth = int(kw.get('depth', -1)) start = prefix and prefix.count('/') or 0 | 804921c99570db1f5294c275052d8c26285e903e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/804921c99570db1f5294c275052d8c26285e903e/macros.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
26448,
12,
2890,
16,
4453,
16,
508,
16,
913,
4672,
833,
16,
5323,
273,
1109,
67,
1968,
12,
1745,
13,
1633,
273,
833,
471,
833,
63,
20,
65,
578,
599,
740,
273,
5323,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
67,
26448,
12,
2890,
16,
4453,
16,
508,
16,
913,
4672,
833,
16,
5323,
273,
1109,
67,
1968,
12,
1745,
13,
1633,
273,
833,
471,
833,
63,
20,
65,
578,
599,
740,
273,
5323,
18,
5... |
hub_stats = {} | def make_table(database): c = sqlite3.connect(database) res = c.execute(('select command_record.id, testname, hub, runs, errors, fails, ' 'timeouts, exitcode, stdout from parsed_command_record join ' 'command_record on parsed_command_record.id=command_record.id ')).fetchall() table = {} # testname -> hub -> test_result... | 8d522fc4736968ac3cd598ebbea9e2c50311575c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10078/8d522fc4736968ac3cd598ebbea9e2c50311575c/generate_report.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
6231,
4672,
276,
273,
16184,
23,
18,
3612,
12,
6231,
13,
400,
273,
276,
18,
8837,
12,
2668,
4025,
1296,
67,
3366,
18,
350,
16,
1842,
529,
16,
11891,
16,
7597,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
67,
2121,
12,
6231,
4672,
276,
273,
16184,
23,
18,
3612,
12,
6231,
13,
400,
273,
276,
18,
8837,
12,
2668,
4025,
1296,
67,
3366,
18,
350,
16,
1842,
529,
16,
11891,
16,
7597,
16,... | |
"""Format a Decimal class according to the given specifier. | """Format a Decimal instance according to the given specifier. | def __format__(self, specifier, context=None): """Format a Decimal class according to the given specifier. | 50d3530b3f666bdfee31a889ad68e54d92dae975 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8125/50d3530b3f666bdfee31a889ad68e54d92dae975/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2139,
972,
12,
2890,
16,
24562,
16,
819,
33,
7036,
4672,
3536,
1630,
279,
11322,
667,
4888,
358,
326,
864,
24562,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2139,
972,
12,
2890,
16,
24562,
16,
819,
33,
7036,
4672,
3536,
1630,
279,
11322,
667,
4888,
358,
326,
864,
24562,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
movfp st(0), ufp1, spm=1 | movfp ufp1, st(0), spm=1 | def macroop FSTP_P { movfp st(0), ufp1, spm=1 rdip t7 stfp ufp1, seg, riprel, disp | e3fed881adcb3cc0a96acaf54cf14bae77e31983 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7385/e3fed881adcb3cc0a96acaf54cf14bae77e31983/load_or_store_floating_point.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
478,
882,
52,
67,
52,
288,
5730,
7944,
582,
7944,
21,
16,
384,
12,
20,
3631,
1694,
81,
33,
21,
9437,
625,
268,
27,
384,
7944,
582,
7944,
21,
16,
2291,
16,
436,
625,
287... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
478,
882,
52,
67,
52,
288,
5730,
7944,
582,
7944,
21,
16,
384,
12,
20,
3631,
1694,
81,
33,
21,
9437,
625,
268,
27,
384,
7944,
582,
7944,
21,
16,
2291,
16,
436,
625,
287... |
if slide_num < 0: slide_num = 5000 - slide_num for row in self: if row.get_slide_number() == slide_num: slideTrigs.append(row) | slideTrigs.extend([row for row in self if row.get_slide_num() == slide_num]) | def getslide(self,slide_num): """ Return the triggers with a specific slide number. @param slide_num: the slide number to recover (contained in the event_id) """ slideTrigs = table.new_from_template(self) if slide_num < 0: slide_num = 5000 - slide_num for row in self: if row.get_slide_number() == slide_num: slideTrigs.... | 07bf3d64f811d58d596b89a0b4ffa79abf908006 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3589/07bf3d64f811d58d596b89a0b4ffa79abf908006/lsctables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5571,
8130,
12,
2890,
16,
26371,
67,
2107,
4672,
3536,
2000,
326,
11752,
598,
279,
2923,
12701,
1300,
18,
632,
891,
12701,
67,
2107,
30,
326,
12701,
1300,
358,
5910,
261,
1213,
8707,
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,
5571,
8130,
12,
2890,
16,
26371,
67,
2107,
4672,
3536,
2000,
326,
11752,
598,
279,
2923,
12701,
1300,
18,
632,
891,
12701,
67,
2107,
30,
326,
12701,
1300,
358,
5910,
261,
1213,
8707,
316... |
x = self.X(x) + (w/2) y = self.Y(y) + (h/2) | x = self.X(x) + (w/2) y = self.Y(y) + (h/2) | def old_subimage(self, x, y, w, h, center=None): """DO NOT USE This is the subimage method from the original Image class. """ if center: x = self.X(x) + (w/2) y = self.Y(y) + (h/2) return Image(image=self.im.subsurface((x, y, w, h))) | 3763f0b3aa7cf75cc46d269ddf344b4389187b6d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5701/3763f0b3aa7cf75cc46d269ddf344b4389187b6d/sprite.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
67,
1717,
2730,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
4617,
33,
7036,
4672,
3536,
3191,
4269,
14988,
225,
1220,
353,
326,
720,
2730,
707,
628,
326,
2282,
3421,
667,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1592,
67,
1717,
2730,
12,
2890,
16,
619,
16,
677,
16,
341,
16,
366,
16,
4617,
33,
7036,
4672,
3536,
3191,
4269,
14988,
225,
1220,
353,
326,
720,
2730,
707,
628,
326,
2282,
3421,
667,
... |
self.ChatScroll = gtk.TextView() self.ChatScroll.set_wrap_mode(gtk.WRAP_WORD) self.ChatScroll.set_cursor_visible(False) self.ChatScroll.set_editable(False) self.ChatScroll.show() self.scrolledwindow16.add(self.ChatScroll) self.Main.pack_start(self.scrolledwindow16) | self.ChatScroll1 = gtk.TextView() self.ChatScroll1.set_wrap_mode(gtk.WRAP_WORD) self.ChatScroll1.set_cursor_visible(False) self.ChatScroll1.set_editable(False) self.ChatScroll1.show() self.scrolledwindow16.add(self.ChatScroll1) self.Main1.pack_start(self.scrolledwindow16) | def __init__(self, create = True, accel_group = None, tooltips = None): if accel_group is None: self.accel_group = gtk.AccelGroup() else: self.accel_group = accel_group if tooltips is None: self.tooltips = gtk.Tooltips() else: self.tooltips = tooltips self.tooltips.enable() if create: self.PrivateChatTab = gtk.Window()... | 363cba988d4bed5afdae4b3f448f4bf00e734531 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8738/363cba988d4bed5afdae4b3f448f4bf00e734531/nicotine_glade.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
752,
273,
1053,
16,
15153,
67,
1655,
273,
599,
16,
358,
4397,
7146,
273,
599,
4672,
309,
15153,
67,
1655,
353,
599,
30,
365,
18,
30737,
67,
1655,
273,
... |
outfile = string.upper(outfile) outfile = outfile + '.py' | modname = outfile.upper() outfile = modname + '.py' | def main(): global filedict opts, args = getopt.getopt(sys.argv[1:], 'i:') for o, a in opts: if o == '-i': ignores.append(regex.compile(a)) if not args: args = ['-'] for filename in args: if filename == '-': sys.stdout.write('# Generated by h2py from stdin\n') process(sys.stdin, sys.stdout) else: fp = open(filename, 'r... | 068ebea00c4235cbccf55143de6e8930e9eaeab7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/068ebea00c4235cbccf55143de6e8930e9eaeab7/h2py.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
585,
1576,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
2497,
13,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
2552,
585,
1576,
1500,
16,
833,
273,
336,
3838,
18,
588,
3838,
12,
9499,
18,
19485,
63,
21,
30,
6487,
296,
77,
2497,
13,
364,
320,
16,
279,
316,
1500,
30,
309,
320,
422,... |
if L>0: p.Size = L elif python_type == types.BufferType: | if string_len > 0: p.Size = string_len elif isinstance(elem, buffer): | def _executeHelper(self,operation,isStoredProcedureCall,parameters=None): if self.conn is None: self._raiseCursorError(Error,None) return | 59f15f5710dd451b33216701b567320d565acaf4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1254/59f15f5710dd451b33216701b567320d565acaf4/adodb_django.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8837,
2276,
12,
2890,
16,
7624,
16,
291,
18005,
17213,
1477,
16,
3977,
33,
7036,
4672,
309,
365,
18,
4646,
353,
599,
30,
365,
6315,
11628,
6688,
668,
12,
668,
16,
7036,
13,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8837,
2276,
12,
2890,
16,
7624,
16,
291,
18005,
17213,
1477,
16,
3977,
33,
7036,
4672,
309,
365,
18,
4646,
353,
599,
30,
365,
6315,
11628,
6688,
668,
12,
668,
16,
7036,
13,
327,
... |
parser.add_option('-d', '--debug', action='count', dest='debug', help='Enable debugging information (twice for debug server)') | def parse_options(): """Parse the command line options""" usage = "usage: %prog [options]" configobj = config.Config() parser = OptionParser(usage) parser.add_option('-v', '--version', action='store_true', dest='version', help='Display program version') parser.add_option('-d', '--debug', action='count', dest='debug',... | 7509acea7ca2e8f18c9440e0f22c9f05dcdee2c9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1032/7509acea7ca2e8f18c9440e0f22c9f05dcdee2c9/optionparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2116,
13332,
3536,
3201,
326,
1296,
980,
702,
8395,
4084,
273,
315,
9167,
30,
738,
14654,
306,
2116,
4279,
225,
642,
2603,
273,
642,
18,
809,
1435,
2082,
273,
18862,
12,
9167,
... | |
class POLYLINETO16(POLYBEZIER16): | class _POLYLINETO16(_POLYBEZIER16): | def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.apts)) return txt.getvalue() | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
6463,
18,
2626,
31458,
88,
4139,
30,
738,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
69,
1092,
3719,
225,
327,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
6463,
18,
2626,
31458,
88,
4139,
30,
738,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
69,
1092,
3719,
225,
327,
64... |
ret.append(' | d = unicode_to_str(self._desc).replace('\n', '\n ret.append(' | def _cfg_string(self, prefix, print_desc=True): """ Convert object into a string to write into a config file. """ ret = [] prefix = prefix + self._name if type(self._schema) == Var and print_desc: # TODO: more detailed comments, show full spec of var and some examples. ret.append('#\n# %s\n# %s\n#\n' % (prefix, unicode... | 7564504359a58bf3c53ed875a81c21949f0d85b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11722/7564504359a58bf3c53ed875a81c21949f0d85b0/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7066,
67,
1080,
12,
2890,
16,
1633,
16,
1172,
67,
5569,
33,
5510,
4672,
3536,
4037,
733,
1368,
279,
533,
358,
1045,
1368,
279,
642,
585,
18,
3536,
325,
273,
5378,
1633,
273,
1633,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7066,
67,
1080,
12,
2890,
16,
1633,
16,
1172,
67,
5569,
33,
5510,
4672,
3536,
4037,
733,
1368,
279,
533,
358,
1045,
1368,
279,
642,
585,
18,
3536,
325,
273,
5378,
1633,
273,
1633,... |
if node['nodenetwork_ids']: nodenetworks = NodeNetworks(self.api, node['nodenetwork_ids']).values() else: nodenetworks = [] nodenetworks = [dict(nodenetwork) for nodenetwork in nodenetworks] return nodenetworks | return GetNodeNetworks.call(self, auth, node['nodenetwork_ids']) | def call(self, auth, node_id_or_hostname): # Authenticated function assert self.caller is not None | 55fe7cdeaaad4c650261e3bf414297c3fbc95259 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7598/55fe7cdeaaad4c650261e3bf414297c3fbc95259/AdmGetAllNodeNetworks.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
67,
280,
67,
10358,
4672,
468,
3123,
6096,
445,
1815,
365,
18,
16140,
353,
486,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
745,
12,
2890,
16,
1357,
16,
756,
67,
350,
67,
280,
67,
10358,
4672,
468,
3123,
6096,
445,
1815,
365,
18,
16140,
353,
486,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetStatusText(... | if self: selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0) self.HelpBar.SetSt... | def RefreshStatusBar(self): selected = self.NetworkNodes.GetSelection() if self.HelpBar and selected >= 0: window = self.NetworkNodes.GetPage(selected) selection = window.GetSelection() if selection: index, subIndex = selection if self.NodeList.IsCurrentEntry(index): self.HelpBar.SetStatusText("Index: 0x%04X"%index, 0)... | 47774f7307a9d341c746d84fac544b7ed2ab5fe7 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11017/47774f7307a9d341c746d84fac544b7ed2ab5fe7/networkedit.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14179,
1482,
5190,
12,
2890,
4672,
309,
365,
30,
3170,
273,
365,
18,
3906,
3205,
18,
967,
6233,
1435,
309,
365,
18,
6696,
5190,
471,
3170,
1545,
374,
30,
2742,
273,
365,
18,
3906,
3205... |
elif left_protocol == 'irc': if p.xmpp_c == 'both': was_on_both = True | if left_protocol == 'irc': | def removeParticipant(self, left_protocol, nickname, leave_message): """Remove the participant using nickname from the bridge. Raises a NoSuchParticipantException if nickname is not used in the bridge.""" was_on_both = None p = self.getParticipant(nickname) if p.protocol == 'xmpp': if left_protocol == 'irc': was_on_bo... | 149dd43020f1e98a97573a2bc38f82171b550782 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9915/149dd43020f1e98a97573a2bc38f82171b550782/bridge.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
22540,
12,
2890,
16,
2002,
67,
8373,
16,
19570,
16,
8851,
67,
2150,
4672,
3536,
3288,
326,
14188,
1450,
19570,
628,
326,
10105,
18,
20497,
279,
5823,
22540,
503,
309,
19570,
353,
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,
22540,
12,
2890,
16,
2002,
67,
8373,
16,
19570,
16,
8851,
67,
2150,
4672,
3536,
3288,
326,
14188,
1450,
19570,
628,
326,
10105,
18,
20497,
279,
5823,
22540,
503,
309,
19570,
353,
4... |
os.system('%s "%s" openalea'%(sys.executable, os.path.basename(__file__))) | os.system('%s "%s" openalea'%(sys.executable, __file__)) | def ParseParameters(): """This is the main parsing function to get user arguments""" usage = """Usage: %prog [options] Example: >>> python ez_alea_setup.py --install-dir /home/user/openalea >>> python ez_alea_setup.py """ parser = OptionParser(usage=usage, \ version="%prog CVS $Id: download.py 1546 2009-01-15 14:20:3... | d6839482c5335f263676c722397996d2585f19dc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4914/d6839482c5335f263676c722397996d2585f19dc/ez_alea_setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
2402,
13332,
3536,
2503,
353,
326,
2774,
5811,
445,
358,
336,
729,
1775,
8395,
225,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
2116,
65,
225,
5090,
30,
4080,
5790,
8012,
67,
5349,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2884,
2402,
13332,
3536,
2503,
353,
326,
2774,
5811,
445,
358,
336,
729,
1775,
8395,
225,
4084,
273,
3536,
5357,
30,
738,
14654,
306,
2116,
65,
225,
5090,
30,
4080,
5790,
8012,
67,
5349,... |
p11 = FakePackage('perl', '1', '1', '0', 'i386') | pi11 = FakePackage('perl', '1', '1', '0', 'i386') pr11 = FakePackage('perl', '1', '1', '0', 'i386') | def testUpdateMultiRequiresVersions4(self): p11 = FakePackage('perl', '1', '1', '0', 'i386') p12 = FakePackage('perl', '1', '2', '0', 'i386') | 6a23ca8e00877ebb3ae8ffc0444acb278bcf940b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5445/6a23ca8e00877ebb3ae8ffc0444acb278bcf940b/simpleupdatetests.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1891,
5002,
21671,
5940,
24,
12,
2890,
4672,
4790,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
846,
2499,
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,
1842,
1891,
5002,
21671,
5940,
24,
12,
2890,
4672,
4790,
2499,
273,
11551,
2261,
2668,
457,
80,
2187,
296,
21,
2187,
296,
21,
2187,
296,
20,
2187,
296,
77,
23,
5292,
6134,
846,
2499,
2... |
def read(self, wtd): | def read(self, totalwtd): | def read(self, wtd): | e3c3ec9c4e7c9095d966bf4ecb7ace0824410412 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/e3c3ec9c4e7c9095d966bf4ecb7ace0824410412/binhex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
12,
2890,
16,
341,
4465,
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,... |
plot_path = "%s_ALIGN.png" % (basename) plot.plot(plot_path) | plot_file = "%s_ALIGN.png" % (basename) plot.plot(plot_file) | def html_multi_chain_alignment(self): """Write out all HTML/PDB/TLSIN files which compare chains in the structure. """ title = self.page_multi_chain_alignment["title"] | 81092918682cb3b404793cc6abd4020f9621498a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10674/81092918682cb3b404793cc6abd4020f9621498a/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1729,
67,
7027,
67,
5639,
67,
14409,
12,
2890,
4672,
3536,
3067,
596,
777,
3982,
19,
52,
2290,
19,
9905,
706,
1390,
1492,
3400,
13070,
316,
326,
3695,
18,
3536,
2077,
273,
365,
18,
243... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1729,
67,
7027,
67,
5639,
67,
14409,
12,
2890,
4672,
3536,
3067,
596,
777,
3982,
19,
52,
2290,
19,
9905,
706,
1390,
1492,
3400,
13070,
316,
326,
3695,
18,
3536,
2077,
273,
365,
18,
243... |
return self | def __init__(self, parent, parent_pool): """ Create a new pool that is a sub-pool of `parent_pool`, and arrange for `self.close` to be called up when the `parent` object is destroyed. The `parent` object must be weak-referenceable. The returned `Pool` instance will have the value of the newly created pool. """ self.p... | 49a6a8628b2faed066712b77f631d65bf31f507c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/49a6a8628b2faed066712b77f631d65bf31f507c/svn_fs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
982,
67,
6011,
4672,
3536,
1788,
279,
394,
2845,
716,
353,
279,
720,
17,
6011,
434,
1375,
2938,
67,
6011,
9191,
471,
2454,
726,
364,
1375,
2890,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
982,
16,
982,
67,
6011,
4672,
3536,
1788,
279,
394,
2845,
716,
353,
279,
720,
17,
6011,
434,
1375,
2938,
67,
6011,
9191,
471,
2454,
726,
364,
1375,
2890,... | |
on_instruments = frozenset(on_instruments) segs = zero_lag_segs.intersection(on_instruments) - zero_lag_segs.union(available_instruments - on_instruments) | selected_segs = zero_lag_segs.intersection(on_instruments) - zero_lag_segs.union(available_instruments - on_instruments) | def update_from_db(self, filename, live_time_program = "thinca", vetoes_name = "vetoes", verbose = False): working_filename = dbtables.get_connection_filename(filename, tmp_path = None, verbose = verbose) connection = sqlite3.connect(working_filename) | a39e00076e205bedb63be80fd33ae84bac1abf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5758/a39e00076e205bedb63be80fd33ae84bac1abf61/far_plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
2080,
67,
1966,
12,
2890,
16,
1544,
16,
8429,
67,
957,
67,
12890,
273,
315,
451,
267,
5353,
3113,
331,
11453,
281,
67,
529,
273,
315,
90,
11453,
281,
3113,
3988,
273,
1083,
... |
self.__process = Popen(args=self.__args, stdin=PIPE, stdout=PIPE, stderr=PIPE, bufsize=1) | self.__process = Popen(args=args, stdin=PIPE, stdout=PIPE, stderr=PIPE, bufsize=1) | def start(self): """Start the MPlayer process. | d85fd83ae55666ff3495392afff1d47215274581 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12327/d85fd83ae55666ff3495392afff1d47215274581/pymplayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
12,
2890,
4672,
3536,
1685,
326,
490,
12148,
1207,
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,
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,
787,
12,
2890,
4672,
3536,
1685,
326,
490,
12148,
1207,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
argv = process_options(sys.argv[1:]) | argv = process_options(sys.argv) | def process_options(argv): return option.process_options(get_options(), Options, argv) | 42f7a7b284c807119ec09969adbfcedc468d4260 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/42f7a7b284c807119ec09969adbfcedc468d4260/jscompile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2116,
12,
19485,
4672,
327,
1456,
18,
2567,
67,
2116,
12,
588,
67,
2116,
9334,
5087,
16,
5261,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2116,
12,
19485,
4672,
327,
1456,
18,
2567,
67,
2116,
12,
588,
67,
2116,
9334,
5087,
16,
5261,
13,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
mediaFilepath = recd.getMediaFilepath(True) | mediaFilepath = recd.getMediaFilepath() | def showVideo( self, recd ): if (self.LIVEMODE): if (self.ca.glive.isXv()): self.ca.glive.setPipeType( self.ca.glive.PIPETYPE_X_VIDEO_DISPLAY ) self.ca.glive.stop() self.ca.glive.play() self.LIVEMODE = False | 41f5543503f45120f148d9b5272da416bddb5119 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6451/41f5543503f45120f148d9b5272da416bddb5119/ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2405,
10083,
12,
365,
16,
1950,
72,
262,
30,
309,
261,
2890,
18,
2053,
58,
3375,
2712,
4672,
309,
261,
2890,
18,
5353,
18,
7043,
688,
18,
291,
60,
90,
1435,
4672,
365,
18,
5353,
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,
2405,
10083,
12,
365,
16,
1950,
72,
262,
30,
309,
261,
2890,
18,
2053,
58,
3375,
2712,
4672,
309,
261,
2890,
18,
5353,
18,
7043,
688,
18,
291,
60,
90,
1435,
4672,
365,
18,
5353,
18,
... |
time.sleep(0.1) | time.sleep(2) | def test_lock_behavior(self): # Check to make sure the user-provided lock class behaves correctly # when called from C code | 2c7309a9b49c12fcf7bd62f7147a79ef94a81fff /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10380/2c7309a9b49c12fcf7bd62f7147a79ef94a81fff/test_threads.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
739,
67,
31936,
12,
2890,
4672,
468,
2073,
358,
1221,
3071,
326,
729,
17,
29206,
2176,
667,
12433,
6606,
8783,
468,
1347,
2566,
628,
385,
981,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
739,
67,
31936,
12,
2890,
4672,
468,
2073,
358,
1221,
3071,
326,
729,
17,
29206,
2176,
667,
12433,
6606,
8783,
468,
1347,
2566,
628,
385,
981,
2,
-100,
-100,
-100,
-100,
-100,
... |
_DEBUG_COPYOFOBJECT = False | def exclude(self, attr, exclude_layers): """ Should you scan attr (of an obj of this clas), given these exclude_layers (perhaps ())? """ return self.attrlayers.get(attr) in exclude_layers # correct even though .get is often None | 94ce0eefc86aa9c98dfa36b124ed34aa82766857 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11221/94ce0eefc86aa9c98dfa36b124ed34aa82766857/state_utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12,
2890,
16,
1604,
16,
4433,
67,
10396,
4672,
3536,
9363,
1846,
4135,
1604,
261,
792,
392,
1081,
434,
333,
23268,
3631,
864,
4259,
4433,
67,
10396,
261,
457,
19312,
1832,
9945,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4433,
12,
2890,
16,
1604,
16,
4433,
67,
10396,
4672,
3536,
9363,
1846,
4135,
1604,
261,
792,
392,
1081,
434,
333,
23268,
3631,
864,
4259,
4433,
67,
10396,
261,
457,
19312,
1832,
9945,
35... | |
self.guard_cache.pop(router.idhex) | if router.idhex in self.guard_cache: self.guard_cache.pop(router.idhex) | def prepare_circuits(self): with self.consensus_cache_lock: routers = sorted(self.router_cache.values(), key = attrgetter("last_tested"))[0:4] # Build test circuits. with self.consensus_cache_lock: for router in routers: # If we are testing a guard, we don't want to use it as a guard for this # circuit. Pop it tempor... | 0bb3e76e6900abbc5324010708fec82eada028cc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9986/0bb3e76e6900abbc5324010708fec82eada028cc/torbel.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
11614,
30091,
12,
2890,
4672,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
28944,
273,
3115,
12,
2890,
18,
10717,
67,
2493,
18,
2372,
9334,
498,
273,
1604,
11990,
2932,
2722,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2911,
67,
11614,
30091,
12,
2890,
4672,
598,
365,
18,
29220,
67,
2493,
67,
739,
30,
28944,
273,
3115,
12,
2890,
18,
10717,
67,
2493,
18,
2372,
9334,
498,
273,
1604,
11990,
2932,
2722,
... |
for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT: labels = node.getElementsByTagName("label") for label in labels: id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) p... | for label in find_all_elements(doc, "label"): id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.setAttribute("id", id) parent.removeChild(label) | def handle_labels(doc): for node in doc.childNodes: if node.nodeType == xml.dom.core.ELEMENT: labels = node.getElementsByTagName("label") for label in labels: id = label.getAttribute("id") if not id: continue parent = label.parentNode if parent.tagName == "title": parent.parentNode.setAttribute("id", id) else: parent.s... | 8d20f30e2bb3a6cee170c7f74006722d05264c26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/8d20f30e2bb3a6cee170c7f74006722d05264c26/docfixer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1640,
67,
5336,
12,
2434,
4672,
364,
756,
316,
997,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
30,
3249,
273,
756,
18,
588,
3471,
10401,
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,
1640,
67,
5336,
12,
2434,
4672,
364,
756,
316,
997,
18,
3624,
3205,
30,
309,
756,
18,
2159,
559,
422,
2025,
18,
9859,
18,
3644,
18,
10976,
30,
3249,
273,
756,
18,
588,
3471,
10401,
2... |
""" | """ | def fl_set_select_popup(p1, p2): """ fl_set_select_popup(p1, p2) -> num. """ retval = _fl_set_select_popup(p1, p2) return retval | 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,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
4672,
3536,
1183,
67,
542,
67,
4025,
67,
16086,
12,
84,
21,
16,
293,
22,
13,
317,
818,
18,
3536,
225,
5221,
273,
389,
... |
except IsRedirectPage,arg: | except IsRedirectPage, arg: | def getRedirectTo(self): | 5578ba184190a6edbdb00bc60bf5f10224fd40e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/5578ba184190a6edbdb00bc60bf5f10224fd40e0/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26134,
774,
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,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26134,
774,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
pept = get_pept_linked(N, CA, PRO) | pept = get_pept_linked(N, CA, PRO) | def calc_blocks_normal(self, N, CA, PRO, Carbon, Oxigen, Nitrogen): """MBH scheme with linked blocks where each side chain is considered as a block attached to the CA atom.""" | 7eacfe0381b5a6911c93246b37e4775fefffaf61 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11051/7eacfe0381b5a6911c93246b37e4775fefffaf61/nmatools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7029,
67,
7996,
67,
6130,
12,
2890,
16,
423,
16,
6425,
16,
4629,
16,
13353,
16,
531,
92,
30577,
16,
423,
8912,
4507,
4672,
3536,
7969,
44,
4355,
598,
8459,
4398,
1625,
1517,
4889,
2687... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
7029,
67,
7996,
67,
6130,
12,
2890,
16,
423,
16,
6425,
16,
4629,
16,
13353,
16,
531,
92,
30577,
16,
423,
8912,
4507,
4672,
3536,
7969,
44,
4355,
598,
8459,
4398,
1625,
1517,
4889,
2687... |
effective = (int(effective / tabwidth) + 1) * tabwidth | effective = (effective // tabwidth + 1) * tabwidth | def classifyws(s, tabwidth): raw = effective = 0 for ch in s: if ch == ' ': raw = raw + 1 effective = effective + 1 elif ch == '\t': raw = raw + 1 effective = (int(effective / tabwidth) + 1) * tabwidth else: break return raw, effective | b6ecb58f6f1654f9aab8c1f9c4a747640cd9221b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b6ecb58f6f1654f9aab8c1f9c4a747640cd9221b/AutoIndent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
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,
19974,
4749,
12,
87,
16,
3246,
2819,
4672,
1831,
273,
11448,
273,
374,
364,
462,
316,
272,
30,
309,
462,
422,
296,
4290,
1831,
273,
1831,
397,
404,
11448,
273,
11448,
397,
404,
1327,
4... |
f = None | def __get_stack(self, ctx, ctid, fException): tid = ctx.m_thread_id | 3936cfe7191507813ad88daecdb00c41fdd1a2a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9402/3936cfe7191507813ad88daecdb00c41fdd1a2a6/rpdb2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
3772,
12,
2890,
16,
1103,
16,
5691,
350,
16,
284,
503,
4672,
11594,
273,
1103,
18,
81,
67,
5930,
67,
350,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
67,
3772,
12,
2890,
16,
1103,
16,
5691,
350,
16,
284,
503,
4672,
11594,
273,
1103,
18,
81,
67,
5930,
67,
350,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
We compute with the L-series of $E_{16}$: | We compute with the L-series of $E_{16}$ and then $E_{20}$: | def eisenstein_series_Lseries(weight, prec=53, max_imaginary_part=0, max_asymp_coeffs=40): r""" Return the L-series of the weight $2k$ Eisenstein series on $\SL_2(\Z)$. This actually returns an interface to Tim Dokchitser's program for computing with the L-series of the Eisenstein series INPUT: weight -- even integer... | 14dc3223746d50de69ff954154301069e5dc285c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/14dc3223746d50de69ff954154301069e5dc285c/eis_series.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
4865,
16,
13382,
33,
8643,
16,
943,
67,
15374,
2101,
67,
2680,
33,
20,
16,
943,
67,
15762,
1291,
67,
30463,
33,
7132,
4672,
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,
425,
291,
275,
334,
13685,
67,
10222,
67,
48,
10222,
12,
4865,
16,
13382,
33,
8643,
16,
943,
67,
15374,
2101,
67,
2680,
33,
20,
16,
943,
67,
15762,
1291,
67,
30463,
33,
7132,
4672,
4... |
"""A callback function used when waking over a package tree.""" | "A callback function used when waking over a package tree." | def _packageWalkCallback(builder, dirPath, files): """A callback function used when waking over a package tree.""" files = filter(lambda f:f != '__init__.py', files) files = filter(lambda f:f[-3:] == '.py', files) if files: for f in files: path = os.path.join(dirPath, f) print path builder.indentLevel = builder.indent... | 9ddc7f3e5a55d990df726a399c74e3167a73b014 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/9ddc7f3e5a55d990df726a399c74e3167a73b014/docpy0.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5610,
9463,
2428,
12,
9574,
16,
15891,
16,
1390,
4672,
315,
37,
1348,
445,
1399,
1347,
341,
6159,
1879,
279,
2181,
2151,
1199,
225,
1390,
273,
1034,
12,
14661,
284,
30,
74,
480,
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,
389,
5610,
9463,
2428,
12,
9574,
16,
15891,
16,
1390,
4672,
315,
37,
1348,
445,
1399,
1347,
341,
6159,
1879,
279,
2181,
2151,
1199,
225,
1390,
273,
1034,
12,
14661,
284,
30,
74,
480,
4... |
return os.path.join (homeDir, windowsFile) | return os.path.join(homeDir, windowsFile) | def get_credentials_file (unixFile=UNIX_CREDENTIALS_FILE, windowsFile=WINDOWS_CREDENTIALS_FILE): if os.name == 'posix': homeDir = os.path.expanduser('~') return os.path.join (homeDir, unixFile) elif os.name : from win32com.shell import shellcon, shell homeDir = shell.SHGetFolderPath(0, shellcon.CSIDL_APPDATA, 0, 0) ret... | e75848841ac96982524448e932e12fd6ff9cbe0c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12637/e75848841ac96982524448e932e12fd6ff9cbe0c/fdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
11687,
67,
768,
261,
21136,
812,
33,
10377,
60,
67,
31014,
30308,
67,
3776,
16,
9965,
812,
33,
31874,
67,
31014,
30308,
67,
3776,
4672,
309,
1140,
18,
529,
422,
296,
24463,
42... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
11687,
67,
768,
261,
21136,
812,
33,
10377,
60,
67,
31014,
30308,
67,
3776,
16,
9965,
812,
33,
31874,
67,
31014,
30308,
67,
3776,
4672,
309,
1140,
18,
529,
422,
296,
24463,
42... |
self.filepath = xmlFile.getAttribute("path") self.postdata = xmlFile.getAttribute("post") self.findstr = xmlFile.getAttribute("find") self.flags = xmlFile.getAttribute("flags") | self.filepath = str(xmlFile.getAttribute("path")) self.postdata = str(xmlFile.getAttribute("post")) self.findstr = str(xmlFile.getAttribute("find")) self.flags = str(xmlFile.getAttribute("flags")) | def __init__(self, xmlFile, config): self.initLog(config) self.filepath = xmlFile.getAttribute("path") self.postdata = xmlFile.getAttribute("post") self.findstr = xmlFile.getAttribute("find") self.flags = xmlFile.getAttribute("flags") self._log("fimap FileObject loaded: %s" %(self.filepath), self.LOG_DEVEL) | 556c405d104ec59d630e80568df5daf91ab1bf9d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4412/556c405d104ec59d630e80568df5daf91ab1bf9d/language.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
2025,
812,
16,
642,
4672,
365,
18,
2738,
1343,
12,
1425,
13,
365,
18,
10561,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
803,
6,
3719,
365,
18,
2767,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2025,
812,
16,
642,
4672,
365,
18,
2738,
1343,
12,
1425,
13,
365,
18,
10561,
273,
609,
12,
2902,
812,
18,
588,
1499,
2932,
803,
6,
3719,
365,
18,
2767,... |
""" | """ | def flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7): """ flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7) """ _flps_draw_tbox(p1, p2, p3, p4, p5, p6, p7) | 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,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
4672,
3536,
1183,
1121,
67,
9446,
67,
88,
2147,
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,
1183,
1121,
67,
9446,
67,
88,
2147,
12,
84,
21,
16,
293,
22,
16,
293,
23,
16,
293,
24,
16,
293,
25,
16,
293,
26,
16,
293,
27,
4672,
3536,
1183,
1121,
67,
9446,
67,
88,
2147,
12,
... |
else: log.warning('cooking pid %s did not exit' % pid) | def stopBuild(results, pid, inF, csFile): log.info('killing %s' % pid) try: os.kill(-pid, signal.SIGTERM) except OSError, err: if err.errno != errno.ENOENT: raise else: log.warning('cooking pid %s did not exit' % pid) timeSlept = 0 while timeSlept < 10: gotResult, status = os.waitpid(pid, os.WNOHANG) if gotResult: bre... | 77acbc9ab36a76a701c56880641d224635b7b25c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8749/77acbc9ab36a76a701c56880641d224635b7b25c/cook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
3116,
12,
4717,
16,
4231,
16,
316,
42,
16,
2873,
812,
4672,
613,
18,
1376,
2668,
79,
5789,
738,
87,
11,
738,
4231,
13,
775,
30,
1140,
18,
16418,
19236,
6610,
16,
4277,
18,
1851... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2132,
3116,
12,
4717,
16,
4231,
16,
316,
42,
16,
2873,
812,
4672,
613,
18,
1376,
2668,
79,
5789,
738,
87,
11,
738,
4231,
13,
775,
30,
1140,
18,
16418,
19236,
6610,
16,
4277,
18,
1851... | |
test() test_execute_in() | test(use_tee=0) test(use_tee=1) test_execute_in(use_tee=0) test_execute_in(use_tee=1) | def test_execute_in(): pythonexe = get_pythonexe() tmpfile = tempfile.mktemp() fn = os.path.basename(tmpfile) tmpdir = os.path.dirname(tmpfile) f = open(tmpfile,'w') f.write('Hello') f.close() s,o = exec_command('%s -c "print \'Ignore following IOError:\',open(%r,\'r\')"' \ % (pythonexe,fn)) assert s and o!='',(s,o) s... | 59c6f7c8809104ffcc97e2083529ae4111b41755 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/14925/59c6f7c8809104ffcc97e2083529ae4111b41755/exec_command.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
267,
13332,
5790,
14880,
273,
336,
67,
8103,
14880,
1435,
25613,
273,
13275,
18,
24816,
5814,
1435,
2295,
273,
1140,
18,
803,
18,
13909,
12,
5645,
768,
13,
20213,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8837,
67,
267,
13332,
5790,
14880,
273,
336,
67,
8103,
14880,
1435,
25613,
273,
13275,
18,
24816,
5814,
1435,
2295,
273,
1140,
18,
803,
18,
13909,
12,
5645,
768,
13,
20213,
273... |
for i in range(len(patterns)): | for i in xrange(len(patterns)): | def expect(self, patterns=[], timeout=None, limit=None): """Read from the Connector and return the index of the first pattern which matches the input chain; otherwise, raise an exception. | b6a8cf48ec93af35cd798dd7447c4de8ba46bad1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5910/b6a8cf48ec93af35cd798dd7447c4de8ba46bad1/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
6884,
22850,
6487,
2021,
33,
7036,
16,
1800,
33,
7036,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4489,
12,
2890,
16,
6884,
22850,
6487,
2021,
33,
7036,
16,
1800,
33,
7036,
4672,
3536,
1994,
628,
326,
15779,
471,
327,
326,
770,
434,
326,
1122,
1936,
1492,
1885,
326,
810,
2687,
31,
... |
self.__lock.acquire() self.__layouts = newLayouts self.__lock.release() | self.__lock.acquire() self.__layouts = newLayouts self.__lock.release() | def run(self): while self.running: self.interval = 300 # Find out how long we should wait between updates. try: self.interval = int(config.get('Main','xmdsUpdateInterval')) except: # self.interval has been set to a sensible default in this case. log.log(0,"warning",_("No XMDS Update Interval specified in your configur... | 97d94c12358ac153990471334712fb9c55154a39 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5464/97d94c12358ac153990471334712fb9c55154a39/XiboClient.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
8704,
30,
365,
18,
6624,
273,
11631,
225,
468,
4163,
596,
3661,
1525,
732,
1410,
2529,
3086,
4533,
18,
775,
30,
365,
18,
6624,
273,
509,
12,
1425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
1323,
365,
18,
8704,
30,
365,
18,
6624,
273,
11631,
225,
468,
4163,
596,
3661,
1525,
732,
1410,
2529,
3086,
4533,
18,
775,
30,
365,
18,
6624,
273,
509,
12,
1425,
... |
TESTFN = 'test' | TESTFN = 'test' | def fcmp(x, y): # fuzzy comparison function if type(x) == type(0.0) or type(y) == type(0.0): try: x, y = coerce(x, y) fuzz = (abs(x) + abs(y)) * FUZZ if abs(x-y) <= fuzz: return 0 except: pass elif type(x) == type(y) and type(x) in (type(()), type([])): for i in range(min(len(x), len(y))): outcome = fcmp(x[i], y[i]) if... | 74088a54d012c6d9dbf6e164d0f7e81de0f12a83 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/74088a54d012c6d9dbf6e164d0f7e81de0f12a83/test_support.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
618,
12,
92,
13,
422,
618,
12,
20,
18,
20,
13,
578,
618,
12,
93,
13,
422,
618,
12,
20,
18,
20,
4672,
775,
30,
619,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8036,
1291,
12,
92,
16,
677,
4672,
468,
21315,
5826,
445,
309,
618,
12,
92,
13,
422,
618,
12,
20,
18,
20,
13,
578,
618,
12,
93,
13,
422,
618,
12,
20,
18,
20,
4672,
775,
30,
619,
... |
self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".') | self.DebugStr('pManager '+ __version__ +': Basedir is "'+self.sBaseDir+'".', 2) | def __init__(self, sConfigFileName): """Constructor.""" | 0cac88e865d618b23e0bbc34f2a374cdf6fb3cbb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/0cac88e865d618b23e0bbc34f2a374cdf6fb3cbb/pManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
272,
809,
4771,
4672,
3536,
6293,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if item.get_filename() in knownFiles: | if item.get_filename() in known_files: | def isBasenameHidden(filename): if filename[-1] == os.sep: filename = filename[:-1] return os.path.basename(filename)[0] == FilenameType('.') | a24dad9e8b4354c15ebbbd701c522ca0999d4727 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12354/a24dad9e8b4354c15ebbbd701c522ca0999d4727/feed.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
11494,
1069,
9345,
12,
3459,
4672,
309,
1544,
18919,
21,
65,
422,
1140,
18,
10814,
30,
1544,
273,
1544,
10531,
17,
21,
65,
327,
1140,
18,
803,
18,
13909,
12,
3459,
25146,
20,
65,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
11494,
1069,
9345,
12,
3459,
4672,
309,
1544,
18919,
21,
65,
422,
1140,
18,
10814,
30,
1544,
273,
1544,
10531,
17,
21,
65,
327,
1140,
18,
803,
18,
13909,
12,
3459,
25146,
20,
65,
... |
nodeinfo = self.rpc.call_node_info(nodenames, self.cfg.GetVGName(), self.op.hypervisor) for node in nodenames: info = nodeinfo[node] info.Raise("Cannot get current information from node %s" % node) info = info.payload vg_free = info.get('vg_free', None) if not isinstance(vg_free, int): raise errors.OpPrereqError("Can't... | _CheckNodesFreeDisk(self, nodenames, req_size) | def CheckPrereq(self): """Check prerequisites. | 701384a9a07d0e9a5f1677b2838f0906967283df /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7542/701384a9a07d0e9a5f1677b2838f0906967283df/cmdlib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
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,
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,
2073,
2050,
822,
85,
12,
2890,
4672,
3536,
1564,
30328,
16608,
2997,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
static_options=None, cnf={}, kw={}): if kw: cnf = _cnfmerge((cnf, kw)) else: cnf = _cnfmerge(cnf) extra=() if static_options: for k,v in cnf.items()[:]: if k in static_options: extra = extra + ('-' + k, v) del cnf[k] self.widgetName = widgetName Widget._setup(self, master, cnf) if widgetName: apply(self.tk.call... | static_options=None, cnf={}, kw={}): if kw: cnf = _cnfmerge((cnf, kw)) else: cnf = _cnfmerge(cnf) extra=() if static_options: for k,v in cnf.items()[:]: if k in static_options: extra = extra + ('-' + k, v) del cnf[k] self.widgetName = widgetName Widget._setup(self, master, cnf) if widgetName: apply(self.tk.call... | def __init__ (self, master=None, widgetName=None, | 22710823fb554a796dc96c44885d7a9389426824 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/22710823fb554a796dc96c44885d7a9389426824/Tix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
261,
2890,
16,
4171,
33,
7036,
16,
3604,
461,
33,
7036,
16,
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,
... | [
1,
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,
2738,
972,
261,
2890,
16,
4171,
33,
7036,
16,
3604,
461,
33,
7036,
16,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
cospectral graphs. | cospectral graphs (lists of cadinality 1 being omitted). | def cospectral_graphs(self, vertices, matrix_function=lambda g: g.adjacency_matrix(), graphs=None): """ Find all sets of graphs on ``vertices`` vertices (with possible restrictions) which are cospectral with respect to a constructed matrix. | 88546e9cc29663fc88d6d6854e69efff5af6ec95 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/88546e9cc29663fc88d6d6854e69efff5af6ec95/graph_generators.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4987,
21449,
67,
30016,
12,
2890,
16,
6928,
16,
3148,
67,
915,
33,
14661,
314,
30,
314,
18,
13829,
1077,
2075,
67,
5667,
9334,
19422,
33,
7036,
4672,
3536,
4163,
777,
1678,
434,
19422,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4987,
21449,
67,
30016,
12,
2890,
16,
6928,
16,
3148,
67,
915,
33,
14661,
314,
30,
314,
18,
13829,
1077,
2075,
67,
5667,
9334,
19422,
33,
7036,
4672,
3536,
4163,
777,
1678,
434,
19422,
... |
P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]),rgbcolor=(0,0,0)) | P += arrow((pos[u][0],pos[u][1]),(pos[v][0],pos[v][1]), **edge_style) | def plot(self, pos=None, layout=None, vertex_labels=True, edge_labels=False, vertex_size=200, graph_border=False, vertex_colors=None, partition=None, edge_colors=None, scaling_term=0.05, iterations=50, loop_size=.1, talk=False, color_by_label=False, heights=None): """ Returns a graphics object representing the (di)grap... | 3323af5b44fb141acb0df020218a8dabe24fcfb9 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/3323af5b44fb141acb0df020218a8dabe24fcfb9/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
949,
33,
7036,
16,
3511,
33,
7036,
16,
5253,
67,
5336,
33,
5510,
16,
3591,
67,
5336,
33,
8381,
16,
5253,
67,
1467,
33,
6976,
16,
2667,
67,
8815,
33,
8381,
16,
5... |
self.music_paths = [["/tmp",],] self.cache_music_tree_beans = [[],] | self.music_paths = [["/tmp", ], ] self.cache_music_tree_beans = [[], ] | def __init__(self): """init default values""" self.is_view_info_panel = True self.is_view_search_panel = True self.is_view_music_tree_panel = True self.is_view_lyric_panel = True self.is_view_video_panel = True self.is_order_random = False self.repeat_state = const.REPEAT_ALL self.playlist_type = const.PLAYLIST_TREE | 70e20b80401dc71ee60eb9261651d8b1f96eabd2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14563/70e20b80401dc71ee60eb9261651d8b1f96eabd2/fc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2738,
805,
924,
8395,
365,
18,
291,
67,
1945,
67,
1376,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
3072,
67,
13916,
273,
1053,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
3536,
2738,
805,
924,
8395,
365,
18,
291,
67,
1945,
67,
1376,
67,
13916,
273,
1053,
365,
18,
291,
67,
1945,
67,
3072,
67,
13916,
273,
1053,
365,
18,
... |
return r._fix(context=context) | return r._fix(context) | def remainder_near(self, other, context=None): """ Remainder nearest to 0- abs(remainder-near) <= other/2 """ other = _convert_other(other) | b277e15abb88b70aabae5a4859ba6920ae8be40f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/b277e15abb88b70aabae5a4859ba6920ae8be40f/decimal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10022,
67,
27862,
12,
2890,
16,
1308,
16,
819,
33,
7036,
4672,
3536,
2663,
25407,
11431,
358,
374,
17,
225,
2417,
12,
2764,
25407,
17,
27862,
13,
1648,
1308,
19,
22,
3536,
1308,
273,
3... |
result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): | result = set(clsDepsObj.data['require']) ignores = map(attrgetter("name"), clsDepsObj.data['ignore']) optionals = map(attrgetter("name"), clsDepsObj.data['optional']) requires = map(attrgetter("name"), clsDepsObj.data['require']) uses = map(attrgetter("name"), clsDepsObj.data['use']) if not "auto-require" in... | def getLoadDeps(clsDepsObj): result = set(clsDepsObj.data['require']) if not "auto-require" in (x.name for x in clsDepsObj.data['ignore']): for dep in clsDepsObj.dependencyIterator(): if dep.isLoadDep: if dep in clsDepsObj.data['optional']: pass elif dep in clsDepsObj.data['require']: console.warn("%s: #require(%s) is ... | 4b59a7eed3eadb6236bfcf7de8abbdbe327f1e3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/4b59a7eed3eadb6236bfcf7de8abbdbe327f1e3d/Class.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
2563,
14430,
12,
6429,
14430,
2675,
4672,
563,
565,
273,
444,
12,
6429,
14430,
2675,
18,
892,
3292,
6528,
19486,
17868,
282,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
144... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2563,
14430,
12,
6429,
14430,
2675,
4672,
563,
565,
273,
444,
12,
6429,
14430,
2675,
18,
892,
3292,
6528,
19486,
17868,
282,
273,
852,
12,
1747,
11990,
2932,
529,
6,
3631,
2028,
144... |
for digest in FileDigester(sys.stdin, self.digest_spec): | for digest in get_input_handler(sys.stdin, self.digest_spec): | def info(self, args): getopt.getopt(args[1:], '') | 5802632fd0a97e25414d2bdab19d018e0319a6bd /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7249/5802632fd0a97e25414d2bdab19d018e0319a6bd/client.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
16,
833,
4672,
336,
3838,
18,
588,
3838,
12,
1968,
63,
21,
30,
6487,
28707,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
12,
2890,
16,
833,
4672,
336,
3838,
18,
588,
3838,
12,
1968,
63,
21,
30,
6487,
28707,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. | def edges(self, labels=True, sort=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. | def edges(self, labels=True): """ Return a list of edges. Each edge is a triple (u,v,l) where u and v are vertices and l is a label. INPUT: labels -- if False, each edge is a tuple (u,v) of vertices. EXAMPLES: sage: graphs.DodecahedralGraph().edges() [(0, 1, None), (0, 10, None), (0, 19, None), (1, 8, None), (1, 2, N... | a91dc4550e1b102d7691b4a8b57719dcd056681b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/a91dc4550e1b102d7691b4a8b57719dcd056681b/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
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,
5231,
12,
2890,
16,
3249,
33,
5510,
16,
1524,
33,
5510,
4672,
3536,
2000,
279,
666,
434,
5231,
18,
8315,
3591,
353,
279,
14543,
261,
89,
16,
90,
16,
80,
13,
1625,
582,
471,
331,
854,... |
try: print 2,'oDataOperation.keyFieldsList', type(oDataOperation.keyFieldsList) sys.stdout.flush() print 2,'oDataOperation.valueFieldsList', type(oDataOperation.valueFieldsList) sys.stdout.flush() print 2,'oDataOperation.fieldsList', type(oDataOperation.fieldsList) sys.stdout.flush() print 2,'oDataOperation.valuesList'... | def __gfalturlsfromsurls_wrapper(self,urls,listProtocols): """ This is a function that can be reused everywhere to perform the gfal_turlsfromsurls """ gfalDict = {} gfalDict['defaultsetype'] = 'srmv2' gfalDict['no_bdii_check'] = 1 gfalDict['protocols'] = listProtocols gfalDict['srmv2_spacetokendesc'] = self.spaceToken | f5e441c3ab9241d3462727b1b293a681e5bd2781 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/f5e441c3ab9241d3462727b1b293a681e5bd2781/SRM2Storage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
75,
74,
2390,
10518,
2080,
87,
10518,
67,
8376,
12,
2890,
16,
10518,
16,
1098,
21657,
4672,
3536,
1220,
353,
279,
445,
716,
848,
506,
23312,
3614,
6051,
358,
3073,
326,
13828,
287,... | |
file.warning("Malformed LyX file.") | file.warning("Malformed LyX file : Missing 'status'.") | def revert_ert(file): i = 0 while 1: i = find_token(file.body, "\\begin_inset ERT", i) if i == -1: break # Seach for a line starting 'status' # If, however, we find a line starting '\begin_layout' # (_always_ present) then break with a warning message i = i + 1 while 1: if (file.body[i] == "status open"): file.body[i]... | 72dccb886997419e637acefa586da331faa586ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7514/72dccb886997419e637acefa586da331faa586ac/lyx_1_4.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1051,
12,
768,
4672,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
768,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4232,
56,
3113,
277,
13,
309,
277,
422,
300,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1051,
12,
768,
4672,
277,
273,
374,
1323,
404,
30,
277,
273,
1104,
67,
2316,
12,
768,
18,
3432,
16,
8422,
10086,
67,
267,
542,
4232,
56,
3113,
277,
13,
309,
277,
422,
300,... |
self.fileProcessor.setFromSpec(scan) | self.fileProcessor.setFromSpec(conScan) | def setSpecScan(self, conScan): """Set the settings for the set from the considered pyspec scan object | 78826937656362887f7aa42720d3ae9c35659451 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8436/78826937656362887f7aa42720d3ae9c35659451/transformations.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1990,
7972,
12,
2890,
16,
356,
7972,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
1990,
7972,
12,
2890,
16,
356,
7972,
4672,
3536,
694,
326,
1947,
364,
326,
444,
628,
326,
7399,
21027,
705,
4135,
733,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
self.matches['email'] = self._vte.match_add (lboundry + | self.matches['email'] = self.vte.match_add (lboundry + | def update_url_matches(self, posix = True): """Update the regexps used to match URLs""" userchars = "-A-Za-z0-9" passchars = "-A-Za-z0-9,?;.:/!%$^*&~\"#'" hostchars = "-A-Za-z0-9" pathchars = "-A-Za-z0-9_$.+!*(),;:@&=?/~#%'\"" schemes = "(news:|telnet:|nntp:|file:/|https?:|ftps?:|webcal:)" user = "[" + userchars... | e0f38d4431cfd4e81403279a4c2c999f1f8af721 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6502/e0f38d4431cfd4e81403279a4c2c999f1f8af721/terminal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
718,
67,
8436,
12,
2890,
16,
16366,
273,
1053,
4672,
3536,
1891,
326,
3936,
1121,
1399,
358,
845,
10414,
8395,
729,
7549,
273,
3701,
37,
17,
15948,
17,
94,
20,
17,
29,
6,
1... |
xlink:type="embed" \s+ | xlink:type="simple" \s+ xlink:show="embed" \s+ | def test_img1(self): html = '<html xmlns="http://www.w3.org/1999/xhtml"><img src="imagesource"/></html>' odt = xhtml2odt(html) print odt assert re.search(r"""<draw:frame \s+ (xmlns:[a-z0-9=:".-]+ \s+)* # namespaces text:anchor-type="paragraph" \s+ draw:name="imageobject-[a-z0-9]+" \s+ svg:width="8cm" \s+ style:rel-widt... | 3a511acf1f97db722900be3dd399e5cf3322252c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7063/3a511acf1f97db722900be3dd399e5cf3322252c/test_media.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6081,
21,
12,
2890,
4672,
1729,
273,
2368,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
14050,
6081,
1705,
1546,
7369,
552,
6,
19,
469... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6081,
21,
12,
2890,
4672,
1729,
273,
2368,
2620,
12302,
1546,
2505,
2207,
5591,
18,
91,
23,
18,
3341,
19,
21,
11984,
19,
26341,
14050,
6081,
1705,
1546,
7369,
552,
6,
19,
469... |
for t in itera.get_tags() : if t.get_data('is_subtask') : print "subtask" | def _insert_at_cursor(self,tv,itera,tex,leng) : for t in itera.get_tags() : if t.get_data('is_subtask') : print "subtask" #New line : the user pressed enter ! #If the line begins with "-", it's a new subtask ! if tex == '\n' : #The nbr just before the \n line_nbr = itera.get_line() start_line = itera.copy() start_line.... | 64484915371fc471752e54cff8e9a786087d93e7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7036/64484915371fc471752e54cff8e9a786087d93e7/taskview.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
67,
270,
67,
9216,
12,
2890,
16,
24161,
16,
2165,
69,
16,
21763,
16,
1897,
75,
13,
294,
565,
468,
1908,
980,
294,
326,
729,
19504,
6103,
401,
468,
2047,
326,
980,
17874,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6387,
67,
270,
67,
9216,
12,
2890,
16,
24161,
16,
2165,
69,
16,
21763,
16,
1897,
75,
13,
294,
565,
468,
1908,
980,
294,
326,
729,
19504,
6103,
401,
468,
2047,
326,
980,
17874,
5... | |
model_module = 'test.fixture.models:meta_rundiffs' old_model_module = 'test.fixture.models:meta_old_rundiffs' | model_module = 'tests.fixture.models:meta_rundiffs' old_model_module = 'tests.fixture.models:meta_old_rundiffs' | def test_rundiffs_in_shell(self): # This is a variant of the test_schemadiff tests but run through the shell level. # These shell tests are hard to debug (since they keep forking processes), so they shouldn't replace the lower-level tests. repos_name = 'repos_name' repos_path = self.tmp() script_path = self.tmp_py() mo... | c58a0b9b802158345a93effda6ec486562989fe7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9035/c58a0b9b802158345a93effda6ec486562989fe7/test_shell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
86,
1074,
430,
2556,
67,
267,
67,
10304,
12,
2890,
4672,
468,
1220,
353,
279,
5437,
434,
326,
1842,
67,
87,
1036,
361,
3048,
7434,
1496,
1086,
3059,
326,
5972,
1801,
18,
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,
1842,
67,
86,
1074,
430,
2556,
67,
267,
67,
10304,
12,
2890,
4672,
468,
1220,
353,
279,
5437,
434,
326,
1842,
67,
87,
1036,
361,
3048,
7434,
1496,
1086,
3059,
326,
5972,
1801,
18,
468,... |
self.ceConfigDict['BatchError'] = os.path.join(rootPath, 'data' ) | self.ceConfigDict['BatchError'] = os.path.join( gConfig.getValue( '/LocalSite/InstancePath', rootPath ), 'data' ) | def _addCEConfigDefaults( self ): """Method to make sure all necessary Configuration Parameters are defined """ # First assure that any global parameters are loaded ComputingElement._addCEConfigDefaults( self ) # Now Torque specific ones if 'ExecQueue' not in self.ceConfigDict: self.ceConfigDict['ExecQueue'] = self.ceC... | 05f4284330e23d8d74d0844cee3520964f66a942 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/05f4284330e23d8d74d0844cee3520964f66a942/TorqueComputingElement.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
1441,
809,
7019,
12,
365,
262,
30,
3536,
1305,
358,
1221,
3071,
777,
4573,
4659,
7012,
854,
2553,
3536,
468,
5783,
1551,
594,
716,
1281,
2552,
1472,
854,
4203,
14169,
310,
104... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1289,
1441,
809,
7019,
12,
365,
262,
30,
3536,
1305,
358,
1221,
3071,
777,
4573,
4659,
7012,
854,
2553,
3536,
468,
5783,
1551,
594,
716,
1281,
2552,
1472,
854,
4203,
14169,
310,
104... |
the_rawaddr, = struct.unpack("I",inet_aton(the_addr)) | the_rawaddr = atol(the_addr) | def ifadd(self, iff, addr): self.invalidate_cache() the_addr,the_msk = (addr.split("/")+["32"])[:2] the_msk = itom(int(the_msk)) the_rawaddr, = struct.unpack("I",inet_aton(the_addr)) the_net = the_rawaddr & the_msk self.routes.append((the_net,the_msk,'0.0.0.0',iff,the_addr)) | 8a76ff8623a08e548c2606be508514d068938a13 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7311/8a76ff8623a08e548c2606be508514d068938a13/scapy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
1289,
12,
2890,
16,
21437,
16,
3091,
4672,
365,
18,
5387,
340,
67,
2493,
1435,
326,
67,
4793,
16,
5787,
67,
959,
79,
273,
261,
4793,
18,
4939,
2932,
4898,
27921,
9614,
1578,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
309,
1289,
12,
2890,
16,
21437,
16,
3091,
4672,
365,
18,
5387,
340,
67,
2493,
1435,
326,
67,
4793,
16,
5787,
67,
959,
79,
273,
261,
4793,
18,
4939,
2932,
4898,
27921,
9614,
1578,
6,
... |
print 'shlex: reading from %s, line %d' % (self.instream,self.lineno) | print 'shlex: reading from %s, line %d' \ % (self.instream, self.lineno) | def __init__(self, instream=None, infile=None): if instream: self.instream = instream self.infile = infile else: self.instream = sys.stdin self.infile = None self.commenters = '#' self.wordchars = 'abcdfeghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' self.whitespace = ' \t\r\n' self.quotes = '\'"' self.stat... | 217753d03e01f703df7d9f3b9460417fdafa6037 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/217753d03e01f703df7d9f3b9460417fdafa6037/shlex.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1804,
793,
33,
7036,
16,
14568,
33,
7036,
4672,
309,
1804,
793,
30,
365,
18,
267,
3256,
273,
1804,
793,
365,
18,
267,
768,
273,
14568,
469,
30,
365,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1804,
793,
33,
7036,
16,
14568,
33,
7036,
4672,
309,
1804,
793,
30,
365,
18,
267,
3256,
273,
1804,
793,
365,
18,
267,
768,
273,
14568,
469,
30,
365,
18... |
del self.list[newIt] | del self.list[self.list.firstIter()] | def test(self): temp = Dummy() assert len(self.list) == 0 self.list.append(temp) assert len(self.list) == 1 del temp assert len(self.list) == 1 temp2 = self.list.pop() assert len(self.list) == 0 it = self.list.append(temp2) assert self.list[0] == self.list[it] assert self.list[0] == temp2 self.list.pop() self.assertRai... | bb85abad583b4424fb279e56e695179482c4c1f2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12354/bb85abad583b4424fb279e56e695179482c4c1f2/fasttypestest.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
12,
2890,
4672,
1906,
273,
28622,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
365,
18,
1098,
18,
6923,
12,
5814,
13,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1464,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
1906,
273,
28622,
1435,
1815,
562,
12,
2890,
18,
1098,
13,
422,
374,
365,
18,
1098,
18,
6923,
12,
5814,
13,
1815,
562,
12,
2890,
18,
1098,
13,
422,
404,
1464,
1... |
add_warning(req, _('The user %(subject)s was already ' | add_warning(req, _('The subject %(subject)s was already ' | def render_admin_panel(self, req, cat, page, path_info): perm = PermissionSystem(self.env) all_permissions = perm.get_all_permissions() all_actions = perm.get_actions() | 4df7841184617ae785691f5f11ee4b6c168ff41b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9317/4df7841184617ae785691f5f11ee4b6c168ff41b/web_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
67,
3666,
67,
13916,
12,
2890,
16,
1111,
16,
6573,
16,
1363,
16,
589,
67,
1376,
4672,
4641,
273,
8509,
3163,
12,
2890,
18,
3074,
13,
777,
67,
9612,
273,
4641,
18,
588,
67,
454,... |
gtk.main() | gtk.main() | def main(self): if self.checking: self.checking.show() dialog.wait_for_no_windows() show_details = self.show_details() self.checking = None if show_details: self.window.show() else: import download_box download_box.download_with_gui(self.window, self.prog_args, main = self.main_exec, run_afterwards = not self.download_... | 1f11b02933e7dfdb7da952f1375c9e21bcb152b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10543/1f11b02933e7dfdb7da952f1375c9e21bcb152b3/gui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
309,
365,
18,
24609,
30,
365,
18,
24609,
18,
4500,
1435,
6176,
18,
7048,
67,
1884,
67,
2135,
67,
13226,
1435,
2405,
67,
6395,
273,
365,
18,
4500,
67,
6395,
1435,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
2890,
4672,
309,
365,
18,
24609,
30,
365,
18,
24609,
18,
4500,
1435,
6176,
18,
7048,
67,
1884,
67,
2135,
67,
13226,
1435,
2405,
67,
6395,
273,
365,
18,
4500,
67,
6395,
1435,
... |
def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=1, \ min_QC_segment_size=200, min_no_of_probes=None): """ | def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=None, \ min_QC_segment_size=None, min_no_of_probes=None, min_reciprocal_overlap=0.6): """ 2010-1-26 replace the list structure of cnv_qc_call_data in ecotype_id2cnv_qc_call_data with binary_tree structure 2009-12-9 add no_of_probes_covered into ... | def getCNVQCDataFromDB(cls, data_source_id=1, ecotype_id=None, cnv_type_id=1, \ min_QC_segment_size=200, min_no_of_probes=None): """ 2009-11-4 get CNV QC data from database """ sys.stderr.write("Getting CNV QC data ... \n") import Stock_250kDB sql_string = "select a.ecotype_id, c.chromosome, c.start, c.stop, c.size_aff... | 1440ce5092ec2e1bfdd9b1e187e40f109bf0000b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9645/1440ce5092ec2e1bfdd9b1e187e40f109bf0000b/misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1927,
11679,
53,
39,
751,
1265,
2290,
12,
6429,
16,
501,
67,
3168,
67,
350,
33,
21,
16,
6557,
10570,
67,
350,
33,
7036,
16,
6227,
90,
67,
723,
67,
350,
33,
7036,
16,
521,
1131,
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,
1927,
11679,
53,
39,
751,
1265,
2290,
12,
6429,
16,
501,
67,
3168,
67,
350,
33,
21,
16,
6557,
10570,
67,
350,
33,
7036,
16,
6227,
90,
67,
723,
67,
350,
33,
7036,
16,
521,
1131,
67,... |
for attack in self.attacks: attack.setColor() | def setColor(self): self.color=1 for attack in self.attacks: attack.setColor() | 6a454dfa3c412d72c675c8861c3a90ee26a39caa /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6330/6a454dfa3c412d72c675c8861c3a90ee26a39caa/wapiti.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16207,
12,
2890,
4672,
365,
18,
3266,
33,
21,
364,
13843,
316,
365,
18,
4558,
22098,
30,
13843,
18,
542,
2957,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
16207,
12,
2890,
4672,
365,
18,
3266,
33,
21,
364,
13843,
316,
365,
18,
4558,
22098,
30,
13843,
18,
542,
2957,
1435,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... | |
qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to..", "Save to...") | qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to...", "Save to...") | def saveToFileAccept(self): qfileName = QFileDialog.getSaveFileName("graph.png","Portable Network Graphics (*.PNG);;Windows Bitmap (*.BMP);;Graphics Interchange Format (*.GIF)", None, "Save to..", "Save to...") fileName = str(qfileName) if fileName == "": return (fil,ext) = os.path.splitext(fileName) ext = ext.replace(... | 6e78b0dd840c13d42a2ff4cd15c7f4debfe81e15 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6366/6e78b0dd840c13d42a2ff4cd15c7f4debfe81e15/OWScatterPlotMatrix.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
15450,
5933,
12,
2890,
4672,
1043,
17812,
273,
2238,
812,
6353,
18,
588,
4755,
4771,
2932,
4660,
18,
6446,
15937,
2617,
429,
5128,
16830,
261,
11146,
23092,
1769,
31,
10399,
14764,
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,
1923,
15450,
5933,
12,
2890,
4672,
1043,
17812,
273,
2238,
812,
6353,
18,
588,
4755,
4771,
2932,
4660,
18,
6446,
15937,
2617,
429,
5128,
16830,
261,
11146,
23092,
1769,
31,
10399,
14764,
2... |
sage: def f(x,y): return float(sin(x*y))) | sage: def f(x,y): return float(sin(x*y)) | sage: def f(x,y): return float(sin(x*y))) | f96f61f7130a4e3b19368af36efd086f372ee72f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9417/f96f61f7130a4e3b19368af36efd086f372ee72f/tachyon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
1431,
12,
21861,
12,
92,
14,
93,
20349,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
272,
410,
30,
1652,
284,
12,
92,
16,
93,
4672,
327,
1431,
12,
21861,
12,
92,
14,
93,
20349,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
return http.Response(stream='done') | return HTMLResponse(stream='done') | def render(self, ctx): # TODO -- this must not block long (!) self.worksheet.quit() return http.Response(stream='done') | 5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
468,
2660,
1493,
333,
1297,
486,
1203,
1525,
16051,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
2218,
8734,
6134,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1743,
12,
2890,
16,
1103,
4672,
468,
2660,
1493,
333,
1297,
486,
1203,
1525,
16051,
13,
365,
18,
1252,
8118,
18,
27176,
1435,
327,
1062,
18,
1064,
12,
3256,
2218,
8734,
6134,
2,
-100,
... |
tags = self.get_individual_metadata(mi.tags, br, verbose) if tags is not None: mi.tags = self.get_tags(tags, verbose)[0] res.append(mi) return res | threadbis = ThreadwithResults(self.fetchdatathread, br, syncbis, nb, mi.tags, verbose) self.thread[nb] = threadbis self.nbtag +=1 threadbis.start() def populate(self, entries, ibr, verbose=False, brcall=3): br = Queue(brcall) cbr = Queue(brcall-1) syncp = Queue(1) syncc = Queue(len(entries)) for i in xrange(brcall-1... | def populate(self, entries, br, verbose=False): res = [] for x in entries: entry = self.get_individual_metadata(x, br, verbose) if entry is not None: mi = self.fill_MI(entry, verbose) if mi is not None: mi.tags, atag = self.get_tags(entry, verbose) if atag: tags = self.get_individual_metadata(mi.tags, br, verbose) if t... | 5c89b576e31b85e17cf14e85a72b1b876f87579c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9125/5c89b576e31b85e17cf14e85a72b1b876f87579c/amazonbis.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
12,
2890,
16,
3222,
16,
5186,
16,
3988,
33,
8381,
4672,
400,
273,
5378,
364,
619,
316,
3222,
30,
1241,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
92,
16,
5186,
16,
3988,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
12,
2890,
16,
3222,
16,
5186,
16,
3988,
33,
8381,
4672,
400,
273,
5378,
364,
619,
316,
3222,
30,
1241,
273,
365,
18,
588,
67,
22032,
5557,
67,
4165,
12,
92,
16,
5186,
16,
3988,... |
MelBase('DNAM','_dnam'), MelBase('CRDT','_crdt'), | MelStruct('DNAM','HffBBIBffffIIBIBffBIfffffffffffHBffHfff', 'animationType','animationMultiplier','reach',(_flags1,'flags1',0L), 'gripAnimation','ammoUse','reloadAnimation','minSpread','spread','unknown','sightFov',(FID,'projectile',None), 'baseVatsToHitChance','attackAnimation','projectileCount','embeddedWeaponActorVa... | def loadData(self,record,ins,type,size,readId): if size == 102: MelStruct.loadData(self,record,ins,type,size,readId) return elif size == 86: #--Else 86 byte record (skips dispVelocity, #-- dispFalloff, dispDampner, dispSize, and damage #-- Two junk? bytes are tacked onto the end #-- Hex editing and the CS confirms that... | 7548e17e569a15e4985eba29e4c2223b7594d7e1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6682/7548e17e569a15e4985eba29e4c2223b7594d7e1/bosh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
21822,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29422,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
16,
896,
548,
4672,
309,
963,
422,
21822,
30,
490,
292,
3823,
18,
945,
751,
12,
2890,
16,
3366,
16,
2679,
16,
723,
16,
1467,
... |
def graph_get(cr, graph, wkf_id, nested=False, workitem={}): | def graph_get(cr, graph, wkf_ids, nested=False, workitem={}): | def graph_get(cr, graph, wkf_id, nested=False, workitem={}): import pydot cr.execute('select * from wkf_activity where wkf_id=%s', (wkf_id,)) nodes = cr.dictfetchall() activities = {} actfrom = {} actto = {} for n in nodes: activities[n['id']] = n if n['subflow_id'] and nested: cr.execute('select * from wkf where id=%s... | a01b658d8de67b50f93e68ea81bbf08e57f4079d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/a01b658d8de67b50f93e68ea81bbf08e57f4079d/print_instance.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
588,
12,
3353,
16,
2667,
16,
26987,
74,
67,
2232,
16,
4764,
33,
8381,
16,
26409,
12938,
4672,
1930,
2395,
9811,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
67,
9653,
162... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2667,
67,
588,
12,
3353,
16,
2667,
16,
26987,
74,
67,
2232,
16,
4764,
33,
8381,
16,
26409,
12938,
4672,
1930,
2395,
9811,
4422,
18,
8837,
2668,
4025,
380,
628,
26987,
74,
67,
9653,
162... |
db.DB_CREATE | db.DB_THREAD) | db.DB_CREATE | db.DB_THREAD | self.dbFlags) | def test02_associateAfterDB(self): if verbose: print '\n', '-=' * 30 print "Running %s.test02_associateAfterDB..." % \ self.__class__.__name__ | 5336fb05ddf1be4bd2e3c0764368783eae5a96b6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/5336fb05ddf1be4bd2e3c0764368783eae5a96b6/test_associate.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3103,
67,
11577,
4436,
2290,
12,
2890,
4672,
309,
3988,
30,
1172,
2337,
82,
2187,
2400,
2218,
380,
5196,
1172,
315,
7051,
738,
87,
18,
3813,
3103,
67,
11577,
4436,
2290,
7070,
738,... |
head += "<script type='text/javascript'>jsMath.styles[' | def _html_head(self, worksheet_filename, username): if worksheet_filename is not None: worksheet = self.get_worksheet_with_filename(worksheet_filename) head = '\n<title>%s (Sage)</title>'%(worksheet.name()) else: head = '\n<title>Sage Notebook | Welcome</title>' | a6c22a4c70558253a17b97b645ec54233d2d4e61 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/a6c22a4c70558253a17b97b645ec54233d2d4e61/notebook.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
1978,
12,
2890,
16,
13622,
67,
3459,
16,
2718,
4672,
309,
13622,
67,
3459,
353,
486,
599,
30,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
1252,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2620,
67,
1978,
12,
2890,
16,
13622,
67,
3459,
16,
2718,
4672,
309,
13622,
67,
3459,
353,
486,
599,
30,
13622,
273,
365,
18,
588,
67,
1252,
8118,
67,
1918,
67,
3459,
12,
1252,
8... | |
return self.siglevel-0x100 | return self.siglevel | def getSignallevel(self): """ returns signal level """ return self.siglevel-0x100 | 18b2d105b8dbefad8eab230de77e2c5bbabd1b6d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3159/18b2d105b8dbefad8eab230de77e2c5bbabd1b6d/iwlibs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14167,
287,
2815,
12,
2890,
4672,
3536,
1135,
4277,
1801,
3536,
327,
365,
18,
7340,
2815,
17,
20,
92,
6625,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14167,
287,
2815,
12,
2890,
4672,
3536,
1135,
4277,
1801,
3536,
327,
365,
18,
7340,
2815,
17,
20,
92,
6625,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
if now - task.start_time < self.timeout: | if task.start_time is None or now - task.start_time < self.timeout: | def _timeout_tasks(self): """ Stop tasks that have met or exceeded the queue's timeout length. """ if self.timeout is None: return running_tasks = self.__storage.running_tasks() if not running_tasks: return now = datetime.now() for task in running_tasks: if now - task.start_time < self.timeout: continue thread = self._... | 1a8bb80e63e020f71b0ec8f8713a437e2b1f745b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10692/1a8bb80e63e020f71b0ec8f8713a437e2b1f745b/fifo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4538,
67,
9416,
12,
2890,
4672,
3536,
5131,
4592,
716,
1240,
5100,
578,
12428,
326,
2389,
1807,
2021,
769,
18,
3536,
309,
365,
18,
4538,
353,
599,
30,
327,
3549,
67,
9416,
273,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4538,
67,
9416,
12,
2890,
4672,
3536,
5131,
4592,
716,
1240,
5100,
578,
12428,
326,
2389,
1807,
2021,
769,
18,
3536,
309,
365,
18,
4538,
353,
599,
30,
327,
3549,
67,
9416,
273,
36... |
if multiline and len(vstr) > self._variable_linelen: | if len(vstr) > self._variable_linelen: | def pprint_pyval(self, pyval, multiline=True, summary_linelen=0): # Handle the most common cases first. The following types # will never need any line wrapping, etc; and they cover most # variable values (esp int, for constants). I leave out # LongType on purpose, since long values may need line- # wrapping. if (type... | ead96d86090e18fdeec64a06319b925d20efd2b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11420/ead96d86090e18fdeec64a06319b925d20efd2b2/html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
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,
18771,
67,
2074,
1125,
12,
2890,
16,
2395,
1125,
16,
19431,
33,
5510,
16,
4916,
67,
7511,
292,
275,
33,
20,
4672,
468,
5004,
326,
4486,
2975,
6088,
1122,
18,
225,
1021,
3751,
1953,
468... |
def GetLastMember(id): | def GetLastMember(sid): | def GetLastMember(id): """ Get offset of the last member of a structure @param id: structure type ID @return: -1 if bad structure type ID is passed or structure has no members otherwise returns offset of the last member. @note: IDA allows 'holes' between members of a structure. It treats these 'holes' as unnamed arr... | 244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3024,
4419,
12,
7453,
4672,
3536,
968,
1384,
434,
326,
1142,
3140,
434,
279,
3695,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
300,
21,
309,
5570,
3695,
618,
1599... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
3024,
4419,
12,
7453,
4672,
3536,
968,
1384,
434,
326,
1142,
3140,
434,
279,
3695,
225,
632,
891,
612,
30,
3695,
618,
1599,
225,
632,
2463,
30,
300,
21,
309,
5570,
3695,
618,
1599... |
if not compare_record(old,new) : | if not compare_record(old,new,ignore_name) : | def compare_records(old_list, new_list) : """Check two lists of SeqRecords agree, raises a ValueError if mismatch.""" if len(old_list) != len(new_list) : raise ValueError("%i vs %i records" % (len(old_list), len(new_list))) for old, new in zip(old_list, new_list) : if not compare_record(old,new) : return False return T... | fb1b12e4f45aee41028f31e3010c1be3d0f9d3a9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7167/fb1b12e4f45aee41028f31e3010c1be3d0f9d3a9/test_SeqIO_features.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
3536,
1564,
2795,
6035,
434,
14367,
6499,
1737,
992,
16,
14183,
279,
2068,
309,
13484,
12123,
309,
562,
12,
1673,
67,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
67,
7094,
12,
1673,
67,
1098,
16,
394,
67,
1098,
13,
294,
3536,
1564,
2795,
6035,
434,
14367,
6499,
1737,
992,
16,
14183,
279,
2068,
309,
13484,
12123,
309,
562,
12,
1673,
67,
10... |
self._pos=[] self._boundary=[] self._assoc=None | def clear(self): """ Empties the graph of vertices and edges and removes name, boundary, associated objects, and position information. | 755c16174b2e37df79a60a4018440b4daeaff70f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/755c16174b2e37df79a60a4018440b4daeaff70f/graph.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2424,
12,
2890,
4672,
3536,
7377,
337,
606,
326,
2667,
434,
6928,
471,
5231,
471,
7157,
508,
16,
7679,
16,
3627,
2184,
16,
471,
1754,
1779,
18,
2,
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,
2424,
12,
2890,
4672,
3536,
7377,
337,
606,
326,
2667,
434,
6928,
471,
5231,
471,
7157,
508,
16,
7679,
16,
3627,
2184,
16,
471,
1754,
1779,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
f = 'function(){' + element + '}' | f = element | def do_execute(self, window, parser, element): f = 'function(){' + element + '}' | 3721c9f729ec7c1585f408e61dbe0d7f60c3b94b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4006/3721c9f729ec7c1585f408e61dbe0d7f60c3b94b/DOM.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8837,
12,
2890,
16,
2742,
16,
2082,
16,
930,
4672,
284,
273,
296,
915,
1435,
27828,
397,
930,
397,
9571,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
8837,
12,
2890,
16,
2742,
16,
2082,
16,
930,
4672,
284,
273,
296,
915,
1435,
27828,
397,
930,
397,
9571,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
print 'posmatch = ',posmatch print 'cellmatch = ',cellmatch,self.atoms.get_cell(),atoms.get_cell() print 'lenmatch = ',lenmatch | if self.debug > 1: print 'posmatch = ',posmatch,abs(a['positions'] - b['positions']) print 'cellmatch = ',cellmatch,self.atoms.get_cell(),atoms.get_cell() print 'lenmatch = ',lenmatch | def atoms_are_equal(self,atoms): ''' comparison of atoms to self.atoms using tolerances to account for float/double differences and float math. ''' TOL = 1.0e-6 #angstroms | 28c3f2a245341cd8f82e1ffe9c9883dad13198ad /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1380/28c3f2a245341cd8f82e1ffe9c9883dad13198ad/jacapo.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
67,
834,
67,
9729,
12,
2890,
16,
14937,
4672,
9163,
5826,
434,
9006,
358,
365,
18,
14937,
1450,
6085,
264,
6872,
358,
2236,
364,
1431,
19,
9056,
16440,
471,
1431,
4233,
18,
9163,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9006,
67,
834,
67,
9729,
12,
2890,
16,
14937,
4672,
9163,
5826,
434,
9006,
358,
365,
18,
14937,
1450,
6085,
264,
6872,
358,
2236,
364,
1431,
19,
9056,
16440,
471,
1431,
4233,
18,
9163,
... |
if filename: | if filename and not isdir(filename): | def load_module(self, name, stuff): module = ModuleLoader.load_module(self, name, stuff) file, filename, info = stuff | 198d871a6d66c04ac7133dd997c54dffffc5676f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7049/198d871a6d66c04ac7133dd997c54dffffc5676f/importers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
508,
16,
10769,
4672,
1605,
273,
5924,
2886,
18,
945,
67,
2978,
12,
2890,
16,
508,
16,
10769,
13,
585,
16,
1544,
16,
1123,
273,
10769,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
67,
2978,
12,
2890,
16,
508,
16,
10769,
4672,
1605,
273,
5924,
2886,
18,
945,
67,
2978,
12,
2890,
16,
508,
16,
10769,
13,
585,
16,
1544,
16,
1123,
273,
10769,
2,
-100,
-100,
-1... |
why = os.strerror(err.errno) | why = _strerror(err) | def ftp_SIZE(self, line): """Return size of file in a format suitable for using with RESTart as defined into RFC 3659. | e155be2e9b3e40d9bd92788d2569c640df5f0b57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7236/e155be2e9b3e40d9bd92788d2569c640df5f0b57/ftpserver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
3536,
990,
963,
434,
585,
316,
279,
740,
10631,
364,
1450,
598,
8392,
485,
487,
2553,
1368,
8372,
6580,
6162,
18,
2,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13487,
67,
4574,
12,
2890,
16,
980,
4672,
3536,
990,
963,
434,
585,
316,
279,
740,
10631,
364,
1450,
598,
8392,
485,
487,
2553,
1368,
8372,
6580,
6162,
18,
2,
-100,
-100,
-100,
-100,
-... |
result = [self.getPkgById(pkg.key) for pkg in result] | result = [self.getPkgById(pkg["install_id"]) for pkg in result] | def searchObsoletes(self, name, flag, version): if self.obsoletes_list is None: self._readObsoletes() result = self.obsoletes_list.search(name, flag, version) result = [self.getPkgById(pkg.key) for pkg in result] return filter(None, result) | 845f48f23a00b90270ce7fa94ef3fb74bfc20685 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1143/845f48f23a00b90270ce7fa94ef3fb74bfc20685/rpmdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
27637,
355,
278,
281,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
225,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
27637,
355,
278,
281,
12,
2890,
16,
508,
16,
2982,
16,
1177,
4672,
309,
365,
18,
10992,
355,
278,
281,
67,
1098,
353,
599,
30,
365,
6315,
896,
27637,
355,
278,
281,
1435,
225,
... |
sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info()))); | sys.stdout.write(''.join(traceback.format_exception(*sys.exc_info()))) break | def serve_forever(self): # We want this to run in a thread, so we use a slightly # modified version of "forever". self.active = True while self.active: try: self.handle_request() except socket.timeout: pass except KeyboardInterrupt: self.server_close() return except: sys.stdout.write(''.join(traceback.format_exception(... | 0098c9d60997f40c8e75714db9963337dc834378 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/0098c9d60997f40c8e75714db9963337dc834378/test_ssl.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
12,
2890,
4672,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12175,
67,
1405,
502,
12,
2890,
4672,
468,
1660,
2545,
333,
358,
1086,
316,
279,
2650,
16,
1427,
732,
999,
279,
21980,
468,
4358,
1177,
434,
315,
1405,
502,
9654,
365,
18,
3535,
273,
1... |
return ValueError("Flavor %s not understood" % flavor) | raise ValueError("Flavor %s not understood" % flavor) | def pdir_from_reg(version, flavor = 'std'): """Try to find the product directory from the registry. Return None if failed or the directory does not exist""" if not SCons.Util.can_read_reg: debug('SCons cannot read registry') return None if flavor == 'std': vsbase = _VS_STANDARD_HKEY_ROOT % version elif flavor == 'ex... | b55f0466c61180204b67de07d104fd571ce6266f /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/b55f0466c61180204b67de07d104fd571ce6266f/MSVCCommon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1214,
67,
2080,
67,
1574,
12,
1589,
16,
19496,
273,
296,
5084,
11,
4672,
3536,
7833,
358,
1104,
326,
225,
3017,
1867,
628,
326,
4023,
18,
225,
2000,
599,
309,
2535,
578,
326,
1867... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
1214,
67,
2080,
67,
1574,
12,
1589,
16,
19496,
273,
296,
5084,
11,
4672,
3536,
7833,
358,
1104,
326,
225,
3017,
1867,
628,
326,
4023,
18,
225,
2000,
599,
309,
2535,
578,
326,
1867... |
navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class=navtrail href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | navtrail_previous_links = bibformatadminlib.getnavtrail(''' > <a class="navtrail" href="%s/admin/bibformat/bibformatadmin.py/kb_manage?ln=%s">%s</a>''' % (config.weburl, ln, _("Manage Knowledge Bases"))) | def kb_show(req, kb, sortby="to", ln=config.cdslang): """ Shows the content of the given knowledge base id. Check for authentication and kb existence. Before displaying the content of the knowledge base, check if a form was submitted asking for adding, editing or removing a value. @param ln language @param kb the kb i... | f08fe81d00d74f462e6a931c4d621a61c821b5b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/f08fe81d00d74f462e6a931c4d621a61c821b5b1/bibformatadmin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4500,
12,
3658,
16,
9182,
16,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
9674,
87,
326,
913,
434,
326,
864,
20272,
1026,
612,
18,
2073,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9182,
67,
4500,
12,
3658,
16,
9182,
16,
1524,
1637,
1546,
869,
3113,
7211,
33,
1425,
18,
4315,
2069,
539,
4672,
3536,
9674,
87,
326,
913,
434,
326,
864,
20272,
1026,
612,
18,
2073,
364... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.