rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
self.assertIsInstance(items[0][0], int) self.assertIsInstance(items[0][1], str) | self.assertTrue(isinstance(items[0][0], int)) self.assertTrue(isinstance(items[0][1], str)) | def test01_basic(self): d = db.DB() | b62bf81229c1b9502246f627f8284f73d7dd31ac /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/b62bf81229c1b9502246f627f8284f73d7dd31ac/test_recno.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
1611,
67,
13240,
12,
2890,
4672,
302,
273,
1319,
18,
2290,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1611,
67,
13240,
12,
2890,
4672,
302,
273,
1319,
18,
2290,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def run_one_example(): | class subgroup_comparator: def __init__(self,symmetry): self.symmetry = symmetry def get_input_symmetry_subgroups(self): cb_op_input_to_primitive = self.symmetry.change_of_basis_op_to_primitive_setting() primitive_symmetry = self.symmetry.primitive_setting() cb_op_input_to_minimum = primitive_symmetry.change_of_basis... | def run_one_example(): # symmetry from 3ged crystal_symmetry = crystal.symmetry( unit_cell=uctbx.unit_cell((124.287,124.287,162.608,90.0,90.0,90.0)), space_group=sgtbx.space_group_info('I 41 2 2').group()) cb_op_input_to_primitive = crystal_symmetry.change_of_basis_op_to_primitive_setting() primitive_symmetry = crysta... | 0ab86c61448327eb063d01b796ae714dcae8a2b2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/696/0ab86c61448327eb063d01b796ae714dcae8a2b2/tst_iotbx_converter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
720,
1655,
67,
832,
2528,
30,
225,
1652,
1001,
2738,
972,
12,
2890,
16,
8117,
18042,
4672,
365,
18,
8117,
18042,
273,
26144,
225,
1652,
336,
67,
2630,
67,
8117,
18042,
67,
1717,
4650,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
667,
720,
1655,
67,
832,
2528,
30,
225,
1652,
1001,
2738,
972,
12,
2890,
16,
8117,
18042,
4672,
365,
18,
8117,
18042,
273,
26144,
225,
1652,
336,
67,
2630,
67,
8117,
18042,
67,
1717,
4650,
1... |
mainmodule = os.path.basename(filename) | def help(): for dirname in sys.path: fullname = os.path.join(dirname, 'pdb.doc') if os.path.exists(fullname): sts = os.system('${PAGER-more} '+fullname) if sts: print '*** Pager exit status:', sts break else: print 'Sorry, can\'t find the help file "pdb.doc"', print 'along the Python search path' | 25b38c89690e79e8f3bc78245b73017eed07f42e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/25b38c89690e79e8f3bc78245b73017eed07f42e/pdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
13332,
364,
4283,
316,
2589,
18,
803,
30,
13321,
273,
1140,
18,
803,
18,
5701,
12,
12287,
16,
296,
17414,
18,
2434,
6134,
309,
1140,
18,
803,
18,
1808,
12,
21885,
4672,
27099,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2809,
13332,
364,
4283,
316,
2589,
18,
803,
30,
13321,
273,
1140,
18,
803,
18,
5701,
12,
12287,
16,
296,
17414,
18,
2434,
6134,
309,
1140,
18,
803,
18,
1808,
12,
21885,
4672,
27099,
27... | |
return (objects, output_dir) | raise TypeError, \ "'libraries' (if supplied) must be a list of strings" if library_dirs is None: library_dirs = self.library_dirs elif type (library_dirs) in (ListType, TupleType): library_dirs = list (library_dirs) + (self.library_dirs or []) else: raise TypeError, \ "'library_dirs' (if supplied) must be a list of s... | def _fix_link_args (self, objects, output_dir, takes_libs=0, libraries=None, library_dirs=None): """Typecheck and fix up some of the arguments supplied to the 'link_*' methods and return the fixed values. Specifically: ensure that 'objects' is a list; if output_dir is None, use self.output_dir; ensure that 'libraries'... | f10f95d6bb7854ba2b3a8f6b554bcb8baecd7674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/f10f95d6bb7854ba2b3a8f6b554bcb8baecd7674/ccompiler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
904,
67,
1232,
67,
1968,
261,
2890,
16,
2184,
16,
876,
67,
1214,
16,
5530,
67,
21571,
33,
20,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
4672,
3536,
559,
1893,
471,
2917... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
904,
67,
1232,
67,
1968,
261,
2890,
16,
2184,
16,
876,
67,
1214,
16,
5530,
67,
21571,
33,
20,
16,
14732,
33,
7036,
16,
5313,
67,
8291,
33,
7036,
4672,
3536,
559,
1893,
471,
2917... |
name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower()) | try: name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower()) except: name='' | def _create_id(self, cr, uid, model, data): i = 0 while True: name = filter(lambda x: x in string.letters, (data.get('name','') or '').lower()) val = model.replace('.','_')+'_'+name+ str(i) i+=1 if val not in self.ids.values(): break return val | 86dbc91231b51093fd5ba58d5c30d3acfe783579 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7397/86dbc91231b51093fd5ba58d5c30d3acfe783579/base_module_record.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2640,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
501,
4672,
277,
273,
374,
1323,
1053,
30,
775,
30,
508,
273,
1034,
12,
14661,
619,
30,
619,
316,
533,
18,
26054,
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,
389,
2640,
67,
350,
12,
2890,
16,
4422,
16,
4555,
16,
938,
16,
501,
4672,
277,
273,
374,
1323,
1053,
30,
775,
30,
508,
273,
1034,
12,
14661,
619,
30,
619,
316,
533,
18,
26054,
16,
... |
self.options = OptionsDialog(self.view) self.__ReadConfigurationFile() | def SaveSWF(self, filename, pages, options): self.__lastsavefile = filename t = _SaveSWFThread(filename, self.__pdf, pages, options) t.Start() return t | def __init__(self): self.__doc = Document() | fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5722/fcd6c28d68c03c59b4bb6281c6aa4848b3cddf56/app.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2434,
273,
4319,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
16186,
2434,
273,
4319,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
print 'FILL' | def _tag_menuitem(self, cr, rec, data_node=None): rec_id = rec.getAttribute("id").encode('ascii') m_l = map(escape, escape_re.split(rec.getAttribute("name").encode('utf8'))) pid = False for idx, menu_elem in enumerate(m_l): if pid: cr.execute('select id from ir_ui_menu where parent_id=%d and name=%s', (pid, menu_elem))... | 29a1e47fb1295ff56a6f74368f7337fbbb92177b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12853/29a1e47fb1295ff56a6f74368f7337fbbb92177b/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
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,
389,
2692,
67,
5414,
1726,
12,
2890,
16,
4422,
16,
1950,
16,
501,
67,
2159,
33,
7036,
4672,
1950,
67,
350,
273,
1950,
18,
588,
1499,
2932,
350,
20387,
3015,
2668,
9184,
6134,
312,
67,
... | |
''' scan the given subtree for source filesnames | """ scan the given subtree for source filesnames | def scanSrcSubtree(root): ''' scan the given subtree for source filesnames (python generator function) ''' for (dir,_,files) in os.walk(root): if dir.startswith('./'): dir = dir[2:] for p in SRCPATTERNS: for f in fnmatch.filter(files, p): yield os.path.join(dir,f) | 805399aa7bd426f570ac3d393804b04d329e3b77 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/13677/805399aa7bd426f570ac3d393804b04d329e3b77/Buildhelper.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
7740,
18615,
12,
3085,
4672,
3536,
4135,
326,
864,
12773,
364,
1084,
1390,
1973,
261,
8103,
4456,
445,
13,
9163,
364,
261,
1214,
16,
67,
16,
2354,
13,
316,
1140,
18,
11348,
12,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4135,
7740,
18615,
12,
3085,
4672,
3536,
4135,
326,
864,
12773,
364,
1084,
1390,
1973,
261,
8103,
4456,
445,
13,
9163,
364,
261,
1214,
16,
67,
16,
2354,
13,
316,
1140,
18,
11348,
12,
3... |
evalString += "%s])" % tdata[-1] | evalString += "%s])" % tData[-1] | def setData(self, *dataList): """ Set data to the plot | 7c21316bd2b0282da374aba97a863460405e2cdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/7c21316bd2b0282da374aba97a863460405e2cdb/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
380,
892,
682,
4672,
3536,
1000,
501,
358,
326,
3207,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7929,
12,
2890,
16,
380,
892,
682,
4672,
3536,
1000,
501,
358,
326,
3207,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
_run_nose(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", "checkin"]) def _run_nose(argv): | _run_nose(argv=["", "--with-nosexunit", "--source-folder=src", "--where=test/springpythontest", "--xml-report-folder=%s" % dir, "--with-coverage", "--cover-package=springpython", test_suite], debug_level=debug_level) def _run_nose(argv, debug_level): logger = logging.getLogger("springpython") loggingLevel = debug_leve... | def test_coverage(dir): """ Run nose programmatically, so that it uses the same python version as this script uses Nose expects to receive a sys.argv, of which the first arg is the script path (usually nosetests). Since this isn't being run that way, a filler entry was created to satisfy the library's needs. """ if n... | 170dd39b88ceef35d0bd055f76db990772aa994f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7713/170dd39b88ceef35d0bd055f76db990772aa994f/build.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
16356,
12,
1214,
4672,
3536,
1939,
1158,
307,
5402,
26500,
1230,
16,
1427,
716,
518,
4692,
326,
1967,
5790,
1177,
487,
333,
2728,
4692,
225,
423,
2584,
10999,
358,
6798,
279,
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,
67,
16356,
12,
1214,
4672,
3536,
1939,
1158,
307,
5402,
26500,
1230,
16,
1427,
716,
518,
4692,
326,
1967,
5790,
1177,
487,
333,
2728,
4692,
225,
423,
2584,
10999,
358,
6798,
279,
2... |
return self.add_module(src.__name__) | return self.add_module(src.__name__) | def copy_none(self, src): | ce7c76df1b92a89c9b48d025af1313d1dcf28c4f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/ce7c76df1b92a89c9b48d025af1313d1dcf28c4f/rexec.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
6102,
12,
2890,
16,
1705,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
67,
6102,
12,
2890,
16,
1705,
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,... |
self.stc.EnsureCaretVisible() def showLine(self, pos, msg): self.resetColor() self.frame.SetStatusText(msg) line = self.stc.LineFromPosition(pos) self.stc.EnsureVisible(line) | self.dprint() | def sel(self, posns, posne, msg, interactive=True): if interactive: self.resetColor() self.frame.SetStatusText(msg) line = self.stc.LineFromPosition(posns) self.stc.GotoLine(line) posns, posne = self.getRange(posns, posne-posns) self.stc.SetSelection(posns, posne) if interactive: self.stc.EnsureVisible(line) self.stc.E... | 8a28b0efda1c203a706edbd9f92f2fac98e2c69a /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11522/8a28b0efda1c203a706edbd9f92f2fac98e2c69a/find_replace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
357,
12,
2890,
16,
949,
2387,
16,
949,
4644,
16,
1234,
16,
12625,
33,
5510,
4672,
309,
12625,
30,
365,
18,
6208,
2957,
1435,
365,
18,
3789,
18,
20547,
1528,
12,
3576,
13,
980,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
357,
12,
2890,
16,
949,
2387,
16,
949,
4644,
16,
1234,
16,
12625,
33,
5510,
4672,
309,
12625,
30,
365,
18,
6208,
2957,
1435,
365,
18,
3789,
18,
20547,
1528,
12,
3576,
13,
980,
273,
3... |
node = parentIndex.internalPointer() if parentIndex.isValid() else self | def removeRows(self, row, count, parentIndex): self.beginRemoveRows(parentIndex, row, row + count - 1) node = parentIndex.internalPointer() if parentIndex.isValid() else self node.invalidate() self.endRemoveRows() return True | b7f433aab5e94eba6ef479572b7b0edb8792127f /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2072/b7f433aab5e94eba6ef479572b7b0edb8792127f/fs_model.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
4300,
12,
2890,
16,
1027,
16,
1056,
16,
982,
1016,
4672,
365,
18,
10086,
3288,
4300,
12,
2938,
1016,
16,
1027,
16,
1027,
397,
1056,
300,
404,
13,
756,
18,
5387,
340,
1435,
365,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1206,
4300,
12,
2890,
16,
1027,
16,
1056,
16,
982,
1016,
4672,
365,
18,
10086,
3288,
4300,
12,
2938,
1016,
16,
1027,
16,
1027,
397,
1056,
300,
404,
13,
756,
18,
5387,
340,
1435,
365,
... | |
path = os.path.normpath(path) | path = os.path.abspath(path) | def main(args): import cPickle options, args = parse_args(args) exitcode = 0 if options.configfile: readConfigFile(options) try: # step 1: make/find the system if options.systemclass: systemclass = findClassFromDottedName(options.systemclass, '--system-class') if not issubclass(systemclass, model.System): msg = "%s ... | c807309301a92bfd7a7a639573230d3cb458e76d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5471/c807309301a92bfd7a7a639573230d3cb458e76d/driver.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
1930,
276,
17968,
298,
702,
16,
833,
273,
1109,
67,
1968,
12,
1968,
13,
225,
2427,
710,
273,
374,
225,
309,
702,
18,
1425,
768,
30,
855,
13705,
12,
2116,
13,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
4672,
1930,
276,
17968,
298,
702,
16,
833,
273,
1109,
67,
1968,
12,
1968,
13,
225,
2427,
710,
273,
374,
225,
309,
702,
18,
1425,
768,
30,
855,
13705,
12,
2116,
13,
22... |
def _draw_turtle(self,position=[]): | def speed(self, speed): """ Set the turtle's speed. speed must one of these five strings: 'fastest' is a 0 ms delay 'fast' is a 5 ms delay 'normal' is a 10 ms delay 'slow' is a 15 ms delay 'slowest' is a 20 ms delay Example: >>> turtle.speed('slow') """ try: speed = speed.strip().lower() self._delay = speeds.index(s... | def _draw_turtle(self,position=[]): if not self._tracing: return if position == []: position = self._position x,y = position distance = 8 dx = distance * cos(self._angle*self._invradian) dy = distance * sin(self._angle*self._invradian) self._delete_turtle() self._arrow = self._canvas.create_line(x-dx,y+dy,x,y, width=se... | 97324e132aa8e41ef597f91f42d2d171c39f616a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/97324e132aa8e41ef597f91f42d2d171c39f616a/turtle.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8632,
12,
2890,
16,
8632,
4672,
3536,
1000,
326,
268,
295,
5929,
1807,
8632,
18,
225,
8632,
1297,
1245,
434,
4259,
23714,
2064,
30,
225,
296,
8076,
395,
11,
353,
279,
374,
4086,
4624,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8632,
12,
2890,
16,
8632,
4672,
3536,
1000,
326,
268,
295,
5929,
1807,
8632,
18,
225,
8632,
1297,
1245,
434,
4259,
23714,
2064,
30,
225,
296,
8076,
395,
11,
353,
279,
374,
4086,
4624,
... |
for [returnType, names, arguments] in functions: | for [return_type, names, arguments] in functions: | file.write('#ifndef APP_GFX_GL_GL_BINDINGS_AUTOGEN_%s_H_\n' % setName.upper()) | 218a5a204661ad6185f01d6233b35b2d5f86027b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/218a5a204661ad6185f01d6233b35b2d5f86027b/generate_bindings.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
10756,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
585,
18,
2626,
2668,
7,
430,
82,
536,
9146,
67,
43,
25172,
67,
11261,
67,
11261,
67,
2739,
55,
67,
18909,
16652,
10185,
87,
67,
44,
22202,
82,
11,
738,
6788,
18,
5797,
10756,
2,
-100,
-100... |
raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s: %s' % (exit_code, error)) | raise MediaConverterError('could not run ffmpeg: "ffmpeg -h" has exited with code %s' % (exit_code, )) | def _check_ffmpeg(): """Returns True if ffmpeg is installed with the proper options (libmp3lame), False otherwise.""" status = os.system("ffmpeg -h") if sys.platform != 'win32' and os.WIFEXITED(status): # TODO: portable way to get the exit code exit_code = os.WEXITSTATUS(status) else: exit_code = status if exit_code: r... | e6432ede4523b4af9c464c3c457f399784f17826 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/e6432ede4523b4af9c464c3c457f399784f17826/MediaConverter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1403,
19951,
13332,
3536,
1356,
1053,
309,
6875,
19951,
353,
5876,
598,
326,
5338,
702,
261,
2941,
1291,
23,
80,
339,
3631,
1083,
3541,
12123,
1267,
273,
1140,
18,
4299,
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,
389,
1893,
67,
1403,
19951,
13332,
3536,
1356,
1053,
309,
6875,
19951,
353,
5876,
598,
326,
5338,
702,
261,
2941,
1291,
23,
80,
339,
3631,
1083,
3541,
12123,
1267,
273,
1140,
18,
4299,
2... |
x = i = H = pS = 0 | x = i = H = pS = hx = 0 | def split(self, availWidth, availHeight): canv = self.canv C = self._content x = i = H = pS = 0 n = len(C) I2W = {} for x in xrange(n): c = C[x] I = c._ptoinfo if I not in I2W.keys(): T = I.trailer Hdr = I.header tW, tH = _listWrapOn(T, availWidth, self.canv) tSB = T[0].getSpaceBefore() I2W[I] = T,tW,tH,tSB else: T,tW,... | 5ff6a5fdbd2ac83da8c2921d82a3bd22bd2e6039 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/5ff6a5fdbd2ac83da8c2921d82a3bd22bd2e6039/flowables.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
15783,
2384,
16,
15783,
2686,
4672,
848,
90,
273,
365,
18,
4169,
90,
385,
273,
365,
6315,
1745,
619,
273,
277,
273,
670,
273,
293,
55,
273,
366,
92,
273,
374,
290... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1416,
12,
2890,
16,
15783,
2384,
16,
15783,
2686,
4672,
848,
90,
273,
365,
18,
4169,
90,
385,
273,
365,
6315,
1745,
619,
273,
277,
273,
670,
273,
293,
55,
273,
366,
92,
273,
374,
290... |
from distutils.command.install import INSTALL_SCHEMES for scheme in INSTALL_SCHEMES.values(): scheme['data'] = scheme['purelib'] | def run(self): if not self.py_modules and not self.packages: return if self.py_modules: self.build_modules() if self.packages: self.build_packages() self.byte_compile(self.get_outputs(include_bytecode=0)) | de006b806a333fa96f2e3e2298c71a1f9dec8006 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1278/de006b806a333fa96f2e3e2298c71a1f9dec8006/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
2074,
67,
6400,
471,
486,
365,
18,
10308,
30,
327,
309,
365,
18,
2074,
67,
6400,
30,
365,
18,
3510,
67,
6400,
1435,
309,
365,
18,
10308,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
486,
365,
18,
2074,
67,
6400,
471,
486,
365,
18,
10308,
30,
327,
309,
365,
18,
2074,
67,
6400,
30,
365,
18,
3510,
67,
6400,
1435,
309,
365,
18,
10308,
30,
... | |
- ``transformation`` - (default: None) a transformation to apply. May be a 4-tuple (x_func, y_func, z_func, fvar) where the first 3 items indicate a transformation to cartesian coordinates (from your coordinate system) in terms of u, v, and the function variable fvar (for which the value of f will be substituted). May ... | - ``transformation`` - (default: None) a transformation to apply. May be a 3 or 4-tuple (x_func, y_func, z_func, independent_vars) where the first 3 items indicate a transformation to cartesian coordinates (from your coordinate system) in terms of u, v, and the function variable fvar (for which the value of f will be s... | def plot3d(f, urange, vrange, adaptive=False, transformation=None, **kwds): """ INPUT: - ``f`` - a symbolic expression or function of 2 variables - ``urange`` - a 2-tuple (u_min, u_max) or a 3-tuple (u, u_min, u_max) - ``vrange`` - a 2-tuple (v_min, v_max) or a 3-tuple (v, v_min, v_max) - ``adaptive`` - (defau... | f1a033cac620bf133b1f996c6db511753cab6f3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9890/f1a033cac620bf133b1f996c6db511753cab6f3d/plot3d.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
23,
72,
12,
74,
16,
8896,
726,
16,
331,
3676,
16,
5855,
688,
33,
8381,
16,
8620,
33,
7036,
16,
2826,
25577,
4672,
3536,
12943,
30,
282,
300,
225,
12176,
74,
10335,
300,
279,
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,
3207,
23,
72,
12,
74,
16,
8896,
726,
16,
331,
3676,
16,
5855,
688,
33,
8381,
16,
8620,
33,
7036,
16,
2826,
25577,
4672,
3536,
12943,
30,
282,
300,
225,
12176,
74,
10335,
300,
279,
16... |
'/usr/lib', | '/usr/local/lib', | def detect_modules(self): # Ensure that /usr/local is always used add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') | 141cd423f5039b9efe4d6fa7280d4d98d607e1ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/141cd423f5039b9efe4d6fa7280d4d98d607e1ba/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
6400,
12,
2890,
4672,
468,
7693,
716,
342,
13640,
19,
3729,
353,
3712,
1399,
527,
67,
1214,
67,
869,
67,
1098,
12,
2890,
18,
9576,
18,
12083,
67,
8291,
16,
1173,
13640,
19,
... |
WakeupSignalTests, SiginterruptTest) | WakeupSignalTests, SiginterruptTest, ItimerTest) | def test_main(): test_support.run_unittest(BasicSignalTests, InterProcessSignalTests, WakeupSignalTests, SiginterruptTest) | fb2c3b45c4caf1be64df5f7c3cfc00180d61d030 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12029/fb2c3b45c4caf1be64df5f7c3cfc00180d61d030/test_signal.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
8252,
11208,
14650,
16,
5294,
2227,
11208,
14650,
16,
678,
911,
416,
11208,
14650,
16,
21911,
31847,
4709,
16,
2597,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5254,
13332,
1842,
67,
13261,
18,
2681,
67,
4873,
3813,
12,
8252,
11208,
14650,
16,
5294,
2227,
11208,
14650,
16,
678,
911,
416,
11208,
14650,
16,
21911,
31847,
4709,
16,
2597,
... |
raise AttributeError("Attribute '%s' is read-only.") | raise AttributeError("Attribute '%s' is read-only." % name) | def __setattr__(self, name, value): hidden = getattr(self, "__hidden") if name in hidden: current = hidden.get(name) if current is None: if isinstance(value, numpy.ndarray): value.setflags(write=False) hidden[name] = value else: raise AttributeError("Attribute '%s' is read-only.") else: object.__setattr__(self, name, v... | 204982b5bbda62ba857b98f49bd4bd2527b79707 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11053/204982b5bbda62ba857b98f49bd4bd2527b79707/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
5949,
273,
3869,
12,
2890,
16,
10425,
6345,
7923,
309,
508,
316,
5949,
30,
783,
273,
5949,
18,
588,
12,
529,
13,
309,
783,
353... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
542,
1747,
972,
12,
2890,
16,
508,
16,
460,
4672,
5949,
273,
3869,
12,
2890,
16,
10425,
6345,
7923,
309,
508,
316,
5949,
30,
783,
273,
5949,
18,
588,
12,
529,
13,
309,
783,
353... |
total_hists=1, nbins=20, hist_width=None, hist_norm=None): | total_hists=1, nbins=20, hist_width=[0,0], hist_norm=None): | def histdiff(table1, table2, col_name, plot_type, hist_num, total_hists=1, nbins=20, hist_width=None, hist_norm=None): """ function to plot a histogram of the difference of the value of col_name between table1 and table2 @param table1: metaDataTable @param table2: metaDataTable @param col_name: name of column to plot... | c6e94ec0fb1c0e3e18e2e09d23920e541e16592a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5758/c6e94ec0fb1c0e3e18e2e09d23920e541e16592a/viz.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5356,
5413,
12,
2121,
21,
16,
1014,
22,
16,
645,
67,
529,
16,
3207,
67,
723,
16,
5356,
67,
2107,
16,
2078,
67,
76,
1486,
33,
21,
16,
225,
4264,
2679,
33,
3462,
16,
5356,
67,
2819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5356,
5413,
12,
2121,
21,
16,
1014,
22,
16,
645,
67,
529,
16,
3207,
67,
723,
16,
5356,
67,
2107,
16,
2078,
67,
76,
1486,
33,
21,
16,
225,
4264,
2679,
33,
3462,
16,
5356,
67,
2819,
... |
return self.tfm(x + 5 * fi(i), y, yoff) | return self.tfm(x + 5 * fi(i), y, yoff, yflip) | def tfm2(x, y): return self.tfm(x + 5 * fi(i), y, yoff) | f3eeb04707884fb7833f737347fd9735848b706e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11221/f3eeb04707884fb7833f737347fd9735848b706e/dimensions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3253,
81,
22,
12,
92,
16,
677,
4672,
327,
365,
18,
6632,
81,
12,
92,
397,
1381,
380,
7314,
12,
77,
3631,
677,
16,
677,
3674,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3253,
81,
22,
12,
92,
16,
677,
4672,
327,
365,
18,
6632,
81,
12,
92,
397,
1381,
380,
7314,
12,
77,
3631,
677,
16,
677,
3674,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
clause = In('usesysid', row.grolist) | if row.grolist is None: clause = None else: clause = 'usesysid in %s' % row.grolist | def get_users(self, group=None): clause = None if group is not None: clause = Eq('groname', group) row = self.db.select_row(fields=['grolist'], table='pg_group', clause=clause) clause = In('usesysid', row.grolist) fields = ['usename', 'usesysid'] return self.db.select(fields=fields, table='pg_user', clause=clause) | 8f69fc6c710b7089f9cc8113cae6adfa00fe8a06 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2501/8f69fc6c710b7089f9cc8113cae6adfa00fe8a06/admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5577,
12,
2890,
16,
1041,
33,
7036,
4672,
6591,
273,
599,
309,
1041,
353,
486,
599,
30,
6591,
273,
24931,
2668,
75,
1949,
339,
2187,
1041,
13,
1027,
273,
365,
18,
1966,
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,
336,
67,
5577,
12,
2890,
16,
1041,
33,
7036,
4672,
6591,
273,
599,
309,
1041,
353,
486,
599,
30,
6591,
273,
24931,
2668,
75,
1949,
339,
2187,
1041,
13,
1027,
273,
365,
18,
1966,
18,
... |
filePath = os.path.join(os.path.dirname(self._job.get("compile-options/paths/file")), package.file) | filePath = self._config.absPath(self._job.get("compile-options/paths/file")) filePath = os.path.join(os.path.dirname(filePath), package.file) | def writePackages(self, packages, script): | 67be3c084a3efe99ba920ae0e46c4019f61563c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/67be3c084a3efe99ba920ae0e46c4019f61563c1/CodeGenerator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
11425,
12,
2890,
16,
5907,
16,
2728,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
11425,
12,
2890,
16,
5907,
16,
2728,
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... |
infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), newInfraNodes) | infra = ns3.NodeContainer(ns3.NodeContainer(backbone.Get(i)), stas) | def main(argv): # # First, we declare and initialize a few local variables that control some # simulation parameters. # backboneNodes = 10 infraNodes = 5 lanNodes = 5 stopTime = 10 # # Simulation defaults are typically set next, before command line # arguments are parsed. # ns3.Config.SetDefault("ns3::OnOffApplica... | 101ff6648fd16cde81e6411fa653e46544298119 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7746/101ff6648fd16cde81e6411fa653e46544298119/mixed-wireless.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
19485,
4672,
468,
468,
225,
5783,
16,
732,
14196,
471,
4046,
279,
11315,
1191,
3152,
716,
3325,
2690,
468,
225,
14754,
1472,
18,
468,
1473,
19930,
3205,
273,
1728,
8286,
354,
3... |
not try to detect the po file encoding | not try to detect the po file encoding (optional, default to True) - *encoding*: string, an encoding, only relevant if autodetect_encoding is set to False | def mofile(fpath, wrapwidth=78, autodetect_encoding=True): """ Convenience function that parse the mo file *fpath* and return a MOFile instance. **Keyword arguments**: - *fpath*: string, full or relative path to the mo file to parse - *wrapwidth*: integer, the wrap width, only useful when -w option was passed to xgett... | 84283a42e705237a5676e2d029a85a48c882212d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/84283a42e705237a5676e2d029a85a48c882212d/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7344,
768,
12,
28900,
16,
2193,
2819,
33,
8285,
16,
2059,
369,
278,
386,
67,
5999,
33,
5510,
4672,
3536,
735,
9080,
445,
716,
1109,
326,
7344,
585,
380,
28900,
14,
471,
327,
279,
16070... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7344,
768,
12,
28900,
16,
2193,
2819,
33,
8285,
16,
2059,
369,
278,
386,
67,
5999,
33,
5510,
4672,
3536,
735,
9080,
445,
716,
1109,
326,
7344,
585,
380,
28900,
14,
471,
327,
279,
16070... |
lock = traced_call(None,"getlock",getlock,args,kwargs) | lock = traced_call(None,"createlock",createlock,args,kwargs) | def wrapped_getlock(*args,**kwargs): # Trace the call to get the lock lock = traced_call(None,"getlock",getlock,args,kwargs) # Return the wrapped lock return LockObj(lock) | 73585345fe5f99a8f8f82c8c6e5fba2301440367 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7263/73585345fe5f99a8f8f82c8c6e5fba2301440367/strace.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
588,
739,
30857,
1968,
16,
636,
4333,
4672,
468,
2677,
326,
745,
358,
336,
326,
2176,
2176,
273,
2606,
72,
67,
1991,
12,
7036,
10837,
27350,
292,
975,
3113,
27350,
292,
975,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5805,
67,
588,
739,
30857,
1968,
16,
636,
4333,
4672,
468,
2677,
326,
745,
358,
336,
326,
2176,
2176,
273,
2606,
72,
67,
1991,
12,
7036,
10837,
27350,
292,
975,
3113,
27350,
292,
975,
... |
day = int(mo.group(day)) year = int(mo.group(year)) hour = int(mo.group(hour)) min = int(mo.group(min)) sec = int(mo.group(sec)) zoneh = int(mo.group(zoneh)) zonem = int(mo.group(zonem)) | day = int(mo.group('day')) year = int(mo.group('year')) hour = int(mo.group('hour')) min = int(mo.group('min')) sec = int(mo.group('sec')) zoneh = int(mo.group('zoneh')) zonem = int(mo.group('zonem')) | def Internaldate2tuple(resp): """Convert IMAP4 INTERNALDATE to UT. Returns Python time module tuple. """ mo = InternalDate.match(resp) if not mo: return None mon = Mon2num[mo.group('mon')] zonen = mo.group('zonen') day = int(mo.group(day)) year = int(mo.group(year)) hour = int(mo.group(hour)) min = int(mo.group(min... | 1cb949e02a2b684e42632ed3ee42c01e8be12ea8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/1cb949e02a2b684e42632ed3ee42c01e8be12ea8/imaplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3186,
712,
22,
8052,
12,
12243,
4672,
3536,
2723,
6246,
2203,
24,
18139,
4594,
358,
4732,
18,
225,
2860,
6600,
813,
1605,
3193,
18,
3536,
225,
7344,
273,
3186,
1626,
18,
1916,
12,
12243,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3186,
712,
22,
8052,
12,
12243,
4672,
3536,
2723,
6246,
2203,
24,
18139,
4594,
358,
4732,
18,
225,
2860,
6600,
813,
1605,
3193,
18,
3536,
225,
7344,
273,
3186,
1626,
18,
1916,
12,
12243,... |
( {'label':'Contents', 'action':'manage_main', 'help':('OFSP','Control-Panel_Contents.dtml')}, ) +Undo.UndoSupport.manage_options ) id ='Control_Panel' name=title='Control Panel' meta_type ='Control Panel' icon='p_/ControlPanel_icon' process_id=os.getpid() process_start=int(time.time()) manage_addObject=None... | ( {'label':'Debugging Info', 'action':'manage_main', 'help':('OFSP','DebugInfo-Debug.dtml')}, {'label':'Profiling', 'action':'manage_profile', 'help':('OFSP','DebugInfo-Profile.dtml')}, ) ) | def sys_platform(self): return sys.platform | 09e6a202ddf687c78c33a7a6774b6900b16fb69b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9658/09e6a202ddf687c78c33a7a6774b6900b16fb69b/ApplicationManager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2589,
67,
9898,
12,
2890,
4672,
327,
2589,
18,
9898,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2589,
67,
9898,
12,
2890,
4672,
327,
2589,
18,
9898,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
self.__putConnection(connection) | self.__putConnection( connection ) | def _escapeValues( self, inValues = [] ): """ Escapes all strings in the list of values provided """ self.logger.debug( '_escapeValues:', inValues ) | 0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/0e53f5944800e7e4e2a93a0c3f1aefa6be7f7b08/MySQL.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6939,
1972,
12,
365,
16,
316,
1972,
273,
5378,
262,
30,
3536,
512,
1017,
7315,
777,
2064,
316,
326,
666,
434,
924,
2112,
3536,
365,
18,
4901,
18,
4148,
12,
2070,
6939,
1972,
30,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6939,
1972,
12,
365,
16,
316,
1972,
273,
5378,
262,
30,
3536,
512,
1017,
7315,
777,
2064,
316,
326,
666,
434,
924,
2112,
3536,
365,
18,
4901,
18,
4148,
12,
2070,
6939,
1972,
30,
... |
elif os.name == u'mac': pass | def _getLineWidth(self): width = 80 # 'posix', 'nt', 'dos', 'os2', 'mac', or 'ce' if os.name == u'posix' or os.name == u'mac' or os.name == u'os2': try: width_in, width_tmp, width_err = os.popen3('stty size') except ValueError: return width if not width_err.read(): width_tmp = width_tmp.read() width_in.close() width_tm... | d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1664/d47ae56aadc97a6b2d8b1a2e17c3824e7e3bc676/rssdler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
1670,
2384,
12,
2890,
4672,
1835,
273,
8958,
468,
296,
24463,
2187,
296,
496,
2187,
296,
19219,
2187,
296,
538,
22,
2187,
296,
5821,
2187,
578,
296,
311,
11,
309,
1140,
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,
389,
588,
1670,
2384,
12,
2890,
4672,
1835,
273,
8958,
468,
296,
24463,
2187,
296,
496,
2187,
296,
19219,
2187,
296,
538,
22,
2187,
296,
5821,
2187,
578,
296,
311,
11,
309,
1140,
18,
5... | |
dict_string = dict_string.strip(" {}") | try: evaluated_dict = eval(dict_string, {"__builtins__": {}}, {}) except: evaluated_dict = {} | def get_dictionary_from_string(dict_string): """Given a string version of a "dictionary", split the string into a python dictionary. For example, given the following string: {'TITLE' : 'EX_TITLE', 'AUTHOR' : 'EX_AUTHOR', 'REPORTNUMBER' : 'EX_RN'} A dictionary in the following format will be returned: { 'TITLE' :... | 27b839d58ba764a3d6ac21d85504e7ea967d3c94 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12027/27b839d58ba764a3d6ac21d85504e7ea967d3c94/Shared_Functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15556,
67,
2080,
67,
1080,
12,
1576,
67,
1080,
4672,
3536,
6083,
279,
533,
1177,
434,
279,
315,
15556,
3113,
1416,
326,
533,
1368,
279,
5790,
3880,
18,
2457,
3454,
16,
864,
32... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
15556,
67,
2080,
67,
1080,
12,
1576,
67,
1080,
4672,
3536,
6083,
279,
533,
1177,
434,
279,
315,
15556,
3113,
1416,
326,
533,
1368,
279,
5790,
3880,
18,
2457,
3454,
16,
864,
32... |
_add_section(doc, token, stack, indent_stack, errors, warnings) | _add_section(doc, token, stack, indent_stack, errors) | def parse(str, errors = None, warnings = None): """ Return a DOM tree encoding the contents of an epytext string. Any errors or warnings generated during parsing will be stored in the C{errors} and C{warnings} parameters. @param str: The epytext string to parse. @type str: C{string} @param errors: A list where any er... | 7bf7c136593a0f12e906094a55f7b8f591c5abaf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3512/7bf7c136593a0f12e906094a55f7b8f591c5abaf/epytext.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
701,
16,
1334,
273,
599,
16,
5599,
273,
599,
4672,
3536,
2000,
279,
4703,
2151,
2688,
326,
2939,
434,
392,
425,
2074,
955,
533,
18,
5502,
1334,
578,
5599,
4374,
4982,
5811,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
701,
16,
1334,
273,
599,
16,
5599,
273,
599,
4672,
3536,
2000,
279,
4703,
2151,
2688,
326,
2939,
434,
392,
425,
2074,
955,
533,
18,
5502,
1334,
578,
5599,
4374,
4982,
5811,
9... |
["source/run.c"], | ["source/run.c", "source/start.c"], | def _removefiles(self, dstdir, srcdir): if not os.path.isdir(srcdir): return for n in os.listdir(srcdir): name = os.path.join(dstdir, n) if os.path.isfile(name): self.announce("removing '%s'" % name) if not self.dry_run: os.remove(name) if os.path.splitext(name)[1] == '.py': try: os.remove(name + 'c') except: pass try:... | 6c0e865e7cfefd57ec3be3495edb997bb8f96e7f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/1361/6c0e865e7cfefd57ec3be3495edb997bb8f96e7f/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
2354,
12,
2890,
16,
3046,
1214,
16,
1705,
1214,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4816,
1214,
4672,
327,
364,
290,
316,
1140,
18,
1098,
1214,
12,
4816,
1214,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4479,
2354,
12,
2890,
16,
3046,
1214,
16,
1705,
1214,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
4816,
1214,
4672,
327,
364,
290,
316,
1140,
18,
1098,
1214,
12,
4816,
1214,... |
self.assertEqual(lookup.directories, ['a', 'b']) | module_path = os.path.dirname(sys.modules['__main__'].__file__) self.assertEqual(lookup.directories, [ os.path.join(module_path, 'a'), os.path.join(module_path, 'b')]) | def test_directories_list(self): from pyramid.mako_templating import IMakoLookup settings = {'mako.directories':['a', 'b']} info = DummyRendererInfo({ 'name':'helloworld.mak', 'package':None, 'registry':self.config.registry, 'settings':settings, }) self._callFUT(info) lookup = self.config.registry.getUtility(IMakoLooku... | b4675031ed9b2313e9df5cd73dc2575bec67192b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14321/b4675031ed9b2313e9df5cd73dc2575bec67192b/test_mako_templating.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15121,
67,
1098,
12,
2890,
4672,
628,
2395,
23083,
18,
81,
581,
83,
67,
27380,
1776,
1930,
6246,
581,
83,
6609,
1947,
273,
13666,
81,
581,
83,
18,
15121,
4278,
3292,
69,
2187... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15121,
67,
1098,
12,
2890,
4672,
628,
2395,
23083,
18,
81,
581,
83,
67,
27380,
1776,
1930,
6246,
581,
83,
6609,
1947,
273,
13666,
81,
581,
83,
18,
15121,
4278,
3292,
69,
2187... |
self.rbAlignment.SetSelection(text_to_ID(self.curOptions.alignment)) | self.rbAlignment.SetSelection(util.text_to_ID(self.curOptions.alignment)) | def SetOptions(self, menuOpts): """Set control values based on the provided MenuOptions.""" self.curOptions = menuOpts | 39f50e3e21f3be060f5de23ec9248e81c76a04ed /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2305/39f50e3e21f3be060f5de23ec9248e81c76a04ed/panels.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1320,
12,
2890,
16,
3824,
5476,
4672,
3536,
694,
3325,
924,
2511,
603,
326,
2112,
9809,
1320,
12123,
365,
18,
1397,
1320,
273,
3824,
5476,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
1320,
12,
2890,
16,
3824,
5476,
4672,
3536,
694,
3325,
924,
2511,
603,
326,
2112,
9809,
1320,
12123,
365,
18,
1397,
1320,
273,
3824,
5476,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
manifestchangeset[changes[0]] = n | def verify(self): filelinkrevs = {} filenodes = {} manifestchangeset = {} changesets = revisions = files = 0 errors = 0 | d28dfb673f54a4ab197cab7a012ae86c69a139b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/d28dfb673f54a4ab197cab7a012ae86c69a139b4/hg.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
4672,
661,
27269,
266,
6904,
273,
2618,
661,
275,
1145,
273,
2618,
5643,
6329,
278,
273,
2618,
3478,
2413,
273,
18325,
273,
1390,
273,
374,
1334,
273,
374,
2,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3929,
12,
2890,
4672,
661,
27269,
266,
6904,
273,
2618,
661,
275,
1145,
273,
2618,
5643,
6329,
278,
273,
2618,
3478,
2413,
273,
18325,
273,
1390,
273,
374,
1334,
273,
374,
2,
-100,
-100,... | |
print 2, 'extension', extension | def parse_post(self, entry): # parse the dates first. updated = parse_iso8601(entry.findtext(atom.updated)) published = entry.findtext(atom.published) if published is not None: published = parse_iso8601(published) else: published = updated | 3971ab248c9675fd10b8e78a70a73a9f06d0bdb4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5796/3971ab248c9675fd10b8e78a70a73a9f06d0bdb4/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2767,
12,
2890,
16,
1241,
4672,
468,
1109,
326,
7811,
1122,
18,
3526,
273,
1109,
67,
9699,
14181,
12,
4099,
18,
4720,
955,
12,
7466,
18,
7007,
3719,
9487,
273,
1241,
18,
4720... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2767,
12,
2890,
16,
1241,
4672,
468,
1109,
326,
7811,
1122,
18,
3526,
273,
1109,
67,
9699,
14181,
12,
4099,
18,
4720,
955,
12,
7466,
18,
7007,
3719,
9487,
273,
1241,
18,
4720... | |
'commitment_date': fields.function(_get_commitment_date, method=True,store=True, type='date', string='Commitment Date', help="Date on which delivery of products is to be made"), | 'commitment_date': fields.function(_get_commitment_date, method=True, store=True, type='date', string='Commitment Date', help="Date on which delivery of products is to be made"), | def _get_commitment_date(self, cr, uid, ids, name, arg, context={}): res = {} dates_list = [] for order in self.browse(cr, uid, ids): dates_list = [] for line in order.order_line: dt = datetime.strptime(order.date_order, '%Y-%m-%d') + relativedelta(days=line.delay or 0.0) dt_s = dt.strftime('%Y-%m-%d') dates_list.appen... | f7eae25635f6966d88cdbfc057fef7ac01f12d3d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/f7eae25635f6966d88cdbfc057fef7ac01f12d3d/sale_order_dates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
7371,
475,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
7811,
67,
1098,
273,
5378,
364,
1353,
316,
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,
389,
588,
67,
7371,
475,
67,
712,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
508,
16,
1501,
16,
819,
12938,
4672,
400,
273,
2618,
7811,
67,
1098,
273,
5378,
364,
1353,
316,
365,
18,... |
shutil.copyfile(kconfig.path, os.path.join(self.branch.srcdir, ".config")) | if kconfig.path: shutil.copyfile(kconfig.path, os.path.join(self.branch.srcdir, ".config")) | def do_configure(self, buildscript): buildscript.set_action(_('Configuring'), self) | 3c3b5cab97cd85b94624d2a4563b4dc89c24dfc2 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4596/3c3b5cab97cd85b94624d2a4563b4dc89c24dfc2/linux.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
14895,
12,
2890,
16,
1361,
4263,
4672,
1361,
4263,
18,
542,
67,
1128,
24899,
2668,
809,
4017,
19899,
365,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
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,
14895,
12,
2890,
16,
1361,
4263,
4672,
1361,
4263,
18,
542,
67,
1128,
24899,
2668,
809,
4017,
19899,
365,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
sys.stderr.write("Error: Cannot read %s.\n" % url_direct[1:-1]) | sys.stderr.write("Error: Cannot read %s.\n" % url_direct) | def get_words_from_fulltext(url_indirect,separators="[^\w]",split=string.split): """Returns all the words contained in the fulltext whose url is contained in the document pointed to in phrase. Please note the double indirection. url_indirect returns a document that has to be parsed to get the actual urls.""" if cfg_bib... | 561825a6b79fb9a0227b867de758f582751b04a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/561825a6b79fb9a0227b867de758f582751b04a3/bibindex_engine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
67,
2080,
67,
2854,
955,
12,
718,
67,
728,
867,
16,
11287,
87,
1546,
15441,
91,
65,
3113,
4939,
33,
1080,
18,
4939,
4672,
3536,
1356,
777,
326,
4511,
7542,
316,
326,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
3753,
67,
2080,
67,
2854,
955,
12,
718,
67,
728,
867,
16,
11287,
87,
1546,
15441,
91,
65,
3113,
4939,
33,
1080,
18,
4939,
4672,
3536,
1356,
777,
326,
4511,
7542,
316,
326,
1... |
sage: G = abelian_2group(3).gcs() | sage: G = elementary_abelian_2group(3).gcs() | def is_uniquely_completable(self): """ Returns True if the partial latin square self has exactly one completion to a latin square. This is just a wrapper for the current best-known algorithm, Dancing Links by Knuth. See dancing_links.spyx | be8c2e6b4b0657cdd72dccd599da425d93a43bab /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/be8c2e6b4b0657cdd72dccd599da425d93a43bab/latin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
318,
18988,
2357,
67,
7806,
429,
12,
2890,
4672,
3536,
2860,
1053,
309,
326,
4702,
30486,
8576,
365,
711,
8950,
1245,
8364,
358,
279,
30486,
8576,
18,
1220,
353,
2537,
279,
4053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
67,
318,
18988,
2357,
67,
7806,
429,
12,
2890,
4672,
3536,
2860,
1053,
309,
326,
4702,
30486,
8576,
365,
711,
8950,
1245,
8364,
358,
279,
30486,
8576,
18,
1220,
353,
2537,
279,
4053... |
print 'opening %s' % url | def _query(self, path=None, **keyvars): """ obj._query(path=None, **keyvars) -> xml string | b416cacb8ad84b111e61fa22756b38ff9f6ebba8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13713/b416cacb8ad84b111e61fa22756b38ff9f6ebba8/MythBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2271,
12,
2890,
16,
589,
33,
7036,
16,
2826,
856,
4699,
4672,
3536,
1081,
6315,
2271,
12,
803,
33,
7036,
16,
2826,
856,
4699,
13,
317,
2025,
533,
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,
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,
389,
2271,
12,
2890,
16,
589,
33,
7036,
16,
2826,
856,
4699,
4672,
3536,
1081,
6315,
2271,
12,
803,
33,
7036,
16,
2826,
856,
4699,
13,
317,
2025,
533,
2,
-100,
-100,
-100,
-100,
-100,
... | |
self.assert_(not os.path.exists(linkname)) | self.assert_(not os.path.lexists(linkname)) | def test_delete(self): """Unit test for method delete()""" | e08d8cbaa1024e6af1840257911d4a6a2b6d83a6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7853/e08d8cbaa1024e6af1840257911d4a6a2b6d83a6/FileUtilities.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3733,
12,
2890,
4672,
3536,
2802,
1842,
364,
707,
1430,
1435,
8395,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3733,
12,
2890,
4672,
3536,
2802,
1842,
364,
707,
1430,
1435,
8395,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
ctype, gp = patches[f] | gp = patches[f] | def updatedir(ui, repo, patches): '''Update dirstate after patch application according to metadata''' if not patches: return copies = [] removes = {} cfiles = patches.keys() cwd = repo.getcwd() if cwd: cfiles = [util.pathto(repo.root, cwd, f) for f in patches.keys()] for f in patches: ctype, gp = patches[f] if ctype ==... | 545f4d8d558fec3c96fc1546200fe77944791dac /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11312/545f4d8d558fec3c96fc1546200fe77944791dac/patch.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3526,
481,
12,
4881,
16,
3538,
16,
16482,
4672,
9163,
1891,
302,
920,
340,
1839,
4729,
2521,
4888,
358,
1982,
26418,
309,
486,
16482,
30,
327,
13200,
273,
5378,
7157,
273,
2618,
276,
235... |
data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal | data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal | def getRemoteHash(self, filename): data = self.sendCMD(['hash ' + filename]) if (data == None): return '' retVal = self.stripPrompt(data) if (retVal != None): retVal = retVal.strip('\n') if (self.debug >= 3): print "remote hash returned: '" + retVal + "'" return retVal | 6d855d666bf8a81ed9b14d5d4659023ea46c184a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/6d855d666bf8a81ed9b14d5d4659023ea46c184a/devicemanager.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14879,
2310,
12,
2890,
16,
1544,
4672,
501,
273,
365,
18,
4661,
19473,
12,
3292,
2816,
296,
397,
1544,
5717,
309,
261,
892,
422,
599,
4672,
327,
875,
12197,
273,
365,
18,
6406,
15967,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14879,
2310,
12,
2890,
16,
1544,
4672,
501,
273,
365,
18,
4661,
19473,
12,
3292,
2816,
296,
397,
1544,
5717,
309,
261,
892,
422,
599,
4672,
327,
875,
12197,
273,
365,
18,
6406,
15967,
... |
type(e) is not exc): | type(e) is not exc): | def testAttributes(self): # test that exception attributes are happy try: str(u'Hello \u00E1') except Exception, e: sampleUnicodeEncodeError = e | 80dc76e9072c4adaedf5c52032699b859c82eca2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/80dc76e9072c4adaedf5c52032699b859c82eca2/test_exceptions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
2498,
12,
2890,
4672,
468,
1842,
716,
1520,
1677,
854,
5622,
2074,
775,
30,
609,
12,
89,
11,
18601,
521,
89,
713,
41,
21,
6134,
1335,
1185,
16,
425,
30,
3296,
16532,
5509,
668,
... |
self.UIManager.get_widget('/MainMenu/MiscKeysMenuHidden').set_property('visible', False) | def __init__(self): gtk.gdk.threads_init() | dae71a8ff3f44139da0ed295e4c9db01c71db241 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2291/dae71a8ff3f44139da0ed295e4c9db01c71db241/mirage.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
225,
22718,
18,
75,
2883,
18,
12495,
67,
2738,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... | |
result = dict( inode_id = inode_id, url = e['URL'], _LastVisitDate = "from_unixtime('%s')" % e['LastVisitDate'][:10], _FirstVisitDate = "from_unixtime('%s')" % e['FirstVisitDate'][:10], id = e['id']) | try: result = dict( inode_id = inode_id, url = e['URL'], _LastVisitDate = "from_unixtime('%s')" % e['LastVisitDate'][:10], _FirstVisitDate = "from_unixtime('%s')" % e['FirstVisitDate'][:10], id = e['id']) except KeyError: continue | def external_process(self, fd): ## Read all the events from the file: pyflaglog.log(pyflaglog.DEBUG, "Processing %s as mork" % self.fd.inode) dbh = DB.DBO(self.case) inode_id = self.fd.lookup_id() h = MozHist.MozHist(fd=fd) context = None while 1: token = h.next_token() if not token: break | 40a14036c7ae7ac7ec840097cee0e8c2b3bf764c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5568/40a14036c7ae7ac7ec840097cee0e8c2b3bf764c/Mozilla.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3903,
67,
2567,
12,
2890,
16,
5194,
4672,
7541,
2720,
777,
326,
2641,
628,
326,
585,
30,
2395,
6420,
1330,
18,
1330,
12,
2074,
6420,
1330,
18,
9394,
16,
315,
7798,
738,
87,
487,
312,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3903,
67,
2567,
12,
2890,
16,
5194,
4672,
7541,
2720,
777,
326,
2641,
628,
326,
585,
30,
2395,
6420,
1330,
18,
1330,
12,
2074,
6420,
1330,
18,
9394,
16,
315,
7798,
738,
87,
487,
312,
... |
inputSE = StorageElement( transferDict[ 'InputSE' ] ) inputSE.removeFile( file ) | def __transferIfNotRegistered( self, file, transferDict ): result = self.isRegisteredInOutputCatalog( file, transferDict ) if not result[ 'OK' ]: self.log.error( result[ 'Message' ] ) return result #Already registered. Need to delete if result[ 'Value' ]: self.log.info( "Transfer file %s is already registered in the ou... | c508b064da88ba529bdae6d7ae9523660970d485 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12038/c508b064da88ba529bdae6d7ae9523660970d485/OutputDataExecutor.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
13866,
10288,
10868,
12,
365,
16,
585,
16,
7412,
5014,
262,
30,
563,
273,
365,
18,
291,
10868,
382,
1447,
9769,
12,
585,
16,
7412,
5014,
262,
309,
486,
563,
63,
296,
3141,
11,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
13866,
10288,
10868,
12,
365,
16,
585,
16,
7412,
5014,
262,
30,
563,
273,
365,
18,
291,
10868,
382,
1447,
9769,
12,
585,
16,
7412,
5014,
262,
309,
486,
563,
63,
296,
3141,
11,
... | |
user_taro.login.user_name + '@' + domain, | user_taro.login.user_name + '@' + apps_domain, | def test001MethodsForEmaillist(self): """Tests methods for emaillist """ user_name = 'YujiMatsuo-' + self.postfix family_name = 'Matsuo' given_name = 'Yuji' password = '123$$abc' suspended = 'false' | 432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6580/432cc086d6a9ff3dc03c0c0c8c2e4f58f235ba5a/service_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11664,
4712,
1290,
4134,
1098,
12,
2890,
4672,
3536,
14650,
2590,
364,
2699,
1098,
3536,
225,
729,
67,
529,
273,
296,
61,
11501,
77,
49,
2323,
89,
83,
6627,
397,
365,
18,
2767,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
11664,
4712,
1290,
4134,
1098,
12,
2890,
4672,
3536,
14650,
2590,
364,
2699,
1098,
3536,
225,
729,
67,
529,
273,
296,
61,
11501,
77,
49,
2323,
89,
83,
6627,
397,
365,
18,
2767,
9... |
val = logn(3,-1) assert(0) except ValueError: | val = log2(-1) assert(0) except OverflowError: | def check_log_neg(self): """ Later have log(-1) raise warning, not error """ try: val = logn(3,-1) assert(0) except ValueError: pass | c9316d1d2ba5e114019481f968becf25226dff17 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c9316d1d2ba5e114019481f968becf25226dff17/test_misc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1330,
67,
14518,
12,
2890,
4672,
3536,
511,
2045,
1240,
613,
19236,
21,
13,
1002,
3436,
16,
486,
555,
3536,
775,
30,
1244,
273,
613,
22,
19236,
21,
13,
1815,
12,
20,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
1330,
67,
14518,
12,
2890,
4672,
3536,
511,
2045,
1240,
613,
19236,
21,
13,
1002,
3436,
16,
486,
555,
3536,
775,
30,
1244,
273,
613,
22,
19236,
21,
13,
1815,
12,
20,
13,
225... |
self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) self.jig_color_pixmap = get_widget_with_color_palette( | self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) self.jig_color_pixmap = get_widget_with_color_palette( | def setup(self): '''Initializes the dialog and it's widgets ''' self.jig_attrs = self.jig.copyable_attrs_dict() # Save the jig's attributes in case of Cancel. # Jig color self.jig_QColor = RGBf_to_QColor(self.jig.normcolor) # Used as default color by Color Chooser | bd01a8e6fe710371d813f6a499a7e6617f837706 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/bd01a8e6fe710371d813f6a499a7e6617f837706/JigProp.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
9163,
9685,
326,
6176,
471,
518,
1807,
10965,
9163,
225,
365,
18,
78,
360,
67,
7039,
273,
365,
18,
78,
360,
18,
3530,
429,
67,
7039,
67,
1576,
1435,
468,
7074,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
12,
2890,
4672,
9163,
9685,
326,
6176,
471,
518,
1807,
10965,
9163,
225,
365,
18,
78,
360,
67,
7039,
273,
365,
18,
78,
360,
18,
3530,
429,
67,
7039,
67,
1576,
1435,
468,
7074,
... |
'msg' : _("The field %(field)s is mandatory.") + '\n' + _("Going back to page") + returnto['page'], | 'msg' : _("The field %(field)s is mandatory.") + '\n' \ + _("Going back to page") \ + str(returnto['page']), | def tmpl_page_interface_js(self, ln, upload, field, fieldhtml, txt, check, level, curdir, values, select, radio, curpage, nbpages, images, returnto): """ Produces the javascript for validation and value filling for a submit interface page | f8295d07a88ae11b179c4dac6feb905627c3506c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/f8295d07a88ae11b179c4dac6feb905627c3506c/websubmit_templates.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2433,
67,
5831,
67,
2924,
12,
2890,
16,
7211,
16,
3617,
16,
652,
16,
652,
2620,
16,
6463,
16,
866,
16,
1801,
16,
662,
1214,
16,
924,
16,
2027,
16,
13512,
16,
662,
2433,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10720,
67,
2433,
67,
5831,
67,
2924,
12,
2890,
16,
7211,
16,
3617,
16,
652,
16,
652,
2620,
16,
6463,
16,
866,
16,
1801,
16,
662,
1214,
16,
924,
16,
2027,
16,
13512,
16,
662,
2433,
... |
return url, [], None return url, {}, None | return [], None return {}, None | def ohloh_url2data(url, selector, params = {}, many = False, API_KEY = None, person=None): '''Input: A URL to get, a bunch of parameters to toss onto the end url-encoded, many (a boolean) indicating if we should return a list of just one datum, API_KEY suggesting a key to use with Ohloh, and a Person object to, if the ... | b59d458cd897dbc72d6d2574b975f73b40c0009a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11976/b59d458cd897dbc72d6d2574b975f73b40c0009a/ohloh.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29797,
383,
76,
67,
718,
22,
892,
12,
718,
16,
3451,
16,
859,
273,
10615,
4906,
273,
1083,
16,
1491,
67,
3297,
273,
599,
16,
6175,
33,
7036,
4672,
9163,
1210,
30,
432,
1976,
358,
336... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
29797,
383,
76,
67,
718,
22,
892,
12,
718,
16,
3451,
16,
859,
273,
10615,
4906,
273,
1083,
16,
1491,
67,
3297,
273,
599,
16,
6175,
33,
7036,
4672,
9163,
1210,
30,
432,
1976,
358,
336... |
if flag not in ('-j', '-m', '-d'): | if flag not in ('-j', '-m', '-p', '-d'): | def parse_jitflags(): jitflags = [ [ '-' + flag for flag in flags ] for flags in OPTIONS.jitflags.split(',') ] for flags in jitflags: for flag in flags: if flag not in ('-j', '-m', '-d'): print('Invalid jit flag: "%s"'%flag) sys.exit(1) return jitflags | 69c844d45a657a30457ccd326fa323ce4fd470b6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11102/69c844d45a657a30457ccd326fa323ce4fd470b6/jit_test.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
78,
305,
7133,
13332,
525,
305,
7133,
273,
306,
306,
4014,
397,
2982,
364,
2982,
316,
2943,
308,
364,
2943,
316,
16726,
18,
78,
305,
7133,
18,
4939,
12,
2187,
6134,
308,
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,
1109,
67,
78,
305,
7133,
13332,
525,
305,
7133,
273,
306,
306,
4014,
397,
2982,
364,
2982,
316,
2943,
308,
364,
2943,
316,
16726,
18,
78,
305,
7133,
18,
4939,
12,
2187,
6134,
308,
364,... |
self.assertEqual(simu.pop(0).indInfo('info1'), tuple([6.0]*10)) self.assertEqual(simu.pop(0).indInfo('info2'), tuple([12.]*10)) | self.assertEqual(simu.population(0).indInfo('info1'), tuple([6.0]*10)) self.assertEqual(simu.population(0).indInfo('info2'), tuple([12.]*10)) | def indFunc1(ind, param): 'do something to info2' ind.setInfo(ind.info('info2')+param[1], 'info2') return True | a435b11df2d7d7fb6018bc8d134c677d4cf639ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/401/a435b11df2d7d7fb6018bc8d134c677d4cf639ae/test_09_pyOperator.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1547,
2622,
21,
12,
728,
16,
579,
4672,
296,
2896,
5943,
358,
1123,
22,
11,
1547,
18,
542,
966,
12,
728,
18,
1376,
2668,
1376,
22,
6134,
15,
891,
63,
21,
6487,
296,
1376,
22,
6134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1547,
2622,
21,
12,
728,
16,
579,
4672,
296,
2896,
5943,
358,
1123,
22,
11,
1547,
18,
542,
966,
12,
728,
18,
1376,
2668,
1376,
22,
6134,
15,
891,
63,
21,
6487,
296,
1376,
22,
6134,
... |
return [x for x in Directory(self.cfg['patches_dir'])] | return [x for x in Directory(self.patches_dir)] | def list(self): """List patches. """ return [x for x in Directory(self.cfg['patches_dir'])] | 3ca6542562023ec3ef0019aeb55f887f7c10e766 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/14549/3ca6542562023ec3ef0019aeb55f887f7c10e766/distributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
12,
2890,
4672,
3536,
682,
16482,
18,
3536,
327,
306,
92,
364,
619,
316,
8930,
12,
2890,
18,
7066,
3292,
30278,
67,
1214,
19486,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
666,
12,
2890,
4672,
3536,
682,
16482,
18,
3536,
327,
306,
92,
364,
619,
316,
8930,
12,
2890,
18,
7066,
3292,
30278,
67,
1214,
19486,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
self.load_status = ((x + 0.0)/(len(candidate_modules) - 1)) | counter = counter + 1 self.load_status = (counter + 0.0)/len(candidate_modules) | def execute_load(self): # Perform validation to ensure that we didn't end up invalid # parameters if type(self.path_list) is not list: raise ModuleLoaderInitException(MLOAD_NOT_LIST) # Only perform an actual import if we have a non-zero list if len(self.path_list) is not 0: # Perform validation of the content of the p... | b0ef13ccc93492a85fde2f334efc074b4e2eb122 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/635/b0ef13ccc93492a85fde2f334efc074b4e2eb122/moduleloader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
945,
12,
2890,
4672,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
618,
12,
2890,
18,
803,
67,
1098,
13,
353,
486,
666,
30,
1002,
5924,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
945,
12,
2890,
4672,
468,
11217,
3379,
358,
3387,
716,
732,
10242,
1404,
679,
731,
2057,
468,
1472,
309,
618,
12,
2890,
18,
803,
67,
1098,
13,
353,
486,
666,
30,
1002,
5924,
... |
def blackman(M): | def triang(M,sym=1): """The M-point triangular window. """ if M < 1: return Numeric.array([]) if M == 1: return Numeric.ones(1,'d') odd = M % 2 if not sym and not odd: M = M + 1 n = grid[1:(M+1)/2+1] if M % 2 == 0: w = (2*n-1.0)/M w = r_[w, w[::-1]] else: w = 2*n/(M+1.0) w = r_[w, w[-2::-1]] if not sym and not odd: w ... | def blackman(M): """The M-point Blackman window. """ n = arange(0,M) return 0.42-0.5*cos(2.0*pi*n/(M-1)) + 0.08*cos(4.0*pi*n/(M-1)) | c910a765560a2edce76e1be8b2a9eead5b434b0d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/c910a765560a2edce76e1be8b2a9eead5b434b0d/signaltools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
539,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
6882,
13077,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6882,
539,
12,
49,
16,
8117,
33,
21,
4672,
3536,
1986,
490,
17,
1153,
6882,
13077,
2742,
18,
3536,
309,
490,
411,
404,
30,
327,
16980,
18,
1126,
3816,
5717,
309,
490,
422,
404,
30,
3... |
for lfn,fileDict in lfnFileIDDict.items(): lfns[lfn].update(fileDict) res = self._insertReplicas(lfns,connection=connection) | for lfn, fileDict in lfnFileIDDict.items(): lfns[lfn].update( fileDict ) res = self._insertReplicas( lfns, connection = connection ) | def _addReplicas(self,lfns,connection=False): connection = self._getConnection(connection) successful = {} res = self._findFiles(lfns.keys(),['DirID','FileID','Size'],connection=connection) failed = res['Value']['Failed'] for lfn in failed.keys(): lfns.pop(lfn) lfnFileIDDict = res['Value']['Successful'] for lfn,fileDic... | 26c5008a7adbc1c761e2409bed59b7710e5f2c74 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/26c5008a7adbc1c761e2409bed59b7710e5f2c74/FileManagerBase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1289,
17248,
12,
2890,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
6873,
273,
2618,
400,
273,
365,
6315,
4720,
2697,
12,
20850,
2387,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
17248,
12,
2890,
16,
20850,
2387,
16,
4071,
33,
8381,
4672,
1459,
273,
365,
6315,
588,
1952,
12,
4071,
13,
6873,
273,
2618,
400,
273,
365,
6315,
4720,
2697,
12,
20850,
2387,
... |
":PlugIns:macspeechmodule.ppc.", | ":PlugIns:macspeech.ppc.", | def buildapplet(top, dummy, list): """Create a PPC python applet""" template = mkapplet.findtemplate() for src in list: if src[-3:] != '.py': raise 'Should end in .py', src base = os.path.basename(src) dst = os.path.join(top, base)[:-3] src = os.path.join(top, src) try: os.unlink(dst) except os.error: pass print 'Build... | 057971528d37cbb45d80d7d16fdfe890e3bd356e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/057971528d37cbb45d80d7d16fdfe890e3bd356e/fullbuild.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
438,
1469,
12,
3669,
16,
9609,
16,
666,
4672,
3536,
1684,
279,
453,
3513,
5790,
21853,
8395,
1542,
273,
5028,
438,
1469,
18,
4720,
3202,
1435,
364,
1705,
316,
666,
30,
309,
1705,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
438,
1469,
12,
3669,
16,
9609,
16,
666,
4672,
3536,
1684,
279,
453,
3513,
5790,
21853,
8395,
1542,
273,
5028,
438,
1469,
18,
4720,
3202,
1435,
364,
1705,
316,
666,
30,
309,
1705,
... |
childCount= self.childCount | if self.IAccessibleChildID>0: return [] childCount= self.IAccessibleObject.accChildCount children=[] | def _get_children(self): childCount= self.childCount if childCount>0: children=[IAccessible(x[0],x[1]) for x in IAccessibleHandler.accessibleChildren(self.IAccessibleObject,0,childCount) if x] children=[(getNVDAObjectFromEvent(x.windowHandle,IAccessibleHandler.OBJID_CLIENT,0) if x and x.IAccessibleRole==IAccessibleHand... | f954b17df73dd0e8d5ed74a901e3ce4adadcf286 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/f954b17df73dd0e8d5ed74a901e3ce4adadcf286/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
2325,
33,
8526,
309,
31492,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
588,
67,
5906,
12,
2890,
4672,
309,
365,
18,
45,
10451,
1763,
734,
34,
20,
30,
327,
5378,
31492,
33,
365,
18,
45,
10451,
921,
18,
8981,
1763,
1380,
2325,
33,
8526,
309,
31492,
3... |
else: print "%s test_crasher skipped on 64bit build." | def test_crasher(self): if IS32BIT: self.assertRaises(MemoryError, struct.pack, "357913941c", "a") else: print "%s test_crasher skipped on 64bit build." | a0205d0a46667bd69b45863537931750ec7ee1c0 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8546/a0205d0a46667bd69b45863537931750ec7ee1c0/test_struct.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3353,
961,
264,
12,
2890,
4672,
309,
4437,
1578,
15650,
30,
365,
18,
11231,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3353,
961,
264,
12,
2890,
4672,
309,
4437,
1578,
15650,
30,
365,
18,
11231,
12649,
6141,
12,
6031,
668,
16,
1958,
18,
2920,
16,
315,
4763,
7235,
24347,
9803,
71,
3113,
315,
6... | |
res_ids = run_sql(query1%params1) | res_ids = run_sql(query1%params1) | def update_user_inbox_for_reminders(uid): """ Updates user's inbox with any reminders that should have arrived @param uid: user id @return integer number of new expired reminders """ now = convert_datestruct_to_datetext(localtime()) reminder_status = CFG_WEBMESSAGE_STATUS_CODE['REMINDER'] new_status = CFG_WEBMESSAGE_S... | 13dadf0fcb63f21c72c3528156245972761c7633 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2876/13dadf0fcb63f21c72c3528156245972761c7633/webmessage_dblayer.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1355,
67,
267,
2147,
67,
1884,
67,
2764,
728,
414,
12,
1911,
4672,
3536,
15419,
729,
1807,
27271,
598,
1281,
849,
728,
414,
716,
1410,
1240,
2454,
2950,
632,
891,
4555,
30,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
67,
1355,
67,
267,
2147,
67,
1884,
67,
2764,
728,
414,
12,
1911,
4672,
3536,
15419,
729,
1807,
27271,
598,
1281,
849,
728,
414,
716,
1410,
1240,
2454,
2950,
632,
891,
4555,
30,
7... |
raise IncompleteRead(value) | raise IncompleteRead(''.join(value)) | def _read_chunked(self, amt): assert self.chunked != _UNKNOWN chunk_left = self.chunk_left value = '' | 49148cf5287e34a399ecfc1958d62d2d83339f64 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8546/49148cf5287e34a399ecfc1958d62d2d83339f64/httplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
896,
67,
6551,
329,
12,
2890,
16,
25123,
4672,
1815,
365,
18,
6551,
329,
480,
389,
14737,
2441,
67,
4482,
273,
365,
18,
6551,
67,
4482,
460,
273,
875,
2,
-100,
-100,
-100,
-100,
... |
finally: if os.path.isfile(srcname): os.unlink(srcname) if os.path.isfile(zipname): os.unlink(zipname) | class OtherTests(unittest.TestCase): def testCloseErroneousFile(self): fp = open(TESTFN, "w") fp.write("this is not a legal zip file\n") fp.close() try: zf = zipfile.ZipFile(TESTFN) except zipfile.BadZipfile: os.unlink(TESTFN) | def zipTest(f, compression, srccontents): zip = zipfile.ZipFile(f, "w", compression) # Create the ZIP archive zip.write(srcname, "another"+os.extsep+"name") zip.write(srcname, srcname) zip.close() zip = zipfile.ZipFile(f, "r", compression) # Read the ZIP archive readData2 = zip.read(srcname) readData1 = zip.read("... | 2d2ac3a0a10cdc817f61cb177b9af6e2cc4d5007 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2d2ac3a0a10cdc817f61cb177b9af6e2cc4d5007/test_zipfile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
4709,
12,
74,
16,
9154,
16,
1705,
3980,
4672,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
91,
3113,
9154,
13,
282,
468,
1788,
326,
18277,
5052,
3144,
18,
2626,
12,
4816,
529,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3144,
4709,
12,
74,
16,
9154,
16,
1705,
3980,
4672,
3144,
273,
18823,
18,
29394,
12,
74,
16,
315,
91,
3113,
9154,
13,
282,
468,
1788,
326,
18277,
5052,
3144,
18,
2626,
12,
4816,
529,
... |
sitelist+="target.GlueSEUniqueID==\"%s\""%i+" || " | sitelist+="Member(\"%s\" , other.GlueCESEBindGroupSEUniqueID)"%i+" || " | def createJDL(self, cladfilename): """ _createJDL_ create the scheduler JDL combining the user specified bit of the JDL """ | 2030c14425c2bdcf9c1b7438bf5cb953fc9428f9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8887/2030c14425c2bdcf9c1b7438bf5cb953fc9428f9/GLiteBulkSubmitter.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
46,
8914,
12,
2890,
16,
927,
361,
3459,
4672,
3536,
389,
2640,
46,
8914,
67,
225,
752,
326,
8129,
804,
8914,
29189,
326,
729,
1269,
2831,
434,
326,
804,
8914,
3536,
2,
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,
752,
46,
8914,
12,
2890,
16,
927,
361,
3459,
4672,
3536,
389,
2640,
46,
8914,
67,
225,
752,
326,
8129,
804,
8914,
29189,
326,
729,
1269,
2831,
434,
326,
804,
8914,
3536,
2,
-100,
-100,... |
'`%s.%s.%s()` is not overriden' % (cls.__module__, cls.__name__, f.__name__), | '`%s.%s.%s()` is not overridden' % (cls.__module__, cls.__name__, f.__name__), | def new_f(self, *args, **kwargs): cls = type(self) warnings.warn( '`%s.%s.%s()` is not overriden' % (cls.__module__, cls.__name__, f.__name__), category = NotOverriddenWarning, stacklevel = 2 ) return f(self, *args, **kwargs) | a66466a270ebf3307345fa9e70ac9d23f79d2635 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3683/a66466a270ebf3307345fa9e70ac9d23f79d2635/varietes.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
74,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2028,
273,
618,
12,
2890,
13,
5599,
18,
8935,
12,
6992,
9,
87,
7866,
87,
7866,
87,
20338,
353,
486,
11000,
11,
738,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
394,
67,
74,
12,
2890,
16,
380,
1968,
16,
2826,
4333,
4672,
2028,
273,
618,
12,
2890,
13,
5599,
18,
8935,
12,
6992,
9,
87,
7866,
87,
7866,
87,
20338,
353,
486,
11000,
11,
738,
261,
... |
"permissions, then please do it now." % basename)) | "permissions, then please do it now.") % basename) | def write_image_metadata(self, obj): """ saves the data fields to the image """ | 6d53c284fac914f22af26560942a476c3db791ee /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/6d53c284fac914f22af26560942a476c3db791ee/ImageMetadataGramplet.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2730,
67,
4165,
12,
2890,
16,
1081,
4672,
3536,
14649,
326,
501,
1466,
358,
326,
1316,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
67,
2730,
67,
4165,
12,
2890,
16,
1081,
4672,
3536,
14649,
326,
501,
1466,
358,
326,
1316,
3536,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
base = os.lstat(id) | base = os.lstat(rpath) | def getattr(self,path): debug("getattr",path) path = normpath(path) c = self.conn.cursor() c.execute("select * from files where path=?",(path,)) file = c.fetchone() if file is None: raise IOError(errno.ENOENT,path) id = file["id"] mode = file["mode"] st = MyStat() if id!="!": if os.path.exists(id): # use the actual fil... | 31d598fe7b8ca1f35abd107cc00700f76f38954e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5937/31d598fe7b8ca1f35abd107cc00700f76f38954e/archivefs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3869,
12,
2890,
16,
803,
4672,
1198,
2932,
588,
1747,
3113,
803,
13,
589,
273,
20446,
12,
803,
13,
276,
273,
365,
18,
4646,
18,
9216,
1435,
276,
18,
8837,
2932,
4025,
380,
628,
1390,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3869,
12,
2890,
16,
803,
4672,
1198,
2932,
588,
1747,
3113,
803,
13,
589,
273,
20446,
12,
803,
13,
276,
273,
365,
18,
4646,
18,
9216,
1435,
276,
18,
8837,
2932,
4025,
380,
628,
1390,
... |
for entry in entries: self.edit_entry(entry, False) | if not entries: sys.exit(_('No entries found for given patterns')) self.edit_entries(entries) | def _cmd_edit(self, options, *args): """Interactivly edit entries""" entries = self._find_entries(options, *args) for entry in entries: self.edit_entry(entry, False) | 8ccd379498d1d27031b3b1ad7ea07c99bd6ef743 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/2215/8ccd379498d1d27031b3b1ad7ea07c99bd6ef743/tel_console.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4172,
67,
4619,
12,
2890,
16,
702,
16,
380,
1968,
4672,
3536,
2465,
11422,
715,
3874,
3222,
8395,
3222,
273,
365,
6315,
4720,
67,
8219,
12,
2116,
16,
380,
1968,
13,
364,
1241,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4172,
67,
4619,
12,
2890,
16,
702,
16,
380,
1968,
4672,
3536,
2465,
11422,
715,
3874,
3222,
8395,
3222,
273,
365,
6315,
4720,
67,
8219,
12,
2116,
16,
380,
1968,
13,
364,
1241,
316... |
d["config-file"] = '-c', ONE_PARAM | d["config-file"] = '-c', MULT_PARAM | def addParameters(self, argDef): d = {} d["config"] = MULT_PARAM d["config-file"] = '-c', ONE_PARAM d["debug-all"] = '-d', NO_PARAM d["skip-default-config"] = NO_PARAM | 25bde0b1e2c33bb32df7adc80958430603629273 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8749/25bde0b1e2c33bb32df7adc80958430603629273/daemon.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2402,
12,
2890,
16,
1501,
3262,
4672,
302,
273,
2618,
302,
9614,
1425,
11929,
273,
14913,
67,
8388,
302,
9614,
1425,
17,
768,
11929,
273,
2400,
71,
2187,
14913,
67,
8388,
302,
9614,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
2402,
12,
2890,
16,
1501,
3262,
4672,
302,
273,
2618,
302,
9614,
1425,
11929,
273,
14913,
67,
8388,
302,
9614,
1425,
17,
768,
11929,
273,
2400,
71,
2187,
14913,
67,
8388,
302,
9614,... |
def __iter__(self): return self.__ContextIterator(self) | _ctx_debug = ('Dr0', 'Dr1', 'Dr2', 'Dr3', 'Dr6', 'Dr7') _ctx_segs = ('SegGs', 'SegFs', 'SegEs', 'SegDs', ) _ctx_int = ('Edi', 'Esi', 'Ebx', 'Edx', 'Ecx', 'Eax') _ctx_ctrl = ('Ebp', 'Eip', 'SegCs', 'EFlags', 'Esp', 'SegSs') | def __iter__(self): return self.__ContextIterator(self) | 4d6379e62a20ffbde8f748f5070b761e3ca679e3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7261/4d6379e62a20ffbde8f748f5070b761e3ca679e3/kernel32.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
327,
365,
16186,
1042,
3198,
12,
2890,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2165,
972,
12,
2890,
4672,
327,
365,
16186,
1042,
3198,
12,
2890,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
id = self.pool.get('ir.model.data')._update(self.cr, self.uid, \ | id = self.pool.get('ir.model.data')._update(self.cr, 1, \ | def process_url(self, node): self.validate_xml_id(node.id) | 06e658d5cb1bd984a0d6e2d2a2ef16371be837a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12853/06e658d5cb1bd984a0d6e2d2a2ef16371be837a0/yaml_import.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
718,
12,
2890,
16,
756,
4672,
365,
18,
5662,
67,
2902,
67,
350,
12,
2159,
18,
350,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
718,
12,
2890,
16,
756,
4672,
365,
18,
5662,
67,
2902,
67,
350,
12,
2159,
18,
350,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
debugMsg("Called LinePlot.setXAxisRange()") | debugMsg("Called Plot.setXAxisRange()") | def setXAxisRange(self, xMin, xMax): """ Set the range of the x axis | 71d8a0c344b606da3c4335fda12fbe32b9705f62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8476/71d8a0c344b606da3c4335fda12fbe32b9705f62/plot.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23733,
6558,
2655,
12,
2890,
16,
619,
2930,
16,
619,
2747,
4672,
3536,
1000,
326,
1048,
434,
326,
619,
2654,
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,
23733,
6558,
2655,
12,
2890,
16,
619,
2930,
16,
619,
2747,
4672,
3536,
1000,
326,
1048,
434,
326,
619,
2654,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
noGuessMatch = noGuessRe.match(line) if noGuessMatch: word = noGuessMatch.group(1) if word not in skipList: return (word, int(noGuessMatch.group(2)) - 1, []) return None | guesses = [] word = match.group(1) if word in skipList: return None wordPos = int(match.group(2)) - 1 while line[wordPos:wordPos + len(word)] != word and wordPos > 0: wordPos -= 1 return (word, wordPos, guesses) | def formatOutput(line, skipList=[]): """Return tuple of word, position and guess list""" line = line.strip() guessMatch = guessRe.match(line) if guessMatch: word = guessMatch.group(1) if word not in skipList: return (word, int(guessMatch.group(2)) - 1, guessMatch.group(3).split(', ')) else: return None noGuessMatch = n... | 2ccaa52ba354eea9053a61d2472b96c4c219819e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3087/2ccaa52ba354eea9053a61d2472b96c4c219819e/spellcheck.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
740,
1447,
12,
1369,
16,
2488,
682,
33,
8526,
4672,
3536,
990,
3193,
434,
2076,
16,
1754,
471,
7274,
666,
8395,
980,
273,
980,
18,
6406,
1435,
7274,
2060,
273,
7274,
426,
18,
1916,
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,
740,
1447,
12,
1369,
16,
2488,
682,
33,
8526,
4672,
3536,
990,
3193,
434,
2076,
16,
1754,
471,
7274,
666,
8395,
980,
273,
980,
18,
6406,
1435,
7274,
2060,
273,
7274,
426,
18,
1916,
12,... |
image_exp = zeros((r+2, c+2),int8) imagebuf = zeros((r+2,c+2),int8) | image_exp = numpy.zeros((r+2, c+2),numpy.int8) imagebuf = numpy.zeros((r+2,c+2),numpy.int8) | def mmthin(binimg): """ skel = mmthin(binimg) image transformation by thinning rewrite the mmthin function in the morphological toolbox This code is written by yenixsa and Sam in Summer 2004 Last updated on 12/3/2005 Ported to Python by LPC on Feb 2008 """ binimg=binimg.copy() degrees = 45; num_elem = abs(360//degree... | bac0f315ca4895d299b4bea345ca939303156ade /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12199/bac0f315ca4895d299b4bea345ca939303156ade/mmthin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9740,
451,
267,
12,
4757,
6081,
4672,
3536,
4343,
292,
273,
9740,
451,
267,
12,
4757,
6081,
13,
1316,
8620,
635,
21936,
2093,
225,
10738,
326,
9740,
451,
267,
445,
316,
326,
14354,
18224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9740,
451,
267,
12,
4757,
6081,
4672,
3536,
4343,
292,
273,
9740,
451,
267,
12,
4757,
6081,
13,
1316,
8620,
635,
21936,
2093,
225,
10738,
326,
9740,
451,
267,
445,
316,
326,
14354,
18224... |
reports[self.cid][key] = (1,res[0],res) | reports[self.cid][key] = (1, res[0], res) | def log(self): | 78534fa5e44f63d640ff07c425ec3edd3bb48fe9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9658/78534fa5e44f63d640ff07c425ec3edd3bb48fe9/CatalogReport.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
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,
0,
0,
... | [
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
613,
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,
-100,
-1... |
if pos[0]-radius<-config.config.world.size[0]/2 or\ pos[1]-radius<-config.config.world.size[1]/2 or\ pos[0]+radius>config.config.world.size[0]/2 or \ pos[1]+radius>config.config.world.size[1]/2: | if pos[0]-radius<-config.world.size[0]/2 or\ pos[1]-radius<-config.world.size[1]/2 or\ pos[0]+radius>config.world.size[0]/2 or \ pos[1]+radius>config.world.size[1]/2: | def collision_at(self, pos): for obs in self.team.map.obstacles: if collide.poly2circle(obs.shape, ((pos),constants.TANKRADIUS)): return True for tank in self.team.map.tanks(): if tank is self:continue if collide.circle2circle((tank.pos, constants.TANKRADIUS), (pos, constants.TANKRADIUS)): self.collide_tank(tank) retur... | 514bd7bd8178ee4371240d9315e3fd7d459ce673 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9601/514bd7bd8178ee4371240d9315e3fd7d459ce673/game.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17740,
67,
270,
12,
2890,
16,
949,
4672,
364,
7160,
316,
365,
18,
10035,
18,
1458,
18,
947,
334,
69,
9558,
30,
309,
645,
8130,
18,
16353,
22,
18970,
12,
10992,
18,
4867,
16,
14015,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
17740,
67,
270,
12,
2890,
16,
949,
4672,
364,
7160,
316,
365,
18,
10035,
18,
1458,
18,
947,
334,
69,
9558,
30,
309,
645,
8130,
18,
16353,
22,
18970,
12,
10992,
18,
4867,
16,
14015,
9... |
client = SystemAdministratorClient( self.host ) | client = SystemAdministratorClient( self.host, self.port ) | def do_show( self, args ): """ Show list of components usage: show software show installed show setup show status show database show mysql show log <system> <service|agent> show info - show version of software and setup """ | cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/cdbcf33eaa5a010e422d7ded5d4dd06765fc84c6/SystemAdministratorClientCLI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
365,
16,
833,
262,
30,
3536,
9674,
666,
434,
4085,
225,
4084,
30,
225,
2405,
17888,
2405,
5876,
2405,
3875,
2405,
1267,
2405,
2063,
2405,
7219,
2405,
613,
411,
4299,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
4500,
12,
365,
16,
833,
262,
30,
3536,
9674,
666,
434,
4085,
225,
4084,
30,
225,
2405,
17888,
2405,
5876,
2405,
3875,
2405,
1267,
2405,
2063,
2405,
7219,
2405,
613,
411,
4299,
... |
evt.set() | PORT = None time.sleep(0.5) serv_evt.set() | def debugging_server(evt): serv = smtpd.DebuggingServer(("", PORT), ('nowhere', -1)) try: asyncore.loop(timeout=.01, count=300) except socket.timeout: pass finally: # allow some time for the client to read the result time.sleep(0.5) asyncore.close_all() evt.set() | 412b8b654cda5aa8abd038ac9cdcb19a0722c563 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/412b8b654cda5aa8abd038ac9cdcb19a0722c563/test_smtplib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10450,
67,
3567,
12,
73,
11734,
4672,
13515,
273,
17660,
72,
18,
2829,
1998,
2081,
12,
2932,
3113,
20987,
3631,
7707,
3338,
14852,
2187,
300,
21,
3719,
225,
775,
30,
4326,
479,
18,
6498,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
10450,
67,
3567,
12,
73,
11734,
4672,
13515,
273,
17660,
72,
18,
2829,
1998,
2081,
12,
2932,
3113,
20987,
3631,
7707,
3338,
14852,
2187,
300,
21,
3719,
225,
775,
30,
4326,
479,
18,
6498,... |
class KeepaliveServerTestCase(BaseServerTestCase): | class BaseKeepaliveServerTestCase(BaseServerTestCase): | def test_dotted_attribute(self): # Raises an AttributeError because private methods are not allowed. self.assertRaises(AttributeError, SimpleXMLRPCServer.resolve_dotted_attribute, str, '__add') | 2bacdb8520f43f8a75cc37ad9c49e3f793176a3b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3187/2bacdb8520f43f8a75cc37ad9c49e3f793176a3b/test_xmlrpc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9811,
2344,
67,
4589,
12,
2890,
4672,
468,
20497,
392,
6394,
2724,
3238,
2590,
854,
486,
2935,
18,
365,
18,
11231,
12649,
6141,
12,
1499,
668,
16,
4477,
4201,
8087,
2081,
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,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9811,
2344,
67,
4589,
12,
2890,
4672,
468,
20497,
392,
6394,
2724,
3238,
2590,
854,
486,
2935,
18,
365,
18,
11231,
12649,
6141,
12,
1499,
668,
16,
4477,
4201,
8087,
2081,
18,
... |
self.buffer.insert_with_tags_by_name(self.iter,string+"\r\n\r\n",'text') | print "WTF?" print string self.text(string, options) | def para(self,string,**options): self.buffer.insert_with_tags_by_name(self.iter,string+"\r\n\r\n",'text') | c2382404387dc87cc861620b92f02d5025c3db16 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5568/c2382404387dc87cc861620b92f02d5025c3db16/GTKUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
12602,
12,
2890,
16,
1080,
16,
636,
2116,
4672,
365,
18,
4106,
18,
6387,
67,
1918,
67,
4156,
67,
1637,
67,
529,
12,
2890,
18,
2165,
16,
1080,
9078,
64,
86,
64,
82,
64,
86,
64,
82,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12602,
12,
2890,
16,
1080,
16,
636,
2116,
4672,
365,
18,
4106,
18,
6387,
67,
1918,
67,
4156,
67,
1637,
67,
529,
12,
2890,
18,
2165,
16,
1080,
9078,
64,
86,
64,
82,
64,
86,
64,
82,
... |
def GetInterfaceArgCleanup(self): | def GetInterfaceArgCleanup(self): | def GetInterfaceArgCleanup(self): | 5f67bd7ea22947865b42d844065aa434d854dc62 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/677/5f67bd7ea22947865b42d844065aa434d854dc62/makegwparse.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
1358,
4117,
15007,
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,
... | [
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,
968,
1358,
4117,
15007,
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,
-... |
(s1,s2,s3) = map(lambda x:x.get_property('sensitive'), (self.first_scan_button, self.next_scan_button, self.value_input)) | self.backend.send_command('option search_integer %s' % ((self.search_integer_checkbutton.get_property('active') and '1' or '0'),)) self.backend.send_command('option search_float %s' % ((self.search_float_checkbutton.get_property('active') and '1' or '0'),)) | def do_scan(self): (s1,s2,s3) = map(lambda x:x.get_property('sensitive'), (self.first_scan_button, self.next_scan_button, self.value_input)) # TODO: syntax check self.backend.send_command(self.value_input.get_text()) self.update_scan_result() | f365924e6143036d1d9c74c5401adabe84f8f416 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4850/f365924e6143036d1d9c74c5401adabe84f8f416/GameConqueror.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9871,
12,
2890,
4672,
225,
365,
18,
9993,
18,
4661,
67,
3076,
2668,
3482,
1623,
67,
7745,
738,
87,
11,
738,
14015,
2890,
18,
3072,
67,
7745,
67,
1893,
5391,
18,
588,
67,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
9871,
12,
2890,
4672,
225,
365,
18,
9993,
18,
4661,
67,
3076,
2668,
3482,
1623,
67,
7745,
738,
87,
11,
738,
14015,
2890,
18,
3072,
67,
7745,
67,
1893,
5391,
18,
588,
67,
446... |
max_phenotype = max(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = min(phenData.data_matrix[:,phenotype_col_index]) | max_phenotype = numpy.nanmax(phenData.data_matrix[:,phenotype_col_index]) min_phenotype = numpy.nanmin(phenData.data_matrix[:,phenotype_col_index]) | def run(self): if self.debug: import pdb pdb.set_trace() db = Stock_250kDB.Stock_250kDB(drivername=self.drivername, username=self.db_user, password=self.db_passwd, hostname=self.hostname, database=self.dbname, schema=self.schema) db.setup(create_tables=False) session = db.session snpData = SNPData(input_fname=self.inp... | 2bdedeec67e197efc1586eb251f93015f76066c2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9645/2bdedeec67e197efc1586eb251f93015f76066c2/DrawEcotypeOnMap.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
365,
18,
4148,
30,
1930,
10892,
10892,
18,
542,
67,
5129,
1435,
1319,
273,
20296,
363,
67,
26520,
79,
2290,
18,
17821,
67,
26520,
79,
2290,
12,
7407,
529,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
309,
365,
18,
4148,
30,
1930,
10892,
10892,
18,
542,
67,
5129,
1435,
1319,
273,
20296,
363,
67,
26520,
79,
2290,
18,
17821,
67,
26520,
79,
2290,
12,
7407,
529,
33... |
def store_remote_cib(self, node): | def store_remote_cib(self, node, target): | def store_remote_cib(self, node): combined = "" first_line = 1 extra_debug = 0 #self.CM.debug("\tRetrieving CIB from: %s" % node) (rc, lines) = self.CM.rsh(node, self.CM["CibQuery"], None) if extra_debug: self.CM.debug("Start Cib[%s]" % node) for line in lines: combined = combined + line[:-1] if first_line: self.CM.deb... | 83266b9903a44b19df33db8ad1f5db2880315af1 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11962/83266b9903a44b19df33db8ad1f5db2880315af1/CTSaudits.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1707,
67,
7222,
67,
71,
495,
12,
2890,
16,
756,
16,
1018,
4672,
8224,
273,
1408,
1122,
67,
1369,
273,
404,
2870,
67,
4148,
273,
374,
468,
2890,
18,
9611,
18,
4148,
31458,
88,
3848,
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,
1707,
67,
7222,
67,
71,
495,
12,
2890,
16,
756,
16,
1018,
4672,
8224,
273,
1408,
1122,
67,
1369,
273,
404,
2870,
67,
4148,
273,
374,
468,
2890,
18,
9611,
18,
4148,
31458,
88,
3848,
6... |
shutil.copytree(SCELETON_DIR, dir) | shutil.copytree(SKELETON_DIR, dir) | def copySkeleton(dir, namespace): console.log("Copy skeleton into the output directory: %s" % dir) try: shutil.copytree(SCELETON_DIR, dir) except OSError: console.error("Failed to copy skeleton") sys.exit(1) # rename namespace os.rename( os.path.join(dir, "source", "class", "custom"), os.path.join(dir, "source", "cla... | ee7363b4f96da94d82a2ba168ae2249eedfdfdea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5718/ee7363b4f96da94d82a2ba168ae2249eedfdfdea/createProject.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
28070,
12,
1214,
16,
1981,
4672,
2983,
18,
1330,
2932,
2951,
17761,
1368,
326,
876,
1867,
30,
738,
87,
6,
738,
1577,
13,
225,
775,
30,
11060,
18,
3530,
3413,
12,
55,
6859,
15146,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1610,
28070,
12,
1214,
16,
1981,
4672,
2983,
18,
1330,
2932,
2951,
17761,
1368,
326,
876,
1867,
30,
738,
87,
6,
738,
1577,
13,
225,
775,
30,
11060,
18,
3530,
3413,
12,
55,
6859,
15146,... |
self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serverSocket.connect((serverName, serverPort)) self.serverIn = self.serverSocket.makefile('r') self.push(self.serverIn.readline()) | self.command = '' self.args = '' self.isClosing = False self.seenAllHeaders = False self.startTime = 0 self.serverSocket = ServerLineReader(serverName, serverPort, self.onServerLine) | def __init__(self, clientSocket, serverName, serverPort): BrighterAsyncChat.__init__(self, clientSocket) self.request = '' self.set_terminator('\r\n') self.serverSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) self.serverSocket.connect((serverName, serverPort)) self.serverIn = self.serverSocket.makefile('r')... | 959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6126/959f6c8f86abe1ad21eb4ad3e6c79f2ae1aaf183/pop3proxy.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1004,
4534,
16,
10926,
16,
1438,
2617,
4672,
605,
86,
18117,
2771,
14163,
16186,
2738,
972,
12,
2890,
16,
1004,
4534,
13,
365,
18,
2293,
273,
875,
365,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1004,
4534,
16,
10926,
16,
1438,
2617,
4672,
605,
86,
18117,
2771,
14163,
16186,
2738,
972,
12,
2890,
16,
1004,
4534,
13,
365,
18,
2293,
273,
875,
365,
1... |
self._leakDetector.removeContainerById(id) | self._leakDetector.removeContainerById(objId) | def run(self): try: self._leakDetector._index2containerId2len[self._index] = {} ids = self._leakDetector.getContainerIds() # record the current len of each container for id in ids: yield None try: for result in self._leakDetector.getContainerByIdGen(id): yield None container = result except Exception, e: # this contain... | 2144050758ff193ad2f7bd973df523fae0d7fd5c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8543/2144050758ff193ad2f7bd973df523fae0d7fd5c/ContainerLeakDetector.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
775,
30,
365,
6315,
298,
581,
12594,
6315,
1615,
22,
3782,
548,
22,
1897,
63,
2890,
6315,
1615,
65,
273,
2618,
3258,
273,
365,
6315,
298,
581,
12594,
18,
588,
217... |
assert(len(wl)==15) eoc = wl[14] | assert(len(wl)==12) eoc = wl[11] | def isLastArgMax(l): argmax = 0 maxval = 0.0 argn = 0 for p in l: if maxval<p[1]: maxval = p[1] argmax = argn argn += 1 return argmax==(argn-1) | 525610922bf97a49dc921ee3d6f19cb70ac9706b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10249/525610922bf97a49dc921ee3d6f19cb70ac9706b/SPCTools.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23075,
4117,
2747,
12,
80,
4672,
20828,
273,
374,
30443,
273,
374,
18,
20,
1501,
82,
273,
374,
364,
293,
316,
328,
30,
309,
30443,
32,
84,
63,
21,
14542,
30443,
273,
293,
63,
21,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23075,
4117,
2747,
12,
80,
4672,
20828,
273,
374,
30443,
273,
374,
18,
20,
1501,
82,
273,
374,
364,
293,
316,
328,
30,
309,
30443,
32,
84,
63,
21,
14542,
30443,
273,
293,
63,
21,
65,... |
_form_addnofilter(form['newnofilter'].value.strip()) | _form_addnofilter(getval(form, 'newnofilter').strip()) | def exec_form (form): # reset info/error del info[:] del error[:] # proxy port if form.has_key('port'): _form_proxyport(form['port'].value) # proxy user if form.has_key('proxyuser'): _form_proxyuser(form['proxyuser'].value.strip()) # proxy pass if form.has_key('proxypass'): _form_proxypass(base64.encodestring(form['pro... | 98aca97370c8fe2057b4b424343b612a4590773e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3948/98aca97370c8fe2057b4b424343b612a4590773e/config_html.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1196,
67,
687,
261,
687,
4672,
468,
2715,
1123,
19,
1636,
1464,
1123,
10531,
65,
1464,
555,
10531,
65,
468,
2889,
1756,
309,
646,
18,
5332,
67,
856,
2668,
655,
11,
4672,
389,
687,
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,
1196,
67,
687,
261,
687,
4672,
468,
2715,
1123,
19,
1636,
1464,
1123,
10531,
65,
1464,
555,
10531,
65,
468,
2889,
1756,
309,
646,
18,
5332,
67,
856,
2668,
655,
11,
4672,
389,
687,
67,
... |
for xitem in range(len(arg[2])): if arg[2][xitem] == False \ and isinstance(arg[2][xitem],bool): todel.append(xitem) | if table._columns[arg[0]]._type != 'boolean': for xitem in range(len(arg[2])): if arg[2][xitem] == False \ and isinstance(arg[2][xitem],bool): todel.append(xitem) | def _rec_get(ids, table, parent): if not ids: return [] ids2 = table.search(cursor, user, [(parent, 'in', ids), (parent, '!=', False)], context=context) return ids + _rec_get(ids2, table, parent) | 075e3e6d78cc351f595719e600aae223f5bd453e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9266/075e3e6d78cc351f595719e600aae223f5bd453e/orm.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3927,
67,
588,
12,
2232,
16,
1014,
16,
982,
4672,
309,
486,
3258,
30,
327,
5378,
3258,
22,
273,
1014,
18,
3072,
12,
9216,
16,
729,
16,
306,
12,
2938,
16,
296,
267,
2187,
3258,
... |
try: class C(object, Classic): pass except TypeError: pass else: verify(0, "inheritance from object and Classic should be illegal") | def errors(): if verbose: print "Testing errors..." try: class C(list, dict): pass except TypeError: pass else: verify(0, "inheritance from both list and dict should be illegal") try: class C(object, None): pass except TypeError: pass else: verify(0, "inheritance from non-type should be illegal") class Classic: pass ... | f45c9e0c5648c523a02313ccb2f245e392ab0ad2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/f45c9e0c5648c523a02313ccb2f245e392ab0ad2/test_descr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1334,
13332,
309,
3988,
30,
1172,
315,
22218,
1334,
7070,
225,
775,
30,
667,
385,
12,
1098,
16,
2065,
4672,
1342,
1335,
3580,
30,
1342,
469,
30,
3929,
12,
20,
16,
315,
6018,
1359,
628,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1334,
13332,
309,
3988,
30,
1172,
315,
22218,
1334,
7070,
225,
775,
30,
667,
385,
12,
1098,
16,
2065,
4672,
1342,
1335,
3580,
30,
1342,
469,
30,
3929,
12,
20,
16,
315,
6018,
1359,
628,... | |
filtered = units_qs.filter(index__range=(start_index, end_index)) return _build_units_list(filtered) def _get_prevnext_unit_ids(unit): | filtered = units_qs[start_index:end_index] return _build_units_list(units_qs, filtered) def _get_prevnext_unit_ids(qs, unit): | def _filter_view_units(units_qs, current_page, limit): """ Returns C{limit} units that are contained within page C{current_page}. """ #TODO: For now this filters in a simple manner, but we should # allow more complex filtering start_index = limit * (current_page - 1) end_index = start_index + limit filtered = units_qs.... | 9f3ce7792a374c47521821bbf169d3f084c085c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11388/9f3ce7792a374c47521821bbf169d3f084c085c7/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2188,
67,
1945,
67,
7705,
12,
7705,
67,
12926,
16,
783,
67,
2433,
16,
1800,
4672,
3536,
2860,
385,
95,
3595,
97,
4971,
716,
854,
7542,
3470,
1363,
385,
95,
2972,
67,
2433,
5496,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2188,
67,
1945,
67,
7705,
12,
7705,
67,
12926,
16,
783,
67,
2433,
16,
1800,
4672,
3536,
2860,
385,
95,
3595,
97,
4971,
716,
854,
7542,
3470,
1363,
385,
95,
2972,
67,
2433,
5496,
... |
group.add_option('--price_accuracy', dest='price_accuracy', default='2', help='specify the price accuracy') | def __init__(self, fname=None): self.options = { 'email_from':False, 'interface': '', # this will bind the server to all interfaces 'port': 8069, 'netinterface': '', 'netport': 8070, 'db_host': False, 'db_port': False, 'db_name': False, 'db_user': False, 'db_password': False, 'db_maxconn': 64, 'reportgz': False, 'ne... | d325e7fa0058252980ef91ec19f19ba697632da5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12853/d325e7fa0058252980ef91ec19f19ba697632da5/config.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326,
1438,
358,
777... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
5299,
33,
7036,
4672,
365,
18,
2116,
273,
288,
296,
3652,
67,
2080,
4278,
8381,
16,
296,
5831,
4278,
10226,
565,
468,
333,
903,
1993,
326,
1438,
358,
777... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.