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 |
|---|---|---|---|---|---|---|
theme_config = self.read(os.path.join(defs.HOME_THEME_DIR, directory, self.AWN_CONFIG)) | theme_config = self.read(os.path.join(directory, self.AWN_CONFIG)) | def apply_theme(self, widget, data=None): if self.currItr is not None: self.model.foreach(self.update_radio) index = self.model.get_path(self.currItr)[0] name = self.theme_list[index]['name'] version = self.theme_list[index]['version'] directory = self.theme_list[index]['dir'] | fbbad571f1ee3b50f3b4afce97428d348e7cce32 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8416/fbbad571f1ee3b50f3b4afce97428d348e7cce32/awnTheme.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
7997,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
309,
365,
18,
17016,
28984,
353,
486,
599,
30,
225,
365,
18,
2284,
18,
25055,
12,
2890,
18,
2725,
67,
17006,
13,
225,
770... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2230,
67,
7997,
12,
2890,
16,
3604,
16,
501,
33,
7036,
4672,
309,
365,
18,
17016,
28984,
353,
486,
599,
30,
225,
365,
18,
2284,
18,
25055,
12,
2890,
18,
2725,
67,
17006,
13,
225,
770... |
('padding',2) | ('padding',2), | def init_local_context(self): print "gt826" self.fields=[ ('seg_num1',2), #header ('date_value_hdr',6),('partner_bank_clearing',12),('zero5',5),('creation_date',6), ('comp_bank_clearing',7), ('uid',5), ('sequence',5), ('genre_trans',3), ('type_paiement',1),('flag',1), #seg1 ('comp_dta',5),('invoice_number',11),('comp_b... | 292310e4d6f5e2bcb7e9718daa4bc61d64960bcd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7397/292310e4d6f5e2bcb7e9718daa4bc61d64960bcd/dta_wizard.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1208,
67,
3729,
67,
2472,
12,
2890,
4672,
1172,
315,
4521,
28,
5558,
6,
365,
18,
2821,
22850,
7707,
5680,
67,
2107,
21,
2187,
22,
3631,
468,
3374,
7707,
712,
67,
1132,
67,
16587,
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,
1208,
67,
3729,
67,
2472,
12,
2890,
4672,
1172,
315,
4521,
28,
5558,
6,
365,
18,
2821,
22850,
7707,
5680,
67,
2107,
21,
2187,
22,
3631,
468,
3374,
7707,
712,
67,
1132,
67,
16587,
2187,... |
workflow_run_wall_time +=task.duration | workflow_cpu_time +=task.duration | def populate_workflow_details(workflow): """ populates the workflow statistics information Param: the workflow reference """ workflow_stat = WorkflowStatistics() transformation_stats_dict ={} job_stats_dict ={} total_succeeded_tasks =0 total_failed_tasks =0 failed_jobs =0 succeeded_jobs =0 unknown_jobs =0 unsubmitted_j... | 7519160b55309ca4f6d59ee7113b6a0a4e4860be /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9868/7519160b55309ca4f6d59ee7113b6a0a4e4860be/pegasus-statistics.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
13815,
67,
6395,
12,
13815,
4672,
3536,
22065,
326,
6095,
7691,
1779,
3014,
30,
326,
6095,
2114,
3536,
6095,
67,
5642,
273,
11363,
8569,
1435,
8620,
67,
5296,
67,
1576,
273,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
13815,
67,
6395,
12,
13815,
4672,
3536,
22065,
326,
6095,
7691,
1779,
3014,
30,
326,
6095,
2114,
3536,
6095,
67,
5642,
273,
11363,
8569,
1435,
8620,
67,
5296,
67,
1576,
273,
29... |
if filename not in self.__input_file: | if filename not in self.__input_files: | def add_file_opt(self, opt, filename): """ Add a command line option to the executable. The order that the arguments will be appended to the command line is not guaranteed, but they will always be added before any command line arguments. The name of the option is prefixed with double hyphen and the program is expected ... | 63b0c4fc6d725e3598bdace13a5766eee6a7189b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/5758/63b0c4fc6d725e3598bdace13a5766eee6a7189b/pipeline.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
768,
67,
3838,
12,
2890,
16,
2153,
16,
1544,
4672,
3536,
1436,
279,
1296,
980,
1456,
358,
326,
9070,
18,
1021,
1353,
716,
326,
1775,
903,
506,
12317,
358,
326,
1296,
980,
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,
527,
67,
768,
67,
3838,
12,
2890,
16,
2153,
16,
1544,
4672,
3536,
1436,
279,
1296,
980,
1456,
358,
326,
9070,
18,
1021,
1353,
716,
326,
1775,
903,
506,
12317,
358,
326,
1296,
980,
353,... |
if ( id_tok.value in intrinsics.extra_set_lower and id_tok.value in intrinsics.set_lower): | if ( id_tok.value in intrinsics.extra_set_lower or id_tok.value in intrinsics.set_lower): | def search_for_id_tokens_callback(id_tok, next_tok): followed_by_parenthesis = ( next_tok is not None and next_tok.is_parentheses()) tf = O.fdecl_by_identifier.get(id_tok.value) if (tf is None): if (not followed_by_parenthesis): tf = make_fdecl(id_tok=id_tok, var_type=vt_used) elif (id_tok.value in intrinsics.set_lower... | def507b47fee27b409a6af888111cbc7e0d29295 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/696/def507b47fee27b409a6af888111cbc7e0d29295/read.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1884,
67,
350,
67,
7860,
67,
3394,
12,
350,
67,
17692,
16,
1024,
67,
17692,
4672,
10860,
67,
1637,
67,
30628,
273,
261,
1024,
67,
17692,
353,
486,
599,
471,
1024,
67,
17692,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1623,
67,
1884,
67,
350,
67,
7860,
67,
3394,
12,
350,
67,
17692,
16,
1024,
67,
17692,
4672,
10860,
67,
1637,
67,
30628,
273,
261,
1024,
67,
17692,
353,
486,
599,
471,
1024,
67,
17692,
... |
print "dragToItem=%s" %repr(dragToItem) | def changeHierarchy(self, data, x, y): print "Changing hierarchy for %s..." % repr(data) | ca32727cc5bb3298e217074ff838c7a9f8ab45a0 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8543/ca32727cc5bb3298e217074ff838c7a9f8ab45a0/SceneGraphUI.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2549,
12074,
12,
2890,
16,
501,
16,
619,
16,
677,
4672,
1172,
315,
782,
18183,
9360,
364,
738,
87,
7070,
738,
8480,
12,
892,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
progress(" %s %s; | progress(" %s %s; | def nailFormula(f): """Smush the formula. Build a dictionary of nodes which are indirectly identified by [inverse] functonal properties.""" global verbose cc, predicates, ss, oo = getParts(f) nodes = ss | oo sofar = {} bnodes = Set() for node in nodes: if node.generated() or node in f.existentials(): bnodes.add(node) i... | c1bfd803814d84a8ec0ae946813eb6a735cf6088 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3308/c1bfd803814d84a8ec0ae946813eb6a735cf6088/diff.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
671,
14972,
12,
74,
4672,
3536,
9552,
1218,
326,
8013,
18,
3998,
279,
3880,
434,
2199,
1492,
854,
16807,
715,
9283,
635,
306,
22552,
65,
12882,
9528,
1790,
12123,
2552,
3988,
4946,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
290,
671,
14972,
12,
74,
4672,
3536,
9552,
1218,
326,
8013,
18,
3998,
279,
3880,
434,
2199,
1492,
854,
16807,
715,
9283,
635,
306,
22552,
65,
12882,
9528,
1790,
12123,
2552,
3988,
4946,
... |
sys.exit(main()) | sys.exit(main()) | def main(args=sys.argv): #p = option_parser() #opts, args = p.parse_args(args) if len(args) != 2: print >>sys.stderr, _('Usage: pdf-meta file.pdf') print >>sys.stderr, _('No filename specified.') return 1 stream = open(os.path.abspath(os.path.expanduser(args[1])), 'r+b') #mi = MetaInformation(opts.title, opts.authors)... | 86ad16de680d524dc966ee6b781055a33238b5c6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9125/86ad16de680d524dc966ee6b781055a33238b5c6/pdf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
12,
1968,
33,
9499,
18,
19485,
4672,
468,
84,
273,
1456,
67,
4288,
1435,
468,
4952,
16,
833,
273,
293,
18,
2670,
67,
1968,
12,
1968,
13,
309,
562,
12,
1968,
13,
480,
576,
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,
2774,
12,
1968,
33,
9499,
18,
19485,
4672,
468,
84,
273,
1456,
67,
4288,
1435,
468,
4952,
16,
833,
273,
293,
18,
2670,
67,
1968,
12,
1968,
13,
309,
562,
12,
1968,
13,
480,
576,
30,
... |
result.append('Py_XINCREF(%s);'%(LOCAL_VAR % op.result.name)) | result.append('Py_XINCREF(%s);'%(LOCALVAR % op.result.name)) | def OP_SAME_AS(self, op, err): result = [] TYPE = self.lltypemap(op.result) assert self.lltypemap(op.args[0]) == TYPE if TYPE is not Void: result.append('%s = %s;' % (self.expr(op.result), self.expr(op.args[0]))) if NEED_OLD_EXTRA_REFS and TYPE == PyObjPtr: result.append('Py_XINCREF(%s);'%(LOCAL_VAR % op.result.name)) ... | 06deba772144a843dc37468d9325ce80d147d384 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/06deba772144a843dc37468d9325ce80d147d384/funcgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7247,
67,
29080,
67,
3033,
12,
2890,
16,
1061,
16,
393,
4672,
563,
273,
5378,
3463,
273,
365,
18,
2906,
723,
1458,
12,
556,
18,
2088,
13,
1815,
365,
18,
2906,
723,
1458,
12,
556,
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,
7247,
67,
29080,
67,
3033,
12,
2890,
16,
1061,
16,
393,
4672,
563,
273,
5378,
3463,
273,
365,
18,
2906,
723,
1458,
12,
556,
18,
2088,
13,
1815,
365,
18,
2906,
723,
1458,
12,
556,
18,... |
self.task_set_finished() | self.task_set_finished(id) | def proc_evt_end(self, evt): id = evt.task_id self.close_writers(id) self.task_set_finished() self.proxy.callRemote(self.TASK_STOP, id, self.stop_type(evt.arg("rc", None)), self.mk_msg(event=evt)) \ .addCallback(self.handle_Stop) # FIXME: addErrback(...) needed! | cb042559fcc6a0525372953ce57ef3cbea4020f5 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/13148/cb042559fcc6a0525372953ce57ef3cbea4020f5/beakerlc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
73,
11734,
67,
409,
12,
2890,
16,
6324,
4672,
612,
273,
6324,
18,
4146,
67,
350,
365,
18,
4412,
67,
5363,
414,
12,
350,
13,
365,
18,
4146,
67,
542,
67,
13527,
12,
350,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5418,
67,
73,
11734,
67,
409,
12,
2890,
16,
6324,
4672,
612,
273,
6324,
18,
4146,
67,
350,
365,
18,
4412,
67,
5363,
414,
12,
350,
13,
365,
18,
4146,
67,
542,
67,
13527,
12,
350,
13... |
s = "123" | s = b"123" | def test_cstrings(self): from ctypes import c_char_p, byref | 64e3c55a35ea85a456a79ced2cf71a28ca34e3b1 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/64e3c55a35ea85a456a79ced2cf71a28ca34e3b1/test_parameters.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
10219,
12,
2890,
4672,
628,
6983,
1930,
276,
67,
3001,
67,
84,
16,
12725,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
71,
10219,
12,
2890,
4672,
628,
6983,
1930,
276,
67,
3001,
67,
84,
16,
12725,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
sage: v.solution_dicts() [{x: -1.00000000000000*I, y: 1.00000000000000*I}, {x: 1.00000000000000*I, y: -1.00000000000000*I}] | sage: sol_dict = v.solution_dicts() sage: x_sols_from_dict = [d[x] for d in sol_dict] sage: x_sols_from_dict.sort(); x_sols_from_dict [-1.00000000000000*I, 1.00000000000000*I] | def variable_list(self): """ | dae294c0877379ee1ed198432560df25c66ed047 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/dae294c0877379ee1ed198432560df25c66ed047/phc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2190,
67,
1098,
12,
2890,
4672,
3536,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2190,
67,
1098,
12,
2890,
4672,
3536,
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,
-10... |
def test_srftime_out_of_range(self): | def test_strftime_out_of_range(self): | def test_srftime_out_of_range(self): # For nasty technical reasons, we can't handle years before 1900. cls = self.theclass self.assertEqual(cls(1900, 1, 1).strftime("%Y"), "1900") for y in 1, 49, 51, 99, 100, 1000, 1899: self.assertRaises(ValueError, cls(y, 1, 1).strftime, "%Y") | 4d9723d693654f1b3cb31029a86217d510b6c54f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/4d9723d693654f1b3cb31029a86217d510b6c54f/test_datetime.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
659,
67,
792,
67,
3676,
12,
2890,
4672,
468,
2457,
290,
689,
93,
17734,
1706,
14000,
16,
732,
848,
1404,
1640,
11387,
1865,
5342,
713,
18,
2028,
273,
365,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
701,
9982,
67,
659,
67,
792,
67,
3676,
12,
2890,
4672,
468,
2457,
290,
689,
93,
17734,
1706,
14000,
16,
732,
848,
1404,
1640,
11387,
1865,
5342,
713,
18,
2028,
273,
365,
18,
... |
self.targetValue = 0 | def cdata(self, data): self.closeContext() if data == None: self.variablesQCB.clear() self.targetQCB.clear() self.outcomes = [] | c13f546c5f300c247c60f0d75e3a913cfb6c3646 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6366/c13f546c5f300c247c60f0d75e3a913cfb6c3646/OWDistributions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20712,
12,
2890,
16,
501,
4672,
365,
18,
4412,
1042,
1435,
225,
309,
501,
422,
599,
30,
365,
18,
7528,
53,
8876,
18,
8507,
1435,
365,
18,
3299,
53,
8876,
18,
8507,
1435,
365,
18,
659... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20712,
12,
2890,
16,
501,
4672,
365,
18,
4412,
1042,
1435,
225,
309,
501,
422,
599,
30,
365,
18,
7528,
53,
8876,
18,
8507,
1435,
365,
18,
3299,
53,
8876,
18,
8507,
1435,
365,
18,
659... | |
["src/xlal/date.c"], | ["src/xlal/date.c", "src/xlal/misc.c"], | def run(self): # remove the automatically generated user env scripts for script in ["pylal-user-env.sh", "pylal-user-env.csh"]: log.info("removing " + script ) try: os.unlink(os.path.join("etc", script)) except: pass | be80e194ad3e1beb2ce4d17921d438d75f3e5bfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3592/be80e194ad3e1beb2ce4d17921d438d75f3e5bfd/setup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
468,
1206,
326,
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
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,
1086,
12,
2890,
4672,
468,
1206,
326,
6635,
4374,
729,
1550,
8873,
364,
2728,
316,
8247,
2074,
80,
287,
17,
1355,
17,
3074,
18,
674,
3113,
315,
2074,
80,
287,
17,
1355,
17,
3074,
18,
... |
If <atomlist> is supplied, use it instead of the currently selected atoms. | @param atomlist: If supplied, use this list of atoms to select connected atoms instead of the currently selected atoms. @type atomlist: List of atoms. @attention: Only correctly reports the number newly selected atoms. | def selectConnected(self, atomlist=None): """ Select any atom that can be reached from any currently selected atom through a sequence of bonds. If <atomlist> is supplied, use it instead of the currently selected atoms. """ ###@@@ should make sure we don't traverse interspace bonds, until all bugs creating them are fixe... | ab1c10701c4a5e1193a1255c8aabbcc77bed0aec /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11221/ab1c10701c4a5e1193a1255c8aabbcc77bed0aec/ops_connected.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
8932,
12,
2890,
16,
3179,
1098,
33,
7036,
4672,
3536,
6766,
1281,
3179,
716,
848,
506,
8675,
628,
1281,
4551,
3170,
3179,
3059,
279,
3102,
434,
15692,
18,
225,
632,
891,
3179,
1098... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2027,
8932,
12,
2890,
16,
3179,
1098,
33,
7036,
4672,
3536,
6766,
1281,
3179,
716,
848,
506,
8675,
628,
1281,
4551,
3170,
3179,
3059,
279,
3102,
434,
15692,
18,
225,
632,
891,
3179,
1098... |
sage: v, t = qsieve(n, time=True) sage: v | sage: v, t = qsieve(n, time=True) sage: v | def qsieve(n, block=True, time=False, verbose=False): """ Run Hart's quadratic sieve and return the distinct proper factors of the integer n that it finds. INPUT: n -- an integer with at least 40 digits block -- (default: True) if True, you must wait until the sieve computation is complete before using SAGE further. I... | 930bdc687d9930d7c764e50ce794ed60ed80f6c4 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/930bdc687d9930d7c764e50ce794ed60ed80f6c4/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
... |
if 'qtip' in repo.tags() and (repo[dest].hex() in [s.rev for s in repo.mq.applied]): raise util.Abort(_('cannot rebase onto an applied mq patch')) | def buildstate(repo, dest, src, base, detach): 'Define which revisions are going to be rebased and where' targetancestors = set() detachset = set() if not dest: # Destination defaults to the latest revision in the current branch branch = repo[None].branch() dest = repo[branch].rev() else: if 'qtip' in repo.tags() and ... | 94587282cace71432be1413afcb606ee5db68872 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/94587282cace71432be1413afcb606ee5db68872/rebase.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2019,
12,
7422,
16,
1570,
16,
1705,
16,
1026,
16,
10199,
4672,
296,
11644,
1492,
18325,
854,
8554,
358,
506,
283,
12261,
471,
1625,
11,
1018,
304,
11116,
273,
444,
1435,
10199,
542... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2019,
12,
7422,
16,
1570,
16,
1705,
16,
1026,
16,
10199,
4672,
296,
11644,
1492,
18325,
854,
8554,
358,
506,
283,
12261,
471,
1625,
11,
1018,
304,
11116,
273,
444,
1435,
10199,
542... | |
products = data['form']['products'][0][1] | products = data['form']['products'][0][1] | def _complete(self, cursor, user, data, context=None): forecast_obj = self.pool.get('stock.forecast') forecast_line_obj = self.pool.get('stock.forecast.line') product_obj = self.pool.get('product.product') | 8bb89e8a49e78399d325b79af68cad89dad5e0d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9305/8bb89e8a49e78399d325b79af68cad89dad5e0d3/forecast.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
6226,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
33,
7036,
4672,
18763,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
1405,
4155,
6134,
18763,
67,
1369,
67,
2603,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6226,
12,
2890,
16,
3347,
16,
729,
16,
501,
16,
819,
33,
7036,
4672,
18763,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
15381,
18,
1405,
4155,
6134,
18763,
67,
1369,
67,
2603,
... |
__swig_setmethods__["Zsource"] = _micropolisengine.Micropolis_Zsource_set __swig_getmethods__["Zsource"] = _micropolisengine.Micropolis_Zsource_get if _newclass:Zsource = _swig_property(_micropolisengine.Micropolis_Zsource_get, _micropolisengine.Micropolis_Zsource_set) | def DoPendTool(*args): return _micropolisengine.Micropolis_DoPendTool(*args) | bc2b5f822cafd3b1950c538c77451059f06d066c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12485/bc2b5f822cafd3b1950c538c77451059f06d066c/micropolisengine.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
52,
409,
6364,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
52,
409,
6364,
30857,
1968,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2256,
52,
409,
6364,
30857,
1968,
4672,
327,
389,
27593,
1764,
355,
291,
8944,
18,
49,
335,
1764,
355,
291,
67,
3244,
52,
409,
6364,
30857,
1968,
13,
2,
-100,
-100,
-100,
-100,
-100,
-... | |
except TypeError: pass else: raise TestFailed, 'expected TypeError' | except TypeError: pass else: raise TestFailed, 'expected TypeError' | def b(): 'my docstring' pass | 92e56246efd9ad85e3b3f20a7d925f31d1625b00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/92e56246efd9ad85e3b3f20a7d925f31d1625b00/test_funcattrs.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
324,
13332,
296,
4811,
14525,
11,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
@param options: Various options about the record to be created, as passed from the command line. | @param options: Various options about the record to be created, as passed from the command line. | def recxml2recmarc(xmltext, options): """The function that processes creating the records from an XML string, and prints these records to the standard output stream. @param xmltext: An XML MARC record in string form. @param options: Various options about the record to be created, as passed from the command line. @retur... | 1c137b3ae4c91d53f88470c4ddccfbb819938f16 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/1c137b3ae4c91d53f88470c4ddccfbb819938f16/xmlmarc2textmarclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1950,
2902,
22,
3927,
3684,
71,
12,
2902,
955,
16,
702,
4672,
3536,
1986,
445,
716,
8488,
4979,
326,
3853,
628,
392,
3167,
533,
16,
471,
14971,
4259,
3853,
358,
326,
4529,
876,
1407,
1... |
super(LiveEntryManager, self).get_query_set().filter( | return super(LiveEntryManager, self).get_query_set().filter( | def get_query_set(self): super(LiveEntryManager, self).get_query_set().filter( status=self.model.LIVE_STATUS ) | bd7200999a32508d3d56f94e12dc41819b75f904 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3533/bd7200999a32508d3d56f94e12dc41819b75f904/models.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2271,
67,
542,
12,
2890,
4672,
327,
2240,
12,
12328,
1622,
1318,
16,
365,
2934,
588,
67,
2271,
67,
542,
7675,
2188,
12,
1267,
33,
2890,
18,
2284,
18,
2053,
3412,
67,
8608,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
2271,
67,
542,
12,
2890,
4672,
327,
2240,
12,
12328,
1622,
1318,
16,
365,
2934,
588,
67,
2271,
67,
542,
7675,
2188,
12,
1267,
33,
2890,
18,
2284,
18,
2053,
3412,
67,
8608,
2... |
buf+=chr(int(byte,16)) handle.controlMsg(reqType,req,buf,value,index) | buf2+=chr(int(byte,16)) handle.controlMsg(reqType,req,buf2,value,index) | def ReplayInitLog(self): # find our device self.usbdev=None for bus in usb.busses(): for dev in bus.devices: if dev.idVendor == 0x3333: self.usbdev = dev # was it found? if self.usbdev is None: raise ValueError('Device (3333:5555) not found') | f1b2211eaa58cac6b53a93d3774c2751f42963f4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3991/f1b2211eaa58cac6b53a93d3774c2751f42963f4/LaserDisplay.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
1601,
2570,
1343,
12,
2890,
4672,
468,
1104,
3134,
2346,
365,
18,
25525,
5206,
33,
7036,
364,
5766,
316,
31261,
18,
9274,
2420,
13332,
364,
4461,
316,
5766,
18,
12506,
30,
309,
4461... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
868,
1601,
2570,
1343,
12,
2890,
4672,
468,
1104,
3134,
2346,
365,
18,
25525,
5206,
33,
7036,
364,
5766,
316,
31261,
18,
9274,
2420,
13332,
364,
4461,
316,
5766,
18,
12506,
30,
309,
4461... |
// // /* ** Parse/generate ADD records */ """ initstuff = initstuff + """ // PyMac_INIT_TOOLBOX_OBJECT_NEW(xxxx); """ TXNObject = OpaqueByValueType("TXNObject", "TXNObj") TXNFontMenuObject = OpaqueByValueType("TXNFontMenuObject", "TXNFontMenuObj") TXNFrameID = Type("TXNFrameID", "l") TXNVersionValue = Type("TXNVer... | def makerepairinstructions(self): return [ ([("void", "*", "OutMode"), ("ByteCount", "*", "InMode")], [("MlteInBuffer", "*", "InMode")]), ] if __name__ == "__main__": main() | #ifdef NOTYET_USE_TOOLBOX_OBJECT_GLUE | 2aadb891e7c8192ad538413e13caa0c59fb720ec /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/2aadb891e7c8192ad538413e13caa0c59fb720ec/mltescan.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
4269,
61,
1584,
67,
8001,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
468,
430,
536,
4269,
61,
1584,
67,
8001,
67,
26263,
16876,
67,
9422,
67,
11261,
1821,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
event_ids = self.search(cursor, 0, [ ('event.uuid', '=', event.uuid), ('event.calendar.owner.email', 'in', attendee_emails), | event_ids = event_obj.search(cursor, 0, [ ('uuid', '=', event.uuid), ('calendar.owner.email', 'in', attendee_emails), | def create(self, cursor, user, values, context=None): event_obj = self.pool.get('calendar.event') if values.get('event'): # Update write_date of event event_obj.write(cursor, user, values['event'], {}, context=context) res = super(EventAttendee, self).create(cursor, user, values, context=context) attendee = self.browse... | cc1eacec6573e1789d36aacd45bdddbb4e3b8906 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9294/cc1eacec6573e1789d36aacd45bdddbb4e3b8906/calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
871,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
11650,
18,
2575,
6134,
309,
924,
18,
588,
2668,
2575,
11,
4672,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
12,
2890,
16,
3347,
16,
729,
16,
924,
16,
819,
33,
7036,
4672,
871,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
11650,
18,
2575,
6134,
309,
924,
18,
588,
2668,
2575,
11,
4672,
... |
def writeable(self): return 1 | def writeable(self): return 1 | def writeable(self): return 1 | 52768953b32ebd1acf4ab8995564ff0e0957a506 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10522/52768953b32ebd1acf4ab8995564ff0e0957a506/BIO.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30223,
12,
2890,
4672,
327,
404,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30223,
12,
2890,
4672,
327,
404,
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,
-1... |
i = find_token(document.body, '\\begin_inset Float', i) | i = find_token(document.body, '\\begin_inset Float ', i) | def revert_subfig(document): " Revert subfloats. " i = 0 while 1: i = find_token(document.body, '\\begin_inset Float', i) if i == -1: return while 1: j = find_end_of_inset(document.body, i) if j == -1: document.warning("Malformed lyx document: Missing '\\end_inset' (float).") i = i + 1 continue # look for embedded floa... | 98b51ebfbcacadec8c19002d2e3088b12bc67c95 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7514/98b51ebfbcacadec8c19002d2e3088b12bc67c95/lyx_1_6.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1717,
470,
12,
5457,
4672,
315,
868,
1097,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
225,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
15226,
67,
1717,
470,
12,
5457,
4672,
315,
868,
1097,
720,
5659,
87,
18,
315,
277,
273,
374,
1323,
404,
30,
225,
277,
273,
1104,
67,
2316,
12,
5457,
18,
3432,
16,
3718,
10086,
67,
26... |
self.assert_(msg.get_from() == 'MAILER-DAEMON %s' % | self.assertEqual(msg.get_from(), 'MAILER-DAEMON %s' % | def test_maildir_to_mboxmmdf(self): # Convert MaildirMessage to mboxmessage and MMDFMessage pairs = (('D', ''), ('F', 'F'), ('P', ''), ('R', 'A'), ('S', 'R'), ('T', 'D'), ('DFPRST', 'RDFA')) for class_ in (mailbox.mboxMessage, mailbox.MMDFMessage): msg_maildir = mailbox.MaildirMessage(_sample_message) msg_maildir.set_d... | ea8344797e1a0ebd0b419ce14e16ab25af771fcc /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/ea8344797e1a0ebd0b419ce14e16ab25af771fcc/test_mailbox.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2540,
545,
481,
67,
869,
67,
81,
2147,
81,
1264,
74,
12,
2890,
4672,
468,
4037,
490,
69,
545,
481,
1079,
358,
312,
2147,
2150,
471,
18295,
4577,
1079,
5574,
273,
261,
2668,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2540,
545,
481,
67,
869,
67,
81,
2147,
81,
1264,
74,
12,
2890,
4672,
468,
4037,
490,
69,
545,
481,
1079,
358,
312,
2147,
2150,
471,
18295,
4577,
1079,
5574,
273,
261,
2668,
... |
"the standard `logging` module instead") | "the standard `logging` module instead", PendingDeprecationWarning, stacklevel=2) | def notifyChannel(self, name, level, msg): warnings.warn("notifyChannel API shouldn't be used anymore, please use " "the standard `logging` module instead") from service.web_services import common | 9150c0695ffbf7f76809f2811c27aaeb7177e087 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/9150c0695ffbf7f76809f2811c27aaeb7177e087/netsvc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
5599,
18,
8935,
2932,
12336,
2909,
1491,
12044,
1404,
506,
1399,
16828,
16,
9582,
999,
315,
315,
5787,
4529,
1375,
11167,
68,
160... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5066,
2909,
12,
2890,
16,
508,
16,
1801,
16,
1234,
4672,
5599,
18,
8935,
2932,
12336,
2909,
1491,
12044,
1404,
506,
1399,
16828,
16,
9582,
999,
315,
315,
5787,
4529,
1375,
11167,
68,
160... |
serializer = serializers.get_serializer(format) | def import_from(self, infile, maxsize=10000000): errors = [] results = [] filetype = infile['content-type'] filename = infile['filename'] raw = infile['content'] # filelen = len(raw) # if filelen > maxsize: # errors.append(_('Import too large, must be smaller than %i bytes.' % maxsize )) format = os.path.splitex... | ae94908aaed490e7024b814aa1215ba845a619ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/171/ae94908aaed490e7024b814aa1215ba845a619ea/forms.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
2080,
12,
2890,
16,
14568,
16,
22959,
33,
21,
17877,
4672,
1334,
273,
5378,
1686,
273,
5378,
225,
18902,
273,
14568,
3292,
1745,
17,
723,
3546,
1544,
273,
14568,
3292,
3459,
35... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
2080,
12,
2890,
16,
14568,
16,
22959,
33,
21,
17877,
4672,
1334,
273,
5378,
1686,
273,
5378,
225,
18902,
273,
14568,
3292,
1745,
17,
723,
3546,
1544,
273,
14568,
3292,
3459,
35... | |
def slurp_braindb(run): | def slurp_braindb(run, brain_alternate=None): | def slurp_braindb(run): """ Reads extra configuration from braindump database Param: run is the run directory Returns: Dictionary with the configuration, empty if error """ my_config = {} my_braindb = os.path.join(run, brainbase) try: my_file = open(my_braindb, 'r') except: # Error opening file return my_config for l... | dc901dedcb0a733574e207f2cd15d9db9d6fd477 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9868/dc901dedcb0a733574e207f2cd15d9db9d6fd477/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2020,
295,
84,
67,
15397,
728,
70,
12,
2681,
16,
20970,
67,
16025,
340,
33,
7036,
4672,
3536,
29185,
2870,
1664,
628,
16430,
728,
2801,
2063,
3014,
30,
1086,
353,
326,
1086,
1867,
2860,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2020,
295,
84,
67,
15397,
728,
70,
12,
2681,
16,
20970,
67,
16025,
340,
33,
7036,
4672,
3536,
29185,
2870,
1664,
628,
16430,
728,
2801,
2063,
3014,
30,
1086,
353,
326,
1086,
1867,
2860,
... |
pl.write(" locfield: 1\n") | def getTime(self, t): t = time.mktime((int(t[0]), int(t[1]), int(t[2]), int(t[3]), int(t[4]), int(t[5]), 0, 0, 0))+float(t[6])/1000 global mintime, maxtime if t < mintime: mintime = t if t > maxtime: maxtime = t return t | d51ece44e96bac0a1eb9cdc87bae03c6a0fea034 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6866/d51ece44e96bac0a1eb9cdc87bae03c6a0fea034/jobchart.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6135,
12,
2890,
16,
268,
4672,
268,
273,
813,
18,
24816,
957,
12443,
474,
12,
88,
63,
20,
65,
3631,
509,
12,
88,
63,
21,
65,
3631,
509,
12,
88,
63,
22,
65,
3631,
509,
12,
88,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6135,
12,
2890,
16,
268,
4672,
268,
273,
813,
18,
24816,
957,
12443,
474,
12,
88,
63,
20,
65,
3631,
509,
12,
88,
63,
21,
65,
3631,
509,
12,
88,
63,
22,
65,
3631,
509,
12,
88,
63,... | |
class Templates(dict): | class Templates(object): | def itervalues(self): for i in iter(self._list): yield self[i] | 32fe7a9dd59a6c1ffcb1e6bebc46275cf3cfee9b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5794/32fe7a9dd59a6c1ffcb1e6bebc46275cf3cfee9b/utils.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24607,
12,
2890,
4672,
364,
277,
316,
1400,
12,
2890,
6315,
1098,
4672,
2824,
365,
63,
77,
65,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
24607,
12,
2890,
4672,
364,
277,
316,
1400,
12,
2890,
6315,
1098,
4672,
2824,
365,
63,
77,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
\code{slider}, \code{button}, \code{checkbox}. | \code{slider}, \code{checkbox}, \code{selector}, and \code{input_grid}. There is also a color selector (see defaults below). | ... def _(a=(1,4), b=(0,10)): | e49d467910fb7bf80b7ae43ae16d248c817857b4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e49d467910fb7bf80b7ae43ae16d248c817857b4/interact.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1372,
1652,
389,
12,
69,
28657,
21,
16,
24,
3631,
324,
28657,
20,
16,
2163,
3719,
30,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
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,
1372,
1652,
389,
12,
69,
28657,
21,
16,
24,
3631,
324,
28657,
20,
16,
2163,
3719,
30,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return 0 | return False if char.gm: return True | def checkrequirements(self, char, mode, args=[], target=None, item=None): if char.dead: return 0 | 7fd9fe8012eff488a03f0138cd4bb6a39dd2029c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/7fd9fe8012eff488a03f0138cd4bb6a39dd2029c/spell.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
16175,
12,
2890,
16,
1149,
16,
1965,
16,
833,
22850,
6487,
1018,
33,
7036,
16,
761,
33,
7036,
4672,
309,
1149,
18,
22097,
30,
327,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
16175,
12,
2890,
16,
1149,
16,
1965,
16,
833,
22850,
6487,
1018,
33,
7036,
16,
761,
33,
7036,
4672,
309,
1149,
18,
22097,
30,
327,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
addStar(10,2,1,36.86989765) addStar(12,4,1,8.213210702) addStar(12,7,1,16.60154960) addStar(10,9,1,53.13010235) | addStar(10,1,1,36.86989765) addStar(12,3,1,8.213210702) addStar(12,6,1,16.60154960) addStar(10,8,1,53.13010235) | def addStar(x,y,size,angle,g=g,w=s/20,x0=x,y0=y+s/2): s = Star() s.fillColor=colors.yellow s.angle = angle s.size = size*w s.x = x*w+x0 s.y = y*w+y0 g.add(s) | 056d40683d2a23f810de08f9d79c172c8a268fd1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/056d40683d2a23f810de08f9d79c172c8a268fd1/flags.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
18379,
12,
92,
16,
93,
16,
1467,
16,
4341,
16,
75,
33,
75,
16,
91,
33,
87,
19,
3462,
16,
92,
20,
33,
92,
16,
93,
20,
33,
93,
15,
87,
19,
22,
4672,
272,
273,
934,
297,
14... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
18379,
12,
92,
16,
93,
16,
1467,
16,
4341,
16,
75,
33,
75,
16,
91,
33,
87,
19,
3462,
16,
92,
20,
33,
92,
16,
93,
20,
33,
93,
15,
87,
19,
22,
4672,
272,
273,
934,
297,
14... |
except IndexError, ValueError: | except (IndexError, ValueError): | def drop(self): """Remove me from the list of running bots processes.""" self.checktime = 0 processes = {} try: f = open(self.logfn(), 'r') except IOError: return else: now = time.time() for line in f.readlines(): try: line = line.split(' ') pid = int(line[0]) ptime = int(line[1].split('.')[0]) except IndexError, Value... | db10617dfcb575b5e40fd0d8b13dd70850678ff1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4404/db10617dfcb575b5e40fd0d8b13dd70850678ff1/wikipedia.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
12,
2890,
4672,
3536,
3288,
1791,
628,
326,
666,
434,
3549,
2512,
87,
8488,
12123,
365,
18,
1893,
957,
273,
374,
8488,
273,
2618,
775,
30,
284,
273,
1696,
12,
2890,
18,
1330,
429... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
12,
2890,
4672,
3536,
3288,
1791,
628,
326,
666,
434,
3549,
2512,
87,
8488,
12123,
365,
18,
1893,
957,
273,
374,
8488,
273,
2618,
775,
30,
284,
273,
1696,
12,
2890,
18,
1330,
429... |
Returns the centralizer of g in self. | Returns the centralizer of ``g`` in ``self``. | def centralizer(self, g): """ Returns the centralizer of g in self. EXAMPLES:: sage: G = PermutationGroup([[(1,2),(3,4)], [(1,2,3,4)]]) sage: g = G([(1,3)]) sage: G.centralizer(g) Permutation Group with generators [(2,4), (1,3)] sage: g = G([(1,2,3,4)]) sage: G.centralizer(g) Permutation Group with generators [(1,2,3... | f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/f5f8be9435d58a2a709e6aa602d3c0e6ac097c6a/permgroup.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18291,
1824,
12,
2890,
16,
314,
4672,
3536,
2860,
326,
18291,
1824,
434,
12176,
75,
10335,
316,
12176,
2890,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
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,
18291,
1824,
12,
2890,
16,
314,
4672,
3536,
2860,
326,
18291,
1824,
434,
12176,
75,
10335,
316,
12176,
2890,
68,
8338,
225,
5675,
8900,
11386,
2866,
225,
272,
410,
30,
611,
273,
13813,
9... |
data = server.read(iBufferSize) | data = server.read() | def HandleResponse(self, server): """get response from server and pass it back to client""" # response header should be in first line! response = server.readline() | 184713781fc4a064c8db7ea918fad4b0b476f101 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2853/184713781fc4a064c8db7ea918fad4b0b476f101/cProxyHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1064,
12,
2890,
16,
1438,
4672,
3536,
588,
766,
628,
1438,
471,
1342,
518,
1473,
358,
1004,
8395,
468,
766,
1446,
1410,
506,
316,
1122,
980,
5,
766,
273,
1438,
18,
896,
1369,
143... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5004,
1064,
12,
2890,
16,
1438,
4672,
3536,
588,
766,
628,
1438,
471,
1342,
518,
1473,
358,
1004,
8395,
468,
766,
1446,
1410,
506,
316,
1122,
980,
5,
766,
273,
1438,
18,
896,
1369,
143... |
def fixAllPagesEncoding(self): for p in self.pageObjects(): fixEncoding(p) self.REQUEST.RESPONSE.redirect(self.REQUEST['URL1']) | if REQUEST: REQUEST.RESPONSE.redirect(self.pageUrl()) def fixAllPagesEncoding(self, REQUEST=None): for p in self.pageObjects(): fixEncoding(p) if REQUEST: REQUEST.RESPONSE.redirect(REQUEST['URL1']) | def fixEncoding(self, FROM='iso8859-1', TO='utf-8'): """ Try to fix any character encoding problems in this page's name or text. | d044409141fb7653a54c97551ef5ff828f47d2c2 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5225/d044409141fb7653a54c97551ef5ff828f47d2c2/Admin.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
4705,
12,
2890,
16,
4571,
2218,
9699,
17258,
17,
21,
2187,
8493,
2218,
3158,
17,
28,
11,
4672,
3536,
6161,
358,
2917,
1281,
3351,
2688,
9688,
316,
333,
1363,
1807,
508,
578,
977,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
4705,
12,
2890,
16,
4571,
2218,
9699,
17258,
17,
21,
2187,
8493,
2218,
3158,
17,
28,
11,
4672,
3536,
6161,
358,
2917,
1281,
3351,
2688,
9688,
316,
333,
1363,
1807,
508,
578,
977,
... |
(4.854..., 4.854...) | (4.8..., 4.8...) | def minimize_constrained(func,cons,x0,gradient=None, **args): r""" Minimize a function with constraints. INPUT: func - Either a symbolic function, or a Python function whose argument is a tuple with n components x0 - Initial point for finding minimum cons - constraints. This should be either a function or list of fu... | 45bc204f8718d10dc90cdf5f35a29156308ffb19 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/45bc204f8718d10dc90cdf5f35a29156308ffb19/optimize.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
67,
591,
31142,
12,
644,
16,
8559,
16,
92,
20,
16,
20219,
33,
7036,
16,
2826,
1968,
4672,
436,
8395,
5444,
10153,
279,
445,
598,
6237,
18,
225,
12943,
30,
1326,
300,
14635,
279,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
18935,
67,
591,
31142,
12,
644,
16,
8559,
16,
92,
20,
16,
20219,
33,
7036,
16,
2826,
1968,
4672,
436,
8395,
5444,
10153,
279,
445,
598,
6237,
18,
225,
12943,
30,
1326,
300,
14635,
279,... |
usage = usage + " [default = %g]\n" % size.getConstant("GMEMCEIL") usage = usage + " --OFAC=<value> : Overlap factor between mesh partitions\n" usage = usage + " [default = %g]\n" % size.getConstant("OFAC") usage = usage + " --REDFAC=<value> : The maximum fact... | usage = usage + " [default = %g]\n" % size.getConstant("gmemceil") usage = usage + " --ofrac=<value> : Overlap factor between mesh partitions\n" usage = usage + " [default = %g]\n" % size.getConstant("ofrac") usage = usage + " --redfac=<value> : The maximum fac... | def usage(): """ Display the usage information for this script """ size = psize.Psize() usage = "\n" usage = usage + "Use this script to generate new APBS input files or split an existing\n" usage = usage + "parallel input file into multiple async files.\n\n" usage = usage + "Usage: inputgen.py [opts] <filename>\n" usa... | 912f0129618665235b69999c1a5afc8a34bc3f0a /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8179/912f0129618665235b69999c1a5afc8a34bc3f0a/inputgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
3536,
9311,
326,
4084,
1779,
364,
333,
2728,
3536,
963,
273,
293,
1467,
18,
52,
1467,
1435,
4084,
273,
1548,
82,
6,
4084,
273,
4084,
397,
315,
3727,
333,
2728,
358,
2103,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4084,
13332,
3536,
9311,
326,
4084,
1779,
364,
333,
2728,
3536,
963,
273,
293,
1467,
18,
52,
1467,
1435,
4084,
273,
1548,
82,
6,
4084,
273,
4084,
397,
315,
3727,
333,
2728,
358,
2103,
... |
'nds': [u'Mehrdüdig Begreep'], | 'nds': [u'Mehrdüdig Begreep', 'Disambig'], | def __init__(self): family.Family.__init__(self) self.name = 'wikipedia' | cf212e6d90e5c18d2e4fdfc6d63af4911fe41e56 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/cf212e6d90e5c18d2e4fdfc6d63af4911fe41e56/wikipedia_family.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
13744,
11,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
6755,
18,
9203,
16186,
2738,
972,
12,
2890,
13,
365,
18,
529,
273,
296,
11999,
13744,
11,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
for name in dirs: | for name in dirs[:]: | def getVersions(self, libraryVersions): versions = {} libraryPath = os.path.join(self.repository.dir, self.dir) for root, dirs, files in os.walk(libraryPath, topdown=True): for name in dirs: console.indent() # only check direct subfolders of the library, ignore .svn etc. if root == libraryPath and name[0] != ".": # onl... | 3c20e1728f21800cdd9de7d2a64596f42e2a380a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5718/3c20e1728f21800cdd9de7d2a64596f42e2a380a/repository.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
5940,
12,
2890,
16,
5313,
5940,
4672,
5244,
273,
2618,
5313,
743,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
9071,
18,
1214,
16,
365,
18,
1214,
13,
364,
1365,
16,
7717,
16,
139... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5940,
12,
2890,
16,
5313,
5940,
4672,
5244,
273,
2618,
5313,
743,
273,
1140,
18,
803,
18,
5701,
12,
2890,
18,
9071,
18,
1214,
16,
365,
18,
1214,
13,
364,
1365,
16,
7717,
16,
139... |
x[...] = foo() | for i in range(len(x)) : x[i] = foo() | def logical_and(self, obj) : return np.bool_(1) | 7592038573ef5396d401d623fe8012c09733e8ea /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/14925/7592038573ef5396d401d623fe8012c09733e8ea/test_ufunc.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6374,
67,
464,
12,
2890,
16,
1081,
13,
294,
327,
1130,
18,
6430,
67,
12,
21,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6374,
67,
464,
12,
2890,
16,
1081,
13,
294,
327,
1130,
18,
6430,
67,
12,
21,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
loans_table.c.movie_id==movies_table.c.movie_id))) | loans_table.c.movie_id==movies_table.c.movie_id)), foreign_keys=[movies_table.c.movie_id, movies_table.c.collection_id, movies_table.c.volume_id]) | def __repr__(self): return "<MovieTag:%s-%s>" % (self.movie_id, self.tag_id) | 369e47df7d3babe2c7f396d3907cbf8b83e4effc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2687/369e47df7d3babe2c7f396d3907cbf8b83e4effc/db.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
3532,
16727,
13120,
1805,
5319,
87,
6456,
87,
2984,
738,
261,
2890,
18,
8683,
13120,
67,
350,
16,
365,
18,
2692,
67,
350,
13,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12715,
972,
12,
2890,
4672,
327,
3532,
16727,
13120,
1805,
5319,
87,
6456,
87,
2984,
738,
261,
2890,
18,
8683,
13120,
67,
350,
16,
365,
18,
2692,
67,
350,
13,
2,
-100,
-100,
-100... |
return os.path.join(prefix, "Mac", "Plugins") | return os.path.join(prefix, "Lib", "lib-dynload") | def get_python_lib(plat_specific=0, standard_lib=0, prefix=None): """Return the directory containing the Python library (standard or site additions). If 'plat_specific' is true, return the directory containing platform-specific modules, i.e. any module from a non-pure-Python module distribution; otherwise, return the ... | e5f8ca634b9c5952ba474a934fdf0c0b2c407647 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/e5f8ca634b9c5952ba474a934fdf0c0b2c407647/sysconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
326,
6600,
5313,
261,
10005,
578,
2834,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8103,
67,
2941,
12,
412,
270,
67,
12524,
33,
20,
16,
4529,
67,
2941,
33,
20,
16,
1633,
33,
7036,
4672,
3536,
990,
326,
1867,
4191,
326,
6600,
5313,
261,
10005,
578,
2834,
26... |
security.declarePublic('getSize') | security.declarePublic('get_size') | def get(self, instance, **kwargs): """Return computed value""" return eval(self.expression, {'context': instance, 'here' : instance}) | 017b15eab20541d72c433405b41e244927721f22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12165/017b15eab20541d72c433405b41e244927721f22/Field.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
3536,
990,
8470,
460,
8395,
327,
5302,
12,
2890,
18,
8692,
16,
13666,
2472,
4278,
791,
16,
296,
14852,
11,
294,
791,
6792,
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,
336,
12,
2890,
16,
791,
16,
2826,
4333,
4672,
3536,
990,
8470,
460,
8395,
327,
5302,
12,
2890,
18,
8692,
16,
13666,
2472,
4278,
791,
16,
296,
14852,
11,
294,
791,
6792,
2,
-100,
-100,
... |
cmd = 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BACKUP ; export PATH=$PATH_BACKUP; export PYTHONPATH=$PYTHONPATH_BACKUP ; ' + cmd | cmd = 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH_BACKUP_ATH ; export PATH=$PATH_BACKUP_ATH; export PYTHONPATH=$PYTHONPATH_BACKUP_ATH ; ' + cmd | def findsetype(sitesrm): setype= 'NULL' if sitesrm.find('castor')>=0: setype = 'CASTOR' elif sitesrm.find('dpm')>=0: setype = 'DPM' elif sitesrm.find('pnfs')>=0: setype = 'DCACHE' elif sitesrm.find('/nfs/')>=0: setype = 'NFS' return setype | 2f5e7c9a86b74e69cdae66877ca02de672fb569b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/2f5e7c9a86b74e69cdae66877ca02de672fb569b/ganga-stage-in-out-dq2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
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,
1104,
542,
388,
12,
12180,
8864,
4672,
444,
388,
33,
296,
8560,
11,
225,
309,
9180,
8864,
18,
4720,
2668,
4155,
280,
6134,
34,
33,
20,
30,
444,
388,
273,
296,
21871,
916,
11,
1327,
9... |
return http.Response(stream=message("illegal link attempt!")) | return HTMLResponse(stream=message("illegal link attempt!")) | def render(self, ctx): target_worksheet_filename = ctx.args['target'][0] data_filename = ctx.args['filename'][0] src = os.path.abspath(self.worksheet.data_directory() + '/' +data_filename) target_ws = notebook.get_worksheet_with_filename(target_worksheet_filename) target = os.path.abspath(target_ws.data_directory() + ... | 5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/5da3b1cd72cd4a94421b8bc914d7957cdbe6b56d/twist.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
1018,
67,
1252,
8118,
67,
3459,
273,
1103,
18,
1968,
3292,
3299,
3546,
63,
20,
65,
501,
67,
3459,
273,
1103,
18,
1968,
3292,
3459,
3546,
63,
20,
65,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
1018,
67,
1252,
8118,
67,
3459,
273,
1103,
18,
1968,
3292,
3299,
3546,
63,
20,
65,
501,
67,
3459,
273,
1103,
18,
1968,
3292,
3459,
3546,
63,
20,
65,
1... |
or not parameters.config['preferences.use_weight_plan'] or not parameters.config['preferences.plot_weight_plan']))\ | or not parameters.config['preferences.use_weight_plan'] \ or not parameters.config['preferences.plot_weight_plan'])) \ | def set_plot_action_active(self): """Tests, whether a dataset exists and matplotlib is available and sets sensitivity of the plot action accordingly.""" if (len(datasets.all_datasets) == 0 and \ (len(datasets.plan_datasets) == 0 \ or not parameters.config['preferences.use_weight_plan'] or not parameters.config['prefere... | ca873bec51191bfac2f276eaefa87e8dd7a31de7 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3074/ca873bec51191bfac2f276eaefa87e8dd7a31de7/window_main.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4032,
67,
1128,
67,
3535,
12,
2890,
4672,
3536,
14650,
16,
2856,
279,
3709,
1704,
471,
13892,
353,
2319,
471,
1678,
15390,
20862,
434,
326,
3207,
1301,
15905,
12123,
309,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
4032,
67,
1128,
67,
3535,
12,
2890,
4672,
3536,
14650,
16,
2856,
279,
3709,
1704,
471,
13892,
353,
2319,
471,
1678,
15390,
20862,
434,
326,
3207,
1301,
15905,
12123,
309,
261,
1... |
logger.info("Re-Installing dependency %s:" % dependency) | logger.info(" re-Installing QI dependency %s:" % dependency) | def installQIDependencies(context): """This is for old-style products using QuickInstaller""" site = context.getSite() qi = getToolByName(site, 'portal_quickinstaller') for dependency in DEPENDENCIES: if qi.isProductInstalled(dependency): logger.info("Re-Installing dependency %s:" % dependency) qi.reinstallProducts([d... | 7b33c7f6ee6b2ef5a75bdcd6be13bac8dee5fb2d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11941/7b33c7f6ee6b2ef5a75bdcd6be13bac8dee5fb2d/setuphandlers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
53,
734,
881,
409,
3209,
12,
2472,
4672,
3536,
2503,
353,
364,
1592,
17,
4060,
10406,
1450,
19884,
18678,
8395,
2834,
273,
819,
18,
588,
4956,
1435,
1043,
77,
273,
336,
6364,
5911,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
53,
734,
881,
409,
3209,
12,
2472,
4672,
3536,
2503,
353,
364,
1592,
17,
4060,
10406,
1450,
19884,
18678,
8395,
2834,
273,
819,
18,
588,
4956,
1435,
1043,
77,
273,
336,
6364,
5911,... |
sage: t | sage.: t '0.36 real 0.19 user 0.00 sys' | def qsieve(n, block=True, time=False, verbose=False): """ Run Hart's quadratic sieve and return the distinct proper factors of the integer n that it finds. INPUT: n -- an integer with at least 40 digits block -- (default: True) if True, you must wait until the sieve computation is complete before using SAGE further. I... | 2deb32b0c430790b2ca2a961fbc8993d90dc478c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/2deb32b0c430790b2ca2a961fbc8993d90dc478c/qsieve.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8719,
21271,
12,
82,
16,
1203,
33,
5510,
16,
813,
33,
8381,
16,
3988,
33,
8381,
4672,
3536,
1939,
670,
485,
1807,
26146,
272,
21271,
471,
327,
326,
10217,
5338,
14490,
434,
326,
3571,
... |
value = ord(code[step]) + ord(code[step+1])*256 | value = ord(co.co_code[step]) + ord(co.co_code[step+1])*256 | def getargs(co): """Get information about the arguments accepted by a code object. Three things are returned: (args, varargs, varkw), where 'args' is a list of argument names (possibly containing nested lists), and 'varargs' and 'varkw' are the names of the * and ** arguments or None.""" if not iscode(co): raise Type... | aa821eac68fc8778ae839221feac4d870d81f190 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/aa821eac68fc8778ae839221feac4d870d81f190/inspect.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
1968,
12,
2894,
4672,
3536,
967,
1779,
2973,
326,
1775,
8494,
635,
279,
981,
733,
18,
225,
935,
992,
9198,
854,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
3631,
1625,
296,
196... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1968,
12,
2894,
4672,
3536,
967,
1779,
2973,
326,
1775,
8494,
635,
279,
981,
733,
18,
225,
935,
992,
9198,
854,
2106,
30,
261,
1968,
16,
19732,
16,
569,
9987,
3631,
1625,
296,
196... |
if not kwargs.get("gf2",False): return SR_gf2n(n,r,c,e,star,**kwargs) | if not kwargs.get("gf2", False): return SR_gf2n(n, r, c, e, star, **kwargs) | def SR(n=1,r=1,c=1,e=4, star=False, **kwargs): """ Return a small scale variant of the AES polynomial system constructor subject to the following conditions: INPUT: n -- the number of rounds (default: 1) r -- the number of rows in the state array (default: 1) c -- the number of columns in the state array (default: 1) ... | e506ccc2459e6e3948659b0d1b28d9d6b70342e4 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/e506ccc2459e6e3948659b0d1b28d9d6b70342e4/sr.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
19145,
12,
82,
33,
21,
16,
86,
33,
21,
16,
71,
33,
21,
16,
73,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
3536,
2000,
279,
5264,
3159,
5437,
434,
326,
15986,
16991,
2619,
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,
19145,
12,
82,
33,
21,
16,
86,
33,
21,
16,
71,
33,
21,
16,
73,
33,
24,
16,
10443,
33,
8381,
16,
2826,
4333,
4672,
3536,
2000,
279,
5264,
3159,
5437,
434,
326,
15986,
16991,
2619,
3... |
writeStubsForInterface(f, iface) | writeStubsForInterface(f, conf.customMethodCalls, iface) | def writeIncludesForInterface(iface): assert iface.kind == 'interface' resulttypes = [] for member in iface.stubMembers: resulttype = writeIncludesForMember(member) if resulttype is not None and not isVariantType(resulttype): resulttypes.append(resulttype.name) includeType(iface) | ff779f91c85a5fbb1f57868d70359366fb6c4a65 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/11102/ff779f91c85a5fbb1f57868d70359366fb6c4a65/qsgen.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
16815,
1290,
1358,
12,
31479,
4672,
1815,
9751,
18,
9224,
422,
296,
5831,
11,
563,
2352,
273,
5378,
364,
3140,
316,
9751,
18,
12847,
6918,
30,
563,
723,
273,
1045,
16815,
1290,
441... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
16815,
1290,
1358,
12,
31479,
4672,
1815,
9751,
18,
9224,
422,
296,
5831,
11,
563,
2352,
273,
5378,
364,
3140,
316,
9751,
18,
12847,
6918,
30,
563,
723,
273,
1045,
16815,
1290,
441... |
first_name, last_name = passwd[4].split(' ', 1) | names = passwd[4].split(' ', 1) first_name = names[0] last_name = None if len(names) > 1: last_name = names[1] | def get_or_create_user(self, username, passwd=None): try: user = User.objects.get(username=username) except User.DoesNotExist: try: if not passwd: passwd = nis.match(username, 'passwd').split(':') first_name, last_name = passwd[4].split(' ', 1) email = '%s@%s' % (username, settings.NIS_EMAIL_DOMAIN) | 83f3f49ca51b59ae0b748c956e3d767f5290ee9c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/1600/83f3f49ca51b59ae0b748c956e3d767f5290ee9c/backends.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
280,
67,
2640,
67,
1355,
12,
2890,
16,
2718,
16,
19093,
33,
7036,
4672,
775,
30,
729,
273,
2177,
18,
6911,
18,
588,
12,
5053,
33,
5053,
13,
1335,
2177,
18,
15264,
30,
775,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
280,
67,
2640,
67,
1355,
12,
2890,
16,
2718,
16,
19093,
33,
7036,
4672,
775,
30,
729,
273,
2177,
18,
6911,
18,
588,
12,
5053,
33,
5053,
13,
1335,
2177,
18,
15264,
30,
775,
... |
"Return the column number where the current event ends." return -1 | "Return the column number where the current event ends." return -1 | def getColumnNumber(self): | 6495c96ce68c1d4088edc1f493b35e11103b0d82 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/6495c96ce68c1d4088edc1f493b35e11103b0d82/xmlreader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6716,
1854,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6716,
1854,
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,
-... |
wikipedia.output(u"Another edit conflict... well, i skip the report for this time...") except: traceback.print_stack() wikipedia.output(u"A generic error has occured, skipping the report.") elif log_variable == False: pass if recursive == True: wikipedia.output(u"Sleeping " + str(time_variable) + u" seconds before re... | wikipedia.output(u"An edit conflict has occured. Pausing for 10 seconds before continuing.") time.sleep(10) pl = wikipedia.Page(welcomesite, target) try: pl.put(''.join(safety), summ2) except wikipedia.EditConflict: wikipedia.output(u"Another edit conflict... well, i skip the report for this time...") continue elif log... | def report(lang, rep_page, username, com, rep): another_page = wikipedia.Page(lang, rep_page) if another_page.exists(): text_get = another_page.get() else: text_get = '' pos = 0 # The talk page includes "_" between the two names, in this way i replace them to " " regex = talk.replace('_', ' ') + username n = re.compile... | dfe6e60e902823a8403f731ef0b42749b0157909 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/4404/dfe6e60e902823a8403f731ef0b42749b0157909/welcome.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
16,
2071,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
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,
2605,
12,
4936,
16,
2071,
67,
2433,
16,
2718,
16,
532,
16,
2071,
4672,
4042,
67,
2433,
273,
21137,
18,
1964,
12,
4936,
16,
2071,
67,
2433,
13,
309,
4042,
67,
2433,
18,
1808,
13332,
9... |
data['results'] = _('Error') | data['results'] = _('Error') | def wishlist_add_ajax(request, template="shop/json.html"): data = {'errors': []} product = None formdata = request.POST.copy() productslug = formdata['productname'] log.debug('WISHLIST AJAX: slug=%s', productslug) try: product, details = product_from_post(productslug, formdata) except (Product.DoesNotExist, MultiValu... | 93da781fe3d22eec1c82bcc527f3f3a2a87515cf /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/171/93da781fe3d22eec1c82bcc527f3f3a2a87515cf/views.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
14302,
1098,
67,
1289,
67,
12813,
12,
2293,
16,
1542,
1546,
5020,
19,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
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,
14302,
1098,
67,
1289,
67,
12813,
12,
2293,
16,
1542,
1546,
5020,
19,
1977,
18,
2620,
6,
4672,
501,
273,
13666,
4324,
4278,
5378,
97,
3017,
273,
599,
30642,
273,
590,
18,
3798,
18,
353... |
subjectCtrl,fromCtrl,toCtrl,copyCtrl,outTextCtrl,textsCtrl,toNameCtrl, topSizer = SendMailConfig( | subjectCtrl,fromCtrl,toCtrl,copyCtrl,outTextCtrl,textsCtrl,toNameCtrl, topSizer = SendCfg( | def Configure( self, sbjct = '', From = '', To = '', Copy = '', Txt = '', Append = '', toName = '' | b38dc8881c425781e3bd5f610cc554c4d034a6be /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8076/b38dc8881c425781e3bd5f610cc554c4d034a6be/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11758,
12,
365,
16,
272,
441,
299,
273,
10226,
6338,
273,
10226,
2974,
273,
10226,
5631,
273,
10226,
6424,
88,
273,
10226,
6181,
273,
10226,
358,
461,
273,
875,
2,
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,
11758,
12,
365,
16,
272,
441,
299,
273,
10226,
6338,
273,
10226,
2974,
273,
10226,
5631,
273,
10226,
6424,
88,
273,
10226,
6181,
273,
10226,
358,
461,
273,
875,
2,
-100,
-100,
-100,
-100... |
jobid = str(job['name']).strip() | jobid = str(job.runningJob['schedulerId']).strip() | def query(self, obj, service='', objType='node'): """ Query status and eventually other scheduler related information, and store it in the job.runningJob data structure. | 030ccde40c7985e44f725ec371ed86782575cbbc /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8886/030ccde40c7985e44f725ec371ed86782575cbbc/SchedulerARC.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
11,
4672,
3536,
2770,
1267,
471,
18011,
1308,
8129,
3746,
1779,
16,
471,
1707,
518,
316,
326,
1719,
18,
8704,
2278,
501,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
843,
12,
2890,
16,
1081,
16,
1156,
2218,
2187,
30078,
2218,
2159,
11,
4672,
3536,
2770,
1267,
471,
18011,
1308,
8129,
3746,
1779,
16,
471,
1707,
518,
316,
326,
1719,
18,
8704,
2278,
501,... |
self.run_script_if_needed(self.after_script, 'post-connection') | self.run_script_if_needed(self.after_script, 'post-connection', self.network['bssid'], self.network['essid']) | def run(self): """ The main function of the connection thread. | d84912aaad167ca24f346cfb42c6a37b20fb0bd3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12280/d84912aaad167ca24f346cfb42c6a37b20fb0bd3/networking.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
1021,
2774,
445,
434,
326,
1459,
2650,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
class POLYPOLYLINE(EMR_UNKNOWN): | class _POLYPOLYLINE(_EMR_UNKNOWN): | def str_extra(self): txt=StringIO() start=0 txt.write("\tpoints: %s\n" % str(self.aptl)) return txt.getvalue() | 688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
6463,
18,
2626,
31458,
88,
4139,
30,
738,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
1657,
80,
3719,
225,
327,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
6463,
18,
2626,
31458,
88,
4139,
30,
738,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
1657,
80,
3719,
225,
327,
64... |
raise ParserError("while scanning a flow mapping", self.marks[-1], | raise ParserError("while parsing a flow mapping", self.marks[-1], | def parse_flow_mapping_key(self, first=False): if not self.check_token(FlowMappingEndToken): if not first: if self.check_token(FlowEntryToken): self.get_token() else: token = self.peek_token() raise ParserError("while scanning a flow mapping", self.marks[-1], "expected ',' or '}', but got %r" % token.id, token.start_ma... | 95c8976b37428c048ea78c18be63c03897557c21 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12018/95c8976b37428c048ea78c18be63c03897557c21/parser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
67,
2426,
67,
6770,
67,
856,
12,
2890,
16,
1122,
33,
8381,
4672,
309,
486,
365,
18,
1893,
67,
2316,
12,
5249,
3233,
1638,
1345,
4672,
309,
486,
1122,
30,
309,
365,
18,
1893,
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,
1109,
67,
2426,
67,
6770,
67,
856,
12,
2890,
16,
1122,
33,
8381,
4672,
309,
486,
365,
18,
1893,
67,
2316,
12,
5249,
3233,
1638,
1345,
4672,
309,
486,
1122,
30,
309,
365,
18,
1893,
67... |
print "(line %d)" % record.tagline | print "(line %d)" % record.position | def run_editor(file): from subprocess import Popen Popen((os.environ.get("EDITOR", "notepad.exe"), file)) | fe06daaa1051baab699eb7ea918eaa60206cd9c7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4609/fe06daaa1051baab699eb7ea918eaa60206cd9c7/accdb.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
9177,
12,
768,
4672,
628,
6652,
1930,
14339,
14339,
12443,
538,
18,
28684,
18,
588,
2932,
13208,
3113,
315,
902,
881,
361,
18,
14880,
6,
3631,
585,
3719,
225,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1086,
67,
9177,
12,
768,
4672,
628,
6652,
1930,
14339,
14339,
12443,
538,
18,
28684,
18,
588,
2932,
13208,
3113,
315,
902,
881,
361,
18,
14880,
6,
3631,
585,
3719,
225,
2,
-100,
-100,
... |
eggs, ws = self.egg.working_set(('zope.testing', )) | eggs, ws = self.egg.working_set(('nose', )) | def install(self): options = self.options dest = [] eggs, ws = self.egg.working_set(('zope.testing', )) | cd133f979f19bd1ee3a476c0fbd85860277a58da /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8505/cd133f979f19bd1ee3a476c0fbd85860277a58da/__init__.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
1570,
273,
5378,
9130,
564,
16,
4945,
273,
365,
18,
23171,
18,
20478,
67,
542,
12,
2668,
94,
1306,
18,
3813,
310,
2187,
8623,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3799,
12,
2890,
4672,
702,
273,
365,
18,
2116,
1570,
273,
5378,
9130,
564,
16,
4945,
273,
365,
18,
23171,
18,
20478,
67,
542,
12,
2668,
94,
1306,
18,
3813,
310,
2187,
8623,
2,
-100,
... |
self.verticalLayout_12.addLayout(self.horizontalLayout_12) | self.verticalLayout_13.addLayout(self.horizontalLayout_12) | def setupUi(self, ui): ui.setObjectName("ui") ui.resize(625, 637) self.verticalLayout_12 = QtGui.QVBoxLayout(ui) self.verticalLayout_12.setObjectName("verticalLayout_12") self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.horizontalLayout_13 = QtGui.QHBoxLayout() se... | 2503e9f807f1add21e1e4ab81249139c1d70195c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8312/2503e9f807f1add21e1e4ab81249139c1d70195c/Ui_ui.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3875,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13943,
12,
2890,
16,
5915,
4672,
5915,
18,
542,
16707,
2932,
4881,
7923,
5915,
18,
15169,
12,
26,
2947,
16,
1666,
6418,
13,
365,
18,
17824,
3744,
67,
2138,
273,
23425,
18,
53,
58... |
for more information on the Konquerer remote-control interface. | for more information on the Konqueror remote-control interface. | def open_new(self, url): self._remote("openURL(%s, new-window)" % url) | c180d1dc7d5ec01801b6951a901f0e3eeff4aacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/c180d1dc7d5ec01801b6951a901f0e3eeff4aacb/webbrowser.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
6315,
7222,
2932,
3190,
1785,
9275,
87,
16,
394,
17,
5668,
2225,
738,
880,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
1696,
67,
2704,
12,
2890,
16,
880,
4672,
365,
6315,
7222,
2932,
3190,
1785,
9275,
87,
16,
394,
17,
5668,
2225,
738,
880,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
""+ _LegalCharsPatt +"+" | ""+ _LegalCharsPatt +"+?" | def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append | c05abb3bdaa87b6e5ea2d6db1e5d6145ae2b0440 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/c05abb3bdaa87b6e5ea2d6db1e5d6145ae2b0440/Cookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False): | def positionsOfUnmatchedMinus(self, i, dual=False, reverse=False): | def positionsOfUnmatchedPlus(self, i, dual=False, reverse=False): | 7d49cba5272d285b94c3029efab8ce42770bb8fd /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7d49cba5272d285b94c3029efab8ce42770bb8fd/crystals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
16,
24557,
33,
8381,
16,
4219,
33,
8381,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6865,
951,
984,
11073,
13207,
12,
2890,
16,
277,
16,
24557,
33,
8381,
16,
4219,
33,
8381,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
return None | return 1 | def changed_timestamp(self, target, prev_ni): cur_ni = self.get_ninfo() try: return cur_ni.timestamp > target.get_timestamp() except AttributeError: return None | 51e9e984731099786dde743516977aaf03db853a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12817/51e9e984731099786dde743516977aaf03db853a/FS.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
5508,
12,
2890,
16,
1018,
16,
2807,
67,
15834,
4672,
662,
67,
15834,
273,
365,
18,
588,
67,
82,
1376,
1435,
775,
30,
327,
662,
67,
15834,
18,
5508,
405,
1018,
18,
588,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3550,
67,
5508,
12,
2890,
16,
1018,
16,
2807,
67,
15834,
4672,
662,
67,
15834,
273,
365,
18,
588,
67,
82,
1376,
1435,
775,
30,
327,
662,
67,
15834,
18,
5508,
405,
1018,
18,
588,
67,
... |
return _spacejoin(result) | return _semispacejoin(result) | def OutputString(self, attrs=None): # Build up our result # result = [] RA = result.append | a5884e244756452a6c5bd600142d210ac0099052 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/a5884e244756452a6c5bd600142d210ac0099052/Cookie.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3633,
780,
12,
2890,
16,
3422,
33,
7036,
4672,
468,
3998,
731,
3134,
563,
468,
563,
273,
5378,
26880,
273,
563,
18,
6923,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
reportRequest[ 'startTime' ] = now - lastSeconds del( reportRequest[ 'lastSeconds' ] ) | reportRequest[ 'startTime' ] = now - datetime.timedelta( seconds = lastSeconds ) | def __checkPlotRequest( self, reportRequest ): #Check sliding plots if 'lastSeconds' in reportRequest: try: lastSeconds = long( reportRequest[ 'lastSeconds' ] ) except: return S_ERROR( "lastSeconds key must be a number" ) if lastSeconds < 3600: return S_ERROR( "lastSeconds must be more than 3600" ) now = Time.toEpoch()... | 5fd58af393cd30bf99a9e697e749344a229ad99b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12864/5fd58af393cd30bf99a9e697e749344a229ad99b/ReportGeneratorHandler.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
468,
1564,
2020,
10415,
17931,
309,
296,
2722,
6762,
11,
316,
2605,
691,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
63,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1893,
11532,
691,
12,
365,
16,
2605,
691,
262,
30,
468,
1564,
2020,
10415,
17931,
309,
296,
2722,
6762,
11,
316,
2605,
691,
30,
775,
30,
1142,
6762,
273,
1525,
12,
2605,
691,
63,... |
config = loadConfig(options['config']) try: options.update(dict((k, v) for k, v in config['tap'][self.tapname].iteritems() if options.get(k, None) is None)) except (KeyError, AttributeError), ex: pass if None in options.values(): raise Exception('Missing an essential parameter. Add it to config file or commandline.') | def makeService(self, options): config = loadConfig(options['config']) try: options.update(dict((k, v) for k, v in config['tap'][self.tapname].iteritems() if options.get(k, None) is None)) except (KeyError, AttributeError), ex: pass ## section in config file was not found if None in options.values(): raise Exception('M... | 711dca7cce501fbe929c90d1ca18b144996e024d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/10390/711dca7cce501fbe929c90d1ca18b144996e024d/twistd.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1179,
12,
2890,
16,
702,
4672,
642,
273,
27318,
12,
2116,
3292,
1425,
19486,
775,
30,
702,
18,
2725,
12,
1576,
12443,
79,
16,
331,
13,
364,
417,
16,
331,
316,
642,
3292,
29562,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1221,
1179,
12,
2890,
16,
702,
4672,
642,
273,
27318,
12,
2116,
3292,
1425,
19486,
775,
30,
702,
18,
2725,
12,
1576,
12443,
79,
16,
331,
13,
364,
417,
16,
331,
316,
642,
3292,
29562,
... | |
if sum(map(len, towrite)) >= self.minimum_chunk_size: | towrite_size += len(data) if towrite_size >= self.minimum_chunk_size: | def start_response(status, response_headers, exc_info=None): status_code[0] = status.split()[0] if exc_info: try: if headers_sent: # Re-raise original exception if headers sent raise exc_info[0], exc_info[1], exc_info[2] finally: # Avoid dangling circular ref exc_info = None | 5db1ed5f590a5038ecd43ec89fd770e2be049509 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10078/5db1ed5f590a5038ecd43ec89fd770e2be049509/wsgi.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
787,
67,
2740,
12,
2327,
16,
766,
67,
2485,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
63,
20,
65,
273,
1267,
18,
4939,
1435,
63,
20,
65,
309,
3533,
67,
1376,
30,
775,
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,
787,
67,
2740,
12,
2327,
16,
766,
67,
2485,
16,
3533,
67,
1376,
33,
7036,
4672,
1267,
67,
710,
63,
20,
65,
273,
1267,
18,
4939,
1435,
63,
20,
65,
309,
3533,
67,
1376,
30,
775,
30,
... |
src_statinfo = os.lstat(src) | hasheable = Hasheable(src_basename, src_dir=src_dir, dst_dir=dst_dir) | def do_update(self, subcmd, opts, startdir): """${cmd_name}: Update the hash pieces that are included in metalinks | a3e49364812dacde7fdeffc2846644b9d898c129 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10990/a3e49364812dacde7fdeffc2846644b9d898c129/metalink-hasher.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2725,
12,
2890,
16,
720,
4172,
16,
1500,
16,
787,
1214,
4672,
3536,
18498,
4172,
67,
529,
6713,
2315,
326,
1651,
10167,
716,
854,
5849,
316,
5100,
16194,
87,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2725,
12,
2890,
16,
720,
4172,
16,
1500,
16,
787,
1214,
4672,
3536,
18498,
4172,
67,
529,
6713,
2315,
326,
1651,
10167,
716,
854,
5849,
316,
5100,
16194,
87,
2,
-100,
-100,
-1... |
For now, this means they have Ax (axis) pseudoatoms which are directly bonded. | For now, this means they have Ax (axis) pseudoatoms which are directly bonded (but not the same atom). WARNING: This is not a sufficient condition, since it doesn't say whether they're on the same "side" of the helix! Unfortunately that is not easy to tell (or even define, in the present model) since it does not necess... | def bases_are_stacked(bases): """Say whether two Base_recognizers' bases are in helices, and stacked (one to the other). For now, this means they have Ax (axis) pseudoatoms which are directly bonded. """ try: len(bases) except: print "following exception concerns bases == %r" % (bases,) assert len(bases) == 2, "bases =... | f3409c2827e88ba9c4c98914a03ed544d2b23aff /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11221/f3409c2827e88ba9c4c98914a03ed544d2b23aff/crossovers.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8337,
67,
834,
67,
3772,
329,
12,
18602,
4672,
3536,
55,
528,
2856,
2795,
3360,
67,
3927,
4198,
8426,
11,
8337,
854,
316,
13150,
1242,
16,
471,
25776,
261,
476,
358,
326,
1308,
2934,
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,
8337,
67,
834,
67,
3772,
329,
12,
18602,
4672,
3536,
55,
528,
2856,
2795,
3360,
67,
3927,
4198,
8426,
11,
8337,
854,
316,
13150,
1242,
16,
471,
25776,
261,
476,
358,
326,
1308,
2934,
2... |
def _ensure_within_range(self, time, delta, which): | def _ensure_within_range(self, time, delta, pos_error, neg_error): | def _ensure_within_range(self, time, delta, which): """ Return new time (time + delta) or raise ValueError if it is not within the range [MIN_TIME, MAX_TIME]. """ new_time, overflow = self._calculate_overflow(time, delta) if overflow > 0: raise ValueError(_("%s time can't be after year 9989") % which) elif overflow < 0... | 81c24b66938f30cf26ff60e266925ad043d45f3c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5252/81c24b66938f30cf26ff60e266925ad043d45f3c/data.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
15735,
67,
25850,
67,
3676,
12,
2890,
16,
813,
16,
3622,
16,
949,
67,
1636,
16,
4251,
67,
1636,
4672,
3536,
2000,
394,
813,
261,
957,
397,
3622,
13,
578,
1002,
2068,
309,
518,
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,
15735,
67,
25850,
67,
3676,
12,
2890,
16,
813,
16,
3622,
16,
949,
67,
1636,
16,
4251,
67,
1636,
4672,
3536,
2000,
394,
813,
261,
957,
397,
3622,
13,
578,
1002,
2068,
309,
518,
3... |
self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1]) | if libcore.graph_filtering_enabled(): self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1]) | def pop_filter(self): """Pop last stashed filter state""" state = self.__stashed_filter_state.pop() self.set_vertex_filter(state["vertex_filter"][0], state["vertex_filter"][1]) self.set_edge_filter(state["edge_filter"][0], state["edge_filter"][1]) self.set_directed(state["directed"]) self.set_reversed(state["reversed"]... | 3ba46e75d5f664e1e71d425bc56b2a987c3636f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3516/3ba46e75d5f664e1e71d425bc56b2a987c3636f2/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
2188,
12,
2890,
4672,
3536,
7049,
1142,
384,
13912,
1034,
919,
8395,
919,
273,
365,
16186,
334,
13912,
67,
2188,
67,
2019,
18,
5120,
1435,
309,
2561,
3644,
18,
4660,
67,
2188,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1843,
67,
2188,
12,
2890,
4672,
3536,
7049,
1142,
384,
13912,
1034,
919,
8395,
919,
273,
365,
16186,
334,
13912,
67,
2188,
67,
2019,
18,
5120,
1435,
309,
2561,
3644,
18,
4660,
67,
2188,
... |
This class must `not` be instanciated directly. | This class must **not** be instanciated directly. | def detect_encoding(fpath): """ Try to detect the encoding used by the file fpath. The function will return polib default `encoding` if it's unable to detect it. `Keyword argument`: - `fpath`: string, full or relative path to the mo file to parse. `Examples`:: >>> print detect_encoding('tests/test_noencoding.po') ut... | d8198b8084c69bfb0e84293dcc1b4bcf7ead9311 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/d8198b8084c69bfb0e84293dcc1b4bcf7ead9311/polib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
5966,
67,
5999,
12,
28900,
4672,
3536,
6161,
358,
5966,
326,
2688,
1399,
635,
326,
585,
13543,
18,
1021,
445,
903,
327,
2952,
495,
805,
1375,
5999,
68,
309,
518,
1807,
13496,
358,
5966,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5999,
12,
28900,
4672,
3536,
6161,
358,
5966,
326,
2688,
1399,
635,
326,
585,
13543,
18,
1021,
445,
903,
327,
2952,
495,
805,
1375,
5999,
68,
309,
518,
1807,
13496,
358,
5966,
... |
uf.userSetPassword(stored_user, password) | uf.userSetPassword(user.getUserName(), password) | def resetPassword(self, userid, randomstring, password): """Set the password (in 'password') for the user who maps to the string in 'randomstring' iff the entered 'userid' is equal to the mapped userid. (This can be turned off with the 'toggleUserCheck' method.) | ccc6de4b0a89c36e23d596e43d7e1d2f3df667a7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12219/ccc6de4b0a89c36e23d596e43d7e1d2f3df667a7/PasswordResetTool.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
3913,
12,
2890,
16,
6709,
16,
2744,
1080,
16,
2201,
4672,
3536,
694,
326,
2201,
261,
267,
296,
3664,
6134,
364,
326,
729,
10354,
7565,
358,
326,
533,
316,
296,
9188,
1080,
11,
21... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2715,
3913,
12,
2890,
16,
6709,
16,
2744,
1080,
16,
2201,
4672,
3536,
694,
326,
2201,
261,
267,
296,
3664,
6134,
364,
326,
729,
10354,
7565,
358,
326,
533,
316,
296,
9188,
1080,
11,
21... |
if command.errors_to > '': cmd_text += 'rm ' + command.errors_to + '; ' | cmd_text += '\t' | def get_text(self): dep_text = '' for key in self.dependencies: if dep_text=='': dep_text = '\t' + key else: dep_text = dep_text + ' ' + key dep_text = dep_text + '\n' cmd_text = '\t' for key in self.commands.sort_by('sort_order'): command = self.commands[key] if command.errors_to > '': cmd_text += 'rm ' + command.erro... | a21f3295a49c6467d3614c8da71599e042fcf3e1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6947/a21f3295a49c6467d3614c8da71599e042fcf3e1/Makefile.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
955,
12,
2890,
4672,
5993,
67,
955,
273,
875,
364,
498,
316,
365,
18,
11037,
30,
309,
5993,
67,
955,
18920,
4278,
5993,
67,
955,
273,
2337,
88,
11,
397,
498,
469,
30,
5993,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
955,
12,
2890,
4672,
5993,
67,
955,
273,
875,
364,
498,
316,
365,
18,
11037,
30,
309,
5993,
67,
955,
18920,
4278,
5993,
67,
955,
273,
2337,
88,
11,
397,
498,
469,
30,
5993,
... |
r""" Factorial numbers: $n! = 1 \cdot 2 \cdot 3 \cdots n$ Order of symmetric group $S_n$, number of permutations of $n$ letters. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000142;a Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric group S_n, number of per... | def __init__(self): r""" Factorial numbers: $n! = 1 \cdot 2 \cdot 3 \cdots n$ Order of symmetric group $S_n$, number of permutations of $n$ letters. INPUT: n -- non negative integer OUTPUT: integer -- function value EXAMPLES: sage: a = sloane.A000142;a Factorial numbers: n! = 1*2*3*4*...*n (order of symmetric grou... | def _eval(self, n): return Integer(n**4) | 7b02e5455d5d52d6dcc7f2314cdd56803031a1c6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/7b02e5455d5d52d6dcc7f2314cdd56803031a1c6/sloane_functions.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2144,
12,
82,
636,
24,
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,
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,
389,
8622,
12,
2890,
16,
290,
4672,
327,
2144,
12,
82,
636,
24,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
key = user, host, port, string.join(dirs, '/') | key = user, host, port, '/'.join(dirs) | def open_ftp(self, url): """Use FTP protocol.""" host, path = splithost(url) if not host: raise IOError, ('ftp error', 'no host given') host, port = splitport(host) user, host = splituser(host) if user: user, passwd = splitpasswd(user) else: passwd = None host = unquote(host) user = unquote(user or '') passwd = unquote... | 2a3596c7d04c9635576a712f85db07ce4de4bff2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/2a3596c7d04c9635576a712f85db07ce4de4bff2/urllib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
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,
1696,
67,
11727,
12,
2890,
16,
880,
4672,
3536,
3727,
19324,
1771,
12123,
1479,
16,
589,
273,
6121,
483,
669,
12,
718,
13,
309,
486,
1479,
30,
1002,
8340,
16,
7707,
11727,
555,
2187,
2... |
</pre> <br/> (!) For more help, see the <a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html"> reStructuredText Quick Reference </a>. | }}} (!) For more help, see the [[http://docutils.sourceforge.net/docs/user/rst/quickref.html|reStructuredText Quick Reference]]. | def _(text): return text | 6fcb5b00bb73a966b60daf748dbdc416bcb9f352 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/888/6fcb5b00bb73a966b60daf748dbdc416bcb9f352/multiconfig.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12,
955,
4672,
327,
977,
282,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
12,
955,
4672,
327,
977,
282,
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,
... |
'''GRP-ACL-user''', | '''GRP-ACL-user,utest_267''', | def clean_system(): """ Remove all stuff to make the system clean, testsuite-wise.""" test_message('''cleaning system from previous runs.''') # delete them first in case of a previous failed testsuite run. # don't check exit codes or such, this will be done later. for argument in ( ['user', '''toto,tutu,tata,titi,te... | c7a24ffc685eea186397e4d74c31926a514dc16f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/c7a24ffc685eea186397e4d74c31926a514dc16f/core.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
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,
2721,
67,
4299,
13332,
3536,
3581,
777,
10769,
358,
1221,
326,
2619,
2721,
16,
7434,
9519,
17,
2460,
12123,
225,
1842,
67,
2150,
2668,
6309,
6200,
310,
2619,
628,
2416,
7597,
1093,
11,
6... |
res = self.ReplicaManager.getStorageFileMetadata(pfns,se) if not res['OK']: return res for pfn,error in res['Value']['Failed'].items(): if re.search("File does not exist",error): gLogger.error("[%s] __getStorageMetadata: PFN does not exist at StorageElement." % se,"%s %s" % (pfn,error)) | res = self.ReplicaManager.getStorageFileMetadata( pfns, se ) if not res['OK']: return res for pfn, error in res['Value']['Failed'].items(): if re.search( "File does not exist", error ): gLogger.error( "[%s] __getStorageMetadata: PFN does not exist at StorageElement." % se, "%s %s" % ( pfn, error ) ) | def __getMigratedFiles(self,se,pfns): # Get the active files from the database migrated = {} terminal = {} res = self.ReplicaManager.getStorageFileMetadata(pfns,se) if not res['OK']: return res for pfn,error in res['Value']['Failed'].items(): if re.search("File does not exist",error): gLogger.error("[%s] __getStorageMe... | d0365a9152f6e7105162edd475d5401448bfdaed /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/d0365a9152f6e7105162edd475d5401448bfdaed/MigrationMonitoringAgent.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
25483,
690,
2697,
12,
2890,
16,
307,
16,
14241,
2387,
4672,
468,
968,
326,
2695,
1390,
628,
326,
2063,
24741,
273,
2618,
8651,
273,
2618,
400,
273,
365,
18,
14222,
1318,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
25483,
690,
2697,
12,
2890,
16,
307,
16,
14241,
2387,
4672,
468,
968,
326,
2695,
1390,
628,
326,
2063,
24741,
273,
2618,
8651,
273,
2618,
400,
273,
365,
18,
14222,
1318,
18,
... |
g_names = values.split(',') | g_names = values['groups'].split(',') | def startElement(self, name, attributes): | 7fb3270d80249f59fcc4a65b04d0675012e6e0db /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9266/7fb3270d80249f59fcc4a65b04d0675012e6e0db/convert.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
1677,
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,
13591,
12,
2890,
16,
508,
16,
1677,
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,... |
if val == None or key == 'rrule': | if val == None or key == 'rrule': | def export_cal(self, cr, uid, ids, context={}): crm_data = self.read(cr, uid, ids, []) ical = vobject.iCalendar() event_obj = self.pool.get('caldav.event') uid_val = '' for crm in crm_data: vevent = ical.add('vevent') for key, val in self.__attribute__.items(): if key == 'uid': uid_val += str(crm[val['field']]) continu... | 6ef425eb9ba53031aed0c6d62efd20dc99d4dc99 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/6ef425eb9ba53031aed0c6d62efd20dc99d4dc99/crm_calendar.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
4422,
81,
67,
892,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
5378,
13,
277,
771,
273,
331,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
771,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
4422,
81,
67,
892,
273,
365,
18,
896,
12,
3353,
16,
4555,
16,
3258,
16,
5378,
13,
277,
771,
273,
331,
1... |
compExtVersion = v | compExtVersion = v | def fixAbsoluteLinks( path ): for entry in os.listdir( path ): entryPath = os.path.join( path, entry ) if os.path.islink( entryPath ): destPath = os.readlink( entryPath ) if os.path.isabs( destPath ): absLinkDirSplit = [ d for d in os.path.abspath( path ).split( "/" ) if d.strip() ] absDestDirSplit = [ d for d in destP... | 3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/3e1286f49ce012a79f3d2e3a9d45ca63fa48ef73/dirac-compile-externals.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
10368,
7100,
12,
589,
262,
30,
364,
1241,
316,
1140,
18,
1098,
1214,
12,
589,
262,
30,
1241,
743,
273,
1140,
18,
803,
18,
5701,
12,
589,
16,
1241,
262,
309,
1140,
18,
803,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
10368,
7100,
12,
589,
262,
30,
364,
1241,
316,
1140,
18,
1098,
1214,
12,
589,
262,
30,
1241,
743,
273,
1140,
18,
803,
18,
5701,
12,
589,
16,
1241,
262,
309,
1140,
18,
803,
18,
... |
eJytVFFv2jAQfs+vuIU+QDWK+tqKB6oigdRC1bBOW1sZk1yIpWAj2yGj0/77ziFAUijStPIA2Hc+ f/7u+64Bk0QYiEWKsMiMhRlCZjCCXNgEfKMyHSLMhOzw0IoVt+jDeazVAmbcJOdeA9Yqg5BLqSzo TIKwEAmNoU3Xnhfh9hQ0W/DbA/o0QKNBCyqNAOVKaCUXKC2suBZ8lqIpskQMz9CW4J+x8d0texo+ Tr717thDbzLw4RWuwSYoi0z3cdvdY6m7DPy1VNoWibu9TDocB4eKeCxOwvgxGYxHg/F9/xiYXfAA 0v7YAbBd6CS8... | eJytVd9P4kAQfr7+FWPxAcwh8VXDA0YSSBSM5bzcqSlLO6WblF3Sbqlo7n+/2W0prUWSy9kHyu78 2G9nvm/aglnIEwh4hLBKEwULhDRBHzKuQrATmcYewoKLHvMU3zCFNpwFsVzBgiXhmdWCrUzBY0JI BXEqgCvweYyeiraW5eMuCtodeLeAnhbEmKACGfmAYsNjKVYoFGxYzNkiwsR48QCeoCvAPnWntzfu 4/hh9mNw694PZiMbXuAKVIjCeOpHb/cPuZYe+LqWsTKO5V4qNI5GkLEH/CiMX7PRdDKa3g0PgSmN DUj7sAaw0nQU... | def after_install(options, home_dir): subprocess.call([join(home_dir, 'bin', 'easy_install'), 'MyPackage']) subprocess.call([join(home_dir, 'bin', 'my-package-script'), 'setup', home_dir]) | 98cbb4c381c7e1d77fa8b739b2c3428e70e1b794 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12981/98cbb4c381c7e1d77fa8b739b2c3428e70e1b794/virtualenv.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1839,
67,
5425,
12,
2116,
16,
6382,
67,
1214,
4672,
6652,
18,
1991,
3816,
5701,
12,
8712,
67,
1214,
16,
296,
4757,
2187,
296,
73,
15762,
67,
5425,
19899,
296,
12062,
2261,
19486,
6652,
... |
if False: logger.log("caret offset: %s" % self.caretOffset) self.__editableText.insertText (self.caretOffset, text) self.caretOffset+=len(string) logger.log("new caret offset: %s" % self.caretOffset) | def typeText(self, string): """ Type the given text into the node, with appropriate delays and logging. """ logger.log("Typing text into %s: '%s'"%(self.getLogString(), string)) | 3412a1f5546d9583ae932cede9c3acb090882299 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10139/3412a1f5546d9583ae932cede9c3acb090882299/tree.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
1528,
12,
2890,
16,
533,
4672,
3536,
1412,
326,
864,
977,
1368,
326,
756,
16,
598,
5505,
4624,
87,
471,
2907,
18,
3536,
1194,
18,
1330,
2932,
18488,
310,
977,
1368,
738,
87,
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,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
618,
1528,
12,
2890,
16,
533,
4672,
3536,
1412,
326,
864,
977,
1368,
326,
756,
16,
598,
5505,
4624,
87,
471,
2907,
18,
3536,
1194,
18,
1330,
2932,
18488,
310,
977,
1368,
738,
87,
30,
... | |
messages (start, data, end). Call close to get the resulting | messages (start, data, end). Call close() to get the resulting | def dump_instance(self, value): # check for special wrappers if value.__class__ in WRAPPERS: value.encode(self) else: # store instance attributes as a struct (really?) self.dump_struct(value.__dict__) | b0e8e9b72fb6eb42ecd4d9ea9e88563d1ca4528a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/b0e8e9b72fb6eb42ecd4d9ea9e88563d1ca4528a/xmlrpclib.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
1336,
12,
2890,
16,
460,
4672,
468,
866,
364,
4582,
21589,
309,
460,
16186,
1106,
972,
316,
12984,
2203,
3194,
55,
30,
460,
18,
3015,
12,
2890,
13,
469,
30,
468,
1707,
791,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
1336,
12,
2890,
16,
460,
4672,
468,
866,
364,
4582,
21589,
309,
460,
16186,
1106,
972,
316,
12984,
2203,
3194,
55,
30,
460,
18,
3015,
12,
2890,
13,
469,
30,
468,
1707,
791,
... |
if norm(spath) != norm(tpath): | if normpath(spath) != normpath(tpath): | def set_path(self, index, index_is_id=False): ''' Set the path to the directory containing this books files based on its current title and author. If there was a previous directory, its contents are copied and it is deleted. ''' id = index if index_is_id else self.id(index) path = self.construct_path_name(id) current_... | 0c538a70eb1684c93c619553e3252dccb528364c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9125/0c538a70eb1684c93c619553e3252dccb528364c/database2.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
803,
12,
2890,
16,
770,
16,
770,
67,
291,
67,
350,
33,
8381,
4672,
9163,
1000,
326,
589,
358,
326,
1867,
4191,
333,
6978,
87,
1390,
2511,
603,
2097,
783,
2077,
471,
2869,
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,
444,
67,
803,
12,
2890,
16,
770,
16,
770,
67,
291,
67,
350,
33,
8381,
4672,
9163,
1000,
326,
589,
358,
326,
1867,
4191,
333,
6978,
87,
1390,
2511,
603,
2097,
783,
2077,
471,
2869,
18... |
raise SCons.Errors.UserError, "Import of non-existant variable '%s'"%x | raise SCons.Errors.UserError, "Import of non-existent variable '%s'"%x | def Import(self, *vars): try: for var in vars: var = self.Split(var) for v in var: if v == '*': stack[-1].globals.update(global_exports) stack[-1].globals.update(stack[-1].exports) else: if stack[-1].exports.has_key(v): stack[-1].globals[v] = stack[-1].exports[v] else: stack[-1].globals[v] = global_exports[v] except Ke... | 8829ef9ae3372136769634d97d6e6ddf3eb8fc42 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7126/8829ef9ae3372136769634d97d6e6ddf3eb8fc42/SConscript.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
12,
2890,
16,
380,
4699,
4672,
775,
30,
364,
569,
316,
4153,
30,
569,
273,
365,
18,
5521,
12,
1401,
13,
364,
331,
316,
569,
30,
309,
331,
422,
5306,
30,
2110,
18919,
21,
8009,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6164,
12,
2890,
16,
380,
4699,
4672,
775,
30,
364,
569,
316,
4153,
30,
569,
273,
365,
18,
5521,
12,
1401,
13,
364,
331,
316,
569,
30,
309,
331,
422,
5306,
30,
2110,
18919,
21,
8009,
... |
FILE.write("\ttype generic-mesh\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (numverts)) for vert in verts: FILE.write("\t\t%s %s %s\n" % (vert.co[0], vert.co[1], vert.co[2])) numtris = 0 for face in faces: num = len(face.v) if num == 4: numtris = numtris + 2 elif num == 3: numtris = nu... | ob = Object.Get(obj.name) if len(ob.effects) <> 0: effect = ob.effects[0] particles = effect.getParticlesLoc() effects= Effect.Get() if not effect.getFlag() & Effect.Flags.STATIC or not effect.getStype(): FILE.write("\ttype particles\n") FILE.write("\tname \"" + obj.name + "\"\n") FILE.write("\tpoints %d\n" % (len(p... | def export_geometry(obj): #mesh = "";verts="";faces="";numverts="" islight = obj.name.startswith("meshlight") if islight: print "o exporting meshlight " + obj.name+"..." # get the mesh data if obj.getType() <> "Empty": mesh = NMesh.GetRawFromObject(obj.name) mesh.transform(obj.getMatrix(), 1) verts = mesh.verts faces =... | 6815e138d234966977092a32ee7063f0ab4f6061 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12400/6815e138d234966977092a32ee7063f0ab4f6061/sunflow_export.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
14330,
12,
2603,
4672,
468,
15557,
273,
1408,
31,
31537,
1546,
14432,
4601,
1546,
14432,
2107,
31537,
1546,
6,
353,
5099,
273,
1081,
18,
529,
18,
17514,
1918,
2932,
15557,
5099,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3359,
67,
14330,
12,
2603,
4672,
468,
15557,
273,
1408,
31,
31537,
1546,
14432,
4601,
1546,
14432,
2107,
31537,
1546,
6,
353,
5099,
273,
1081,
18,
529,
18,
17514,
1918,
2932,
15557,
5099,
... |
font.setMagFilter(magFilter) | font.setMagfilter(magFilter) | def loadFont(self, modelPath, spaceAdvance = None, pointSize = None, pixelsPerUnit = None, scaleFactor = None, textureMargin = None, polyMargin = None, minFilter = None, magFilter = None, anisotropicDegree = None, lineHeight = None): """ modelPath is a string. | 0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7242/0bcf6e19e333d0eaa5f95cc4a55ebebdccd27289/Loader.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1262,
5711,
12,
2890,
16,
938,
743,
16,
3476,
1871,
5882,
273,
599,
16,
1634,
1225,
273,
599,
16,
8948,
2173,
2802,
273,
599,
16,
3159,
6837,
273,
599,
16,
11428,
9524,
273,
599,
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,
1262,
5711,
12,
2890,
16,
938,
743,
16,
3476,
1871,
5882,
273,
599,
16,
1634,
1225,
273,
599,
16,
8948,
2173,
2802,
273,
599,
16,
3159,
6837,
273,
599,
16,
11428,
9524,
273,
599,
16,
... |
package = __import__('googlecl.' + service, fromlist=['SECTION_HEADER', 'TASKS']) | package = import_at_runtime('googlecl.' + service) | def import_service(service, config_file_path): """Import vital information about a service. The goal of this function is to allow expansion to other "service" classes in the future. In the same way that the v2 and v3 API python library uses a module called "client", googlecl will do the same. Keyword arguments: servi... | 7401185f61930c54be4742722415abbc7002706a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2899/7401185f61930c54be4742722415abbc7002706a/google.py | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3278,
12,
3278,
16,
642,
67,
768,
67,
803,
4672,
3536,
5010,
331,
7053,
1779,
2973,
279,
1156,
18,
225,
1021,
17683,
434,
333,
445,
353,
358,
1699,
17965,
358,
1308,
315,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
3278,
12,
3278,
16,
642,
67,
768,
67,
803,
4672,
3536,
5010,
331,
7053,
1779,
2973,
279,
1156,
18,
225,
1021,
17683,
434,
333,
445,
353,
358,
1699,
17965,
358,
1308,
315,
327... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.