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
|
|---|---|---|---|---|---|---|
lookupTable = ipIsr.LookupTableMultiplicativeF(tableValues)
|
lookupTable = isrLib.LookupTableMultiplicativeF(tableValues)
|
def LookupTableFromPolicy(tablePolicy, stageName = 'lsst.ip.isr.lookuptablefrompolicy'): tableType = tablePolicy.getString('type') tableLength = tablePolicy.getInt('length') tableValues = tablePolicy.getArray('value') assert len(tableValues) == tableLength tableValues = afwMath.vectorD(tableValues) if tableType == 'Replace': lookupTable = ipIsr.LookupTableReplaceF(tableValues) elif tableType == 'Multiplicative': lookupTable = ipIsr.LookupTableMultiplicativeF(tableValues) else: pexLog.Trace(stageName, 4, 'Unknown table type : %s' % (tableType)) return None return lookupTable
|
9178ba52aa57399136f285c8a065b1707c990801 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6526/9178ba52aa57399136f285c8a065b1707c990801/IsrStages.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8834,
1388,
1265,
2582,
12,
2121,
2582,
16,
6009,
461,
273,
296,
3251,
334,
18,
625,
18,
291,
86,
18,
7330,
3648,
429,
2080,
5086,
11,
4672,
1014,
559,
282,
273,
1014,
2582,
18,
588,
780,
2668,
723,
6134,
1014,
1782,
273,
1014,
2582,
18,
588,
1702,
2668,
2469,
6134,
1014,
1972,
273,
1014,
2582,
18,
588,
1076,
2668,
1132,
6134,
1815,
562,
12,
2121,
1972,
13,
422,
1014,
1782,
1014,
1972,
273,
10073,
91,
10477,
18,
7737,
40,
12,
2121,
1972,
13,
225,
309,
1014,
559,
422,
296,
5729,
4278,
3689,
1388,
273,
2359,
2520,
86,
18,
6609,
1388,
5729,
42,
12,
2121,
1972,
13,
1327,
1014,
559,
422,
296,
5002,
28884,
4278,
3689,
1388,
273,
353,
86,
5664,
18,
6609,
1388,
5002,
28884,
42,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8834,
1388,
1265,
2582,
12,
2121,
2582,
16,
6009,
461,
273,
296,
3251,
334,
18,
625,
18,
291,
86,
18,
7330,
3648,
429,
2080,
5086,
11,
4672,
1014,
559,
282,
273,
1014,
2582,
18,
588,
780,
2668,
723,
6134,
1014,
1782,
273,
1014,
2582,
18,
588,
1702,
2668,
2469,
6134,
1014,
1972,
273,
1014,
2582,
18,
588,
1076,
2668,
1132,
6134,
1815,
562,
12,
2121,
1972,
13,
422,
1014,
1782,
1014,
1972,
273,
10073,
91,
10477,
18,
7737,
40,
12,
2121,
1972,
13,
225,
309,
1014,
559,
422,
296,
5729,
4278,
3689,
1388,
273,
2359,
2520,
86,
18,
6609,
1388,
5729,
42,
12,
2121,
1972,
13,
1327,
1014,
559,
422,
296,
5002,
28884,
4278,
3689,
1388,
273,
353,
2
] |
digits = fields.get('digits', (16, 2))[1]
|
digits = fields[fname].get('digits', (16, 2))[1]
|
def parse(self, model, root_node, fields): dict_widget = {} button_list = [] attrs = node_attributes(root_node) on_write = attrs.get('on_write', '') editable = attrs.get('editable', False) if editable: treeview = EditableTreeView(editable) else: treeview = gtk.TreeView() treeview.cells = {} treeview.sequence = attrs.get('sequence', False) treeview.colors = {} self.treeview = treeview for color_spec in attrs.get('colors', '').split(';'): if color_spec: colour, test = color_spec.split(':') self.treeview.colors[colour] = test treeview.set_property('rules-hint', True) if not self.title: self.title = attrs.get('string', 'Unknown') tooltips = common.Tooltips()
|
7edd5051ac3136b47eff45f78761d548170042ef /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9151/7edd5051ac3136b47eff45f78761d548170042ef/parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
938,
16,
1365,
67,
2159,
16,
1466,
4672,
2065,
67,
6587,
273,
2618,
3568,
67,
1098,
273,
5378,
3422,
273,
756,
67,
4350,
12,
3085,
67,
2159,
13,
603,
67,
2626,
273,
3422,
18,
588,
2668,
265,
67,
2626,
2187,
28707,
13754,
273,
3422,
18,
588,
2668,
19653,
2187,
1083,
13,
309,
13754,
30,
2151,
1945,
273,
6651,
9085,
2471,
1767,
12,
19653,
13,
469,
30,
2151,
1945,
273,
22718,
18,
2471,
1767,
1435,
2151,
1945,
18,
14741,
273,
2618,
2151,
1945,
18,
6178,
273,
3422,
18,
588,
2668,
6178,
2187,
1083,
13,
2151,
1945,
18,
9724,
273,
2618,
365,
18,
3413,
1945,
273,
2151,
1945,
364,
2036,
67,
2793,
316,
3422,
18,
588,
2668,
9724,
2187,
875,
2934,
4939,
2668,
4359,
4672,
309,
2036,
67,
2793,
30,
15046,
16,
1842,
273,
2036,
67,
2793,
18,
4939,
2668,
2497,
13,
365,
18,
3413,
1945,
18,
9724,
63,
27408,
65,
273,
1842,
2151,
1945,
18,
542,
67,
4468,
2668,
7482,
17,
11317,
2187,
1053,
13,
309,
486,
365,
18,
2649,
30,
365,
18,
2649,
273,
3422,
18,
588,
2668,
1080,
2187,
296,
4874,
6134,
358,
4397,
7146,
273,
2975,
18,
774,
4397,
7146,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
938,
16,
1365,
67,
2159,
16,
1466,
4672,
2065,
67,
6587,
273,
2618,
3568,
67,
1098,
273,
5378,
3422,
273,
756,
67,
4350,
12,
3085,
67,
2159,
13,
603,
67,
2626,
273,
3422,
18,
588,
2668,
265,
67,
2626,
2187,
28707,
13754,
273,
3422,
18,
588,
2668,
19653,
2187,
1083,
13,
309,
13754,
30,
2151,
1945,
273,
6651,
9085,
2471,
1767,
12,
19653,
13,
469,
30,
2151,
1945,
273,
22718,
18,
2471,
1767,
1435,
2151,
1945,
18,
14741,
273,
2618,
2151,
1945,
18,
6178,
273,
3422,
18,
588,
2668,
6178,
2187,
1083,
13,
2151,
1945,
18,
9724,
273,
2618,
365,
18,
3413,
1945,
273,
2151,
1945,
364,
2036,
67,
2793,
316,
3422,
18,
588,
2
] |
verbose = False
|
verbose = self.get_verbosity()
|
def run(self): """Do the actual simulation. The input is set using setters/constructor. The solution can be retrieved using self.get_solution() """ return_last = self.get_return_last() sensi = self.get_sensitivity_analysis() time_step = self.get_time_step() start_time = self.get_start_time() end_time = self.get_final_time() verbose = False model = self.get_model() if verbose: print "Input before integration:", model.u print "States:", model.x print start_time, "to", end_time import sys sys.stdout.flush() if end_time < start_time: raise SundialsSimulationException('End time cannot be before start ' 'time.') if end_time == start_time: raise SundialsSimulationException('End time and start time cannot ' 'currently coinside.') # If this line is not here T[-1] returned will be end_time - time_step #end_time = end_time + time_step def _sundials_f(t, x, dx, f_data): """The sundials' RHS evaluation function. This function basically moves data between SUNDIALS arrays and NumPy arrays. Parameters: t -- the point time on which the evalution is being done. x -- the states. dx -- the derivatives of the states. f_data -- contains the model and an array with it's parameters. See SUNDIALS' manual and/or PySUNDIALS demos for more information. """ data = ctypes.cast(f_data, PUserData).contents model = data.model model.t = (t - data.t_sim_start) / data.t_sim_duration if data.ignore_p == 0: p = data.parameters sundials_params = p.params model.pi = sundials_params[p.pi_start : p.pi_end] model.u = sundials_params[p.u_start : p.u_end] # Copying from sundials space to model space and back again model.x = x model.eval_ode_f() dx[:] = model.dx return 0
|
2259378e77273c298d71047069b8f83885e323aa /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7711/2259378e77273c298d71047069b8f83885e323aa/sundials.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
3536,
3244,
326,
3214,
14754,
18,
225,
1021,
810,
353,
444,
1450,
25627,
19,
12316,
18,
1021,
6959,
848,
506,
10295,
1450,
365,
18,
588,
67,
13385,
1435,
3536,
327,
67,
2722,
273,
365,
18,
588,
67,
2463,
67,
2722,
1435,
15390,
77,
273,
365,
18,
588,
67,
87,
773,
20862,
67,
12746,
1435,
813,
67,
4119,
273,
365,
18,
588,
67,
957,
67,
4119,
1435,
787,
67,
957,
273,
365,
18,
588,
67,
1937,
67,
957,
1435,
679,
67,
957,
273,
365,
18,
588,
67,
6385,
67,
957,
1435,
3988,
273,
365,
18,
588,
67,
16629,
8807,
1435,
938,
273,
365,
18,
588,
67,
2284,
1435,
225,
309,
3988,
30,
1172,
315,
1210,
1865,
12040,
2773,
16,
938,
18,
89,
1172,
315,
7629,
2773,
16,
938,
18,
92,
1172,
787,
67,
957,
16,
315,
869,
3113,
679,
67,
957,
225,
1930,
2589,
2589,
18,
10283,
18,
11330,
1435,
225,
309,
679,
67,
957,
411,
787,
67,
957,
30,
1002,
348,
1074,
649,
87,
18419,
503,
2668,
1638,
813,
2780,
506,
1865,
787,
296,
296,
957,
1093,
13,
309,
679,
67,
957,
422,
787,
67,
957,
30,
1002,
348,
1074,
649,
87,
18419,
503,
2668,
1638,
813,
471,
787,
813,
2780,
296,
296,
2972,
715,
13170,
5564,
1093,
13,
225,
468,
971,
333,
980,
353,
486,
2674,
399,
18919,
21,
65,
2106,
903,
506,
679,
67,
957,
300,
813,
67,
4119,
468,
409,
67,
957,
273,
679,
67,
957,
397,
813,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3536,
3244,
326,
3214,
14754,
18,
225,
1021,
810,
353,
444,
1450,
25627,
19,
12316,
18,
1021,
6959,
848,
506,
10295,
1450,
365,
18,
588,
67,
13385,
1435,
3536,
327,
67,
2722,
273,
365,
18,
588,
67,
2463,
67,
2722,
1435,
15390,
77,
273,
365,
18,
588,
67,
87,
773,
20862,
67,
12746,
1435,
813,
67,
4119,
273,
365,
18,
588,
67,
957,
67,
4119,
1435,
787,
67,
957,
273,
365,
18,
588,
67,
1937,
67,
957,
1435,
679,
67,
957,
273,
365,
18,
588,
67,
6385,
67,
957,
1435,
3988,
273,
365,
18,
588,
67,
16629,
8807,
1435,
938,
273,
365,
18,
588,
67,
2284,
1435,
225,
309,
3988,
30,
1172,
315,
1210,
2
] |
sys.stdout.write(_("(%s)\n") % inst.hint)
|
sys.stderr.write(_("(%s)\n") % inst.hint)
|
def dispatch(args): "run the command specified in args" try: u = uimod.ui() if '--traceback' in args: u.setconfig('ui', 'traceback', 'on') except util.Abort, inst: sys.stderr.write(_("abort: %s\n") % inst) if inst.hint: sys.stdout.write(_("(%s)\n") % inst.hint) return -1 except error.ParseError, inst: if len(inst.args) > 1: sys.stderr.write(_("hg: parse error at %s: %s\n") % (inst.args[1], inst.args[0])) else: sys.stderr.write(_("hg: parse error: %s\n") % inst.args[0]) return -1 return _runcatch(u, args)
|
e40f3c107f46a0ebc29972991f30db71fb8dd09c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11312/e40f3c107f46a0ebc29972991f30db71fb8dd09c/dispatch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3435,
12,
1968,
4672,
315,
2681,
326,
1296,
1269,
316,
833,
6,
775,
30,
582,
273,
582,
381,
369,
18,
4881,
1435,
309,
3534,
21696,
11,
316,
833,
30,
582,
18,
542,
1425,
2668,
4881,
2187,
296,
21696,
2187,
296,
265,
6134,
1335,
1709,
18,
13572,
16,
1804,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
18623,
30,
738,
87,
64,
82,
7923,
738,
1804,
13,
309,
1804,
18,
11317,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
9275,
87,
5153,
82,
7923,
738,
1804,
18,
11317,
13,
327,
300,
21,
1335,
555,
18,
21004,
16,
1804,
30,
309,
562,
12,
8591,
18,
1968,
13,
405,
404,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
26981,
30,
1109,
555,
622,
738,
87,
30,
738,
87,
64,
82,
7923,
738,
261,
8591,
18,
1968,
63,
21,
6487,
1804,
18,
1968,
63,
20,
22643,
469,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
26981,
30,
1109,
555,
30,
738,
87,
64,
82,
7923,
738,
1804,
18,
1968,
63,
20,
5717,
327,
300,
21,
327,
389,
86,
551,
505,
12,
89,
16,
833,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
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,
3435,
12,
1968,
4672,
315,
2681,
326,
1296,
1269,
316,
833,
6,
775,
30,
582,
273,
582,
381,
369,
18,
4881,
1435,
309,
3534,
21696,
11,
316,
833,
30,
582,
18,
542,
1425,
2668,
4881,
2187,
296,
21696,
2187,
296,
265,
6134,
1335,
1709,
18,
13572,
16,
1804,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
18623,
30,
738,
87,
64,
82,
7923,
738,
1804,
13,
309,
1804,
18,
11317,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
9275,
87,
5153,
82,
7923,
738,
1804,
18,
11317,
13,
327,
300,
21,
1335,
555,
18,
21004,
16,
1804,
30,
309,
562,
12,
8591,
18,
1968,
13,
405,
404,
30,
2589,
18,
11241,
18,
2626,
24899,
2932,
26981,
30,
1109,
2
] |
milestones = [m for m in Milestone.select(self.env, showall, db)
|
milestones = Milestone.select(self.env, 'completed' in show, db) if 'noduedate' in show: milestones = [m for m in milestones if m.due is not None or m.completed] milestones = [m for m in milestones
|
def process_request(self, req): req.perm.require('MILESTONE_VIEW')
|
da151934436e39b5fb17fbda7ca373193e3f7022 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9317/da151934436e39b5fb17fbda7ca373193e3f7022/roadmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
2293,
12,
2890,
16,
1111,
4672,
1111,
18,
12160,
18,
6528,
2668,
7492,
900,
882,
5998,
67,
12145,
6134,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if data is not masked:
|
if data is not masked and self.ndim > 1:
|
def __getitem__(self, indx): """x.__getitem__(y) <==> x[y]
|
67ff354b5ca927b3776dae59e421317f47f5d59d /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12971/67ff354b5ca927b3776dae59e421317f47f5d59d/tseries.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
31571,
972,
12,
2890,
16,
24732,
4672,
3536,
92,
16186,
31571,
972,
12,
93,
13,
411,
631,
34,
619,
63,
93,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
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,
31571,
972,
12,
2890,
16,
24732,
4672,
3536,
92,
16186,
31571,
972,
12,
93,
13,
411,
631,
34,
619,
63,
93,
65,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return http.Response(stream=s)
|
return HTMLResponse(stream=s)
|
def render(self, ctx): s = notebook.plain_text_worksheet_html(self.name) return http.Response(stream=s)
|
86a4ed9cb0aba48a11523b820246bf1c9d9e7be2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/86a4ed9cb0aba48a11523b820246bf1c9d9e7be2/twist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
7446,
67,
955,
67,
1252,
8118,
67,
2620,
12,
2890,
18,
529,
13,
327,
1062,
18,
1064,
12,
3256,
33,
87,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1743,
12,
2890,
16,
1103,
4672,
272,
273,
14718,
18,
7446,
67,
955,
67,
1252,
8118,
67,
2620,
12,
2890,
18,
529,
13,
327,
1062,
18,
1064,
12,
3256,
33,
87,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
that can be found on MoinMoin:FeatureRequests/WikiEMoinMoin\mailintegration """
|
that can be found on MoinMoin:FeatureRequests/WikiEmailintegration """
|
def get_pagename_content(msg, email_subpage_template, wiki_address): """ Generates pagename and content according to the specification that can be found on MoinMoin:FeatureRequests/WikiEMoinMoin\mailintegration """ generate_summary = False choose_html = True pagename_tpl = "" for addr in ('to_addr', 'cc_addr', 'bcc_addr'): if msg[addr][1].strip().lower() == wiki_address: pagename_tpl = msg[addr][0] if not pagename_tpl: m = re_subject.match(msg['subject']) if m: pagename_tpl = m.group(1) else: # special fix for outlook users :-) if pagename_tpl[-1] == pagename_tpl[0] == "'": pagename_tpl = pagename_tpl[1:-1] if pagename_tpl.endswith("/"): pagename_tpl += email_subpage_template # last resort if not pagename_tpl: pagename_tpl = email_subpage_template # rewrite using string.formatter when python 2.4 is mandantory pagename = (pagename_tpl.replace("$from", msg['from_addr'][0]). replace("$date", msg['date']). replace("$subj", msg['subject'])) if pagename.startswith("+ ") and "/" in pagename: generate_summary = True pagename = pagename[1:].lstrip() if choose_html and msg['html']: content = "{{{#!html\n%s\n}}}" % msg['html'].replace("}}}", "} } }") else: # strip signatures ... content = re_sigstrip.sub("", msg['text']) return {'pagename': pagename, 'content': content, 'generate_summary': generate_summary}
|
1412324803940e40bf045ce957f674e8310d48a2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/1412324803940e40bf045ce957f674e8310d48a2/mailimport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
9095,
1069,
67,
1745,
12,
3576,
16,
2699,
67,
1717,
2433,
67,
3202,
16,
9050,
67,
2867,
4672,
3536,
31902,
4262,
1069,
471,
913,
4888,
358,
326,
7490,
716,
848,
506,
1392,
603,
490,
885,
49,
885,
30,
4595,
6421,
19,
25438,
4134,
27667,
3536,
225,
2103,
67,
7687,
273,
1083,
9876,
67,
2620,
273,
1053,
225,
4262,
1069,
67,
10933,
273,
1408,
364,
3091,
316,
7707,
869,
67,
4793,
2187,
296,
952,
67,
4793,
2187,
296,
31345,
67,
4793,
11,
4672,
309,
1234,
63,
4793,
6362,
21,
8009,
6406,
7675,
8167,
1435,
422,
9050,
67,
2867,
30,
4262,
1069,
67,
10933,
273,
1234,
63,
4793,
6362,
20,
65,
225,
309,
486,
4262,
1069,
67,
10933,
30,
312,
273,
283,
67,
7857,
18,
1916,
12,
3576,
3292,
7857,
19486,
309,
312,
30,
4262,
1069,
67,
10933,
273,
312,
18,
1655,
12,
21,
13,
469,
30,
468,
4582,
2917,
364,
596,
7330,
3677,
294,
17,
13,
309,
4262,
1069,
67,
10933,
18919,
21,
65,
422,
4262,
1069,
67,
10933,
63,
20,
65,
422,
5862,
30,
4262,
1069,
67,
10933,
273,
4262,
1069,
67,
10933,
63,
21,
30,
17,
21,
65,
225,
309,
4262,
1069,
67,
10933,
18,
5839,
1918,
2932,
4898,
4672,
4262,
1069,
67,
10933,
1011,
2699,
67,
1717,
2433,
67,
3202,
225,
468,
1142,
400,
499,
309,
486,
4262,
1069,
67,
10933,
30,
4262,
1069,
67,
10933,
273,
2699,
67,
1717,
2433,
67,
3202,
225,
468,
10738,
1450,
533,
18,
12354,
1347,
5790,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9095,
1069,
67,
1745,
12,
3576,
16,
2699,
67,
1717,
2433,
67,
3202,
16,
9050,
67,
2867,
4672,
3536,
31902,
4262,
1069,
471,
913,
4888,
358,
326,
7490,
716,
848,
506,
1392,
603,
490,
885,
49,
885,
30,
4595,
6421,
19,
25438,
4134,
27667,
3536,
225,
2103,
67,
7687,
273,
1083,
9876,
67,
2620,
273,
1053,
225,
4262,
1069,
67,
10933,
273,
1408,
364,
3091,
316,
7707,
869,
67,
4793,
2187,
296,
952,
67,
4793,
2187,
296,
31345,
67,
4793,
11,
4672,
309,
1234,
63,
4793,
6362,
21,
8009,
6406,
7675,
8167,
1435,
422,
9050,
67,
2867,
30,
4262,
1069,
67,
10933,
273,
1234,
63,
4793,
6362,
20,
65,
225,
309,
486,
4262,
1069,
67,
10933,
2
] |
textList.extend([controlTypes.speechStateLabels[state] for state in positiveStateSet])
|
stateList.extend([controlTypes.speechStateLabels[state] for state in positiveStateSet])
|
def speakObjectProperties(obj,groupName=False,name=False,role=False,states=False,value=False,description=False,keyboardShortcut=False,positionString=False,level=False,contains=False,reason=REASON_QUERY): global beenCanceled if speechMode==speechMode_off: return elif speechMode==speechMode_beeps: tones.beep(config.conf["speech"]["beepSpeechModePitch"],speechMode_beeps_ms) return beenCanceled=False textList=[] if groupName: groupNameText=obj.groupName if isinstance(groupNameText,basestring) and len(groupNameText)>0 and not groupNameText.isspace(): textList.append(groupNameText) if name: nameText=obj.name if isinstance(nameText,basestring) and len(nameText)>0 and not nameText.isspace(): textList.append(nameText) if role: roleNum=obj.role if isinstance(roleNum,int) and (reason!=REASON_FOCUS or roleNum not in silentRolesOnFocus): textList.append(controlTypes.speechRoleLabels[roleNum]) if states: stateSet=obj.states oldStateSet=obj._oldStates positiveStateSet=stateSet oldPositiveStateSet=oldStateSet negativeStateSet=set() oldNegativeStateSet=set() if not role: roleNum=obj.role if reason==REASON_CHANGE: positiveStateSet=positiveStateSet-silentPositiveStatesOnStateChange[controlTypes.ROLE_UNKNOWN] oldPositiveStateSet=oldPositiveStateSet-silentPositiveStatesOnStateChange[controlTypes.ROLE_UNKNOWN] if roleNum!=controlTypes.ROLE_UNKNOWN and silentPositiveStatesOnStateChange.has_key(roleNum): positiveStateSet=positiveStateSet-silentPositiveStatesOnStateChange[roleNum] oldPositiveStateSet=oldPositiveStateSet-silentPositiveStatesOnStateChange[roleNum] textList.extend([controlTypes.speechStateLabels[state] for state in (positiveStateSet-oldPositiveStateSet)]) elif reason==REASON_FOCUS: positiveStateSet=positiveStateSet-silentPositiveStatesOnFocus[controlTypes.ROLE_UNKNOWN] if roleNum!=controlTypes.ROLE_UNKNOWN and silentPositiveStatesOnFocus.has_key(roleNum): positiveStateSet=positiveStateSet-silentPositiveStatesOnFocus[roleNum] textList.extend([controlTypes.speechStateLabels[state] for state in positiveStateSet]) else: textList.extend([controlTypes.speechStateLabels[state] for state in positiveStateSet]) if spokenNegativeStates.has_key(roleNum): negativeStateSet=negativeStateSet|(spokenNegativeStates[roleNum]-stateSet) if reason==REASON_CHANGE: oldNegativeStateSet=oldNegativeStateSet|(spokenNegativeStates[roleNum]-oldStateSet) textList.extend([_("not %s")%controlTypes.speechStateLabels[state] for state in (negativeStateSet-oldNegativeStateSet)]) if value: valueText=obj.value if isinstance(valueText,basestring) and len(valueText)>0 and not valueText.isspace(): textList.append(valueText) if description: descriptionText=obj.description if not name: nameText=obj.name if descriptionText!=nameText and isinstance(descriptionText,basestring) and len(descriptionText)>0 and not descriptionText.isspace(): textList.append(descriptionText) if keyboardShortcut and config.conf["presentation"]["reportKeyboardShortcuts"]: keyboardShortcutText=obj.keyboardShortcut if isinstance(keyboardShortcutText,basestring) and len(keyboardShortcutText)>0 and not keyboardShortcutText.isspace(): textList.append(keyboardShortcutText) if positionString: positionStringText=obj.positionString if isinstance(positionStringText,basestring) and len(positionStringText)>0 and not positionStringText.isspace(): textList.append(positionStringText) if level: levelNum=obj.level if isinstance(levelNum,int): textList.append(_("level %d")%levelNum) if contains: containsText=obj.contains if isinstance(containsText,basestring) and len(containsText)>0 and not containsText.isspace(): textList.append(_("contains %s")%containsText) text=" ".join(textList) if len(text)>0 and not text.isspace(): text=processText(text) getSynth().speakText(text)
|
56363b3a70f6de082b32f0ae32aa381eadd77d58 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9340/56363b3a70f6de082b32f0ae32aa381eadd77d58/speech.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
10244,
921,
2297,
12,
2603,
16,
1655,
461,
33,
8381,
16,
529,
33,
8381,
16,
4615,
33,
8381,
16,
7992,
33,
8381,
16,
1132,
33,
8381,
16,
3384,
33,
8381,
16,
31486,
15576,
33,
8381,
16,
3276,
780,
33,
8381,
16,
2815,
33,
8381,
16,
12298,
33,
8381,
16,
10579,
33,
29416,
1413,
67,
10753,
4672,
2552,
2118,
23163,
309,
24556,
2309,
631,
87,
12510,
2309,
67,
3674,
30,
327,
1327,
24556,
2309,
631,
87,
12510,
2309,
67,
2196,
13058,
30,
268,
5322,
18,
2196,
881,
12,
1425,
18,
3923,
9614,
87,
12510,
6,
6362,
6,
2196,
881,
22334,
2309,
52,
1437,
6,
6487,
87,
12510,
2309,
67,
2196,
13058,
67,
959,
13,
327,
2118,
23163,
33,
8381,
977,
682,
33,
8526,
309,
11619,
30,
11619,
1528,
33,
2603,
18,
1655,
461,
309,
1549,
12,
1655,
461,
1528,
16,
18602,
371,
13,
471,
562,
12,
1655,
461,
1528,
13,
34,
20,
471,
486,
11619,
1528,
18,
1054,
909,
13332,
977,
682,
18,
6923,
12,
1655,
461,
1528,
13,
309,
508,
30,
508,
1528,
33,
2603,
18,
529,
309,
1549,
12,
529,
1528,
16,
18602,
371,
13,
471,
562,
12,
529,
1528,
13,
34,
20,
471,
486,
508,
1528,
18,
1054,
909,
13332,
977,
682,
18,
6923,
12,
529,
1528,
13,
309,
2478,
30,
2478,
2578,
33,
2603,
18,
4615,
309,
1549,
12,
4615,
2578,
16,
474,
13,
471,
261,
10579,
5,
33,
29416,
1413,
67,
3313,
39,
3378,
578,
2478,
2578,
486,
316,
10404,
6898,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
272,
10244,
921,
2297,
12,
2603,
16,
1655,
461,
33,
8381,
16,
529,
33,
8381,
16,
4615,
33,
8381,
16,
7992,
33,
8381,
16,
1132,
33,
8381,
16,
3384,
33,
8381,
16,
31486,
15576,
33,
8381,
16,
3276,
780,
33,
8381,
16,
2815,
33,
8381,
16,
12298,
33,
8381,
16,
10579,
33,
29416,
1413,
67,
10753,
4672,
2552,
2118,
23163,
309,
24556,
2309,
631,
87,
12510,
2309,
67,
3674,
30,
327,
1327,
24556,
2309,
631,
87,
12510,
2309,
67,
2196,
13058,
30,
268,
5322,
18,
2196,
881,
12,
1425,
18,
3923,
9614,
87,
12510,
6,
6362,
6,
2196,
881,
22334,
2309,
52,
1437,
6,
6487,
87,
12510,
2309,
67,
2196,
13058,
67,
959,
13,
327,
2118,
23163,
33,
2
] |
self.addLNBSimple(slotid = x, orbpos = int(nim.diseqcA.vals[nim.diseqcA.value][1]), toneburstmode = 0, diseqcmode = 1, diseqcpos = 0) self.addLNBSimple(slotid = x, orbpos = int(nim.diseqcB.vals[nim.diseqcB.value][1]), toneburstmode = 0, diseqcmode = 1, diseqcpos = 1) self.addLNBSimple(slotid = x, orbpos = int(nim.diseqcC.vals[nim.diseqcC.value][1]), toneburstmode = 0, diseqcmode = 1, diseqcpos = 2) self.addLNBSimple(slotid = x, orbpos = int(nim.diseqcD.vals[nim.diseqcD.value][1]), toneburstmode = 0, diseqcmode = 1, diseqcpos = 3)
|
self.addLNBSimple(sec, slotid = x, orbpos = int(nim.diseqcA.vals[nim.diseqcA.value][1]), toneburstmode = diseqcParam.NO, diseqcmode = diseqcParam.V1_0, diseqcpos = diseqcParam.AA) self.addLNBSimple(sec, slotid = x, orbpos = int(nim.diseqcB.vals[nim.diseqcB.value][1]), toneburstmode = diseqcParam.NO, diseqcmode = diseqcParam.V1_0, diseqcpos = diseqcParam.AB) self.addLNBSimple(sec, slotid = x, orbpos = int(nim.diseqcC.vals[nim.diseqcC.value][1]), toneburstmode = diseqcParam.NO, diseqcmode = diseqcParam.V1_0, diseqcpos = diseqcParam.BA) self.addLNBSimple(sec, slotid = x, orbpos = int(nim.diseqcD.vals[nim.diseqcD.value][1]), toneburstmode = diseqcParam.NO, diseqcmode = diseqcParam.V1_0, diseqcpos = diseqcParam.BB)
|
def update(self): eDVBSatelliteEquipmentControl.getInstance().clear() self.satList = []
|
45b15800295dbe7e8aa64c7c97e62ed7a9f0a137 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6652/45b15800295dbe7e8aa64c7c97e62ed7a9f0a137/NimManager.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
7675,
8507,
1435,
225,
365,
18,
12973,
682,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
12,
2890,
4672,
425,
30199,
12692,
270,
19345,
13142,
11568,
3367,
18,
588,
1442,
7675,
8507,
1435,
225,
365,
18,
12973,
682,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
f=open(DV.log_file,'r')
|
f=DamnOpenFile(DV.log_file,'r')
|
def run(self): Damnlog('Bug reporter thread launched.') if not len(self.desc): Damnlog('Bug reporter not sending anything - bug description is empty.') self.postEvent(DV.l('Empty bug description field'),DV.l('You must enter a bug description.'),error=True,closedialog=False) return Damnlog('Ready to submit bug.') Damnlog('Initiating Google Code API object.') api=gdata.projecthosting.client.ProjectHostingClient() Damnlog('Logging in with damnvid-user@gmail.com credentials') try: api.client_login('damnvid.user@gmail.com','damnviduser',source='DamnVid '+DV.version,service='code') # OMG! Raw password! except: Damnlog('Could not log in to Google Code (Invalid connection?)',traceback.format_exc()) self.postEvent(DV.l('Error while connecting'),DV.l('Could not connect to Google Code. Please make sure that your Internet connection is active and that no firewall is blocking DamnVid.'),error=True,closedialog=False) return summary=u'Bug: '+self.desc+u'\n\nSteps:\n'+self.steps+u'\n\n'+self.sysinfo+u'\n\n' if len(self.email): summary+=u'Email: '+self.email.replace(u'@',u' (at) ').replace(u'.', u' (dot) ').replace(u'+', u' (plus) ').replace(u'-', u' (minus) ')+u'\n\n' try: Damnlog('Starting log dump, flusing.') DV.log.flush() Damnlog('Flushed, dumping...') logdump='' f=open(DV.log_file,'r') for i in f: logdump+=i f.close() logdump=DamnUnicode(logdump.strip()) Damnlog('Log dump done, uploading to pastebin.') http=urllib2.urlopen(urllib2.Request('http://pastehtml.com/upload/create?input_type=txt&result=address',urllib.urlencode({'txt':logdump}))) pasteurl=http.read(-1) http.close() Damnlog('Uploaded to',pasteurl) summary+=u'damnvid.log: '+DamnUnicode(pasteurl) except: summary+=u'(Could not upload the contents of damnvid.log)' Damnlog('Login successful, submitting issue...') try: api.add_issue('damnvid',self.desc.encode('utf8','ignore'),summary.encode('utf8','ignore'),'windypower',status='New',labels=['Type-Defect','Priority-Medium']) except: Damnlog('Issue submission failed.',traceback.format_exc()) self.postEvent(DV.l('Error while submitting issue'),DV.l('Could not submit bug report to Google Code. Please make sure that your Internet connection is active and that no firewall is blocking DamnVid.'),error=True,closedialog=False) return Damnlog('Issue submission successful.') self.postEvent(DV.l('Success'),DV.l('Bug report submitted successfully. Thanks!'),error=False,closedialog=True)
|
eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11142/eb32c3f0350ac5e4cc4ce63c81f04bfa758a966a/DamnVid.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
2890,
4672,
463,
301,
82,
1330,
2668,
19865,
11528,
2650,
28786,
1093,
13,
309,
486,
562,
12,
2890,
18,
5569,
4672,
463,
301,
82,
1330,
2668,
19865,
11528,
486,
5431,
6967,
300,
7934,
2477,
353,
1008,
1093,
13,
365,
18,
2767,
1133,
12,
30199,
18,
80,
2668,
1921,
7934,
2477,
652,
19899,
30199,
18,
80,
2668,
6225,
1297,
6103,
279,
7934,
2477,
1093,
3631,
1636,
33,
5510,
16,
12204,
3529,
33,
8381,
13,
327,
463,
301,
82,
1330,
2668,
8367,
358,
4879,
7934,
1093,
13,
463,
301,
82,
1330,
2668,
2570,
22906,
6124,
3356,
1491,
733,
1093,
13,
1536,
33,
75,
892,
18,
4406,
31415,
18,
2625,
18,
4109,
2594,
26477,
1435,
463,
301,
82,
1330,
2668,
7735,
316,
598,
302,
301,
82,
1246,
17,
1355,
36,
75,
4408,
18,
832,
4448,
6134,
775,
30,
1536,
18,
2625,
67,
5819,
2668,
72,
301,
82,
1246,
18,
1355,
36,
75,
4408,
18,
832,
17023,
72,
301,
82,
1246,
1355,
2187,
3168,
2218,
40,
301,
82,
58,
350,
15126,
30199,
18,
1589,
16,
3278,
2218,
710,
6134,
468,
28839,
43,
5,
6576,
2201,
5,
1335,
30,
463,
301,
82,
1330,
2668,
4445,
486,
613,
316,
358,
6124,
3356,
261,
1941,
1459,
8535,
2187,
21696,
18,
2139,
67,
10075,
10756,
365,
18,
2767,
1133,
12,
30199,
18,
80,
2668,
668,
1323,
14244,
19899,
30199,
18,
80,
2668,
4445,
486,
3077,
358,
6124,
3356,
18,
7801,
1221,
3071,
716,
3433,
21352,
1459,
353,
2695,
471,
716,
1158,
14973,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
463,
301,
82,
1330,
2668,
19865,
11528,
2650,
28786,
1093,
13,
309,
486,
562,
12,
2890,
18,
5569,
4672,
463,
301,
82,
1330,
2668,
19865,
11528,
486,
5431,
6967,
300,
7934,
2477,
353,
1008,
1093,
13,
365,
18,
2767,
1133,
12,
30199,
18,
80,
2668,
1921,
7934,
2477,
652,
19899,
30199,
18,
80,
2668,
6225,
1297,
6103,
279,
7934,
2477,
1093,
3631,
1636,
33,
5510,
16,
12204,
3529,
33,
8381,
13,
327,
463,
301,
82,
1330,
2668,
8367,
358,
4879,
7934,
1093,
13,
463,
301,
82,
1330,
2668,
2570,
22906,
6124,
3356,
1491,
733,
1093,
13,
1536,
33,
75,
892,
18,
4406,
31415,
18,
2625,
18,
4109,
2594,
26477,
1435,
463,
301,
82,
1330,
2
] |
>>> import numpy as np
|
>>> import numpy as N
|
def read_design(desfile, delimiter=',', try_integer=True): """ Return a record array with the design. The columns are first cast as numpy.float, if this fails, its dtype is unchanged. If try_integer is True and a given column can be cast as float, it is then tested to see if it can be cast as numpy.int. >>> design = [["id","age","gender"],[1,23.5,"male"],[2,24.1,"female"],[3,24.5,"male"]] >>> read_design(design) recarray([(1, 23.5, 'male'), (2, 24.100000000000001, 'female'), (3, 24.5, 'male')], dtype=[('id', '<i4'), ('age', '<f8'), ('gender', '|S6')]) >>> design = [["id","age","gender"],[1,23.5,"male"],[2,24.1,"female"],[3.,24.5,"male"]] >>> read_design(design) recarray([(1, 23.5, 'male'), (2, 24.100000000000001, 'female'), (3, 24.5, 'male')], dtype=[('id', '<i4'), ('age', '<f8'), ('gender', '|S6')]) >>> read_design(design, try_integer=False) recarray([(1.0, 23.5, 'male'), (2.0, 24.100000000000001, 'female'), (3.0, 24.5, 'male')], dtype=[('id', '<f8'), ('age', '<f8'), ('gender', '|S6')]) >>> """ if type(desfile) == type("string"): desfile = file(desfile) _reader = reader(desfile, delimiter=delimiter) else: _reader = iter(desfile) colnames = _reader.next() predesign = np.rec.fromrecords([row for row in _reader], names=colnames) # Try to typecast each column to float, then int dtypes = predesign.dtype.descr newdescr = [] newdata = [] for name, descr in dtypes: x = predesign[name] try: y = np.asarray(x.copy(), np.float) # cast as float if np.alltrue(np.equal(x, y)): if try_integer: z = y.astype(np.int) # cast as int if np.alltrue(np.equal(y, z)): newdata.append(z) newdescr.append(z.dtype.descr[0][1]) else: newdata.append(y) newdescr.append(y.dtype.descr[0][1]) else: newdata.append(y) newdescr.append(y.dtype.descr[0][1]) except: newdata.append(x) newdescr.append(descr) return np.rec.fromarrays(newdata, formats=sjoin(newdescr, ','), names=colnames)
|
d2943ba86f6fded3206a1c709529212d0c25be17 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12658/d2943ba86f6fded3206a1c709529212d0c25be17/regression.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
16934,
12,
5489,
768,
16,
5654,
33,
2187,
2187,
775,
67,
7745,
33,
5510,
4672,
3536,
2000,
279,
1409,
526,
598,
326,
8281,
18,
1021,
2168,
854,
1122,
4812,
487,
3972,
18,
5659,
16,
309,
333,
6684,
16,
2097,
3182,
353,
14827,
18,
225,
971,
775,
67,
7745,
353,
1053,
471,
279,
864,
1057,
848,
506,
4812,
487,
1431,
16,
518,
353,
1508,
18432,
358,
2621,
309,
518,
848,
506,
4812,
487,
3972,
18,
474,
18,
225,
4080,
8281,
273,
306,
9614,
350,
15937,
410,
15937,
27638,
6,
6487,
63,
21,
16,
4366,
18,
25,
10837,
81,
5349,
6,
6487,
63,
22,
16,
3247,
18,
21,
10837,
74,
351,
5349,
6,
6487,
63,
23,
16,
3247,
18,
25,
10837,
81,
5349,
11929,
65,
4080,
855,
67,
16934,
12,
16934,
13,
1950,
1126,
3816,
12,
21,
16,
10213,
18,
25,
16,
296,
81,
5349,
19899,
261,
22,
16,
4248,
18,
21,
12648,
2787,
1611,
16,
296,
74,
351,
5349,
19899,
261,
23,
16,
4248,
18,
25,
16,
296,
81,
5349,
6134,
6487,
3182,
22850,
2668,
350,
2187,
2368,
77,
24,
19899,
7707,
410,
2187,
2368,
74,
28,
19899,
7707,
27638,
2187,
6699,
55,
26,
6134,
5717,
4080,
8281,
273,
306,
9614,
350,
15937,
410,
15937,
27638,
6,
6487,
63,
21,
16,
4366,
18,
25,
10837,
81,
5349,
6,
6487,
63,
22,
16,
3247,
18,
21,
10837,
74,
351,
5349,
6,
6487,
63,
23,
12990,
3247,
18,
25,
10837,
81,
5349,
11929,
65,
4080,
855,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
855,
67,
16934,
12,
5489,
768,
16,
5654,
33,
2187,
2187,
775,
67,
7745,
33,
5510,
4672,
3536,
2000,
279,
1409,
526,
598,
326,
8281,
18,
1021,
2168,
854,
1122,
4812,
487,
3972,
18,
5659,
16,
309,
333,
6684,
16,
2097,
3182,
353,
14827,
18,
225,
971,
775,
67,
7745,
353,
1053,
471,
279,
864,
1057,
848,
506,
4812,
487,
1431,
16,
518,
353,
1508,
18432,
358,
2621,
309,
518,
848,
506,
4812,
487,
3972,
18,
474,
18,
225,
4080,
8281,
273,
306,
9614,
350,
15937,
410,
15937,
27638,
6,
6487,
63,
21,
16,
4366,
18,
25,
10837,
81,
5349,
6,
6487,
63,
22,
16,
3247,
18,
21,
10837,
74,
351,
5349,
6,
6487,
63,
23,
16,
3247,
2
] |
if birth_event:
|
if death_event:
|
def add_data_entry(self, obj): from QuestionDialog import ErrorDialog # First, get the data: if "," in self.de_widgets["NPName"].get_text(): surname, firstname = self.de_widgets["NPName"].get_text().split(",", 1) else: surname, firstname = self.de_widgets["NPName"].get_text(), "" surname = surname.strip() firstname = firstname.strip() gender = self.de_widgets["NPGender"].get_active() if self._dirty: current_person = self._dirty_person else: current_person = self.get_active_object("Person") # Pre-check to make sure everything is ok: ------------------------------------------- if surname == "" and firstname == "": ErrorDialog(_("Please provide a name."), _("Can't add new person.")) return if self.de_widgets["NPRelation"].get_active() == self.NO_REL: # "No relation to active person" pass elif self.de_widgets["NPRelation"].get_active() == self.AS_PARENT: # "Add as a Parent" if current_person == None: ErrorDialog(_("Please set an active person."), _("Can't add new person as a parent.")) return elif gender == gen.lib.Person.UNKNOWN: # unknown ErrorDialog(_("Please set the new person's gender."), _("Can't add new person as a parent.")) return elif self.de_widgets["NPRelation"].get_active() == self.AS_SPOUSE: # "Add as a Spouse" if current_person == None: ErrorDialog(_("Please set an active person."), _("Can't add new person as a spouse.")) return elif (gender == gen.lib.Person.UNKNOWN and current_person.get_gender() == gen.lib.Person.UNKNOWN): # both genders unknown ErrorDialog(_("Please set the new person's gender."), _("Can't add new person as a spouse.")) return elif self.de_widgets["NPRelation"].get_active() == self.AS_SIBLING: # "Add as a Sibling" if current_person == None: ErrorDialog(_("Please set an active person."), _("Can't add new person as a sibling.")) return elif self.de_widgets["NPRelation"].get_active() == self.AS_CHILD: # "Add as a Child" if current_person == None: ErrorDialog(_("Please set an active person."), _("Can't add new person as a child.")) return # Start the transaction: ------------------------------------------------------------ self.trans = self.dbstate.db.transaction_begin() # New person -------------------------------------------------- # Add birth new_birth_date, new_birth_place = self.process_dateplace(self.de_widgets["NPBirth"].get_text().strip()) birth_event = self.make_event(gen.lib.EventType.BIRTH, new_birth_date, new_birth_place) if birth_event: # Only add if there is an event: source_text = self.de_widgets["NPBirthSource"].get_text().strip() if source_text: new, source = self.get_or_create_source(source_text) self.add_source(birth_event, source) self.dbstate.db.commit_event(birth_event, self.trans) # Add death new_death_date, new_death_place = self.process_dateplace(self.de_widgets["NPDeath"].get_text()) death_event = self.make_event(gen.lib.EventType.DEATH, new_death_date, new_death_place) if birth_event: # Only add if there is an event: source_text = self.de_widgets["NPDeathSource"].get_text().strip() if source_text: new, source = self.get_or_create_source(source_text) self.add_source(death_event, source) self.dbstate.db.commit_event(death_event, self.trans) # Now, create the person and events: person = self.make_person(firstname, surname, gender) # New birth for person: if birth_event: birth_ref = gen.lib.EventRef() birth_ref.set_reference_handle(birth_event.get_handle()) person.set_birth_ref(birth_ref) # New death for person: if death_event: death_ref = gen.lib.EventRef() death_ref.set_reference_handle(death_event.get_handle()) person.set_death_ref(death_ref) self.dbstate.db.add_person(person, self.trans) # All error checking done; just add relation: if self.de_widgets["NPRelation"].get_active() == self.NO_REL: # "No relation to active person" pass elif self.de_widgets["NPRelation"].get_active() == self.AS_PARENT: # "Add as a Parent" # Go through current_person parent families added = False for family_handle in current_person.get_parent_family_handle_list(): family = self.dbstate.db.get_family_from_handle(family_handle) if family: # find one that person would fit as a parent fam_husband_handle = family.get_father_handle() fam_wife_handle = family.get_mother_handle() # can we add person as wife? if fam_wife_handle == None and person.get_gender() == gen.lib.Person.FEMALE: # add the person family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) added = True break elif fam_husband_handle == None and person.get_gender() == gen.lib.Person.MALE: # add the person family.set_father_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) added = True break if added: self.dbstate.db.commit_family(family, self.trans) else: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) if person.get_gender() == gen.lib.Person.MALE: family.set_father_handle(person.get_handle()) elif person.get_gender() == gen.lib.Person.FEMALE: family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) # add curent_person as child childref = gen.lib.ChildRef() childref.set_reference_handle(current_person.get_handle()) family.add_child_ref( childref) current_person.add_parent_family_handle(family.get_handle()) # finalize person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif self.de_widgets["NPRelation"].get_active() == self.AS_SPOUSE: # "Add as a Spouse" added = False family = None for family_handle in current_person.get_family_handle_list(): family = self.dbstate.db.get_family_from_handle(family_handle) if family: fam_husband_handle = family.get_father_handle() fam_wife_handle = family.get_mother_handle() if current_person.get_handle() == fam_husband_handle: # can we add person as wife? if fam_wife_handle == None: if person.get_gender() == gen.lib.Person.FEMALE: # add the person family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) added = True break elif person.get_gender() == gen.lib.Person.UNKNOWN: family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.set_gender(gen.lib.Person.FEMALE) self.de_widgets["NPGender"].set_active(gen.lib.Person.FEMALE) person.add_family_handle(family.get_handle()) added = True break elif current_person.get_handle() == fam_wife_handle: # can we add person as husband? if fam_husband_handle == None: if person.get_gender() == gen.lib.Person.MALE: # add the person family.set_father_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) added = True break elif person.get_gender() == gen.lib.Person.UNKNOWN: family.set_father_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) person.set_gender(gen.lib.Person.MALE) self.de_widgets["NPGender"].set_active(gen.lib.Person.MALE) added = True break if added: self.dbstate.db.commit_family(family, self.trans) else: if person.get_gender() == gen.lib.Person.UNKNOWN: if current_person.get_gender() == gen.lib.Person.UNKNOWN: ErrorDialog(_("Please set gender on Active or new person."), _("Can't add new person as a spouse.")) return elif current_person.get_gender() == gen.lib.Person.MALE: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(current_person.get_handle()) family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.set_gender(gen.lib.Person.FEMALE) self.de_widgets["NPGender"].set_active(gen.lib.Person.FEMALE) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif current_person.get_gender() == gen.lib.Person.FEMALE: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(person.get_handle()) family.set_mother_handle(current_person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.set_gender(gen.lib.Person.MALE) self.de_widgets["NPGender"].set_active(gen.lib.Person.MALE) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif person.get_gender() == gen.lib.Person.MALE: if current_person.get_gender() == gen.lib.Person.UNKNOWN: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(person.get_handle()) family.set_mother_handle(current_person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) current_person.set_gender(gen.lib.Person.FEMALE) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif current_person.get_gender() == gen.lib.Person.MALE: ErrorDialog(_("Same genders on Active and new person."), _("Can't add new person as a spouse.")) return elif current_person.get_gender() == gen.lib.Person.FEMALE: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(person.get_handle()) family.set_mother_handle(current_person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif person.get_gender() == gen.lib.Person.FEMALE: if current_person.get_gender() == gen.lib.Person.UNKNOWN: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(current_person.get_handle()) family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) current_person.set_gender(gen.lib.Person.MALE) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif current_person.get_gender() == gen.lib.Person.MALE: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) family.set_father_handle(current_person.get_handle()) family.set_mother_handle(person.get_handle()) family.set_relationship(gen.lib.FamilyRelType.MARRIED) person.add_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif current_person.get_gender() == gen.lib.Person.FEMALE: ErrorDialog(_("Same genders on Active and new person."), _("Can't add new person as a spouse.")) return elif self.de_widgets["NPRelation"].get_active() == self.AS_SIBLING: # "Add as a Sibling" added = False for family_handle in current_person.get_parent_family_handle_list(): family = self.dbstate.db.get_family_from_handle(family_handle) if family: childref = gen.lib.ChildRef() childref.set_reference_handle(person.get_handle()) family.add_child_ref( childref) person.add_parent_family_handle(family.get_handle()) added = True break if added: self.dbstate.db.commit_family(family, self.trans) else: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) childref = gen.lib.ChildRef() childref.set_reference_handle(person.get_handle()) family.add_child_ref( childref) childref = gen.lib.ChildRef() childref.set_reference_handle(current_person.get_handle()) family.add_child_ref( childref) person.add_parent_family_handle(family.get_handle()) current_person.add_parent_family_handle(family.get_handle()) self.dbstate.db.commit_family(family, self.trans) elif self.de_widgets["NPRelation"].get_active() == self.AS_CHILD: # "Add as a Child" added = False family = None for family_handle in current_person.get_family_handle_list(): family = self.dbstate.db.get_family_from_handle(family_handle) if family: childref = gen.lib.ChildRef() childref.set_reference_handle(person.get_handle()) family.add_child_ref( childref) person.add_parent_family_handle(family.get_handle()) added = True break if added: self.dbstate.db.commit_family(family, self.trans) else: if current_person.get_gender() == gen.lib.Person.UNKNOWN: ErrorDialog(_("Please set gender on Active person."), _("Can't add new person as a child.")) return else: family = gen.lib.Family() self.dbstate.db.add_family(family, self.trans) childref = gen.lib.ChildRef() childref.set_reference_handle(person.get_handle()) family.add_child_ref( childref) person.add_parent_family_handle(family.get_handle()) current_person.add_family_handle(family.get_handle()) if gen.lib.Person.FEMALE: family.set_mother_handle(current_person.get_handle()) else: family.set_father_handle(current_person.get_handle()) self.dbstate.db.commit_family(family, self.trans) # Commit changes ------------------------------------------------- if current_person: self.dbstate.db.commit_person(current_person, self.trans) if person: source_text = self.de_widgets["NPSource"].get_text().strip() if source_text: new, source = self.get_or_create_source(source_text) self.add_source(person, source) self.dbstate.db.commit_person(person, self.trans) self.dbstate.db.transaction_commit(self.trans, (_("Gramplet Data Entry: %s") % name_displayer.display(person)))
|
861e586e662758397fc67efe6d3dd2d7c6559c1a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1491/861e586e662758397fc67efe6d3dd2d7c6559c1a/DataEntryGramplet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
892,
67,
4099,
12,
2890,
16,
1081,
4672,
628,
18267,
6353,
1930,
1068,
6353,
468,
5783,
16,
336,
326,
501,
30,
309,
5753,
316,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
13332,
17007,
16,
1122,
529,
273,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
7675,
4939,
2932,
16,
3113,
404,
13,
469,
30,
17007,
16,
1122,
529,
273,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
9334,
1408,
17007,
273,
17007,
18,
6406,
1435,
1122,
529,
273,
1122,
529,
18,
6406,
1435,
18578,
273,
365,
18,
323,
67,
18148,
9614,
50,
18679,
2345,
6,
8009,
588,
67,
3535,
1435,
309,
365,
6315,
18013,
30,
783,
67,
12479,
273,
365,
6315,
18013,
67,
12479,
469,
30,
783,
67,
12479,
273,
365,
18,
588,
67,
3535,
67,
1612,
2932,
8346,
7923,
468,
2962,
17,
1893,
358,
1221,
3071,
7756,
353,
1529,
30,
19134,
15392,
309,
17007,
422,
1408,
471,
1122,
529,
422,
1408,
30,
1068,
6353,
24899,
2932,
8496,
5615,
279,
508,
1199,
3631,
389,
2932,
2568,
1404,
527,
394,
6175,
1199,
3719,
327,
309,
365,
18,
323,
67,
18148,
9614,
23430,
3963,
6,
8009,
588,
67,
3535,
1435,
422,
365,
18,
3417,
67,
15868,
30,
468,
315,
2279,
2533,
358,
2695,
6175,
6,
1342,
1327,
365,
18,
323,
67,
18148,
9614,
23430,
3963,
6,
8009,
588,
67,
3535,
1435,
422,
365,
18,
3033,
67,
14943,
30,
468,
315,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
892,
67,
4099,
12,
2890,
16,
1081,
4672,
628,
18267,
6353,
1930,
1068,
6353,
468,
5783,
16,
336,
326,
501,
30,
309,
5753,
316,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
13332,
17007,
16,
1122,
529,
273,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
7675,
4939,
2932,
16,
3113,
404,
13,
469,
30,
17007,
16,
1122,
529,
273,
365,
18,
323,
67,
18148,
9614,
23430,
461,
6,
8009,
588,
67,
955,
9334,
1408,
17007,
273,
17007,
18,
6406,
1435,
1122,
529,
273,
1122,
529,
18,
6406,
1435,
18578,
273,
365,
18,
323,
67,
18148,
9614,
50,
18679,
2345,
6,
8009,
588,
67,
3535,
1435,
2
] |
caller_allocates = '**' not in node.type.ctype
|
target = self._transformer.lookup_giname(node.type.target_giname) has_double_indirection = '**' in node.type.ctype is_structure_or_union = isinstance(target, (ast.Record, ast.Union)) caller_allocates = (not has_double_indirection and is_structure_or_union)
|
def _apply_annotations_param_ret_common(self, parent, node, tag): options = getattr(tag, 'options', {})
|
1113955bb6a5276c21771685dd30c51f9ef1661f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2770/1113955bb6a5276c21771685dd30c51f9ef1661f/maintransformer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
9010,
67,
14670,
67,
891,
67,
1349,
67,
6054,
12,
2890,
16,
982,
16,
756,
16,
1047,
4672,
702,
273,
3869,
12,
2692,
16,
296,
2116,
2187,
2618,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9010,
67,
14670,
67,
891,
67,
1349,
67,
6054,
12,
2890,
16,
982,
16,
756,
16,
1047,
4672,
702,
273,
3869,
12,
2692,
16,
296,
2116,
2187,
2618,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
os.path.splitext(path)[1].lower() in PE_FILE_EXTENSIONS)
|
os.path.splitext(path)[1].lower() in PE_FILE_EXTENSIONS and os.path.basename(path) not in EXCLUDED_FILES)
|
def IsPEFile(path): return (os.path.isfile(path) and os.path.splitext(path)[1].lower() in PE_FILE_EXTENSIONS)
|
868525fcd5a697f484454c78cc4754e5fab77a5f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/868525fcd5a697f484454c78cc4754e5fab77a5f/checkbins.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2585,
1423,
812,
12,
803,
4672,
327,
261,
538,
18,
803,
18,
291,
768,
12,
803,
13,
471,
1140,
18,
803,
18,
4939,
408,
12,
803,
25146,
21,
8009,
8167,
1435,
316,
16628,
67,
3776,
67,
12796,
55,
471,
1140,
18,
803,
18,
13909,
12,
803,
13,
486,
316,
5675,
11686,
7660,
67,
12669,
13,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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803,
4672,
327,
261,
538,
18,
803,
18,
291,
768,
12,
803,
13,
471,
1140,
18,
803,
18,
4939,
408,
12,
803,
25146,
21,
8009,
8167,
1435,
316,
16628,
67,
3776,
67,
12796,
55,
471,
1140,
18,
803,
18,
13909,
12,
803,
13,
486,
316,
5675,
11686,
7660,
67,
12669,
13,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def logError(self, file): self.error('Could not figure out where file %s goes. Please correct by ' 'hand.', file) def doFile(self, file):
|
def logError(self, path): self.error('Could not choose correct location for file %s.', path) def doFile(self, path):
|
def logError(self, file): self.error('Could not figure out where file %s goes. Please correct by ' 'hand.', file)
|
730ee8a8def7c3e74277a1b9fd995bc254c71aae /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/7642/730ee8a8def7c3e74277a1b9fd995bc254c71aae/badfilecontents.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
20638,
12,
2890,
16,
585,
4672,
365,
18,
1636,
2668,
4445,
486,
7837,
596,
1625,
585,
738,
87,
13998,
18,
7801,
3434,
635,
296,
296,
2349,
1093,
16,
585,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20638,
12,
2890,
16,
585,
4672,
365,
18,
1636,
2668,
4445,
486,
7837,
596,
1625,
585,
738,
87,
13998,
18,
7801,
3434,
635,
296,
296,
2349,
1093,
16,
585,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
converter=conn.getConverter()
|
def _processWhere(conn, args, fieldData): if args and isinstance(args[0], basestring): if fieldData: raise ValueError, "cannot pass keyword args when including sql string" sql=args[0] values=args[1:]
|
3546b489c540e47c23cc09d9dbc54588c9d46a36 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2304/3546b489c540e47c23cc09d9dbc54588c9d46a36/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2567,
5262,
12,
4646,
16,
833,
16,
23970,
4672,
309,
833,
471,
1549,
12,
1968,
63,
20,
6487,
10699,
4672,
309,
23970,
30,
1002,
2068,
16,
315,
12892,
1342,
4932,
833,
1347,
6508,
1847,
533,
6,
1847,
33,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2567,
5262,
12,
4646,
16,
833,
16,
23970,
4672,
309,
833,
471,
1549,
12,
1968,
63,
20,
6487,
10699,
4672,
309,
23970,
30,
1002,
2068,
16,
315,
12892,
1342,
4932,
833,
1347,
6508,
1847,
533,
6,
1847,
33,
1968,
63,
20,
65,
924,
33,
1968,
63,
21,
26894,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
print "Hardresetting %s" % ( self.host.hostname,)
|
print "Hardresetting %s" % self.host.hostname
|
def execute_control(self, timeout=None): section = 0 time_left = None if timeout: end_time = time.time() + timeout time_left = end_time - time.time() while not timeout or time_left > 0: last = self.execute_section(section, time_left) if timeout: time_left = end_time - time.time() if time_left <= 0: break section += 1 if re.match(r'^END .*\t----\t----\t.*$', last): print "Client complete" return elif re.match('^\t*GOOD\t----\treboot\.start.*$', last): print "Client is rebooting" print "Waiting for client to halt" if not self.host.wait_down(HALT_TIME): raise error.AutotestRunError("%s \ failed to shutdown after %ds" % (self.host.hostname, HALT_TIME)) print "Client down, waiting for restart" if not self.host.wait_up(BOOT_TIME): # since reboot failed # hardreset the machine once if possible # before failing this control file print "Hardresetting %s" % ( self.host.hostname,) try: self.host.hardreset(wait=False) except error.AutoservUnsupportedError: print "Hardreset unsupported on %s" % ( self.host.hostname,) raise error.AutotestRunError("%s failed" " to boot after %ds" % ( self.host.hostname, BOOT_TIME,)) self.host.reboot_followup() continue self.host.job.record("ABORT", None, None, "Autotest client terminated " + "unexpectedly") # give the client machine a chance to recover from # possible crash self.host.wait_up(CRASH_RECOVERY_TIME) raise error.AutotestRunError("Aborting - unexpected " "final status message " "from client: %s\n" % last)
|
7de56c56f0ac0ba4ac9f5411aa58bb607bd40895 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12268/7de56c56f0ac0ba4ac9f5411aa58bb607bd40895/autotest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
7098,
12,
2890,
16,
2021,
33,
7036,
4672,
2442,
273,
374,
813,
67,
4482,
273,
599,
309,
2021,
30,
679,
67,
957,
273,
813,
18,
957,
1435,
397,
2021,
813,
67,
4482,
273,
679,
67,
957,
300,
813,
18,
957,
1435,
1323,
486,
2021,
578,
813,
67,
4482,
405,
374,
30,
1142,
273,
365,
18,
8837,
67,
3464,
12,
3464,
16,
813,
67,
4482,
13,
309,
2021,
30,
813,
67,
4482,
273,
679,
67,
957,
300,
813,
18,
957,
1435,
309,
813,
67,
4482,
1648,
374,
30,
898,
2442,
1011,
404,
309,
283,
18,
1916,
12,
86,
19856,
4415,
263,
12174,
88,
553,
64,
88,
553,
64,
88,
4509,
8,
2187,
1142,
4672,
1172,
315,
1227,
3912,
6,
327,
1327,
283,
18,
1916,
2668,
17134,
88,
14,
16387,
1212,
64,
88,
553,
64,
27427,
7137,
5834,
1937,
4509,
8,
2187,
1142,
4672,
1172,
315,
1227,
353,
22852,
310,
6,
1172,
315,
15946,
364,
1004,
358,
18389,
6,
309,
486,
365,
18,
2564,
18,
7048,
67,
2378,
12,
44,
18255,
67,
4684,
4672,
1002,
555,
18,
7150,
352,
395,
1997,
668,
27188,
87,
521,
2535,
358,
5731,
1839,
738,
2377,
6,
738,
261,
2890,
18,
2564,
18,
10358,
16,
670,
18255,
67,
4684,
3719,
1172,
315,
1227,
2588,
16,
7336,
364,
7870,
6,
309,
486,
365,
18,
2564,
18,
7048,
67,
416,
12,
30124,
67,
4684,
4672,
468,
3241,
22852,
2535,
468,
7877,
6208,
326,
5228,
3647,
309,
3323,
468,
1865,
21311,
333,
3325,
585,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1836,
67,
7098,
12,
2890,
16,
2021,
33,
7036,
4672,
2442,
273,
374,
813,
67,
4482,
273,
599,
309,
2021,
30,
679,
67,
957,
273,
813,
18,
957,
1435,
397,
2021,
813,
67,
4482,
273,
679,
67,
957,
300,
813,
18,
957,
1435,
1323,
486,
2021,
578,
813,
67,
4482,
405,
374,
30,
1142,
273,
365,
18,
8837,
67,
3464,
12,
3464,
16,
813,
67,
4482,
13,
309,
2021,
30,
813,
67,
4482,
273,
679,
67,
957,
300,
813,
18,
957,
1435,
309,
813,
67,
4482,
1648,
374,
30,
898,
2442,
1011,
404,
309,
283,
18,
1916,
12,
86,
19856,
4415,
263,
12174,
88,
553,
64,
88,
553,
64,
88,
4509,
8,
2187,
1142,
4672,
1172,
315,
1227,
2
] |
w_meth = self.fn.descr_function_get(space.wrap(5), space.type(space.wrap(5)))
|
w_meth = descr_function_get(space, self.fn, space.wrap(5), space.type(space.wrap(5)))
|
def test_fail_call(self): space = self.space w_meth = self.fn.descr_function_get(space.wrap(5), space.type(space.wrap(5))) meth = space.unwrap(w_meth) args = Arguments(space, [space.wrap("spam"), space.wrap("egg")]) self.space.raises_w(self.space.w_TypeError, meth.call_args, args)
|
ca4c901ccd89e8a8901197bcc41d081914f4c315 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/ca4c901ccd89e8a8901197bcc41d081914f4c315/test_function.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
6870,
67,
1991,
12,
2890,
4672,
3476,
273,
365,
18,
2981,
341,
67,
27305,
273,
18426,
67,
915,
67,
588,
12,
2981,
16,
365,
18,
4293,
16,
3476,
18,
4113,
12,
25,
3631,
3476,
18,
723,
12,
2981,
18,
4113,
12,
25,
20349,
7917,
273,
3476,
18,
318,
4113,
12,
91,
67,
27305,
13,
833,
273,
13599,
12,
2981,
16,
306,
2981,
18,
4113,
2932,
1752,
301,
6,
3631,
3476,
18,
4113,
2932,
23171,
7923,
5717,
365,
18,
2981,
18,
354,
6141,
67,
91,
12,
2890,
18,
2981,
18,
91,
67,
19030,
16,
7917,
18,
1991,
67,
1968,
16,
833,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
6870,
67,
1991,
12,
2890,
4672,
3476,
273,
365,
18,
2981,
341,
67,
27305,
273,
18426,
67,
915,
67,
588,
12,
2981,
16,
365,
18,
4293,
16,
3476,
18,
4113,
12,
25,
3631,
3476,
18,
723,
12,
2981,
18,
4113,
12,
25,
20349,
7917,
273,
3476,
18,
318,
4113,
12,
91,
67,
27305,
13,
833,
273,
13599,
12,
2981,
16,
306,
2981,
18,
4113,
2932,
1752,
301,
6,
3631,
3476,
18,
4113,
2932,
23171,
7923,
5717,
365,
18,
2981,
18,
354,
6141,
67,
91,
12,
2890,
18,
2981,
18,
91,
67,
19030,
16,
7917,
18,
1991,
67,
1968,
16,
833,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._contents.append(Text.Content('', self.objects, self, 'Plot',
|
plot = Text.Content('', self.objects, self, 'Plot',
|
def plot(self, tag): xsize, ysize, refobj, adjustment = struct.unpack("<HHII", tag.contents) self._contents.append(Text.Content('', self.objects, self, 'Plot', {'xsize': xsize, 'ysize': ysize, 'refobj':refobj, 'adjustment':self.adjustment_map[adjustment]}))
|
b3ee66c4985bbd05093af6684622cb40abf9e427 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9125/b3ee66c4985bbd05093af6684622cb40abf9e427/objects.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3207,
12,
2890,
16,
1047,
4672,
619,
1467,
16,
677,
1467,
16,
283,
27936,
16,
18335,
273,
1958,
18,
17309,
2932,
32,
17500,
6954,
3113,
1047,
18,
3980,
13,
3207,
273,
3867,
18,
1350,
2668,
2187,
365,
18,
6911,
16,
365,
16,
296,
11532,
2187,
13666,
92,
1467,
4278,
619,
1467,
16,
296,
93,
1467,
4278,
677,
1467,
16,
296,
266,
27936,
4278,
266,
27936,
16,
296,
13362,
475,
4278,
2890,
18,
13362,
475,
67,
1458,
63,
13362,
475,
18322,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3207,
12,
2890,
16,
1047,
4672,
619,
1467,
16,
677,
1467,
16,
283,
27936,
16,
18335,
273,
1958,
18,
17309,
2932,
32,
17500,
6954,
3113,
1047,
18,
3980,
13,
3207,
273,
3867,
18,
1350,
2668,
2187,
365,
18,
6911,
16,
365,
16,
296,
11532,
2187,
13666,
92,
1467,
4278,
619,
1467,
16,
296,
93,
1467,
4278,
677,
1467,
16,
296,
266,
27936,
4278,
266,
27936,
16,
296,
13362,
475,
4278,
2890,
18,
13362,
475,
67,
1458,
63,
13362,
475,
18322,
3719,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
except Exception,e:
|
except Exception,e:
|
def process_liness(self, datas, prefix, current_module, model_name, fields_def, position=0): line = datas[position] row = {} translate = {} todo = [] warning = [] data_id = False data_res_id = False is_xml_id = False is_db_id = False ir_model_data_obj = self.pool.get('ir.model.data') # # Import normal fields # for i in range(len(fields)): if i >= len(line): raise Exception(_('Please check that all your lines have %d columns.') % (len(fields),)) if not line[i]: continue field = fields[i] if (len(field)==len(prefix)+1) and field[len(prefix)].endswith(':db_id'): # Database ID res = False if line[i]: field_name = field[0].split(':')[0] model_rel = fields_def[field_name]['relation'] if fields_def[field[len(prefix)][:-6]]['type']=='many2many': res_id = [] for db_id in line[i].split(config.get('csv_internal_sep')): try: _check_db_id(self, model_rel, db_id) res_id.append(db_id) except Exception,e: warning += [tools.exception_to_unicode(e)] logger.notifyChannel("import", netsvc.LOG_ERROR, tools.exception_to_unicode(e)) if len(res_id): res = [(6, 0, res_id)] else: try: _check_db_id(self, model_rel, line[i]) res = line[i] except Exception,e: warning += [tools.exception_to_unicode(e)] logger.notifyChannel("import", netsvc.LOG_ERROR, tools.exception_to_unicode(e)) row[field_name] = res or False continue
|
fbee346b9261dc633c438e1335656f5f7cfd43f6 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/fbee346b9261dc633c438e1335656f5f7cfd43f6/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
8496,
866,
716,
777,
3433,
2362,
1240,
738,
72,
2168,
1093,
13,
738,
261,
1897,
12,
2821,
3631,
3719,
309,
486,
980,
63,
77,
14542,
1324,
225,
652,
273,
1466,
63,
77,
65,
309,
261,
1897,
12,
1518,
13,
631,
1897,
12,
3239,
27921,
21,
13,
471,
652,
63,
1897,
12,
3239,
13,
8009,
5839,
1918,
2668,
30,
1966,
67,
350,
11,
4672,
468,
5130,
1599,
400,
273,
1083,
309,
980,
63,
77,
14542,
652,
67,
529,
273,
652,
63,
20,
8009,
4939,
2668,
2497,
25146,
20,
65,
938,
67,
2878,
273,
225,
1466,
67,
536,
63,
1518,
67,
529,
23962,
5488,
3546,
225,
309,
1466,
67,
536,
63,
1518,
63,
1897,
12,
3239,
13,
6362,
30,
17,
26,
13563,
3292,
723,
3546,
18920,
9353,
22,
9353,
4278,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1207,
67,
80,
6336,
12,
2890,
16,
5386,
16,
1633,
16,
783,
67,
2978,
16,
938,
67,
529,
16,
1466,
67,
536,
16,
1754,
33,
20,
4672,
980,
273,
5386,
63,
3276,
65,
1027,
273,
2618,
4204,
273,
2618,
10621,
273,
5378,
3436,
273,
5378,
501,
67,
350,
273,
1083,
501,
67,
455,
67,
350,
273,
1083,
353,
67,
2902,
67,
350,
273,
1083,
353,
67,
1966,
67,
350,
273,
1083,
9482,
67,
2284,
67,
892,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
481,
18,
2284,
18,
892,
6134,
468,
468,
6164,
2212,
1466,
468,
364,
277,
316,
1048,
12,
1897,
12,
2821,
3719,
30,
309,
277,
1545,
562,
12,
1369,
4672,
1002,
1185,
24899,
2668,
2
] |
def parse(self, systemID): self.parseFile(urllib.urlopen(systemID))
|
def parse(self, source): """parse using the URL or file handle""" source = saxutils.prepare_input_source(source) self.parseFile(source.getCharacterStream() or source.getByteStream())
|
def parse(self, systemID): self.parseFile(urllib.urlopen(systemID))
|
658956d4ee9fe64ab780ded26ffb076143baf06c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/658956d4ee9fe64ab780ded26ffb076143baf06c/Parser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1109,
12,
2890,
16,
2619,
734,
4672,
365,
18,
2670,
812,
12,
718,
2941,
18,
295,
18589,
12,
4299,
734,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1109,
12,
2890,
16,
2619,
734,
4672,
365,
18,
2670,
812,
12,
718,
2941,
18,
295,
18589,
12,
4299,
734,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._added_traits = {}
|
self._added_traits = {}
|
def __init__(self, name='', parent=None, doc=None, add_to_parent=True): super(Container, self).__init__() # don't forget to init HasTraits # or @on_trait_change decorator won't work! self._valid_dict = {} # contains validity flag for each io Trait self._sources = {} # for checking that destination traits cannot be # set by other objects self._added_traits = {} # for keeping track of dynamically added traits for serialization self.parent = parent self.name = name self._inputs = None self._outputs = None self._containers = None if doc is not None: self.__doc__ = doc
|
8586d67f5d42158f614b7fc3ff6c91066cfdb680 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/12610/8586d67f5d42158f614b7fc3ff6c91066cfdb680/container.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
2218,
2187,
982,
33,
7036,
16,
997,
33,
7036,
16,
527,
67,
869,
67,
2938,
33,
5510,
4672,
2240,
12,
2170,
16,
365,
2934,
972,
2738,
972,
1435,
468,
2727,
1404,
13776,
358,
1208,
4393,
30370,
468,
578,
632,
265,
67,
22513,
67,
3427,
7367,
8462,
1404,
1440,
5,
365,
6315,
877,
67,
1576,
273,
2618,
225,
468,
1914,
13800,
2982,
364,
1517,
2527,
2197,
305,
365,
6315,
10141,
273,
2618,
225,
468,
364,
6728,
716,
2929,
18370,
2780,
506,
468,
444,
635,
1308,
2184,
225,
365,
6315,
9665,
67,
2033,
1282,
273,
2618,
225,
468,
364,
19966,
3298,
434,
18373,
3096,
18370,
364,
11854,
225,
365,
18,
2938,
273,
982,
365,
18,
529,
273,
508,
225,
365,
6315,
10029,
273,
599,
365,
6315,
12295,
273,
599,
365,
6315,
20596,
273,
599,
225,
309,
997,
353,
486,
599,
30,
365,
16186,
2434,
972,
273,
997,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
1652,
1001,
2738,
972,
12,
2890,
16,
508,
2218,
2187,
982,
33,
7036,
16,
997,
33,
7036,
16,
527,
67,
869,
67,
2938,
33,
5510,
4672,
2240,
12,
2170,
16,
365,
2934,
972,
2738,
972,
1435,
468,
2727,
1404,
13776,
358,
1208,
4393,
30370,
468,
578,
632,
265,
67,
22513,
67,
3427,
7367,
8462,
1404,
1440,
5,
365,
6315,
877,
67,
1576,
273,
2618,
225,
468,
1914,
13800,
2982,
364,
1517,
2527,
2197,
305,
365,
6315,
10141,
273,
2618,
225,
468,
364,
6728,
716,
2929,
18370,
2780,
506,
468,
444,
635,
1308,
2184,
225,
365,
6315,
9665,
67,
2033,
1282,
273,
2618,
225,
468,
364,
19966,
3298,
434,
18373,
3096,
18370,
364,
11854,
225,
365,
18,
2938,
273,
982,
2
] |
if message: params['message'] = message
|
if message: params['message'] = unicode(message)
|
def share(self, users, message = None): """Shares this track (sends out recommendations). * users: A list that can contain usernames, emails, User objects, or all of them. * message: A message to include in the recommendation message. """ #last.fm currently accepts a max of 10 recipient at a time while(len(users) > 10): section = users[0:9] users = users[9:] self.share(section, message) nusers = [] for user in users: if isinstance(user, User): nusers.append(user.getName()) else: nusers.append(user) params = self._getParams() recipients = ','.join(nusers) params['recipient'] = recipients if message: params['message'] = message Request(self, 'track.share', self.api_key, params, True, self.secret).execute()
|
39f6fcae7ffe65e98e639a4f98a0137f176570bc /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9926/39f6fcae7ffe65e98e639a4f98a0137f176570bc/pylast.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7433,
12,
2890,
16,
3677,
16,
883,
273,
599,
4672,
3536,
24051,
333,
3298,
261,
4661,
87,
596,
22867,
1012,
2934,
380,
3677,
30,
432,
666,
716,
848,
912,
27675,
16,
14255,
16,
2177,
2184,
16,
578,
777,
434,
2182,
18,
380,
883,
30,
432,
883,
358,
2341,
316,
326,
10519,
18782,
883,
18,
3536,
225,
468,
2722,
18,
25089,
4551,
8104,
279,
943,
434,
1728,
8027,
622,
279,
813,
1323,
12,
1897,
12,
5577,
13,
405,
1728,
4672,
2442,
273,
3677,
63,
20,
30,
29,
65,
3677,
273,
3677,
63,
29,
26894,
365,
18,
14419,
12,
3464,
16,
883,
13,
225,
290,
5577,
273,
5378,
364,
729,
316,
3677,
30,
309,
1549,
12,
1355,
16,
2177,
4672,
290,
5577,
18,
6923,
12,
1355,
18,
17994,
10756,
469,
30,
290,
5577,
18,
6923,
12,
1355,
13,
225,
859,
273,
365,
6315,
588,
1370,
1435,
12045,
273,
3316,
18,
5701,
12,
82,
5577,
13,
859,
3292,
20367,
3546,
273,
12045,
309,
883,
30,
859,
3292,
2150,
3546,
273,
5252,
12,
2150,
13,
225,
1567,
12,
2890,
16,
296,
4101,
18,
14419,
2187,
365,
18,
2425,
67,
856,
16,
859,
16,
1053,
16,
365,
18,
5875,
2934,
8837,
1435,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7433,
12,
2890,
16,
3677,
16,
883,
273,
599,
4672,
3536,
24051,
333,
3298,
261,
4661,
87,
596,
22867,
1012,
2934,
380,
3677,
30,
432,
666,
716,
848,
912,
27675,
16,
14255,
16,
2177,
2184,
16,
578,
777,
434,
2182,
18,
380,
883,
30,
432,
883,
358,
2341,
316,
326,
10519,
18782,
883,
18,
3536,
225,
468,
2722,
18,
25089,
4551,
8104,
279,
943,
434,
1728,
8027,
622,
279,
813,
1323,
12,
1897,
12,
5577,
13,
405,
1728,
4672,
2442,
273,
3677,
63,
20,
30,
29,
65,
3677,
273,
3677,
63,
29,
26894,
365,
18,
14419,
12,
3464,
16,
883,
13,
225,
290,
5577,
273,
5378,
364,
729,
316,
3677,
30,
309,
1549,
12,
1355,
16,
2177,
4672,
2
] |
if (md.decl.type.hasReply() or md.decl.type.isCtor() or md.decl.type.isDtor()):
|
if md.decl.type.hasReply():
|
def visitProtocol(self, p): self.file.addthing(cxx.Whitespace.NL)
|
a864017a0319c1647f5f43fdebf3ac181d70f464 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/11102/a864017a0319c1647f5f43fdebf3ac181d70f464/lower.py
|
[
1,
8585,
326,
22398,
316,
326,
981,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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3757,
5752,
12,
2890,
16,
293,
4672,
365,
18,
768,
18,
1289,
4274,
12,
71,
5279,
18,
9431,
18,
24924,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
result = "for("
|
def __for(node): result = "for(" setup = getattr(node, "setup", None) condition = getattr(node, "condition", None) update = getattr(node, "update", None) if setup: result += compress(setup) result += __semicolonSymbol if condition: result += compress(condition) result += __semicolonSymbol if update: result += compress(update) body = compress(node.body) result += ")%s" % body return result
|
86d6454a6d94f3f988981cfde2c0e2c07a5b0527 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12949/86d6454a6d94f3f988981cfde2c0e2c07a5b0527/Compressor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1884,
12,
2159,
4672,
3875,
273,
3869,
12,
2159,
16,
315,
8401,
3113,
599,
13,
2269,
273,
3869,
12,
2159,
16,
315,
4175,
3113,
599,
13,
1089,
273,
3869,
12,
2159,
16,
315,
2725,
3113,
599,
13,
225,
309,
3875,
30,
563,
1011,
8099,
12,
8401,
13,
563,
1011,
1001,
12000,
17280,
5335,
309,
2269,
30,
563,
1011,
8099,
12,
4175,
13,
563,
1011,
1001,
12000,
17280,
5335,
309,
1089,
30,
563,
1011,
8099,
12,
2725,
13,
225,
1417,
273,
8099,
12,
2159,
18,
3432,
13,
563,
1011,
9369,
9,
87,
6,
738,
1417,
225,
327,
563,
565,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1884,
12,
2159,
4672,
3875,
273,
3869,
12,
2159,
16,
315,
8401,
3113,
599,
13,
2269,
273,
3869,
12,
2159,
16,
315,
4175,
3113,
599,
13,
1089,
273,
3869,
12,
2159,
16,
315,
2725,
3113,
599,
13,
225,
309,
3875,
30,
563,
1011,
8099,
12,
8401,
13,
563,
1011,
1001,
12000,
17280,
5335,
309,
2269,
30,
563,
1011,
8099,
12,
4175,
13,
563,
1011,
1001,
12000,
17280,
5335,
309,
1089,
30,
563,
1011,
8099,
12,
2725,
13,
225,
1417,
273,
8099,
12,
2159,
18,
3432,
13,
563,
1011,
9369,
9,
87,
6,
738,
1417,
225,
327,
563,
565,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
a1 = asarray_chkfinite(a) overwrite_a = overwrite_a or (_datanotshared(a1,a))
|
a1 = asarray_chkfinite(a) overwrite_a = overwrite_a or (_datanotshared(a1,a))
|
def eigh(a,lower=1,eigvals_only=0,overwrite_a=0): """ Solve real symmetric or complex hermitian eigenvalue problem. Inputs: a -- A hermitian N x N matrix. lower -- values in a are read from lower triangle [1: UPLO='L' (default) / 0: UPLO='U'] eigvals_only -- don't compute eigenvectors. overwrite_a -- content of a may be destroyed Outputs: w,v -- w: eigenvalues, v: eigenvectors [for eigvals_only == False] w -- eigenvalues [for eigvals_only == True (default)]. Definitions: a * v[:,i] = w[i] * vr[:,i] v.H * v = identity """ if eigvals_only or overwrite_a: a1 = asarray_chkfinite(a) overwrite_a = overwrite_a or (_datanotshared(a1,a)) else: a1 = array(a) if (a1.dtype.char in typecodes['AllFloat']) and not isfinite(a1).all(): raise ValueError, "array must not contain infs or NaNs" overwrite_a = 1 if len(a1.shape) != 2 or a1.shape[0] != a1.shape[1]: raise ValueError, 'expected square matrix' if a1.dtype.char in 'FD': heev, = get_lapack_funcs(('heev',),(a1,)) if heev.module_name[:7] == 'flapack': lwork = calc_lwork.heev(heev.prefix,a1.shape[0],lower) w,v,info = heev(a1,lwork = lwork, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) else: # 'clapack' w,v,info = heev(a1, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) if info<0: raise ValueError,\ 'illegal value in %-th argument of internal heev'%(-info) if info>0: raise LinAlgError,"eig algorithm did not converge" else: # a1.dtype.char in 'fd': syev, = get_lapack_funcs(('syev',),(a1,)) if syev.module_name[:7] == 'flapack': lwork = calc_lwork.syev(syev.prefix,a1.shape[0],lower) w,v,info = syev(a1,lwork = lwork, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) else: # 'clapack' w,v,info = syev(a1, compute_v = not eigvals_only, lower = lower, overwrite_a = overwrite_a) if info<0: raise ValueError,\ 'illegal value in %-th argument of internal syev'%(-info) if info>0: raise LinAlgError,"eig algorithm did not converge" if eigvals_only: return w return w, v
|
cd400c1c2f5100b19fcf298f15e60d171a9932cb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12971/cd400c1c2f5100b19fcf298f15e60d171a9932cb/decomp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
2031,
12,
69,
16,
8167,
33,
21,
16,
22663,
4524,
67,
3700,
33,
20,
16,
19274,
67,
69,
33,
20,
4672,
3536,
348,
5390,
2863,
15108,
578,
7233,
366,
1035,
305,
2779,
16719,
1132,
6199,
18,
225,
24472,
30,
225,
279,
5411,
1493,
432,
366,
1035,
305,
2779,
423,
619,
423,
3148,
18,
2612,
3639,
1493,
924,
316,
279,
854,
855,
628,
2612,
15002,
306,
21,
30,
7376,
1502,
2218,
48,
11,
261,
1886,
13,
342,
374,
30,
7376,
1502,
2218,
57,
3546,
11043,
4524,
67,
3700,
1493,
2727,
1404,
3671,
11043,
29098,
18,
6156,
67,
69,
225,
1493,
913,
434,
279,
2026,
506,
17689,
225,
26168,
30,
225,
341,
16,
90,
377,
1493,
341,
30,
29831,
16,
331,
30,
11043,
29098,
306,
1884,
11043,
4524,
67,
3700,
422,
1083,
65,
341,
4202,
1493,
29831,
306,
1884,
11043,
4524,
67,
3700,
422,
1053,
261,
1886,
13,
8009,
225,
10849,
87,
30,
225,
279,
380,
331,
10531,
16,
77,
65,
273,
341,
63,
77,
65,
380,
16612,
10531,
16,
77,
65,
331,
18,
44,
380,
331,
273,
4215,
225,
3536,
309,
11043,
4524,
67,
3700,
578,
6156,
67,
69,
30,
279,
21,
273,
10455,
67,
27038,
9551,
12,
69,
13,
6156,
67,
69,
273,
6156,
67,
69,
578,
261,
67,
3404,
304,
352,
11574,
12,
69,
21,
16,
69,
3719,
469,
30,
279,
21,
273,
526,
12,
69,
13,
309,
261,
69,
21,
18,
8972,
18,
3001,
316,
618,
7000,
3292,
1595,
4723,
19486,
471,
486,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
425,
2031,
12,
69,
16,
8167,
33,
21,
16,
22663,
4524,
67,
3700,
33,
20,
16,
19274,
67,
69,
33,
20,
4672,
3536,
348,
5390,
2863,
15108,
578,
7233,
366,
1035,
305,
2779,
16719,
1132,
6199,
18,
225,
24472,
30,
225,
279,
5411,
1493,
432,
366,
1035,
305,
2779,
423,
619,
423,
3148,
18,
2612,
3639,
1493,
924,
316,
279,
854,
855,
628,
2612,
15002,
306,
21,
30,
7376,
1502,
2218,
48,
11,
261,
1886,
13,
342,
374,
30,
7376,
1502,
2218,
57,
3546,
11043,
4524,
67,
3700,
1493,
2727,
1404,
3671,
11043,
29098,
18,
6156,
67,
69,
225,
1493,
913,
434,
279,
2026,
506,
17689,
225,
26168,
30,
225,
341,
16,
90,
377,
1493,
341,
30,
29831,
2
] |
concept = string.lower(akaNick) if (self.definitions.has_key(concept)): self.cmd_def_first(concept)
|
aka = akaNick.lower() if (self.definitions.has_key(aka)): self.say('%s (aka %s) is %s' % (concept,aka,self.definitions[concept][0]))
|
def cmd_def_first(self, m): concept = string.lower(m) if (self.definitions.has_key(concept)): self.say('%s is %s' % (m,self.definitions[concept][0])) else: try: nickList = ((self.masternicks[self.NickAka[concept]])['nicklist'])[:] for akaNick in nickList: concept = string.lower(akaNick) if (self.definitions.has_key(concept)): self.cmd_def_first(concept) except: self.cmd_def_unknown(m) if m in self.favorites: self.say("%s is on %s's favorites list" % (m,self.queen)) if m in self.disfavorites: self.say("%s is on %s's least favorites list" % (m,self.queen))
|
2d7c19442152750eb85b5fa0dc6841ddefaaabe2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9641/2d7c19442152750eb85b5fa0dc6841ddefaaabe2/jibot.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1797,
67,
536,
67,
3645,
12,
2890,
16,
312,
4672,
12402,
273,
533,
18,
8167,
12,
81,
13,
309,
261,
2890,
18,
13314,
18,
5332,
67,
856,
12,
25770,
3719,
30,
365,
18,
87,
528,
29909,
87,
353,
738,
87,
11,
738,
261,
81,
16,
2890,
18,
13314,
63,
25770,
6362,
20,
22643,
469,
30,
775,
30,
10909,
682,
273,
14015,
2890,
18,
7525,
17091,
87,
63,
2890,
18,
29756,
37,
7282,
63,
25770,
65,
5717,
3292,
17091,
1098,
19486,
10531,
65,
364,
20952,
6491,
1200,
316,
10909,
682,
30,
28105,
273,
20952,
6491,
1200,
18,
8167,
1435,
309,
261,
2890,
18,
13314,
18,
5332,
67,
856,
12,
581,
69,
3719,
30,
365,
18,
87,
528,
29909,
87,
261,
581,
69,
738,
87,
13,
353,
738,
87,
11,
738,
261,
25770,
16,
581,
69,
16,
2890,
18,
13314,
63,
25770,
6362,
20,
22643,
1335,
30,
365,
18,
4172,
67,
536,
67,
8172,
12,
81,
13,
309,
312,
316,
365,
18,
19731,
280,
2997,
30,
365,
18,
87,
528,
27188,
87,
353,
603,
738,
87,
1807,
18552,
2997,
666,
6,
738,
261,
81,
16,
2890,
18,
1857,
275,
3719,
309,
312,
316,
365,
18,
2251,
19731,
280,
2997,
30,
365,
18,
87,
528,
27188,
87,
353,
603,
738,
87,
1807,
4520,
18552,
2997,
666,
6,
738,
261,
81,
16,
2890,
18,
1857,
275,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1797,
67,
536,
67,
3645,
12,
2890,
16,
312,
4672,
12402,
273,
533,
18,
8167,
12,
81,
13,
309,
261,
2890,
18,
13314,
18,
5332,
67,
856,
12,
25770,
3719,
30,
365,
18,
87,
528,
29909,
87,
353,
738,
87,
11,
738,
261,
81,
16,
2890,
18,
13314,
63,
25770,
6362,
20,
22643,
469,
30,
775,
30,
10909,
682,
273,
14015,
2890,
18,
7525,
17091,
87,
63,
2890,
18,
29756,
37,
7282,
63,
25770,
65,
5717,
3292,
17091,
1098,
19486,
10531,
65,
364,
20952,
6491,
1200,
316,
10909,
682,
30,
28105,
273,
20952,
6491,
1200,
18,
8167,
1435,
309,
261,
2890,
18,
13314,
18,
5332,
67,
856,
12,
581,
69,
3719,
30,
365,
18,
87,
528,
29909,
87,
2
] |
end = pos + len( v ) f1, f2, f3 = a[0:pos], a[pos:end], a[end:]
|
end = pos + len( value ) f1, f2, f3 = abs[0:pos], abs[pos:end], abs[end:]
|
def __substitute( self, fragments, name, value ): """ Look in all not yet substituted fragments for parts that can be substituted by value and, if successful, create a new fragment @param fragments: fragment tuples @type fragments: [ (str, str) ] @param name: substitution variable name @type name: str @param value: susbtitution value in current environment @type value: str @return: fragment tuples @rtype: [ (str, str) ] """ result = []
|
3c3e49363a7a3c916b648c6154d8aef255c31d3e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/482/3c3e49363a7a3c916b648c6154d8aef255c31d3e/LocalPath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1717,
17207,
12,
365,
16,
14656,
16,
508,
16,
460,
262,
30,
3536,
10176,
316,
777,
486,
4671,
7461,
4817,
14656,
364,
2140,
716,
848,
506,
7461,
4817,
635,
460,
471,
16,
309,
6873,
16,
752,
279,
394,
5481,
225,
632,
891,
14656,
30,
5481,
10384,
632,
723,
225,
14656,
30,
306,
261,
701,
16,
609,
13,
308,
632,
891,
508,
30,
12785,
2190,
508,
632,
723,
225,
508,
30,
609,
632,
891,
460,
30,
11375,
23602,
305,
1421,
460,
316,
783,
3330,
632,
723,
225,
460,
30,
609,
225,
632,
2463,
30,
5481,
10384,
632,
86,
723,
30,
306,
261,
701,
16,
609,
13,
308,
3536,
563,
273,
5378,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1717,
17207,
12,
365,
16,
14656,
16,
508,
16,
460,
262,
30,
3536,
10176,
316,
777,
486,
4671,
7461,
4817,
14656,
364,
2140,
716,
848,
506,
7461,
4817,
635,
460,
471,
16,
309,
6873,
16,
752,
279,
394,
5481,
225,
632,
891,
14656,
30,
5481,
10384,
632,
723,
225,
14656,
30,
306,
261,
701,
16,
609,
13,
308,
632,
891,
508,
30,
12785,
2190,
508,
632,
723,
225,
508,
30,
609,
632,
891,
460,
30,
11375,
23602,
305,
1421,
460,
316,
783,
3330,
632,
723,
225,
460,
30,
609,
225,
632,
2463,
30,
5481,
10384,
632,
86,
723,
30,
306,
261,
701,
16,
609,
13,
308,
3536,
563,
273,
5378,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Try something like install_package('moin-1.5.4.p0'),"
|
print "Try something like install_package('moin-1.5.6'),"
|
def wiki_create_instance(directory='sage_wiki'): try: from MoinMoin.server.standalone import StandaloneConfig, run except ImportError: print "You must install the optional moin package." print "Try something like install_package('moin-1.5.4.p0')," print "but note that the package name may have a different" print "version. Use optional_packages() to get a list" print "of current package names." return share = '%s/share/moin'%misc.SAGE_LOCAL if os.path.exists(directory): print "Directory '%s' already exists."%directory return os.system('cp -r %s/data %s/'%(share,directory)) os.system('cp -r %s/underlay %s/'%(share,directory)) os.system('cp %s/config/wikiconfig.py %s/'%(share,directory)) os.system('cp %s/server/moin.py %s/'%(share,directory))
|
5f3ef361fc81c9a771ee5a50bc33c7f7053ab555 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/5f3ef361fc81c9a771ee5a50bc33c7f7053ab555/moin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9050,
67,
2640,
67,
1336,
12,
5149,
2218,
87,
410,
67,
13044,
11,
4672,
775,
30,
628,
490,
885,
49,
885,
18,
3567,
18,
10145,
12451,
1930,
934,
464,
12451,
809,
16,
1086,
1335,
11308,
30,
1172,
315,
6225,
1297,
3799,
326,
3129,
312,
885,
2181,
1199,
1172,
315,
7833,
5943,
3007,
3799,
67,
5610,
2668,
81,
885,
17,
21,
18,
25,
18,
26,
19899,
6,
1172,
315,
12885,
4721,
716,
326,
2181,
508,
2026,
1240,
279,
3775,
6,
1172,
315,
1589,
18,
225,
2672,
3129,
67,
10308,
1435,
358,
336,
279,
666,
6,
1172,
315,
792,
783,
2181,
1257,
1199,
327,
225,
7433,
273,
1995,
87,
19,
14419,
19,
81,
885,
11,
9,
23667,
18,
55,
2833,
67,
14922,
225,
309,
1140,
18,
803,
18,
1808,
12,
5149,
4672,
1172,
315,
2853,
1995,
87,
11,
1818,
1704,
1199,
9,
5149,
327,
225,
1140,
18,
4299,
2668,
4057,
300,
86,
738,
87,
19,
892,
738,
87,
2473,
17105,
14419,
16,
5149,
3719,
1140,
18,
4299,
2668,
4057,
300,
86,
738,
87,
19,
9341,
5544,
738,
87,
2473,
17105,
14419,
16,
5149,
3719,
1140,
18,
4299,
2668,
4057,
738,
87,
19,
1425,
19,
11999,
3950,
470,
18,
2074,
738,
87,
2473,
17105,
14419,
16,
5149,
3719,
1140,
18,
4299,
2668,
4057,
738,
87,
19,
3567,
19,
81,
885,
18,
2074,
738,
87,
2473,
17105,
14419,
16,
5149,
3719,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9050,
67,
2640,
67,
1336,
12,
5149,
2218,
87,
410,
67,
13044,
11,
4672,
775,
30,
628,
490,
885,
49,
885,
18,
3567,
18,
10145,
12451,
1930,
934,
464,
12451,
809,
16,
1086,
1335,
11308,
30,
1172,
315,
6225,
1297,
3799,
326,
3129,
312,
885,
2181,
1199,
1172,
315,
7833,
5943,
3007,
3799,
67,
5610,
2668,
81,
885,
17,
21,
18,
25,
18,
26,
19899,
6,
1172,
315,
12885,
4721,
716,
326,
2181,
508,
2026,
1240,
279,
3775,
6,
1172,
315,
1589,
18,
225,
2672,
3129,
67,
10308,
1435,
358,
336,
279,
666,
6,
1172,
315,
792,
783,
2181,
1257,
1199,
327,
225,
7433,
273,
1995,
87,
19,
14419,
19,
81,
885,
11,
9,
23667,
18,
55,
2833,
2
] |
w, h = drawable.wrap(self.width, self.y - self.bottomMargin - self.bottomPadding)
|
y = self.y p = self.bottomMargin + self.bottomPadding w, h = drawable.wrap(self.width, y - p )
|
def add(self, drawable): """ Draws the object at the current position. Returns 1 if successful, 0 if it would not fit. Raises a LayoutError if the object is too wide, or if it is too high for a totally empty frame, to avoid infinite loops""" w, h = drawable.wrap(self.width, self.y - self.bottomMargin - self.bottomPadding)
|
b84d697ebfdc6a6adcb88bc03a632af5167c1e5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7053/b84d697ebfdc6a6adcb88bc03a632af5167c1e5d/layout.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
12,
2890,
16,
19021,
4672,
3536,
10184,
87,
326,
733,
622,
326,
783,
1754,
18,
2860,
404,
309,
6873,
16,
374,
309,
518,
4102,
486,
4845,
18,
20497,
279,
9995,
668,
309,
326,
733,
353,
4885,
14812,
16,
578,
309,
518,
353,
4885,
3551,
364,
279,
9997,
1230,
1008,
2623,
16,
358,
4543,
14853,
14075,
8395,
341,
16,
366,
273,
19021,
18,
4113,
12,
2890,
18,
2819,
16,
365,
18,
93,
300,
365,
18,
9176,
9524,
300,
365,
18,
9176,
9485,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
527,
12,
2890,
16,
19021,
4672,
3536,
10184,
87,
326,
733,
622,
326,
783,
1754,
18,
2860,
404,
309,
6873,
16,
374,
309,
518,
4102,
486,
4845,
18,
20497,
279,
9995,
668,
309,
326,
733,
353,
4885,
14812,
16,
578,
309,
518,
353,
4885,
3551,
364,
279,
9997,
1230,
1008,
2623,
16,
358,
4543,
14853,
14075,
8395,
341,
16,
366,
273,
19021,
18,
4113,
12,
2890,
18,
2819,
16,
365,
18,
93,
300,
365,
18,
9176,
9524,
300,
365,
18,
9176,
9485,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return "%s, %s)" % (numpy.ndarray.__repr__(self)[:-1], repr(self.metadata))
|
return "%s, %s)" % (repr(self.view(numpy.ndarray))[:-1], repr(self.metadata))
|
def __repr__(self): return "%s, %s)" % (numpy.ndarray.__repr__(self)[:-1], repr(self.metadata))
|
e04c61ad8714219b9691d55d7b3e2b6e6734a660 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/5758/e04c61ad8714219b9691d55d7b3e2b6e6734a660/metaarray.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
12715,
972,
12,
2890,
4672,
327,
2213,
87,
16,
738,
87,
2225,
738,
261,
12715,
12,
2890,
18,
1945,
12,
15974,
18,
25681,
3719,
10531,
17,
21,
6487,
8480,
12,
2890,
18,
4165,
3719,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
12715,
972,
12,
2890,
4672,
327,
2213,
87,
16,
738,
87,
2225,
738,
261,
12715,
12,
2890,
18,
1945,
12,
15974,
18,
25681,
3719,
10531,
17,
21,
6487,
8480,
12,
2890,
18,
4165,
3719,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
scalarproducts_to_order = { 0: 2, 1: 3, 2: 4, 3: 7
|
scalarproducts_to_order = { 0: 2, 1: 3, 2: 4, 3: 6
|
def coxeter_matrix_as_function(t): """ Returns the coxeter matrix associated to the Cartan type t. EXAMPLES: sage: from sage.combinat.root_system.coxeter_matrix import coxeter_matrix_as_function sage: f = coxeter_matrix_as_function(['A',4]) sage: matrix([[f(i,j) for j in range(1,5)] for i in range(1,5)]) [1 3 2 2] [3 1 3 2] [2 3 1 3] [2 2 3 1] """ a = CartanType(t).dynkin_diagram() scalarproducts_to_order = { 0: 2, 1: 3, 2: 4, 3: 7 # 4 should be infinity } return lambda i,j: 1 if i == j else scalarproducts_to_order[a[i,j]*a[j,i]]
|
e2fada126ece71f9b885e5ce2444b0d81173d6e8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9417/e2fada126ece71f9b885e5ce2444b0d81173d6e8/coxeter_matrix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
12,
88,
4672,
3536,
2860,
326,
1825,
92,
847,
3148,
3627,
358,
326,
17695,
304,
618,
268,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
3085,
67,
4299,
18,
71,
2409,
847,
67,
5667,
1930,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
272,
410,
30,
284,
273,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
12,
3292,
37,
2187,
24,
5717,
272,
410,
30,
3148,
3816,
63,
74,
12,
77,
16,
78,
13,
364,
525,
316,
1048,
12,
21,
16,
25,
25887,
364,
277,
316,
1048,
12,
21,
16,
25,
13,
5717,
306,
21,
890,
576,
576,
65,
306,
23,
404,
890,
576,
65,
306,
22,
890,
404,
890,
65,
306,
22,
576,
890,
404,
65,
3536,
279,
273,
17695,
304,
559,
12,
88,
2934,
28595,
15984,
67,
12264,
1940,
1435,
4981,
18736,
67,
869,
67,
1019,
273,
288,
374,
30,
576,
16,
225,
404,
30,
890,
16,
225,
576,
30,
1059,
16,
225,
890,
30,
1666,
468,
1059,
1410,
506,
27272,
289,
225,
327,
3195,
277,
16,
78,
30,
404,
309,
277,
422,
525,
469,
4981,
18736,
67,
869,
67,
1019,
63,
69,
63,
77,
16,
78,
5772,
69,
63,
78,
16,
77,
13563,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
12,
88,
4672,
3536,
2860,
326,
1825,
92,
847,
3148,
3627,
358,
326,
17695,
304,
618,
268,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
628,
272,
410,
18,
832,
4757,
270,
18,
3085,
67,
4299,
18,
71,
2409,
847,
67,
5667,
1930,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
272,
410,
30,
284,
273,
1825,
92,
847,
67,
5667,
67,
345,
67,
915,
12,
3292,
37,
2187,
24,
5717,
272,
410,
30,
3148,
3816,
63,
74,
12,
77,
16,
78,
13,
364,
525,
316,
1048,
12,
21,
16,
25,
25887,
364,
277,
316,
1048,
12,
21,
16,
25,
13,
5717,
306,
21,
890,
576,
576,
2
] |
def CheckUsers(self, users_to_check = [], minimal = True, batch = False, auto_answer = None):
|
def CheckUsers(self, users_to_check = [], minimal = True, batch = False, auto_answer = None):
|
def CheckUsers(self, users_to_check = [], minimal = True, batch = False, auto_answer = None): """Check user accounts and account data consistency."""
|
2d1ecedf1a4d5090557df25efcb2a065c17595e0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7650/2d1ecedf1a4d5090557df25efcb2a065c17595e0/users.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
6588,
12,
2890,
16,
3677,
67,
869,
67,
1893,
273,
5378,
16,
16745,
273,
1053,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
273,
599,
4672,
3536,
1564,
729,
9484,
471,
2236,
501,
14297,
12123,
2,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
6588,
12,
2890,
16,
3677,
67,
869,
67,
1893,
273,
5378,
16,
16745,
273,
1053,
16,
2581,
273,
1083,
16,
3656,
67,
13490,
273,
599,
4672,
3536,
1564,
729,
9484,
471,
2236,
501,
14297,
12123,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
that suffix will be stripped off and the number interpreted as the port number to use.
|
and there is no port specified, that suffix will be stripped off and the number interpreted as the port number to use.
|
def connect(self, host='localhost', port = 0): """Connect to a host on a given port.
|
4be90e2b319a530f8ad5751d163daf7879d72218 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/4be90e2b319a530f8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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3077,
12,
2890,
16,
1479,
2218,
13014,
2187,
1756,
273,
374,
4672,
3536,
5215,
358,
279,
1479,
603,
279,
864,
1756,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
'INT64': lambda r: FBNumeric(precision=r['fprec'], length=r['fscale'] * -1),
|
'INT64': lambda r: FBNumeric(precision=r['fprec'], scale=r['fscale'] * -1),
|
def get_col_spec(self): return "SMALLINT"
|
41bc4d877f09eac7b408155cf17a8a216a7ace97 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1074/41bc4d877f09eac7b408155cf17a8a216a7ace97/firebird.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1293,
67,
2793,
12,
2890,
4672,
327,
315,
23882,
3217,
6,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1293,
67,
2793,
12,
2890,
4672,
327,
315,
23882,
3217,
6,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
query = "SELECT bb.id_bibrec FROM bibrec_bib90x AS bb, bib97x AS b WHERE b.value='%s' AND b.tag='970__a' AND bb.id_bibxxx=b.id" %\
|
query = "SELECT bb.id_bibrec FROM bibrec_bib97x AS bb, bib97x AS b WHERE b.value='%s' AND b.tag='970__a' AND bb.id_bibxxx=b.id" %\
|
def get_mysql_recid_from_aleph_sysno(sysno): """Returns MySQL's recID for ALEPH sysno passed in the argument (e.g. "2209836CERCER"). Returns None in case of failure.""" out = None query = "SELECT bb.id_bibrec FROM bibrec_bib90x AS bb, bib97x AS b WHERE b.value='%s' AND b.tag='970__a' AND bb.id_bibxxx=b.id" %\ (escape_string(sysno)) res = run_sql(query, None, 1) if res: out = res[0][0] return out
|
f8885ff5b8b672e89581fb5ee226eb8e5bf90872 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12027/f8885ff5b8b672e89581fb5ee226eb8e5bf90872/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12527,
67,
3927,
350,
67,
2080,
67,
5349,
844,
67,
9499,
2135,
12,
9499,
2135,
4672,
3536,
1356,
13485,
1807,
1950,
734,
364,
432,
900,
8939,
2589,
2135,
2275,
316,
326,
1237,
261,
73,
18,
75,
18,
315,
27246,
10689,
5718,
39,
654,
39,
654,
20387,
2860,
599,
316,
648,
434,
5166,
12123,
596,
273,
599,
843,
273,
315,
4803,
7129,
18,
350,
67,
70,
495,
3927,
4571,
25581,
3927,
67,
70,
495,
10580,
92,
5355,
7129,
16,
25581,
10580,
92,
5355,
324,
4852,
324,
18,
1132,
28713,
87,
11,
4116,
324,
18,
2692,
2218,
29,
7301,
972,
69,
11,
4116,
7129,
18,
350,
67,
70,
495,
18310,
33,
70,
18,
350,
6,
738,
64,
261,
6939,
67,
1080,
12,
9499,
2135,
3719,
400,
273,
1086,
67,
4669,
12,
2271,
16,
599,
16,
404,
13,
309,
400,
30,
596,
273,
400,
63,
20,
6362,
20,
65,
327,
596,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
12527,
67,
3927,
350,
67,
2080,
67,
5349,
844,
67,
9499,
2135,
12,
9499,
2135,
4672,
3536,
1356,
13485,
1807,
1950,
734,
364,
432,
900,
8939,
2589,
2135,
2275,
316,
326,
1237,
261,
73,
18,
75,
18,
315,
27246,
10689,
5718,
39,
654,
39,
654,
20387,
2860,
599,
316,
648,
434,
5166,
12123,
596,
273,
599,
843,
273,
315,
4803,
7129,
18,
350,
67,
70,
495,
3927,
4571,
25581,
3927,
67,
70,
495,
10580,
92,
5355,
7129,
16,
25581,
10580,
92,
5355,
324,
4852,
324,
18,
1132,
28713,
87,
11,
4116,
324,
18,
2692,
2218,
29,
7301,
972,
69,
11,
4116,
7129,
18,
350,
67,
70,
495,
18310,
33,
70,
18,
350,
6,
738,
64,
261,
2
] |
[(0.500000000, -5.45450037e-18), (0.400000000 + 4.00000000*I, 3.31920245 - 2.60028054*I), (0.300000000 + 8.00000000*I, -0.886341185 - 0.422640337*I), (0.200000000 + 12.0000000*I, -3.50558936 - 0.108531690*I), (0.100000000 + 16.0000000*I, -3.87043288 - 1.88049411*I)]
|
[(0.500000000, 0), (0.400000000 + 4.00000000*I, 3.31920245 - 2.60028054*I), (0.300000000 + 8.00000000*I, -0.886341185 - 0.422640337*I), (0.200000000 + 12.0000000*I, -3.50558936 - 0.108531690*I), (0.100000000 + 16.0000000*I, -3.87043288 - 1.88049411*I)]
|
def Lseries_values_along_line(self, s0, s1, number_samples): """ Return values of $L(E, s)$ at \code{number_samples} equally-spaced sample points along the line from $s_0$ to $s_1$ in the complex plane.
|
de740b3a65ec32182bff1b0dd0b15bd37e236b51 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/de740b3a65ec32182bff1b0dd0b15bd37e236b51/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
511,
10222,
67,
2372,
67,
287,
932,
67,
1369,
12,
2890,
16,
272,
20,
16,
272,
21,
16,
1300,
67,
7319,
4672,
3536,
2000,
924,
434,
271,
48,
12,
41,
16,
272,
21877,
622,
521,
710,
95,
2696,
67,
7319,
97,
1298,
1230,
17,
2981,
72,
3296,
3143,
7563,
326,
980,
628,
271,
87,
67,
20,
8,
358,
271,
87,
67,
21,
8,
316,
326,
7233,
11017,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
511,
10222,
67,
2372,
67,
287,
932,
67,
1369,
12,
2890,
16,
272,
20,
16,
272,
21,
16,
1300,
67,
7319,
4672,
3536,
2000,
924,
434,
271,
48,
12,
41,
16,
272,
21877,
622,
521,
710,
95,
2696,
67,
7319,
97,
1298,
1230,
17,
2981,
72,
3296,
3143,
7563,
326,
980,
628,
271,
87,
67,
20,
8,
358,
271,
87,
67,
21,
8,
316,
326,
7233,
11017,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
"VALUES ('%s',%d,'%s','%s','%s','%s',UTC_TIMESTAMP(),UTC_TIMESTAMP(),'Submitted', %s)" % \
|
"VALUES ('%s',%d,'%s','%s','%s','%s',UTC_TIMESTAMP(),UTC_TIMESTAMP(),'Submitted')" % \
|
def addPilotTQReference(self,pilotRef,taskQueueID,ownerDN,ownerGroup,broker='Unknown', gridType='DIRAC',requirements='Unknown'): """ Add a new pilot job reference """
|
34a9ca6aa3e14fada33d15303ea2064d317b3eba /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12864/34a9ca6aa3e14fada33d15303ea2064d317b3eba/PilotAgentsDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
52,
22797,
56,
53,
2404,
12,
2890,
16,
84,
22797,
1957,
16,
4146,
3183,
734,
16,
8443,
8609,
16,
8443,
1114,
16,
21722,
2218,
4874,
2187,
3068,
559,
2218,
4537,
2226,
2187,
16175,
2218,
4874,
11,
4672,
3536,
1436,
279,
394,
293,
22797,
1719,
2114,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
52,
22797,
56,
53,
2404,
12,
2890,
16,
84,
22797,
1957,
16,
4146,
3183,
734,
16,
8443,
8609,
16,
8443,
1114,
16,
21722,
2218,
4874,
2187,
3068,
559,
2218,
4537,
2226,
2187,
16175,
2218,
4874,
11,
4672,
3536,
1436,
279,
394,
293,
22797,
1719,
2114,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
newtext = newtext + getCheckCategoriesTemplate(usage, galleries)
|
newtext = newtext + getCheckCategoriesTemplate(usage, galleries, len(newcats))
|
def saveImagePage(imagepage, newcats, usage, galleries, onlyfilter): ''' Remove the old categories and add the new categories to the image. ''' newtext = wikipedia.removeCategoryLinks(imagepage.get(), imagepage.site()) if not(onlyfilter): newtext = removeTemplates(newtext) newtext = newtext + getCheckCategoriesTemplate(usage, galleries) for category in newcats: newtext = newtext + u'[[Category:' + category + u']]\n' if(onlyfilter): comment = u'Filtering categories' else: comment = u'Image is categorized by a bot using data from [[Commons:Tools#CommonSense|CommonSense]]' wikipedia.showDiff(imagepage.get(), newtext) imagepage.put(newtext, comment) return
|
150cf2ff8102a117c1a9fafa35227be3e6321871 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4404/150cf2ff8102a117c1a9fafa35227be3e6321871/imagerecat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2040,
1964,
12,
2730,
2433,
16,
394,
24750,
16,
4084,
16,
314,
30912,
16,
1338,
2188,
4672,
9163,
3581,
326,
1592,
6477,
471,
527,
326,
394,
6477,
358,
326,
1316,
18,
9163,
394,
955,
273,
21137,
18,
4479,
4457,
7100,
12,
2730,
2433,
18,
588,
9334,
1316,
2433,
18,
4256,
10756,
225,
309,
486,
12,
3700,
2188,
4672,
394,
955,
273,
1206,
8218,
12,
2704,
955,
13,
394,
955,
273,
394,
955,
397,
336,
1564,
10487,
2283,
12,
9167,
16,
314,
30912,
16,
562,
12,
2704,
24750,
3719,
364,
3150,
316,
394,
24750,
30,
394,
955,
273,
394,
955,
397,
582,
11,
31128,
4457,
2497,
397,
3150,
397,
582,
3546,
13944,
82,
11,
225,
309,
12,
3700,
2188,
4672,
2879,
273,
582,
11,
30115,
6477,
11,
469,
30,
2879,
273,
582,
11,
2040,
353,
31921,
1235,
635,
279,
2512,
1450,
501,
628,
12167,
6517,
87,
30,
10348,
7,
6517,
29713,
96,
6517,
29713,
65,
3864,
225,
21137,
18,
4500,
5938,
12,
2730,
2433,
18,
588,
9334,
394,
955,
13,
1316,
2433,
18,
458,
12,
2704,
955,
16,
2879,
13,
327,
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,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
2040,
1964,
12,
2730,
2433,
16,
394,
24750,
16,
4084,
16,
314,
30912,
16,
1338,
2188,
4672,
9163,
3581,
326,
1592,
6477,
471,
527,
326,
394,
6477,
358,
326,
1316,
18,
9163,
394,
955,
273,
21137,
18,
4479,
4457,
7100,
12,
2730,
2433,
18,
588,
9334,
1316,
2433,
18,
4256,
10756,
225,
309,
486,
12,
3700,
2188,
4672,
394,
955,
273,
1206,
8218,
12,
2704,
955,
13,
394,
955,
273,
394,
955,
397,
336,
1564,
10487,
2283,
12,
9167,
16,
314,
30912,
16,
562,
12,
2704,
24750,
3719,
364,
3150,
316,
394,
24750,
30,
394,
955,
273,
394,
955,
397,
582,
11,
31128,
4457,
2497,
397,
3150,
397,
582,
3546,
13944,
82,
11,
225,
309,
12,
3700,
2
] |
if name in seq_parts: seq_parts[name].append(seq)
|
if name == 'QUERY': parse_number = parse_number + 1 n = 0 if parse_number == 1: seq_parts.append(seq) seq_names.append(name)
|
def to_generic(self, alphabet): """Retrieve generic alignment object for the given alignment.
|
5ec4b5b4aacaade427ff27088ff04f2f01a617d8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/5ec4b5b4aacaade427ff27088ff04f2f01a617d8/Record.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
358,
67,
13540,
12,
2890,
16,
10877,
4672,
3536,
5767,
5210,
8710,
733,
364,
326,
864,
8710,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
358,
67,
13540,
12,
2890,
16,
10877,
4672,
3536,
5767,
5210,
8710,
733,
364,
326,
864,
8710,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
types.FunctionType, types.LambdaType, types.MethodType]:
|
types.FunctionType, types.LambdaType, types.MethodType, types.InstanceType]:
|
def _copy(self, obj): """ <Purpose> Create a deep copy of an object without using the python 'copy' module. Using copy.deepcopy() doesn't work because builtins like id and hasattr aren't available when this is called. <Arguments> self obj The object to make a deep copy of. <Exceptions> TypeError If an object is encountered that we don't know how to make a copy of. NamespaceViolationError If an unexpected error occurs while copying. This isn't the greatest solution, but in general the idea is we just need to abort the wrapped function call. <Side Effects> A new reference is created to every non-simple type of object. That is, everything except objects of type str, unicode, int, etc. <Returns> The deep copy of obj. """ try: if type(obj) in [str, unicode, int, long, float, complex, bool, types.NoneType, types.FunctionType, types.LambdaType, types.MethodType]: return obj elif type(obj) in [tuple, list, set, frozenset]: temp_list = [] for item in obj: temp_list.append(self._copy(item)) if type(obj) is tuple: return tuple(temp_list) elif type(obj) is set: return set(temp_list) elif type(obj) is frozenset: return frozenset(temp_list) else: return temp_list elif type(obj) is dict: temp_dict = {} for key in obj: temp_dict[key] = self._copy(obj[key]) return temp_dict # We don't copy certain objects. This is because copying an emulated file # object, for example, will cause the destructor of the original one to # be invoked, which will close the actual underlying file. As the object # is wrapped and the client does not have access to it, it's safe to not # wrap it. elif isinstance(obj, (NamespaceObjectWrapper, emulfile.emulated_file, emulcomm.emulated_socket, thread.LockType)): return obj else: raise TypeError("_copy is not implemented for objects of type " + str(type(obj))) except Exception, e: self._handle_violation("_copy failed on " + str(obj) + " with message " + str(e))
|
574705fccbcd3a86a51e7a6665d77b29ca418316 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7272/574705fccbcd3a86a51e7a6665d77b29ca418316/namespace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,
3302,
1404,
1440,
2724,
6650,
2679,
3007,
612,
471,
3859,
11526,
1404,
2319,
1347,
333,
353,
2566,
18,
411,
4628,
34,
365,
1081,
1021,
733,
358,
1221,
279,
4608,
1610,
434,
18,
411,
11416,
34,
3580,
971,
392,
733,
353,
9919,
716,
732,
2727,
1404,
5055,
3661,
358,
1221,
279,
1610,
434,
18,
6005,
11683,
668,
971,
392,
9733,
555,
9938,
1323,
8933,
18,
1220,
5177,
1404,
326,
18825,
395,
6959,
16,
1496,
316,
7470,
326,
21463,
353,
732,
2537,
1608,
358,
6263,
326,
5805,
445,
745,
18,
411,
8895,
30755,
87,
34,
432,
394,
2114,
353,
2522,
358,
3614,
1661,
17,
9647,
618,
434,
733,
18,
12466,
353,
16,
7756,
1335,
2184,
434,
618,
609,
16,
5252,
16,
509,
16,
5527,
18,
411,
1356,
34,
1021,
4608,
1610,
434,
1081,
18,
3536,
775,
30,
309,
618,
12,
2603,
13,
316,
306,
701,
16,
5252,
16,
509,
16,
1525,
16,
1431,
16,
7233,
16,
1426,
16,
1953,
18,
7036,
559,
16,
1953,
18,
2083,
559,
16,
1953,
18,
12025,
559,
16,
1953,
18,
21988,
16,
1953,
18,
29123,
14542,
327,
1081,
225,
1327,
618,
12,
2603,
13,
316,
306,
8052,
16,
666,
16,
444,
16,
23462,
14542,
1906,
67,
1098,
273,
5378,
364,
761,
316,
1081,
30,
1906,
67,
1098,
18,
6923,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3530,
12,
2890,
16,
1081,
4672,
3536,
411,
10262,
4150,
34,
1788,
279,
4608,
1610,
434,
392,
733,
2887,
1450,
326,
5790,
296,
3530,
11,
1605,
18,
11637,
1610,
18,
16589,
3530,
1435,
3302,
1404,
1440,
2724,
6650,
2679,
3007,
612,
471,
3859,
11526,
1404,
2319,
1347,
333,
353,
2566,
18,
411,
4628,
34,
365,
1081,
1021,
733,
358,
1221,
279,
4608,
1610,
434,
18,
411,
11416,
34,
3580,
971,
392,
733,
353,
9919,
716,
732,
2727,
1404,
5055,
3661,
358,
1221,
279,
1610,
434,
18,
6005,
11683,
668,
971,
392,
9733,
555,
9938,
1323,
8933,
18,
1220,
5177,
1404,
326,
18825,
395,
6959,
16,
1496,
316,
7470,
326,
21463,
353,
732,
2537,
1608,
358,
6263,
326,
2
] |
if rev > 1: try: for _, prev in self._history(path, 0, rev-1, limit=1): return prev except (SystemError, core.SubversionException): pass return None
|
return self._previous_rev(rev, path)
|
def previous_rev(self, rev, path=''): rev = self.normalize_rev(rev) if rev > 1: # don't use oldest here, as it's too expensive try: for _, prev in self._history(path, 0, rev-1, limit=1): return prev except (SystemError, # "null arg to internal routine" in 1.2.x core.SubversionException): # in 1.3.x pass return None
|
c095aabe7b11ac17cb1155c074cc4a0a86c311f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2831/c095aabe7b11ac17cb1155c074cc4a0a86c311f2/svn_fs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2416,
67,
9083,
12,
2890,
16,
5588,
16,
589,
2218,
11,
4672,
5588,
273,
365,
18,
12237,
67,
9083,
12,
9083,
13,
309,
5588,
405,
404,
30,
468,
2727,
1404,
999,
17067,
2674,
16,
487,
518,
1807,
4885,
19326,
775,
30,
364,
389,
16,
2807,
316,
365,
6315,
8189,
12,
803,
16,
374,
16,
5588,
17,
21,
16,
1800,
33,
21,
4672,
327,
2807,
1335,
261,
3163,
668,
16,
468,
315,
2011,
1501,
358,
2713,
12245,
6,
316,
404,
18,
22,
18,
92,
2922,
18,
1676,
1589,
503,
4672,
468,
316,
404,
18,
23,
18,
92,
1342,
327,
599,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
11,
4672,
5588,
273,
365,
18,
12237,
67,
9083,
12,
9083,
13,
309,
5588,
405,
404,
30,
468,
2727,
1404,
999,
17067,
2674,
16,
487,
518,
1807,
4885,
19326,
775,
30,
364,
389,
16,
2807,
316,
365,
6315,
8189,
12,
803,
16,
374,
16,
5588,
17,
21,
16,
1800,
33,
21,
4672,
327,
2807,
1335,
261,
3163,
668,
16,
468,
315,
2011,
1501,
358,
2713,
12245,
6,
316,
404,
18,
22,
18,
92,
2922,
18,
1676,
1589,
503,
4672,
468,
316,
404,
18,
23,
18,
92,
1342,
327,
599,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (crystal_symmetry.unit_cell() is None
|
if (( crystal_symmetry is None or crystal_symmetry.unit_cell() is None)
|
def as_miller_arrays(self, crystal_symmetry=None, force_symmetry=False, merge_equivalents=True, base_array_info=None): if (self._file_type is None): return [] info_source = self._file_name if (info_source.startswith("./") or info_source.startswith(".\\")): info_source = info_source[2:] if (base_array_info is None): base_array_info = miller.array_info( source=info_source, source_type=self._file_type) if (self._file_type == "cctbx.miller.array"): result = [] for miller_array in self._file_content: info = miller_array.info() if (info is None or not isinstance(info, miller.array_info)): info = base_array_info info.source = info_source info.crystal_symmetry_from_file = crystal.symmetry( unit_cell=miller_array.unit_cell(), space_group_info=miller_array.space_group_info()) result.append(miller_array.customized_copy( crystal_symmetry=miller_array.join_symmetry( other_symmetry=crystal_symmetry, force=force_symmetry)) .set_info(info) .set_observation_type(miller_array.observation_type())) return result if (crystal_symmetry.unit_cell() is None and self._observation_type == 'hklf+ins/res' ): name, ext = os.path.splitext(self._file_name) for shelx_file_name in ('%s.ins' % name, '%s.res' % name): try: shelx_file = open(shelx_file_name) break except IOError: continue else: raise Sorry("Can't open files %s.ins or %s.res" "required by the option hklf+ins/res" % name) crystal_symmetry = crystal_symmetry_from_ins.extract_from( file=shelx_file) shelx_file.seek(0) remaining = shelx_file.read() shelx_file.close() m = re.search("^HKLF\s*(\d)", remaining, re.X|re.M|re.S) if m is None: raise Sorry("%s does not contain the mandatory HKLF instruction" % shelx_file.name) if m.group(1) == "4": self._observation_type = "intensities" elif m.group(1) == "3": self._observation_type = "amplitudes" else: raise Sorry("HKLF %s not supported" % m.group(1)) result = self._file_content.as_miller_arrays( crystal_symmetry=crystal_symmetry, force_symmetry=force_symmetry, merge_equivalents=merge_equivalents, base_array_info=base_array_info) if (self.file_type() == "shelx_hklf"): if (self._observation_type == "intensities"): result[0].set_info(result[0].info().customized_copy( labels=["Iobs", "SigIobs"])) result[0].set_observation_type_xray_intensity() elif (self._observation_type == "amplitudes"): result[0].set_info(result[0].info().customized_copy( labels=["Fobs", "SigFobs"])) result[0].set_observation_type_xray_amplitude() else: raise Sorry("Unresolved amplitude/intensity ambiguity: %s\n" " SHELX reflection files may contain amplitudes or intensities.\n" " Please append =amplitudes\n" " or =hklf3\n" " or =intensities\n" " or =hklf4\n" " to the file name argument or parameter to resolve the" " ambiguity.\n" " If a corresponding .ins file is available, look for the" " HKLF codeword.\n" " Alternatively, run the phenix.reflection_statistics" " command twice,\n" " once with =amplitudes and once with =intensities. Inspect" " the <I^2>/(<I>)^2\n" " statistics. For acentric structures the values should" " fluctuate around\n" " 2.0, for centric structures around 3.0. If the statistics" " are not conclusive\n" " it will be best to recover the original reflection data, such" " as SCALEPACK,\n" " SCALA MTZ, XDS, or d*TREK files." % self._file_name) return result
|
df6c635657903f516e32da2c1a66eb7d4ce60efd /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/696/df6c635657903f516e32da2c1a66eb7d4ce60efd/reflection_file_reader.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
81,
24462,
67,
16223,
12,
2890,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
16,
2691,
67,
14298,
5162,
4877,
33,
5510,
16,
1026,
67,
1126,
67,
1376,
33,
7036,
4672,
309,
261,
2890,
6315,
768,
67,
723,
353,
599,
4672,
327,
5378,
1123,
67,
3168,
273,
365,
6315,
768,
67,
529,
309,
261,
1376,
67,
3168,
18,
17514,
1918,
2932,
18,
4898,
13,
578,
1123,
67,
3168,
18,
17514,
1918,
2932,
18,
27576,
3719,
30,
1123,
67,
3168,
273,
1123,
67,
3168,
63,
22,
26894,
309,
261,
1969,
67,
1126,
67,
1376,
353,
599,
4672,
1026,
67,
1126,
67,
1376,
273,
312,
24462,
18,
1126,
67,
1376,
12,
1084,
33,
1376,
67,
3168,
16,
1084,
67,
723,
33,
2890,
6315,
768,
67,
723,
13,
309,
261,
2890,
6315,
768,
67,
723,
422,
315,
71,
299,
70,
92,
18,
81,
24462,
18,
1126,
6,
4672,
563,
273,
5378,
364,
312,
24462,
67,
1126,
316,
365,
6315,
768,
67,
1745,
30,
1123,
273,
312,
24462,
67,
1126,
18,
1376,
1435,
309,
261,
1376,
353,
599,
578,
486,
1549,
12,
1376,
16,
312,
24462,
18,
1126,
67,
1376,
3719,
30,
1123,
273,
1026,
67,
1126,
67,
1376,
1123,
18,
3168,
273,
1123,
67,
3168,
1123,
18,
3353,
31365,
67,
8117,
18042,
67,
2080,
67,
768,
273,
4422,
31365,
18,
8117,
18042,
12,
2836,
67,
3855,
33,
81,
24462,
67,
1126,
18,
4873,
67,
3855,
9334,
3476,
67,
1655,
67,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
487,
67,
81,
24462,
67,
16223,
12,
2890,
16,
4422,
31365,
67,
8117,
18042,
33,
7036,
16,
2944,
67,
8117,
18042,
33,
8381,
16,
2691,
67,
14298,
5162,
4877,
33,
5510,
16,
1026,
67,
1126,
67,
1376,
33,
7036,
4672,
309,
261,
2890,
6315,
768,
67,
723,
353,
599,
4672,
327,
5378,
1123,
67,
3168,
273,
365,
6315,
768,
67,
529,
309,
261,
1376,
67,
3168,
18,
17514,
1918,
2932,
18,
4898,
13,
578,
1123,
67,
3168,
18,
17514,
1918,
2932,
18,
27576,
3719,
30,
1123,
67,
3168,
273,
1123,
67,
3168,
63,
22,
26894,
309,
261,
1969,
67,
1126,
67,
1376,
353,
599,
4672,
1026,
67,
1126,
67,
1376,
273,
312,
24462,
18,
1126,
67,
1376,
12,
2
] |
if not XMPP.getRoster().getShow(user.jid) == None and len(user.items_pending) > 0:
|
if len(XMPP.getRoster().getResources(user.jid)) > 0 and len(user.items_pending) > 0:
|
def userNotifications(userjid, initialtext = None): """Send notification to some JID""" user = users[userjid] # if the user is conected and have pending items... if not XMPP.getRoster().getShow(user.jid) == None and len(user.items_pending) > 0: if initialtext: XMPP.send(Message(to = user.jid, body = initialtext, typ = 'chat')) user.items_pending.reverse() #we send all items and delete it while len(user.items_pending) > 0: item = user.items_pending.pop() text = "\n%s\n%s" % (re.replace('<.*?>', '', item.title), item.permalink) if item.text != "": text += "\n\n%s" % (re.replace('<.*?>', '', item.text)) text += "\n" XMPP.send(Message(to = user.jid, body = text, typ = 'chat'))
|
63957c314feeda59d7773d14737ccf8e9027770b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2189/63957c314feeda59d7773d14737ccf8e9027770b/jfn.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
729,
14111,
12,
1355,
18252,
16,
2172,
955,
273,
599,
4672,
3536,
3826,
3851,
358,
2690,
804,
734,
8395,
729,
273,
3677,
63,
1355,
18252,
65,
468,
309,
326,
729,
353,
356,
828,
471,
1240,
4634,
1516,
2777,
309,
562,
12,
60,
19388,
18,
588,
54,
29811,
7675,
588,
3805,
12,
1355,
18,
18252,
3719,
405,
374,
471,
562,
12,
1355,
18,
3319,
67,
9561,
13,
405,
374,
30,
309,
2172,
955,
30,
23216,
18,
4661,
12,
1079,
12,
869,
273,
729,
18,
18252,
16,
1417,
273,
2172,
955,
16,
3815,
273,
296,
10880,
26112,
729,
18,
3319,
67,
9561,
18,
9845,
1435,
468,
1814,
1366,
777,
1516,
471,
1430,
518,
1323,
562,
12,
1355,
18,
3319,
67,
9561,
13,
405,
374,
30,
761,
273,
729,
18,
3319,
67,
9561,
18,
5120,
1435,
977,
273,
1548,
82,
9,
87,
64,
82,
9,
87,
6,
738,
261,
266,
18,
2079,
2668,
32,
23498,
1870,
16,
10226,
761,
18,
2649,
3631,
761,
18,
30898,
13,
309,
761,
18,
955,
480,
1408,
30,
977,
1011,
1548,
82,
64,
82,
9,
87,
6,
738,
261,
266,
18,
2079,
2668,
32,
23498,
1870,
16,
10226,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672,
3536,
3826,
3851,
358,
2690,
804,
734,
8395,
729,
273,
3677,
63,
1355,
18252,
65,
468,
309,
326,
729,
353,
356,
828,
471,
1240,
4634,
1516,
2777,
309,
562,
12,
60,
19388,
18,
588,
54,
29811,
7675,
588,
3805,
12,
1355,
18,
18252,
3719,
405,
374,
471,
562,
12,
1355,
18,
3319,
67,
9561,
13,
405,
374,
30,
309,
2172,
955,
30,
23216,
18,
4661,
12,
1079,
12,
869,
273,
729,
18,
18252,
16,
1417,
273,
2172,
955,
16,
3815,
273,
296,
10880,
26112,
729,
18,
3319,
67,
9561,
18,
9845,
1435,
468,
1814,
1366,
777,
1516,
471,
1430,
518,
1323,
562,
12,
1355,
18,
3319,
67,
2
] |
PrefDialog()
|
PrefDialog(self)
|
def on_ppm_pref(self,event,data=None): PrefDialog()
|
e55a5724d25a08ab1a8b3ca4b24f3a1f9c9d998c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7075/e55a5724d25a08ab1a8b3ca4b24f3a1f9c9d998c/dockbarx.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
84,
7755,
67,
25724,
12,
2890,
16,
2575,
16,
892,
33,
7036,
4672,
28184,
6353,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
603,
67,
84,
7755,
67,
25724,
12,
2890,
16,
2575,
16,
892,
33,
7036,
4672,
28184,
6353,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
select.error, thread.error, socket.error):
|
select.error, threading.ThreadError, socket.error):
|
def checkReconnectSwitch(self): # A fallback client initially connects to a read-only server, # then discovers a read-write server and switches to that
|
3cd508c395275293f366cb0b9dcf0fa90db32808 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10048/3cd508c395275293f366cb0b9dcf0fa90db32808/ConnectionTests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
20427,
10200,
12,
2890,
4672,
468,
432,
5922,
1004,
22458,
23441,
358,
279,
855,
17,
3700,
1438,
16,
468,
1508,
1015,
14014,
414,
279,
855,
17,
2626,
1438,
471,
28216,
358,
716,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
20427,
10200,
12,
2890,
4672,
468,
432,
5922,
1004,
22458,
23441,
358,
279,
855,
17,
3700,
1438,
16,
468,
1508,
1015,
14014,
414,
279,
855,
17,
2626,
1438,
471,
28216,
358,
716,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return self.db.untransform_record_data(self._untransform(data))
|
return self._db_untransform(self._untransform(data))
|
def untransform_record_data(self, data): return self.db.untransform_record_data(self._untransform(data))
|
34b8ee72b590e823c6ddc5f50fc447eb69ab6b9c /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8677/34b8ee72b590e823c6ddc5f50fc447eb69ab6b9c/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
640,
6547,
67,
3366,
67,
892,
12,
2890,
16,
501,
4672,
327,
365,
18,
1966,
18,
318,
6547,
67,
3366,
67,
892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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
640,
6547,
67,
3366,
67,
892,
12,
2890,
16,
501,
4672,
327,
365,
18,
1966,
18,
318,
6547,
67,
3366,
67,
892,
12,
2890,
6315,
318,
6547,
12,
892,
3719,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Returns an object implementing IConnector. This connector will call various callbacks on the factory when a connection is made, failed, or lost - see ClientFactory docs for details.
|
@returns: An object implementing IConnector. This connector will call various callbacks on the factory when a connection is made, failed, or lost - see ClientFactory docs for details.
|
def connectTCP(self, host, port, factory, timeout=30, bindAddress=None): """Connect a TCP client.
|
97e07c1876e6ccb6aa36e03f4d9706ee6e059380 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/97e07c1876e6ccb6aa36e03f4d9706ee6e059380/interfaces.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3077,
13891,
12,
2890,
16,
1479,
16,
1756,
16,
3272,
16,
2021,
33,
5082,
16,
1993,
1887,
33,
7036,
4672,
3536,
5215,
279,
9911,
1004,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3077,
13891,
12,
2890,
16,
1479,
16,
1756,
16,
3272,
16,
2021,
33,
5082,
16,
1993,
1887,
33,
7036,
4672,
3536,
5215,
279,
9911,
1004,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print "Warning: Could not find trajectory for variable " + name
|
print "Warning: Could not find trajectory for input variable " + name
|
def set_initial_from_dymola(self,res, hs_init, start_time_init, final_time_init): """ Initialize the optimization vector from an object of either ResultDymolaTextual or ResultDymolaBinary.
|
6d8e2cb4182c2b7be72da092b65eeabc29b1019a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7711/6d8e2cb4182c2b7be72da092b65eeabc29b1019a/ipopt.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
6769,
67,
2080,
67,
72,
2942,
355,
69,
12,
2890,
16,
455,
16,
12670,
67,
2738,
16,
787,
67,
957,
67,
2738,
16,
727,
67,
957,
67,
2738,
4672,
3536,
9190,
326,
14850,
3806,
628,
392,
733,
434,
3344,
3438,
40,
2942,
355,
69,
1528,
1462,
578,
3438,
40,
2942,
355,
69,
5905,
18,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
2738,
16,
787,
67,
957,
67,
2738,
16,
727,
67,
957,
67,
2738,
4672,
3536,
9190,
326,
14850,
3806,
628,
392,
733,
434,
3344,
3438,
40,
2942,
355,
69,
1528,
1462,
578,
3438,
40,
2942,
355,
69,
5905,
18,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
""" Prepend dir to path removing duplicates if necessery (also from previous versions) based on the prefix. """ newpath = "" matched = 0 for d in p.split(':'): if newpath: newpath += ':' if d.find(prefix) != -1: newpath += dir matched = 1 else: newpath += d if not matched: if newpath: newpath = dir+':'+newpath else: newpath = dir return newpath
|
""" Prepend dir to path removing duplicates if necessery (also from previous versions) based on the prefix. """ newpath = "" matched = 0 for d in p.split(':'): if newpath: newpath += ':' if d.find(prefix) != -1: newpath += dir matched = 1 else: newpath += d if not matched: if newpath: newpath = dir+':'+newpath else: newpath = dir return newpath
|
def prepend_search_path(p,dir,prefix): """ Prepend dir to path removing duplicates if necessery (also from previous versions) based on the prefix. """ newpath = "" matched = 0 for d in p.split(':'): if newpath: newpath += ':' if d.find(prefix) != -1: newpath += dir matched = 1 else: newpath += d if not matched: if newpath: newpath = dir+':'+newpath else: newpath = dir return newpath
|
2379c2f53950ecf327966e75adef9bde63f974f9 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1488/2379c2f53950ecf327966e75adef9bde63f974f9/ganga_setup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8254,
67,
3072,
67,
803,
12,
84,
16,
1214,
16,
3239,
4672,
3536,
28466,
1577,
358,
589,
9427,
11211,
309,
290,
3957,
627,
261,
31144,
628,
2416,
5244,
13,
2511,
603,
326,
1633,
18,
3536,
25094,
273,
1408,
4847,
273,
374,
364,
302,
316,
293,
18,
4939,
2668,
2497,
4672,
309,
25094,
30,
25094,
1011,
3921,
309,
302,
18,
4720,
12,
3239,
13,
480,
300,
21,
30,
25094,
1011,
1577,
4847,
273,
404,
469,
30,
25094,
1011,
302,
309,
486,
4847,
30,
309,
25094,
30,
25094,
273,
1577,
6797,
2497,
15,
2704,
803,
469,
30,
25094,
273,
1577,
327,
25094,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8254,
67,
3072,
67,
803,
12,
84,
16,
1214,
16,
3239,
4672,
3536,
28466,
1577,
358,
589,
9427,
11211,
309,
290,
3957,
627,
261,
31144,
628,
2416,
5244,
13,
2511,
603,
326,
1633,
18,
3536,
25094,
273,
1408,
4847,
273,
374,
364,
302,
316,
293,
18,
4939,
2668,
2497,
4672,
309,
25094,
30,
25094,
1011,
3921,
309,
302,
18,
4720,
12,
3239,
13,
480,
300,
21,
30,
25094,
1011,
1577,
4847,
273,
404,
469,
30,
25094,
1011,
302,
309,
486,
4847,
30,
309,
25094,
30,
25094,
273,
1577,
6797,
2497,
15,
2704,
803,
469,
30,
25094,
273,
1577,
327,
25094,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.db[key] = value
|
self.db[self.get_key(key)] = value
|
def __setitem__(self, key, value): self.db[key] = value
|
a08514b3b41d65d0b4eeeab9bc1fba226b60ec13 /local1/tlutelli/issta_data/tem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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
542,
1726,
972,
12,
2890,
16,
498,
16,
460,
4672,
365,
18,
1966,
63,
2890,
18,
588,
67,
856,
12,
856,
25887,
273,
460,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
for m in modorpack.orderedcontents:
|
for m in sorted(modorpack.orderedcontents, key=lambda m.fullName()):
|
def moduleSummary(modorpack): r = [tags.li[taglink(modorpack), ' - ', doc2html(modorpack, summary=True)]] if isinstance(modorpack, model.Package) and len(modorpack.orderedcontents) > 1: ul = tags.ul() for m in modorpack.orderedcontents: if m.name != '__init__': ul[moduleSummary(m)] r.append(ul) return r
|
c196a4e3b7587c610193f1a3b10d93e92eb15424 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/5471/c196a4e3b7587c610193f1a3b10d93e92eb15424/nevowhtml.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1605,
4733,
12,
1711,
280,
2920,
4672,
436,
273,
306,
4156,
18,
549,
63,
2692,
1232,
12,
1711,
280,
2920,
3631,
296,
300,
2265,
997,
22,
2620,
12,
1711,
280,
2920,
16,
4916,
33,
5510,
13,
13563,
309,
1549,
12,
1711,
280,
2920,
16,
938,
18,
2261,
13,
471,
562,
12,
1711,
280,
2920,
18,
9885,
3980,
13,
405,
404,
30,
7493,
273,
2342,
18,
332,
1435,
364,
312,
316,
3115,
12,
1711,
280,
2920,
18,
9885,
3980,
16,
498,
33,
14661,
312,
18,
2854,
461,
1435,
4672,
309,
312,
18,
529,
480,
4940,
2738,
972,
4278,
7493,
63,
2978,
4733,
12,
81,
25887,
436,
18,
6923,
12,
332,
13,
327,
436,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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3631,
296,
300,
2265,
997,
22,
2620,
12,
1711,
280,
2920,
16,
4916,
33,
5510,
13,
13563,
309,
1549,
12,
1711,
280,
2920,
16,
938,
18,
2261,
13,
471,
562,
12,
1711,
280,
2920,
18,
9885,
3980,
13,
405,
404,
30,
7493,
273,
2342,
18,
332,
1435,
364,
312,
316,
3115,
12,
1711,
280,
2920,
18,
9885,
3980,
16,
498,
33,
14661,
312,
18,
2854,
461,
1435,
4672,
309,
312,
18,
529,
480,
4940,
2738,
972,
4278,
7493,
63,
2978,
4733,
12,
81,
25887,
436,
18,
6923,
12,
332,
13,
327,
436,
225,
2,
-100,
-100,
-100,
-100,
-100
] |
(self.message.method, self.message.path, self.message.proto)))
|
(message.method, message.path, message.proto)))
|
def send_message(self, message): message.extract_request() self.send_line(' '.join( (self.message.method, self.message.path, self.message.proto))) self.send_line('Connection: close') for line in message.headers[1:]: if not (line.startswith('Keep-Alive: ') or line.startswith('Connection: ') or line.startswith('Proxy-')): self.send_line(line) self.send_line('') self.buffer.append(message.data)
|
aaac96e2d79bfc7b9f2da4537d314d493a2b7089 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3111/aaac96e2d79bfc7b9f2da4537d314d493a2b7089/throxy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1366,
67,
2150,
12,
2890,
16,
883,
4672,
883,
18,
8004,
67,
2293,
1435,
365,
18,
4661,
67,
1369,
2668,
2418,
5701,
12,
261,
2150,
18,
2039,
16,
883,
18,
803,
16,
883,
18,
9393,
20349,
365,
18,
4661,
67,
1369,
2668,
1952,
30,
1746,
6134,
364,
980,
316,
883,
18,
2485,
63,
21,
30,
14542,
309,
486,
261,
1369,
18,
17514,
1918,
2668,
11523,
17,
10608,
30,
8624,
578,
980,
18,
17514,
1918,
2668,
1952,
30,
8624,
578,
980,
18,
17514,
1918,
2668,
3886,
6627,
3719,
30,
365,
18,
4661,
67,
1369,
12,
1369,
13,
365,
18,
4661,
67,
1369,
2668,
6134,
365,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1366,
67,
2150,
12,
2890,
16,
883,
4672,
883,
18,
8004,
67,
2293,
1435,
365,
18,
4661,
67,
1369,
2668,
2418,
5701,
12,
261,
2150,
18,
2039,
16,
883,
18,
803,
16,
883,
18,
9393,
20349,
365,
18,
4661,
67,
1369,
2668,
1952,
30,
1746,
6134,
364,
980,
316,
883,
18,
2485,
63,
21,
30,
14542,
309,
486,
261,
1369,
18,
17514,
1918,
2668,
11523,
17,
10608,
30,
8624,
578,
980,
18,
17514,
1918,
2668,
1952,
30,
8624,
578,
980,
18,
17514,
1918,
2668,
3886,
6627,
3719,
30,
365,
18,
4661,
67,
1369,
12,
1369,
13,
365,
18,
4661,
67,
1369,
2668,
6134,
365,
18,
4106,
18,
6923,
12,
2150,
18,
892,
13,
2,
-100,
-100,
-100,
-100,
-100
] |
def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None):
|
def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None):
|
def __init__(self, count=1, trace=1, countfuncs=0, ignoremods=(), ignoredirs=(), infile=None, outfile=None): """ @param count true iff it should count number of times each line is executed @param trace true iff it should print out each line that is being counted @param countfuncs true iff it should just output a list of (filename, modulename, funcname,) for functions that were called at least once; This overrides `count' and `trace' @param ignoremods a list of the names of modules to ignore @param ignoredirs a list of the names of directories to ignore all of the (recursive) contents of @param infile file from which to read stored counts to be added into the results @param outfile file in which to write the results """ self.infile = infile self.outfile = outfile self.ignore = Ignore(ignoremods, ignoredirs) self.counts = {} # keys are (filename, linenumber) self.blabbed = {} # for debugging self.pathtobasename = {} # for memoizing os.path.basename self.donothing = 0 self.trace = trace self._calledfuncs = {} if countfuncs: self.globaltrace = self.globaltrace_countfuncs elif trace and count: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_trace_and_count elif trace: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_trace elif count: self.globaltrace = self.globaltrace_lt self.localtrace = self.localtrace_count else: # Ahem -- do nothing? Okay. self.donothing = 1
|
1255e8bca5f975b133653db2e2f74b0d4cb7a9da /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/1255e8bca5f975b133653db2e2f74b0d4cb7a9da/trace.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
3536,
632,
891,
1056,
638,
21437,
518,
1410,
1056,
1300,
434,
4124,
1517,
980,
353,
7120,
632,
891,
2606,
638,
21437,
518,
1410,
1172,
596,
1517,
980,
716,
353,
3832,
26352,
632,
891,
1056,
17728,
638,
21437,
518,
1410,
2537,
876,
279,
666,
434,
261,
3459,
16,
31961,
16,
1326,
529,
16,
13,
364,
4186,
716,
4591,
2566,
622,
4520,
3647,
31,
225,
1220,
9515,
1375,
1883,
11,
471,
1375,
5129,
11,
632,
891,
2305,
22760,
279,
666,
434,
326,
1257,
434,
4381,
358,
2305,
632,
891,
2305,
8291,
279,
666,
434,
326,
1257,
434,
6402,
358,
2305,
777,
434,
326,
261,
10543,
13,
2939,
434,
632,
891,
14568,
585,
628,
1492,
358,
855,
4041,
6880,
358,
506,
3096,
1368,
326,
1686,
632,
891,
8756,
585,
316,
1492,
358,
1045,
326,
1686,
3536,
365,
18,
267,
768,
273,
14568,
365,
18,
26050,
273,
8756,
365,
18,
6185,
273,
8049,
12,
6185,
22760,
16,
2305,
8291,
13,
365,
18,
8008,
273,
2618,
282,
468,
1311,
854,
261,
3459,
16,
4739,
21998,
13,
365,
18,
3083,
378,
2992,
273,
2618,
468,
364,
10450,
365,
18,
803,
869,
13909,
273,
2618,
468,
364,
11063,
6894,
1140,
18,
803,
18,
13909,
365,
18,
19752,
352,
4018,
273,
374,
365,
18,
5129,
273,
2606,
365,
6315,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1056,
33,
21,
16,
2606,
33,
21,
16,
1056,
17728,
33,
20,
16,
2305,
22760,
33,
9334,
2305,
8291,
33,
9334,
14568,
33,
7036,
16,
8756,
33,
7036,
4672,
3536,
632,
891,
1056,
638,
21437,
518,
1410,
1056,
1300,
434,
4124,
1517,
980,
353,
7120,
632,
891,
2606,
638,
21437,
518,
1410,
1172,
596,
1517,
980,
716,
353,
3832,
26352,
632,
891,
1056,
17728,
638,
21437,
518,
1410,
2537,
876,
279,
666,
434,
261,
3459,
16,
31961,
16,
1326,
529,
16,
13,
364,
4186,
716,
4591,
2566,
622,
4520,
3647,
31,
225,
1220,
9515,
1375,
1883,
11,
471,
1375,
5129,
11,
632,
891,
2305,
22760,
279,
666,
434,
326,
1257,
434,
4381,
2
] |
None, [cty.POINTER(FL_OBJECT), STRING],
|
None, [cty.POINTER(FL_OBJECT), STRING],
|
def fl_set_folder(ob, form): """ fl_set_folder(ob, form) """ _fl_set_folder(ob, form)
|
9942dac8ce2b35a1e43615a26fd8e7054ef805d3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/2429/9942dac8ce2b35a1e43615a26fd8e7054ef805d3/xformslib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1183,
67,
542,
67,
5609,
12,
947,
16,
646,
4672,
3536,
1183,
67,
542,
67,
5609,
12,
947,
16,
646,
13,
3536,
225,
389,
2242,
67,
542,
67,
5609,
12,
947,
16,
646,
13,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1183,
67,
542,
67,
5609,
12,
947,
16,
646,
4672,
3536,
1183,
67,
542,
67,
5609,
12,
947,
16,
646,
13,
3536,
225,
389,
2242,
67,
542,
67,
5609,
12,
947,
16,
646,
13,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.inenclosure = 1
|
self.inenclosure += 1
|
def _start_enclosure(self, attrsD): self.inenclosure = 1 attrsD = self._itsAnHrefDamnIt(attrsD) self._getContext().setdefault('enclosures', []).append(FeedParserDict(attrsD)) href = attrsD.get('href') if href: context = self._getContext() if not context.get('id'): context['id'] = href
|
3f76623982d76bdcc9659f24af7e8899c23dbb94 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12354/3f76623982d76bdcc9659f24af7e8899c23dbb94/feedparser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1937,
67,
1331,
5919,
12,
2890,
16,
3422,
40,
4672,
365,
18,
267,
1331,
5919,
1011,
404,
3422,
40,
273,
365,
6315,
1282,
979,
15962,
40,
301,
82,
7193,
12,
7039,
40,
13,
365,
6315,
29120,
7675,
542,
1886,
2668,
1331,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1937,
67,
1331,
5919,
12,
2890,
16,
3422,
40,
4672,
365,
18,
267,
1331,
5919,
1011,
404,
3422,
40,
273,
365,
6315,
1282,
979,
15962,
40,
301,
82,
7193,
12,
7039,
40,
13,
365,
6315,
29120,
7675,
542,
1886,
2668,
1331,
383,
8421,
2187,
5378,
2934,
6923,
12,
8141,
2678,
5014,
12,
7039,
40,
3719,
3897,
273,
3422,
40,
18,
588,
2668,
7547,
6134,
309,
3897,
30,
819,
273,
365,
6315,
29120,
1435,
309,
486,
819,
18,
588,
2668,
350,
11,
4672,
819,
3292,
350,
3546,
273,
3897,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
the variables constants and the others the original variables, but should be much faster.
|
the variables constants and the others the original variables.
|
def fix(self, fixed=None, **kw): """ Fixes some given variables in a given multivariate polynomial and returns the changed multivariate polynomials. The polynomial itself is not affected. The variable,value pairs for fixing are to be provided as dictionary of the form {variable:value}.
|
0f8dedaf07d1f17e9858c06714e1e6c8c670836f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/0f8dedaf07d1f17e9858c06714e1e6c8c670836f/multi_polynomial_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2917,
12,
2890,
16,
5499,
33,
7036,
16,
2826,
9987,
4672,
3536,
12139,
281,
2690,
864,
3152,
316,
279,
864,
1778,
27693,
16991,
471,
1135,
326,
3550,
1778,
27693,
16991,
87,
18,
1021,
16991,
6174,
353,
486,
9844,
18,
225,
1021,
2190,
16,
1132,
5574,
364,
28716,
854,
358,
506,
2112,
487,
3880,
434,
326,
646,
288,
6105,
30,
1132,
5496,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2917,
12,
2890,
16,
5499,
33,
7036,
16,
2826,
9987,
4672,
3536,
12139,
281,
2690,
864,
3152,
316,
279,
864,
1778,
27693,
16991,
471,
1135,
326,
3550,
1778,
27693,
16991,
87,
18,
1021,
16991,
6174,
353,
486,
9844,
18,
225,
1021,
2190,
16,
1132,
5574,
364,
28716,
854,
358,
506,
2112,
487,
3880,
434,
326,
646,
288,
6105,
30,
1132,
5496,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if call_id == -1:
|
if call_id != -1:
|
def _cb_on_pager_status(self, call_id, to_uri, body, user_data, code, reason, acc_id): call = None if call_id == -1: call = self._lookup_call(call_id) if call: call._cb.on_pager_status(body, user_data, code, reason) else: acc = self._lookup_account(acc_id) buddy = self._lookup_buddy(-1, to_uri) if buddy: buddy._cb.on_pager_status(body, user_data, code, reason) else: acc._cb.on_pager_status(to_uri, body, user_data, code, reason)
|
763da97bb5cd340898d1ac8173a5bc40a4fd5973 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/1375/763da97bb5cd340898d1ac8173a5bc40a4fd5973/pjsua.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7358,
67,
265,
67,
24081,
67,
2327,
12,
2890,
16,
745,
67,
350,
16,
358,
67,
1650,
16,
1417,
16,
729,
67,
892,
16,
981,
16,
3971,
16,
4078,
67,
350,
4672,
745,
273,
599,
309,
745,
67,
350,
480,
300,
21,
30,
745,
273,
365,
6315,
8664,
67,
1991,
12,
1991,
67,
350,
13,
309,
745,
30,
745,
6315,
7358,
18,
265,
67,
24081,
67,
2327,
12,
3432,
16,
729,
67,
892,
16,
981,
16,
3971,
13,
469,
30,
4078,
273,
365,
6315,
8664,
67,
4631,
12,
8981,
67,
350,
13,
324,
29017,
273,
365,
6315,
8664,
67,
70,
29017,
19236,
21,
16,
358,
67,
1650,
13,
309,
324,
29017,
30,
324,
29017,
6315,
7358,
18,
265,
67,
24081,
67,
2327,
12,
3432,
16,
729,
67,
892,
16,
981,
16,
3971,
13,
469,
30,
4078,
6315,
7358,
18,
265,
67,
24081,
67,
2327,
12,
869,
67,
1650,
16,
1417,
16,
729,
67,
892,
16,
981,
16,
3971,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
67,
2327,
12,
2890,
16,
745,
67,
350,
16,
358,
67,
1650,
16,
1417,
16,
729,
67,
892,
16,
981,
16,
3971,
16,
4078,
67,
350,
4672,
745,
273,
599,
309,
745,
67,
350,
480,
300,
21,
30,
745,
273,
365,
6315,
8664,
67,
1991,
12,
1991,
67,
350,
13,
309,
745,
30,
745,
6315,
7358,
18,
265,
67,
24081,
67,
2327,
12,
3432,
16,
729,
67,
892,
16,
981,
16,
3971,
13,
469,
30,
4078,
273,
365,
6315,
8664,
67,
4631,
12,
8981,
67,
350,
13,
324,
29017,
273,
365,
6315,
8664,
67,
70,
29017,
19236,
21,
16,
358,
67,
1650,
13,
309,
324,
29017,
30,
324,
29017,
6315,
7358,
18,
2
] |
title = "Édition du groupe %s" % name
|
title = _("Editing group %s") % name
|
def edit(uri, name) : """Edit a group.""" users.reload() groups.reload() u = users.users g = groups.groups title = "Édition du groupe %s" % name data = '%s\n%s\n%s\n' % (w.backto(), __groups_actions(), w.menu(uri)) try : group = g[groups.name_to_gid(name)] sys = groups.is_system_group(name) dbl_lists = {} if sys : groups_filters_lists_ids = ( (name, ( 'Gérer les membres', 'Utilisateurs non affectés', 'Membres actuels' ), 'members' ), (configuration.groups.resp_prefix + name, None, ' ' ), (configuration.groups.guest_prefix + name, None, ' ' ) ) else : groups_filters_lists_ids = ( (name, ['Gérer les membres', 'Utilisateurs non affectés', 'Membres actuels'], 'members'), (configuration.groups.resp_prefix + name, ['Gérer les responsables', 'Utilisateurs non affectés', 'Responsables actuels'], 'resps'), (configuration.groups.guest_prefix + name, ['Gérer les invités', 'Utilisateurs non affectés', 'Invités actuels'], 'guests') ) for (gname, titles, id) in groups_filters_lists_ids : if titles is None : dbl_lists[gname] = id else : users.Select(users.FILTER_STANDARD) dest = g[groups.name_to_gid(gname)]['members'][:] source = [ u[uid]['login'] for uid in users.filtered_users ] for current in g[groups.name_to_gid(gname)]['members'] : try : source.remove(current) except ValueError : dest.remove(current) dest.sort() source.sort() dbl_lists[gname] = w.doubleListBox(titles, id, source, dest) def descr(desc, system) : if system : return desc else : return w.input('description', desc, size = 30, maxlength = 256, accesskey = 'D') def skel(cur_skel, system) : if system : return '' else : return ''' <tr> <td><strong>Squelette</strong></td><td>%s</td> </tr> ''' % w.select('skel', configuration.users.skels, cur_skel, func = os.path.basename) def permissive(perm, sys) : if sys : return '' else : return ''' <tr> <td><strong>Répertoire permissif ?</strong></td><td>%s</td> </tr> ''' % w.checkbox('permissive', "True", "Oui", checked = perm ) form_name = "user_edit_form" data += '''<div id="content">
|
690f3241794eb1e9043f01ac59d34922393aa298 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7650/690f3241794eb1e9043f01ac59d34922393aa298/groups.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
1650,
16,
508,
13,
294,
3536,
4666,
279,
1041,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
582,
273,
3677,
18,
5577,
314,
273,
3252,
18,
4650,
225,
2077,
273,
389,
2932,
28029,
1041,
738,
87,
7923,
738,
225,
508,
501,
225,
273,
1995,
87,
64,
82,
9,
87,
64,
82,
9,
87,
64,
82,
11,
738,
261,
91,
18,
823,
869,
9334,
1001,
4650,
67,
4905,
9334,
341,
18,
5414,
12,
1650,
3719,
225,
775,
294,
1041,
377,
273,
314,
63,
4650,
18,
529,
67,
869,
67,
15780,
12,
529,
25887,
2589,
4202,
273,
3252,
18,
291,
67,
4299,
67,
1655,
12,
529,
13,
1319,
80,
67,
9772,
273,
2618,
225,
309,
2589,
294,
3252,
67,
6348,
67,
9772,
67,
2232,
282,
273,
261,
261,
529,
16,
261,
296,
43,
132,
107,
86,
264,
18022,
1663,
70,
455,
2187,
296,
1304,
24954,
87,
1661,
13418,
132,
107,
87,
2187,
296,
3545,
70,
455,
1328,
89,
10558,
11,
262,
16,
296,
7640,
11,
262,
16,
261,
7025,
18,
4650,
18,
12243,
67,
3239,
397,
508,
16,
599,
16,
21312,
16874,
4359,
262,
16,
261,
7025,
18,
4650,
18,
18908,
67,
3239,
397,
508,
16,
599,
16,
21312,
16874,
4359,
262,
262,
469,
294,
3252,
67,
6348,
67,
9772,
67,
2232,
273,
261,
261,
529,
16,
5411,
10228,
43,
132,
107,
86,
264,
18022,
1663,
70,
455,
2187,
1377,
296,
1304,
24954,
87,
1661,
13418,
132,
107,
87,
2187,
296,
3545,
70,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3874,
12,
1650,
16,
508,
13,
294,
3536,
4666,
279,
1041,
12123,
225,
3677,
18,
17517,
1435,
3252,
18,
17517,
1435,
225,
582,
273,
3677,
18,
5577,
314,
273,
3252,
18,
4650,
225,
2077,
273,
389,
2932,
28029,
1041,
738,
87,
7923,
738,
225,
508,
501,
225,
273,
1995,
87,
64,
82,
9,
87,
64,
82,
9,
87,
64,
82,
11,
738,
261,
91,
18,
823,
869,
9334,
1001,
4650,
67,
4905,
9334,
341,
18,
5414,
12,
1650,
3719,
225,
775,
294,
1041,
377,
273,
314,
63,
4650,
18,
529,
67,
869,
67,
15780,
12,
529,
25887,
2589,
4202,
273,
3252,
18,
291,
67,
4299,
67,
1655,
12,
529,
13,
1319,
80,
67,
9772,
273,
2618,
225,
309,
2
] |
namespace = self._classes[fileId]["namespace"] relpath = self._classes[fileId]["relpath"] lib = self._libs[namespace] cUri = self._computeResourceUri(lib, relpath, rType='class', appRoot=self.approot) cUri = self._encodeUri(cUri) sUri = relpath sUri = os.path.normpath(sUri) sUri = Path.posifyPath(sUri) sUri = self._encodeUri(sUri) sUri = '%s:%s' % (namespace, sUri) packageUris.append('"%s"' % cUri) packageUrisSmall.append('"%s"' % sUri) allUris.append("[" + ",".join(packageUris) + "]") allUrisSmall.append("[" + ",".join(packageUrisSmall) + "]") uriData = "[" + ",\n".join(allUris) + "]" uriDataSmall = "[" + ",\n".join(allUrisSmall) + "]" loaderFile = os.path.join(filetool.root(), os.pardir, "data", "generator", "loader-source.tmpl.js") result = filetool.read(loaderFile) rmap = {} rmap.update(globalCodes) rmap["Parts"] = partData rmap["Uris"] = uriData rmap["Uris2"] = uriDataSmall rmap["Boot"] = '"%s"' % boot templ = MyTemplate(result) result = templ.safe_substitute(rmap) return result def generateSourcePackageCode(self, parts, packages, boot, globalCodes, format=False): if not parts: return "" partData = "{" for partId in parts: partData += '"%s":' % (partId) partData += ('%s,' % parts[partId]).replace(" ", "") partData=partData[:-1] + "}" allUris = [] allUrisSmall = [] for packageId, package in enumerate(packages): packageUris = [] packageUrisSmall = [] for fileId in package: namespace = self._classes[fileId]["namespace"] relpath = self._classes[fileId]["relpath"] lib = self._libs[namespace] cUri = self._computeResourceUri(lib, relpath, rType='class', appRoot=self.approot) sUri = Uri(OsPath(relpath).toUri()) sUri = '%s:%s' % (namespace, sUri.value()) packageUris.append('"%s"' % cUri) packageUrisSmall.append('"%s"' % sUri)
|
namespace = self._classes[fileId]["namespace"] relpath = OsPath(self._classes[fileId]["relpath"]) lib = self._libs[namespace] classUri = self._computeResourceUri(lib, relpath, rType='class', appRoot=self.approot) shortUri = Uri(relpath.toUri()) packageUris.append('"%s"' % classUri.encodedValue()) packageUrisSmall.append('"%s:%s"' % (namespace, shortUri.encodedValue()))
|
def generateSourcePackageCode0(self, parts, packages, boot, globalCodes, format=False): if not parts: return ""
|
6c1607de6e1c540f791e595f73bd040a2fd94679 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5718/6c1607de6e1c540f791e595f73bd040a2fd94679/CodeGenerator.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1830,
2261,
1085,
20,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
2552,
6295,
16,
740,
33,
8381,
4672,
309,
486,
2140,
30,
327,
1408,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2103,
1830,
2261,
1085,
20,
12,
2890,
16,
2140,
16,
5907,
16,
4835,
16,
2552,
6295,
16,
740,
33,
8381,
4672,
309,
486,
2140,
30,
327,
1408,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
method = getattr(self, "irc_%s" % command, None) try: if method is not None: method(prefix, params) else: self.irc_unknown(prefix, command, params) except: log.deferr()
|
self.handleCommand(command, prefix, params) def handleCommand(self, command, prefix, params): """Determine the function to call for the given command and call it with the given arguments. """ method = getattr(self, "irc_%s" % command, None) try: if method is not None: method(prefix, params) else: self.irc_unknown(prefix, command, params) except: log.deferr()
|
def dataReceived(self, data): """This hack is to support mIRC, which sends LF only, even though the RFC says CRLF. (Also, the flexibility of LineReceiver to turn "line mode" on and off was not required.) """ self.buffer = self.buffer + data lines = string.split(self.buffer, LF) # Put the (possibly empty) element after the last LF back in the # buffer self.buffer = lines.pop()
|
c7c0043bdffda58d13dd58d76c46129051e91bf2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/c7c0043bdffda58d13dd58d76c46129051e91bf2/irc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
501,
8872,
12,
2890,
16,
501,
4672,
3536,
2503,
11769,
353,
358,
2865,
312,
30240,
16,
1492,
9573,
18803,
1338,
16,
5456,
11376,
326,
8372,
20185,
21791,
18,
225,
261,
1067,
2048,
16,
326,
16600,
3628,
434,
5377,
12952,
358,
7005,
315,
1369,
1965,
6,
603,
471,
3397,
1703,
486,
1931,
12998,
3536,
365,
18,
4106,
273,
365,
18,
4106,
397,
501,
2362,
273,
533,
18,
4939,
12,
2890,
18,
4106,
16,
18803,
13,
468,
4399,
326,
261,
917,
8781,
1008,
13,
930,
1839,
326,
1142,
18803,
1473,
316,
326,
468,
1613,
365,
18,
4106,
273,
2362,
18,
5120,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
501,
8872,
12,
2890,
16,
501,
4672,
3536,
2503,
11769,
353,
358,
2865,
312,
30240,
16,
1492,
9573,
18803,
1338,
16,
5456,
11376,
326,
8372,
20185,
21791,
18,
225,
261,
1067,
2048,
16,
326,
16600,
3628,
434,
5377,
12952,
358,
7005,
315,
1369,
1965,
6,
603,
471,
3397,
1703,
486,
1931,
12998,
3536,
365,
18,
4106,
273,
365,
18,
4106,
397,
501,
2362,
273,
533,
18,
4939,
12,
2890,
18,
4106,
16,
18803,
13,
468,
4399,
326,
261,
917,
8781,
1008,
13,
930,
1839,
326,
1142,
18803,
1473,
316,
326,
468,
1613,
365,
18,
4106,
273,
2362,
18,
5120,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
add_link(req, what, self.env.href.log(path, **args),
|
return self.env.href.log(path, **args) def add_page_link(what, page): add_link(req, what, make_log_href(page=page, pages=urllib.quote_plus(' '.join(pages))),
|
def add_page_link(what, page): args = { 'rev': rev, 'log_mode': log_mode, 'limit': limit, 'page': page, 'pages': urllib.quote_plus(' '.join(pages)), } if full_messages: args['full_messages'] = full_messages add_link(req, what, self.env.href.log(path, **args), 'Revision Log (Page %d)' % (page))
|
157d852e334a1bd7594d87e0a099c7a011249e6e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9317/157d852e334a1bd7594d87e0a099c7a011249e6e/Browser.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
67,
2433,
67,
1232,
12,
23770,
16,
1363,
4672,
833,
273,
288,
296,
9083,
4278,
5588,
16,
296,
1330,
67,
3188,
4278,
613,
67,
3188,
16,
296,
3595,
4278,
1800,
16,
296,
2433,
4278,
1363,
16,
296,
7267,
4278,
11527,
18,
6889,
67,
10103,
2668,
2418,
5701,
12,
7267,
13,
3631,
289,
309,
1983,
67,
6833,
30,
833,
3292,
2854,
67,
6833,
3546,
273,
1983,
67,
6833,
327,
365,
18,
3074,
18,
7547,
18,
1330,
12,
803,
16,
2826,
1968,
13,
225,
1652,
527,
67,
2433,
67,
1232,
12,
23770,
16,
1363,
4672,
527,
67,
1232,
12,
3658,
16,
4121,
16,
1221,
67,
1330,
67,
7547,
12,
2433,
33,
2433,
16,
4689,
33,
718,
2941,
18,
6889,
67,
10103,
2668,
2418,
5701,
12,
7267,
3719,
3631,
296,
7939,
1827,
261,
1964,
738,
72,
2506,
738,
261,
2433,
3719,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
18,
6889,
67,
10103,
2668,
2418,
5701,
12,
7267,
13,
3631,
289,
309,
1983,
67,
6833,
30,
833,
3292,
2854,
67,
6833,
3546,
273,
1983,
67,
6833,
327,
365,
18,
3074,
18,
7547,
18,
1330,
12,
803,
16,
2826,
1968,
13,
225,
1652,
527,
67,
2433,
67,
1232,
12,
23770,
16,
1363,
4672,
527,
67,
1232,
12,
3658,
16,
4121,
16,
1221,
67,
1330,
67,
7547,
12,
2433,
33,
2433,
16,
4689,
33,
718,
2941,
18,
6889,
2
] |
statusDir = '%s/%s' % (reqDir,status) if os.path.isdir(statusDir): requestNames = os.listdir(statusDir)
|
statusDir = '%s/%s' % ( reqDir, status ) if os.path.isdir( statusDir ): requestNames = os.listdir( statusDir )
|
def __locateRequest(self,requestName,assigned=False): """ Locate the sub requests associated with a requestName """ gLogger.info("RequestDBFile.__locateRequest: Attempting to locate %s." % requestName) requestTypes = os.listdir(self.root) subRequests = [] try: for requestType in requestTypes: reqDir = "%s/%s" % (self.root,requestType) if os.path.isdir(reqDir): statusList = os.listdir(reqDir) if not assigned and 'Assigned' in statusList: statusList.remove('Assigned') for status in statusList: statusDir = '%s/%s' % (reqDir,status) if os.path.isdir(statusDir): requestNames = os.listdir(statusDir) if requestName in requestNames: requestPath = '%s/%s' % (statusDir,requestName) subRequests.append(requestPath) gLogger.info("RequestDBFile.__locateRequest: Successfully located %s." % requestName) return S_OK(subRequests) except Exception, x: errStr = "RequestDBFile.__locateRequest: Exception while locating request." gLogger.exception(errStr,requestName,lException=x) return S_ERROR(errStr)
|
457151afa0c3cb1200853bb72493b03e8f994fca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/457151afa0c3cb1200853bb72493b03e8f994fca/RequestDBFile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
25450,
691,
12,
2890,
16,
2293,
461,
16,
15938,
33,
8381,
4672,
3536,
2851,
340,
326,
720,
3285,
3627,
598,
279,
590,
461,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
16186,
25450,
691,
30,
12864,
310,
358,
10627,
738,
87,
1199,
738,
590,
461,
13,
590,
2016,
273,
1140,
18,
1098,
1214,
12,
2890,
18,
3085,
13,
720,
6421,
273,
5378,
775,
30,
364,
27179,
316,
590,
2016,
30,
1111,
1621,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
3085,
16,
2293,
559,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
3658,
1621,
4672,
1267,
682,
273,
1140,
18,
1098,
1214,
12,
3658,
1621,
13,
309,
486,
6958,
471,
296,
20363,
11,
316,
1267,
682,
30,
1267,
682,
18,
4479,
2668,
20363,
6134,
364,
1267,
316,
1267,
682,
30,
1267,
1621,
273,
1995,
87,
5258,
87,
11,
738,
261,
1111,
1621,
16,
1267,
262,
309,
1140,
18,
803,
18,
291,
1214,
12,
1267,
1621,
262,
30,
590,
1557,
273,
1140,
18,
1098,
1214,
12,
1267,
1621,
262,
309,
590,
461,
316,
590,
1557,
30,
23691,
273,
1995,
87,
5258,
87,
11,
738,
261,
2327,
1621,
16,
2293,
461,
13,
720,
6421,
18,
6923,
12,
2293,
743,
13,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
16186,
25450,
691,
30,
11958,
4095,
13801,
738,
87,
1199,
738,
590,
461,
13,
327,
348,
67,
3141,
12,
1717,
6421,
13,
1335,
1185,
16,
619,
30,
393,
1585,
273,
315,
691,
2290,
812,
16186,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
25450,
691,
12,
2890,
16,
2293,
461,
16,
15938,
33,
8381,
4672,
3536,
2851,
340,
326,
720,
3285,
3627,
598,
279,
590,
461,
3536,
314,
3328,
18,
1376,
2932,
691,
2290,
812,
16186,
25450,
691,
30,
12864,
310,
358,
10627,
738,
87,
1199,
738,
590,
461,
13,
590,
2016,
273,
1140,
18,
1098,
1214,
12,
2890,
18,
3085,
13,
720,
6421,
273,
5378,
775,
30,
364,
27179,
316,
590,
2016,
30,
1111,
1621,
273,
2213,
87,
5258,
87,
6,
738,
261,
2890,
18,
3085,
16,
2293,
559,
13,
309,
1140,
18,
803,
18,
291,
1214,
12,
3658,
1621,
4672,
1267,
682,
273,
1140,
18,
1098,
1214,
12,
3658,
1621,
13,
309,
486,
6958,
471,
296,
20363,
11,
2
] |
return '%s' % (strx)
|
return '%s' % (strx)
|
def chain_size_string(self, jdict): if jdict.has_key("chains") == False: return "---"
|
bb3b5e8c7c0e2fcb8020d92f6dcfef34849d771b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10674/bb3b5e8c7c0e2fcb8020d92f6dcfef34849d771b/webtlsmd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2687,
67,
1467,
67,
1080,
12,
2890,
16,
525,
1576,
4672,
309,
525,
1576,
18,
5332,
67,
856,
2932,
23060,
7923,
422,
1083,
30,
327,
5238,
10951,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2687,
67,
1467,
67,
1080,
12,
2890,
16,
525,
1576,
4672,
309,
525,
1576,
18,
5332,
67,
856,
2932,
23060,
7923,
422,
1083,
30,
327,
5238,
10951,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
st = string.replace(st, k, v)
|
st = st.replace(k, v)
|
def multireplace(st, dct): for k, v in dct.items(): st = string.replace(st, k, v) return st
|
8799a8f5fb9f9e869533ca9824ec8ac8d4c44d8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/8799a8f5fb9f9e869533ca9824ec8ac8d4c44d8b/telnet.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1778,
577,
964,
12,
334,
16,
18253,
4672,
364,
417,
16,
331,
316,
18253,
18,
3319,
13332,
384,
273,
384,
18,
2079,
12,
79,
16,
331,
13,
327,
384,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1778,
577,
964,
12,
334,
16,
18253,
4672,
364,
417,
16,
331,
316,
18253,
18,
3319,
13332,
384,
273,
384,
18,
2079,
12,
79,
16,
331,
13,
327,
384,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
cur_dir_paths = [ os.path.join(script_path, 'cgc'), os.path.join(script_path, 'cgc.exe') ]
|
cur_dir_paths = [os.path.join(script_path, 'cgc'), os.path.join(script_path, 'cgc.exe')]
|
def default_cgc(): paths = [ '/usr/bin/cgc', 'C:/Program Files/NVIDIA Corporation/Cg/bin/cgc.exe', 'C:/Program Files (x86)/NVIDIA Corporation/Cg/bin/cgc.exe' ] for path in paths: if os.path.exists(path): return path script_path = os.path.abspath(sys.path[0]) # Try again looking in the current working directory to match # the layout of the prebuilt o3dConverter binaries. cur_dir_paths = [ os.path.join(script_path, 'cgc'), os.path.join(script_path, 'cgc.exe') ] for path in cur_dir_paths: if (os.path.exists(path)): return path # Last fallback is to use the binaries in o3d/third_party/cg/files. # Unfortunately, because we can't rely on the OS name, we have to # actually try running the cgc executable. o3d_root = find_o3d_root(); cg_root = os.path.join(o3d_root, 'third_party', 'cg', 'files') exes = [ os.path.join(cg_root, 'linux', 'bin', 'cgc'), os.path.join(cg_root, 'linux', 'bin64', 'cgc'), os.path.join(cg_root, 'mac', 'bin', 'cgc'), os.path.join(cg_root, 'win', 'bin', 'cgc.exe') ] for exe in exes: try: subprocess.call([exe, '-v'], stdout=open(os.devnull, 'w'), stderr=open(os.devnull, 'w')) return exe except: pass # We don't know where cgc lives. return ''
|
b4063f4f2c6fc90bbda47a2fb5e91c437341938f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/b4063f4f2c6fc90bbda47a2fb5e91c437341938f/convert.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
71,
13241,
13332,
2953,
273,
306,
1173,
13640,
19,
4757,
19,
71,
13241,
2187,
296,
39,
27824,
9459,
6471,
19,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
13241,
18,
14880,
2187,
296,
39,
27824,
9459,
6471,
261,
92,
5292,
13176,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
13241,
18,
14880,
11,
308,
364,
589,
316,
2953,
30,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
327,
589,
2728,
67,
803,
273,
1140,
18,
803,
18,
5113,
803,
12,
9499,
18,
803,
63,
20,
5717,
468,
6161,
3382,
7849,
316,
326,
783,
5960,
1867,
358,
845,
468,
326,
3511,
434,
326,
675,
12406,
320,
23,
72,
5072,
4158,
5646,
18,
662,
67,
1214,
67,
4481,
273,
306,
538,
18,
803,
18,
5701,
12,
4263,
67,
803,
16,
296,
71,
13241,
19899,
1140,
18,
803,
18,
5701,
12,
4263,
67,
803,
16,
296,
71,
13241,
18,
14880,
6134,
65,
364,
589,
316,
662,
67,
1214,
67,
4481,
30,
309,
261,
538,
18,
803,
18,
1808,
12,
803,
3719,
30,
327,
589,
225,
468,
6825,
5922,
353,
358,
999,
326,
4158,
5646,
316,
320,
23,
72,
19,
451,
6909,
67,
21214,
19,
26275,
19,
2354,
18,
468,
1351,
24233,
16,
2724,
732,
848,
1404,
21187,
603,
326,
5932,
508,
16,
732,
1240,
358,
468,
6013,
775,
3549,
326,
276,
13241,
9070,
18,
320,
23,
72,
67,
3085,
273,
1104,
67,
83,
23,
72,
67,
3085,
5621,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
805,
67,
71,
13241,
13332,
2953,
273,
306,
1173,
13640,
19,
4757,
19,
71,
13241,
2187,
296,
39,
27824,
9459,
6471,
19,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
13241,
18,
14880,
2187,
296,
39,
27824,
9459,
6471,
261,
92,
5292,
13176,
11679,
734,
15188,
9557,
11390,
19,
39,
75,
19,
4757,
19,
71,
13241,
18,
14880,
11,
308,
364,
589,
316,
2953,
30,
309,
1140,
18,
803,
18,
1808,
12,
803,
4672,
327,
589,
2728,
67,
803,
273,
1140,
18,
803,
18,
5113,
803,
12,
9499,
18,
803,
63,
20,
5717,
468,
6161,
3382,
7849,
316,
326,
783,
5960,
1867,
358,
845,
468,
326,
3511,
434,
326,
675,
12406,
320,
23,
72,
2
] |
if self.preventedForFlash:
|
if self.preventedForFlash or not self.getActivated():
|
def _check_for_Flash(self): try: tmp = "/tmp" ## look for filenames that begin with 'Flash' for file in os.listdir(tmp): if file.startswith("Flash"): filepath = os.path.join(tmp, file) ## Time of last access. atime = os.stat(filepath).st_atime ### see if user is buffering a flash video if (self.flash_atimes.get(filepath) != None and self.flash_atimes.get(filepath) != atime): ### If caffeine is activated for any other ### reason, don't activate. if self.preventedForFlash: logging.info("Caffeine has detected "+ "that Flash video is playing, "+ "and will activate for 5 minutes.")
|
296e50cf57b70a484cd9d85bb27a1e90a09d87a5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1563/296e50cf57b70a484cd9d85bb27a1e90a09d87a5/core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
1098,
1214,
12,
5645,
4672,
309,
585,
18,
17514,
1918,
2932,
11353,
6,
4672,
3608,
273,
1140,
18,
803,
18,
5701,
12,
5645,
16,
585,
13,
7541,
2647,
434,
1142,
2006,
18,
622,
494,
273,
1140,
18,
5642,
12,
10561,
2934,
334,
67,
270,
494,
11849,
2621,
309,
729,
353,
25056,
279,
9563,
6191,
309,
261,
2890,
18,
13440,
67,
270,
4485,
18,
588,
12,
10561,
13,
480,
599,
471,
365,
18,
13440,
67,
270,
4485,
18,
588,
12,
10561,
13,
480,
622,
494,
4672,
225,
11849,
971,
3474,
1403,
73,
558,
353,
14892,
364,
1281,
1308,
11849,
3971,
16,
2727,
1404,
10235,
18,
309,
365,
18,
29150,
329,
1290,
11353,
578,
486,
365,
18,
588,
28724,
13332,
225,
2907,
18,
1376,
2932,
39,
7329,
73,
558,
711,
8316,
13773,
315,
19056,
15014,
6191,
353,
23982,
16,
13773,
315,
464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316,
326,
981,
30,
1652,
389,
1893,
67,
1884,
67,
11353,
12,
2890,
4672,
775,
30,
1853,
273,
2206,
5645,
6,
7541,
2324,
364,
9066,
716,
2376,
598,
296,
11353,
11,
364,
585,
316,
1140,
18,
1098,
1214,
12,
5645,
4672,
309,
585,
18,
17514,
1918,
2932,
11353,
6,
4672,
3608,
273,
1140,
18,
803,
18,
5701,
12,
5645,
16,
585,
13,
7541,
2647,
434,
1142,
2006,
18,
622,
494,
273,
1140,
18,
5642,
12,
10561,
2934,
334,
67,
270,
494,
11849,
2621,
309,
729,
353,
25056,
279,
9563,
6191,
309,
261,
2890,
18,
13440,
67,
270,
4485,
18,
588,
12,
10561,
13,
480,
599,
471,
365,
18,
13440,
67,
270,
4485,
18,
588,
12,
10561,
13,
480,
622,
494,
4672,
225,
11849,
2
] |
b.nombrebodega as 'Bodega', d.fechacreacion as 'Fecha', d.observacion,
|
b.nombrebodega as 'Bodega', d.fechacreacion as 'Fecha', kx.observacion as 'Observacion Kardex', d.observacion as 'Observacion Doc',
|
def updateModels(self): try: if not self.database.isOpen(): if not self.database.open(): raise UserWarning(u"Existen problemas de conexión con la base de datos") self.navigationmodel.setQuery((QSqlQuery(u""" SELECT d.iddocumento, CONCAT_WS(' ',tdc.descripcion, d.ndocimpreso) as 'Documento Referencia', kx.ndocimpreso as 'Numero Kardex', b.nombrebodega as 'Bodega', d.fechacreacion as 'Fecha', d.observacion, d.idbodega FROM documentos d JOIN tiposdoc tdc ON tdc.idtipodoc = d.idtipodoc JOIN bodegas b ON b.idbodega = d.idbodega JOIN docpadrehijos dpd ON dpd.idpadre = d.iddocumento JOIN documentos kx ON kx.iddocumento = dpd.idhijo AND kx.idtipodoc = 27 WHERE d.idtipodoc IN (%s) GROUP BY d.iddocumento """ % self.tiposdoc))) self.detailsModel.setQuery(u""" SELECT axd.idarticulo, ad.descripcion as 'Articulo', axd.unidades as 'Unidades', IF(akx.unidades > 0, CONCAT('+',akx.unidades), IFNULL(akx.unidades,0)) as 'Ajuste', axd.iddocumento FROM articulosxdocumento axd JOIN vw_articulosdescritos ad ON ad.idarticulo = axd.idarticulo JOIN documentos d ON axd.iddocumento = d.iddocumento AND d.idtipodoc IN (%s) JOIN docpadrehijos dph ON axd.iddocumento = dph.idpadre LEFT JOIN articulosxdocumento akx ON akx.iddocumento = dph.idhijo GROUP BY dph.idpadre, axd.idarticulo """ % self.tiposdoc) self.mapper.setModel( self.navproxymodel ) self.mapper.addMapping(self.txtParentPrintedDocumentNumber, NDOCIMPRESO) self.mapper.addMapping(self.txtPrintedDocumentNumber, NKARDEX) self.mapper.addMapping(self.dtPicker, FECHA) self.mapper.addMapping(self.txtWarehouse, NOMBREBODEGA) self.tabledetails.horizontalHeader().setStretchLastSection(True) except UserWarning as inst: QMessageBox.critical(self, "Llantera Esquipulas", str(inst)) except Exception as inst: print inst
|
228e147f7ca159b05bd8e79d8fcd7d57976c6018 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/11009/228e147f7ca159b05bd8e79d8fcd7d57976c6018/kardex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
8430,
12,
2890,
4672,
775,
30,
309,
486,
365,
18,
6231,
18,
291,
3678,
13332,
309,
486,
365,
18,
6231,
18,
3190,
13332,
1002,
2177,
6210,
12,
89,
6,
4786,
275,
6199,
345,
443,
356,
338,
77,
132,
116,
82,
356,
7125,
1026,
443,
19836,
7923,
365,
18,
19537,
2284,
18,
542,
1138,
12443,
53,
5101,
1138,
12,
89,
8395,
9111,
302,
18,
1873,
504,
650,
83,
16,
3492,
14130,
67,
2651,
2668,
2265,
4465,
71,
18,
72,
1052,
2436,
285,
16,
302,
18,
82,
2434,
381,
12202,
83,
13,
487,
296,
2519,
83,
868,
586,
28115,
2187,
417,
92,
18,
82,
2434,
381,
12202,
83,
487,
296,
2578,
2439,
1475,
297,
561,
2187,
324,
18,
12306,
6073,
70,
390,
15833,
487,
296,
38,
390,
15833,
2187,
302,
18,
3030,
343,
1077,
266,
19861,
487,
296,
2954,
8838,
2187,
417,
92,
18,
12199,
90,
19861,
487,
296,
26199,
19861,
1475,
297,
561,
2187,
302,
18,
12199,
90,
19861,
487,
296,
26199,
19861,
3521,
2187,
302,
18,
350,
70,
390,
15833,
4571,
1668,
538,
302,
7645,
9529,
538,
2434,
6655,
71,
6229,
6655,
71,
18,
350,
14587,
369,
504,
273,
302,
18,
350,
14587,
369,
504,
7645,
324,
390,
31604,
324,
6229,
324,
18,
350,
70,
390,
15833,
273,
302,
18,
350,
70,
390,
15833,
7645,
997,
6982,
266,
76,
8302,
538,
9986,
72,
6229,
9986,
72,
18,
350,
6982,
266,
273,
302,
18,
1873,
504,
650,
83,
7645,
1668,
538,
417,
92,
6229,
417,
92,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
8430,
12,
2890,
4672,
775,
30,
309,
486,
365,
18,
6231,
18,
291,
3678,
13332,
309,
486,
365,
18,
6231,
18,
3190,
13332,
1002,
2177,
6210,
12,
89,
6,
4786,
275,
6199,
345,
443,
356,
338,
77,
132,
116,
82,
356,
7125,
1026,
443,
19836,
7923,
365,
18,
19537,
2284,
18,
542,
1138,
12443,
53,
5101,
1138,
12,
89,
8395,
9111,
302,
18,
1873,
504,
650,
83,
16,
3492,
14130,
67,
2651,
2668,
2265,
4465,
71,
18,
72,
1052,
2436,
285,
16,
302,
18,
82,
2434,
381,
12202,
83,
13,
487,
296,
2519,
83,
868,
586,
28115,
2187,
417,
92,
18,
82,
2434,
381,
12202,
83,
487,
296,
2578,
2439,
1475,
297,
561,
2187,
324,
18,
12306,
2
] |
if path == "/test/":
|
if path == "/test":
|
def get(self): path = self.request.path # special path to invoke the unit tests # TODO(nickbaum): is there a less ghetto way to invoke the unit test? if path == "/test/": self.unitTest() return # if root, redirect to index.html # TODO(nickbaum): this doesn't handle /chrome/extensions/trunk, etc if (path == "/chrome/extensions") or (path == "chrome/extensions/"): self.redirect("/chrome/extensions/index.html") return # else remove prefix if(path[:18] == "/chrome/extensions"): path = path[18:] # TODO(nickbaum): there's a subtle bug here: if there are two instances of the app, # their default caches will override each other. This is bad! result = memcache.get(path) if result is None: logging.info("Cache miss: " + path) url = self.getSrcUrl(path) if (url[1] is not Channel.TRUNK) and (url[0] != "http://src.chromium.org/favicon.ico"): branch = self.getBranch(url[1]) url = url[0] % branch else: url = url[0] logging.info("Path: " + self.request.path) logging.info("Url: " + url) try: result = urlfetch.fetch(url + self.request.query_string) if result.status_code != 200: logging.error("urlfetch failed: " + url) # TODO(nickbaum): what should we do when the urlfetch fails? except: logging.error("urlfetch failed: " + url) # TODO(nickbaum): what should we do when the urlfetch fails? try: if not memcache.add(path, result, DEFAULT_CACHE_TIME): logging.error("Memcache set failed.") except: logging.error("Memcache set failed.") for key in result.headers: self.response.headers[key] = result.headers[key] self.response.out.write(result.content)
|
08284a8e331cb1a9ac04ee5e0da07efb131514bd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9392/08284a8e331cb1a9ac04ee5e0da07efb131514bd/chromeextensionsdocs.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
12,
2890,
4672,
589,
273,
365,
18,
2293,
18,
803,
468,
4582,
589,
358,
4356,
326,
2836,
7434,
468,
2660,
12,
17091,
12124,
379,
4672,
353,
1915,
279,
5242,
21409,
278,
869,
4031,
358,
4356,
326,
2836,
1842,
35,
309,
589,
422,
2206,
3813,
6877,
365,
18,
4873,
4709,
1435,
327,
468,
309,
1365,
16,
3136,
358,
770,
18,
2620,
468,
2660,
12,
17091,
12124,
379,
4672,
333,
3302,
1404,
1640,
342,
343,
10896,
19,
9489,
19,
26133,
16,
5527,
309,
261,
803,
422,
2206,
343,
10896,
19,
9489,
7923,
578,
261,
803,
422,
315,
343,
10896,
19,
9489,
4898,
4672,
365,
18,
7590,
2932,
19,
343,
10896,
19,
9489,
19,
1615,
18,
2620,
7923,
327,
468,
469,
1206,
1633,
309,
12,
803,
10531,
2643,
65,
422,
2206,
343,
10896,
19,
9489,
6,
4672,
589,
273,
589,
63,
2643,
26894,
468,
2660,
12,
17091,
12124,
379,
4672,
1915,
1807,
279,
720,
5929,
7934,
2674,
30,
309,
1915,
854,
2795,
3884,
434,
326,
595,
16,
468,
3675,
805,
12535,
903,
3849,
1517,
1308,
18,
1220,
353,
5570,
5,
563,
273,
20549,
18,
588,
12,
803,
13,
309,
563,
353,
599,
30,
2907,
18,
1376,
2932,
1649,
12543,
30,
315,
397,
589,
13,
880,
273,
365,
18,
588,
7740,
1489,
12,
803,
13,
309,
261,
718,
63,
21,
65,
353,
486,
5307,
18,
4349,
16141,
13,
471,
261,
718,
63,
20,
65,
480,
315,
2505,
2207,
4816,
18,
16298,
5077,
18,
3341,
19,
19731,
3950,
18,
10764,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12,
2890,
4672,
589,
273,
365,
18,
2293,
18,
803,
468,
4582,
589,
358,
4356,
326,
2836,
7434,
468,
2660,
12,
17091,
12124,
379,
4672,
353,
1915,
279,
5242,
21409,
278,
869,
4031,
358,
4356,
326,
2836,
1842,
35,
309,
589,
422,
2206,
3813,
6877,
365,
18,
4873,
4709,
1435,
327,
468,
309,
1365,
16,
3136,
358,
770,
18,
2620,
468,
2660,
12,
17091,
12124,
379,
4672,
333,
3302,
1404,
1640,
342,
343,
10896,
19,
9489,
19,
26133,
16,
5527,
309,
261,
803,
422,
2206,
343,
10896,
19,
9489,
7923,
578,
261,
803,
422,
315,
343,
10896,
19,
9489,
4898,
4672,
365,
18,
7590,
2932,
19,
343,
10896,
19,
9489,
19,
1615,
18,
2620,
7923,
327,
468,
2
] |
try: from os import popen3 except NameError:
|
if hasattr(os, "popen3"): def popen3(cmd, mode='t', bufsize=-1): """Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin, child_stderr) are returned.""" w, r, e = os.popen3(cmd, mode, bufsize) return r, w, e else:
|
def popen2(cmd, mode='t', bufsize=-1): """Execute the shell command 'cmd' in a sub-process. If 'bufsize' is specified, it sets the buffer size for the I/O pipes. The file objects (child_stdout, child_stdin) are returned.""" if type(mode) is type(0) and bufsize == -1: bufsize = mode mode = 't' assert mode in ('t', 'b') _cleanup() inst = Popen3(cmd, 0, bufsize) return inst.fromchild, inst.tochild
|
c153d89f35e9d66718234209ea5fe528bc920b4d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/c153d89f35e9d66718234209ea5fe528bc920b4d/popen2.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
30925,
22,
12,
4172,
16,
1965,
2218,
88,
2187,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
971,
296,
4385,
1467,
11,
353,
1269,
16,
518,
1678,
326,
1613,
963,
364,
326,
467,
19,
51,
16062,
18,
225,
1021,
585,
2184,
261,
3624,
67,
10283,
16,
1151,
67,
21772,
13,
854,
2106,
12123,
309,
618,
12,
3188,
13,
353,
618,
12,
20,
13,
471,
1681,
1467,
422,
300,
21,
30,
1681,
1467,
273,
1965,
1965,
273,
296,
88,
11,
1815,
1965,
316,
7707,
88,
2187,
296,
70,
6134,
389,
16732,
1435,
1804,
273,
14339,
23,
12,
4172,
16,
374,
16,
1681,
1467,
13,
327,
1804,
18,
2080,
3624,
16,
1804,
18,
869,
3624,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
30925,
22,
12,
4172,
16,
1965,
2218,
88,
2187,
1681,
1467,
29711,
21,
4672,
3536,
5289,
326,
5972,
1296,
296,
4172,
11,
316,
279,
720,
17,
2567,
18,
225,
971,
296,
4385,
1467,
11,
353,
1269,
16,
518,
1678,
326,
1613,
963,
364,
326,
467,
19,
51,
16062,
18,
225,
1021,
585,
2184,
261,
3624,
67,
10283,
16,
1151,
67,
21772,
13,
854,
2106,
12123,
309,
618,
12,
3188,
13,
353,
618,
12,
20,
13,
471,
1681,
1467,
422,
300,
21,
30,
1681,
1467,
273,
1965,
1965,
273,
296,
88,
11,
1815,
1965,
316,
7707,
88,
2187,
296,
70,
6134,
389,
16732,
1435,
1804,
273,
14339,
23,
12,
4172,
16,
374,
16,
1681,
1467,
13,
327,
1804,
18,
2
] |
print `header`
|
def decode(input, output, resonly=0): if type(input) == type(''): input = open(input, 'rb') # Should we also test for FSSpecs or FSRefs? header = input.read(AS_HEADER_LENGTH) print `header` try: magic, version, dummy, nentry = struct.unpack(AS_HEADER_FORMAT, header) except ValueError, arg: raise Error, "Unpack header error: %s"%arg if verbose: print 'Magic: 0x%8.8x'%magic print 'Version: 0x%8.8x'%version print 'Entries: %d'%nentry if magic != AS_MAGIC: raise Error, 'Unknown AppleSingle magic number 0x%8.8x'%magic if version != AS_VERSION: raise Error, 'Unknown AppleSingle version number 0x%8.8x'%version if nentry <= 0: raise Error, "AppleSingle file contains no forks" headers = [input.read(AS_ENTRY_LENGTH) for i in range(nentry)] didwork = 0 for hdr in headers: try: id, offset, length = struct.unpack(AS_ENTRY_FORMAT, hdr) except ValueError, arg: raise Error, "Unpack entry error: %s"%arg if verbose: print 'Fork %d, offset %d, length %d'%(id, offset, length) input.seek(offset) if length == 0: data = '' else: data = input.read(length) if len(data) != length: raise Error, 'Short read: expected %d bytes got %d'%(length, len(data)) if id == AS_DATAFORK: if verbose: print ' (data fork)' if not resonly: didwork = 1 fp = open(output, 'wb') fp.write(data) fp.close() elif id == AS_RESOURCEFORK: didwork = 1 if verbose: print ' (resource fork)' if resonly: fp = open(output, 'wb') else: fp = MacOS.openrf(output, 'wb') fp.write(data) fp.close() elif id in AS_IGNORE: if verbose: print ' (ignored)' else: raise Error, 'Unknown fork type %d'%id if not didwork: raise Error, 'No useful forks found'
|
3a0beeede35f9ea91f2095c1ee92394bd116a68f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12029/3a0beeede35f9ea91f2095c1ee92394bd116a68f/applesingle.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
364,
478,
1260,
705,
87,
578,
9247,
9837,
35,
1446,
273,
810,
18,
896,
12,
3033,
67,
7557,
67,
7096,
13,
775,
30,
8146,
16,
1177,
16,
9609,
16,
290,
4099,
273,
1958,
18,
17309,
12,
3033,
67,
7557,
67,
7254,
16,
1446,
13,
1335,
2068,
16,
1501,
30,
1002,
1068,
16,
315,
23649,
1446,
555,
30,
738,
87,
28385,
3175,
309,
3988,
30,
1172,
296,
19289,
30,
282,
374,
92,
9,
28,
18,
28,
92,
11,
9,
11179,
1172,
296,
1444,
30,
374,
92,
9,
28,
18,
28,
92,
11,
9,
1589,
1172,
296,
5400,
30,
738,
72,
11,
9,
82,
4099,
309,
8146,
480,
5355,
67,
49,
22247,
30,
1002,
1068,
16,
296,
4874,
1716,
1802,
5281,
8146,
1300,
374,
92,
9,
28,
18,
28,
92,
11,
9,
11179,
309,
1177,
480,
5355,
67,
5757,
30,
1002,
1068,
16,
296,
4874,
1716,
1802,
5281,
1177,
1300,
374,
92,
9,
28,
18,
28,
92,
11,
9,
1589,
309,
290,
4099,
1648,
374,
30,
1002,
1068,
16,
315,
1294,
1802,
5281,
585,
1914,
1158,
364,
7904,
6,
1607,
273,
306,
2630,
18,
896,
12,
3033,
67,
19083,
67,
7096,
13,
364,
277,
316,
1048,
12,
82,
4099,
25887,
5061,
1252,
273,
374,
364,
7723,
316,
1607,
30,
775,
30,
612,
16,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2495,
12,
2630,
16,
876,
16,
400,
3700,
33,
20,
4672,
309,
618,
12,
2630,
13,
422,
618,
2668,
11,
4672,
810,
273,
1696,
12,
2630,
16,
296,
6731,
6134,
468,
9363,
732,
2546,
1842,
364,
478,
1260,
705,
87,
578,
9247,
9837,
35,
1446,
273,
810,
18,
896,
12,
3033,
67,
7557,
67,
7096,
13,
775,
30,
8146,
16,
1177,
16,
9609,
16,
290,
4099,
273,
1958,
18,
17309,
12,
3033,
67,
7557,
67,
7254,
16,
1446,
13,
1335,
2068,
16,
1501,
30,
1002,
1068,
16,
315,
23649,
1446,
555,
30,
738,
87,
28385,
3175,
309,
3988,
30,
1172,
296,
19289,
30,
282,
374,
92,
9,
28,
18,
28,
92,
11,
9,
11179,
1172,
296,
1444,
30,
2
] |
|
if self.occurences:
|
if self.occurrences:
|
def __str__(self, wrapwidth=78): """ Return the string representation of the entry. """ ret = [] # comment first, if any (with text wrapping as xgettext does) if self.comment != '': comments = _strsplit(self._decode(self.comment), '\n') for comment in comments: if wrapwidth > 0 and len(comment) > wrapwidth-3: lines = _textwrap(comment, wrapwidth, initial_indent='#. ', subsequent_indent='#. ', break_long_words=False) _listappend(ret, lines) else: _listappend(ret, '#. %s' % comment) # translator comment, if any (with text wrapping as xgettext does) if self.tcomment != '': tcomments = _strsplit(self._decode(self.tcomment), '\n') for tcomment in tcomments: if wrapwidth > 0 and len(tcomment) > wrapwidth-2: lines = _textwrap(tcomment, wrapwidth, initial_indent='# ', subsequent_indent='# ', break_long_words=False) _listappend(ret, lines) else: _listappend(ret, '# %s' % tcomment) # occurences (with text wrapping as xgettext does) if self.occurences: filelist = [] for fpath, lineno in self.occurences: _listappend(filelist, '%s:%s' % (self._decode(fpath), lineno)) filestr = _strjoin(' ', filelist) if wrapwidth > 0 and len(filestr)+3 > wrapwidth: # XXX textwrap split words that contain hyphen, this is not # what we want for filenames, so the dirty hack is to # temporally replace hyphens with a char that a file cannot # contain, like "*" lines = _strreplace(filestr, '-', '*') lines = _textwrap(filestr, wrapwidth, initial_indent='#: ', subsequent_indent='#: ', break_long_words=False) # end of the replace hack for line in lines: _listappend(ret, _strreplace(line, '*', '-')) else: _listappend(ret, '#: '+filestr) # flags if self.flags: flags = [] for flag in self.flags: _listappend(flags, flag) _listappend(ret, '#, %s' % _strjoin(', ', flags)) _listappend(ret, _BaseEntry.__str__(self)) return _strjoin('\n', ret)
|
ff9943af59a4994cd9185e9c75a8b1d02243ae04 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9209/ff9943af59a4994cd9185e9c75a8b1d02243ae04/polib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
701,
972,
12,
2890,
16,
2193,
2819,
33,
8285,
4672,
3536,
2000,
326,
533,
4335,
434,
326,
1241,
18,
3536,
325,
273,
5378,
468,
2879,
1122,
16,
309,
1281,
261,
1918,
977,
14702,
487,
619,
29967,
1552,
13,
309,
365,
18,
3469,
480,
875,
30,
5678,
273,
389,
701,
4939,
12,
2890,
6315,
3922,
12,
2890,
18,
3469,
3631,
2337,
82,
6134,
364,
2879,
316,
5678,
30,
309,
2193,
2819,
405,
374,
471,
562,
12,
3469,
13,
405,
2193,
2819,
17,
23,
30,
2362,
273,
389,
955,
4113,
12,
3469,
16,
2193,
2819,
16,
2172,
67,
9355,
2218,
7,
18,
2265,
10815,
67,
9355,
2218,
7,
18,
2265,
898,
67,
5748,
67,
3753,
33,
8381,
13,
389,
1098,
6923,
12,
1349,
16,
2362,
13,
469,
30,
389,
1098,
6923,
12,
1349,
16,
2946,
18,
738,
87,
11,
738,
2879,
13,
468,
8333,
2879,
16,
309,
1281,
261,
1918,
977,
14702,
487,
619,
29967,
1552,
13,
309,
365,
18,
88,
3469,
480,
875,
30,
268,
9231,
273,
389,
701,
4939,
12,
2890,
6315,
3922,
12,
2890,
18,
88,
3469,
3631,
2337,
82,
6134,
364,
268,
3469,
316,
268,
9231,
30,
309,
2193,
2819,
405,
374,
471,
562,
12,
88,
3469,
13,
405,
2193,
2819,
17,
22,
30,
2362,
273,
389,
955,
4113,
12,
88,
3469,
16,
2193,
2819,
16,
2172,
67,
9355,
2218,
7,
2265,
10815,
67,
9355,
2218,
7,
2265,
898,
67,
5748,
67,
3753,
33,
8381,
13,
389,
1098,
6923,
12,
1349,
16,
2362,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
701,
972,
12,
2890,
16,
2193,
2819,
33,
8285,
4672,
3536,
2000,
326,
533,
4335,
434,
326,
1241,
18,
3536,
325,
273,
5378,
468,
2879,
1122,
16,
309,
1281,
261,
1918,
977,
14702,
487,
619,
29967,
1552,
13,
309,
365,
18,
3469,
480,
875,
30,
5678,
273,
389,
701,
4939,
12,
2890,
6315,
3922,
12,
2890,
18,
3469,
3631,
2337,
82,
6134,
364,
2879,
316,
5678,
30,
309,
2193,
2819,
405,
374,
471,
562,
12,
3469,
13,
405,
2193,
2819,
17,
23,
30,
2362,
273,
389,
955,
4113,
12,
3469,
16,
2193,
2819,
16,
2172,
67,
9355,
2218,
7,
18,
2265,
10815,
67,
9355,
2218,
7,
18,
2265,
898,
67,
5748,
67,
3753,
33,
8381,
13,
389,
2
] |
tarinfo.name = normpath(tarinfo.name) if tarinfo.isdir(): tarinfo.name += "/" if tarinfo.linkname: tarinfo.linkname = normpath(tarinfo.linkname) if tarinfo.size > MAXSIZE_MEMBER: if self.posix: raise ValueError("file is too large (>= 8 GB)") else: self._dbg(2, "tarfile: Created GNU tar largefile header") if len(tarinfo.linkname) > LENGTH_LINK: if self.posix: raise ValueError("linkname is too long (>%d)" % (LENGTH_LINK)) else: self._create_gnulong(tarinfo.linkname, GNUTYPE_LONGLINK) tarinfo.linkname = tarinfo.linkname[:LENGTH_LINK -1] self._dbg(2, "tarfile: Created GNU tar extension LONGLINK") if len(tarinfo.name) > LENGTH_NAME: if self.posix: prefix = tarinfo.name[:LENGTH_PREFIX + 1] while prefix and prefix[-1] != "/": prefix = prefix[:-1] name = tarinfo.name[len(prefix):] prefix = prefix[:-1] if not prefix or len(name) > LENGTH_NAME: raise ValueError("name is too long (>%d)" % (LENGTH_NAME)) tarinfo.name = name tarinfo.prefix = prefix else: self._create_gnulong(tarinfo.name, GNUTYPE_LONGNAME) tarinfo.name = tarinfo.name[:LENGTH_NAME - 1] self._dbg(2, "tarfile: Created GNU tar extension LONGNAME") self.fileobj.write(tarinfo.tobuf(self.posix)) self.offset += BLOCKSIZE
|
tarinfo = copy.copy(tarinfo) buf = tarinfo.tobuf(self.posix) self.fileobj.write(buf) self.offset += len(buf)
|
def addfile(self, tarinfo, fileobj=None): """Add the TarInfo object `tarinfo' to the archive. If `fileobj' is given, tarinfo.size bytes are read from it and added to the archive. You can create TarInfo objects using gettarinfo(). On Windows platforms, `fileobj' should always be opened with mode 'rb' to avoid irritation about the file size. """ self._check("aw")
|
90ce5908d2ea58a840421d27e19e71de9322dfc5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8125/90ce5908d2ea58a840421d27e19e71de9322dfc5/tarfile.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,
1376,
18,
1467,
1731,
854,
855,
628,
518,
471,
3096,
358,
326,
5052,
18,
4554,
848,
752,
20334,
966,
2184,
1450,
336,
11718,
1376,
7675,
2755,
8202,
17422,
16,
1375,
768,
2603,
11,
1410,
3712,
506,
10191,
598,
1965,
296,
6731,
11,
358,
4543,
277,
523,
8773,
2973,
326,
585,
963,
18,
3536,
365,
6315,
1893,
2932,
2219,
7923,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
527,
768,
12,
2890,
16,
8232,
1376,
16,
17041,
33,
7036,
4672,
3536,
986,
326,
20334,
966,
733,
1375,
11718,
1376,
11,
358,
326,
5052,
18,
971,
1375,
768,
2603,
11,
353,
864,
16,
8232,
1376,
18,
1467,
1731,
854,
855,
628,
518,
471,
3096,
358,
326,
5052,
18,
4554,
848,
752,
20334,
966,
2184,
1450,
336,
11718,
1376,
7675,
2755,
8202,
17422,
16,
1375,
768,
2603,
11,
1410,
3712,
506,
10191,
598,
1965,
296,
6731,
11,
358,
4543,
277,
523,
8773,
2973,
326,
585,
963,
18,
3536,
365,
6315,
1893,
2932,
2219,
7923,
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
] |
dataSample5 = [(10, 20), (20, 30), (30, 40), (40, 50), (50, 60)]
|
dataSample5 = [(10, 60), (20, 50), (30, 40), (40, 30)]
|
def sample4d(): "Make a bar chart showing value axis region entirely *below* zero." drawing = Drawing(400, 200) data = [(-13, -20)] bc = VerticalBarChart() bc.x = 50 bc.y = 50 bc.height = 125 bc.width = 300 bc.data = data bc.strokeColor = colors.black bc.valueAxis.valueMin = -30 bc.valueAxis.valueMax = -10 bc.valueAxis.valueStep = 15 bc.categoryAxis.labels.boxAnchor = 'n' bc.categoryAxis.labels.dy = -5 bc.categoryAxis.categoryNames = ['Ying', 'Yang'] drawing.add(bc) return drawing
|
fc7ad267a5cb33da3e1b6e29af074a0469ccb6d6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3878/fc7ad267a5cb33da3e1b6e29af074a0469ccb6d6/barchart1.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3296,
24,
72,
13332,
315,
6464,
279,
4653,
4980,
17253,
460,
2654,
3020,
21658,
380,
27916,
14,
3634,
1199,
225,
16327,
273,
10184,
310,
12,
16010,
16,
4044,
13,
225,
501,
273,
306,
19236,
3437,
16,
300,
3462,
25887,
225,
6533,
273,
27394,
5190,
7984,
1435,
6533,
18,
92,
273,
6437,
6533,
18,
93,
273,
6437,
6533,
18,
4210,
273,
30616,
6533,
18,
2819,
273,
11631,
6533,
18,
892,
273,
501,
225,
6533,
18,
16181,
2957,
273,
5740,
18,
11223,
225,
6533,
18,
1132,
6558,
18,
1132,
2930,
273,
300,
5082,
6533,
18,
1132,
6558,
18,
1132,
2747,
273,
300,
2163,
6533,
18,
1132,
6558,
18,
1132,
4160,
273,
4711,
225,
6533,
18,
4743,
6558,
18,
5336,
18,
2147,
11605,
273,
296,
82,
11,
6533,
18,
4743,
6558,
18,
5336,
18,
15680,
273,
300,
25,
6533,
18,
4743,
6558,
18,
4743,
1557,
273,
10228,
61,
310,
2187,
296,
61,
539,
3546,
225,
16327,
18,
1289,
12,
13459,
13,
225,
327,
16327,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3296,
24,
72,
13332,
315,
6464,
279,
4653,
4980,
17253,
460,
2654,
3020,
21658,
380,
27916,
14,
3634,
1199,
225,
16327,
273,
10184,
310,
12,
16010,
16,
4044,
13,
225,
501,
273,
306,
19236,
3437,
16,
300,
3462,
25887,
225,
6533,
273,
27394,
5190,
7984,
1435,
6533,
18,
92,
273,
6437,
6533,
18,
93,
273,
6437,
6533,
18,
4210,
273,
30616,
6533,
18,
2819,
273,
11631,
6533,
18,
892,
273,
501,
225,
6533,
18,
16181,
2957,
273,
5740,
18,
11223,
225,
6533,
18,
1132,
6558,
18,
1132,
2930,
273,
300,
5082,
6533,
18,
1132,
6558,
18,
1132,
2747,
273,
300,
2163,
6533,
18,
1132,
6558,
18,
1132,
4160,
273,
4711,
225,
6533,
18,
4743,
6558,
18,
5336,
18,
2
] |
result = result + self.doctree( entry, modname, cl, prefix + ' ')
|
result = result + self.formattree( entry, modname, c, prefix + ' ')
|
def doctree(self, tree, modname, parent=None, prefix=''): """Render in text a class tree as returned by inspect.getclasstree().""" result = '' for entry in tree: if type(entry) is type(()): cl, bases = entry result = result + prefix + classname(cl, modname) if bases and bases != (parent,): parents = map(lambda cl, m=modname: classname(cl, m), bases) result = result + '(%s)' % join(parents, ', ') result = result + '\n' elif type(entry) is type([]): result = result + self.doctree( entry, modname, cl, prefix + ' ') return result
|
2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/2c3f3ddf9452a1f3f228e0d8c7abdbeed214a6b7/pydoc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
31263,
992,
12,
2890,
16,
2151,
16,
16037,
16,
982,
33,
7036,
16,
1633,
2218,
11,
4672,
3536,
3420,
316,
977,
279,
667,
2151,
487,
2106,
635,
5334,
18,
588,
830,
345,
334,
992,
1435,
12123,
563,
273,
875,
364,
1241,
316,
2151,
30,
309,
618,
12,
4099,
13,
353,
618,
12,
1435,
4672,
927,
16,
8337,
273,
1241,
563,
273,
563,
397,
1633,
397,
7479,
12,
830,
16,
16037,
13,
309,
8337,
471,
8337,
480,
261,
2938,
16,
4672,
6298,
273,
852,
12,
14661,
927,
16,
312,
33,
1711,
529,
30,
7479,
12,
830,
16,
312,
3631,
8337,
13,
563,
273,
563,
397,
7747,
9,
87,
2506,
738,
1233,
12,
12606,
16,
2265,
8624,
563,
273,
563,
397,
2337,
82,
11,
1327,
618,
12,
4099,
13,
353,
618,
3816,
65,
4672,
563,
273,
563,
397,
365,
18,
2139,
3413,
12,
1241,
16,
16037,
16,
276,
16,
1633,
397,
296,
565,
8624,
327,
563,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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487,
2106,
635,
5334,
18,
588,
830,
345,
334,
992,
1435,
12123,
563,
273,
875,
364,
1241,
316,
2151,
30,
309,
618,
12,
4099,
13,
353,
618,
12,
1435,
4672,
927,
16,
8337,
273,
1241,
563,
273,
563,
397,
1633,
397,
7479,
12,
830,
16,
16037,
13,
309,
8337,
471,
8337,
480,
261,
2938,
16,
4672,
6298,
273,
852,
12,
14661,
927,
16,
312,
33,
1711,
529,
30,
7479,
12,
830,
16,
312,
3631,
8337,
13,
563,
273,
563,
397,
7747,
9,
87,
2506,
738,
1233,
12,
12606,
16,
2265,
8624,
563,
273,
563,
2
] |
result = self.make_token(start, self.last_matched_index, source)
|
result = self.make_token(start, self.last_matched_state, source)
|
def find_next_token(self): while 1: self.state = 0 start = self.last_matched_index + 1 assert start >= 0
|
ab2dd1d0d919309230ba14eaf8630e3f031f665b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/ab2dd1d0d919309230ba14eaf8630e3f031f665b/lexer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4285,
67,
2316,
12,
2890,
4672,
1323,
404,
30,
365,
18,
2019,
273,
374,
787,
273,
365,
18,
2722,
67,
11073,
67,
1615,
397,
404,
1815,
787,
1545,
374,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1104,
67,
4285,
67,
2316,
12,
2890,
4672,
1323,
404,
30,
365,
18,
2019,
273,
374,
787,
273,
365,
18,
2722,
67,
11073,
67,
1615,
397,
404,
1815,
787,
1545,
374,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.lock.acquire()
|
def updateDone(self): self.lock.acquire() self._message('') self.updateText = None self.lock.release()
|
96cb9597972f2239714af0c054dbabf0c65c5eab /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/96cb9597972f2239714af0c054dbabf0c65c5eab/updatecmd.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
7387,
12,
2890,
4672,
365,
6315,
2150,
2668,
6134,
365,
18,
2725,
1528,
273,
599,
365,
18,
739,
18,
9340,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1089,
7387,
12,
2890,
4672,
365,
6315,
2150,
2668,
6134,
365,
18,
2725,
1528,
273,
599,
365,
18,
739,
18,
9340,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
partner = self.browse(cr, uid, id).partner_id context.update({'lang': partner.lang})
|
partner = self.browse(cr, uid, id,context=context).partner_id if partner.lang: context.update({'lang': partner.lang})
|
def button_reset_taxes(self, cr, uid, ids, context=None): if not context: context = {} ait_obj = self.pool.get('account.invoice.tax') for id in ids: cr.execute("DELETE FROM account_invoice_tax WHERE invoice_id=%s", (id,)) partner = self.browse(cr, uid, id).partner_id context.update({'lang': partner.lang}) for taxe in ait_obj.compute(cr, uid, id, context=context).values(): ait_obj.create(cr, uid, taxe) # Update the stored value (fields.function), so we write to trigger recompute self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context)
|
a4fbd2e0ffe239d3413c2aee9203565e06bbf7c8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7397/a4fbd2e0ffe239d3413c2aee9203565e06bbf7c8/invoice.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3568,
67,
6208,
67,
8066,
281,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
279,
305,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
8066,
6134,
364,
612,
316,
3258,
30,
4422,
18,
8837,
2932,
6460,
4571,
2236,
67,
16119,
67,
8066,
4852,
9179,
67,
350,
5095,
87,
3113,
261,
350,
16,
3719,
19170,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
612,
16,
2472,
33,
2472,
2934,
31993,
67,
350,
309,
19170,
18,
4936,
30,
819,
18,
2725,
12590,
11,
4936,
4278,
19170,
18,
4936,
6792,
364,
5320,
73,
316,
279,
305,
67,
2603,
18,
9200,
12,
3353,
16,
4555,
16,
612,
16,
819,
33,
2472,
2934,
2372,
13332,
279,
305,
67,
2603,
18,
2640,
12,
3353,
16,
4555,
16,
5320,
73,
13,
468,
2315,
326,
4041,
460,
261,
2821,
18,
915,
3631,
1427,
732,
1045,
358,
3080,
30067,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
16063,
2626,
12,
3353,
16,
4555,
16,
3258,
16,
10615,
819,
33,
2472,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
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,
3568,
67,
6208,
67,
8066,
281,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
309,
486,
819,
30,
819,
273,
2618,
279,
305,
67,
2603,
273,
365,
18,
6011,
18,
588,
2668,
4631,
18,
16119,
18,
8066,
6134,
364,
612,
316,
3258,
30,
4422,
18,
8837,
2932,
6460,
4571,
2236,
67,
16119,
67,
8066,
4852,
9179,
67,
350,
5095,
87,
3113,
261,
350,
16,
3719,
19170,
273,
365,
18,
25731,
12,
3353,
16,
4555,
16,
612,
16,
2472,
33,
2472,
2934,
31993,
67,
350,
309,
19170,
18,
4936,
30,
819,
18,
2725,
12590,
11,
4936,
4278,
19170,
18,
4936,
6792,
364,
5320,
73,
316,
279,
305,
67,
2603,
18,
9200,
12,
3353,
16,
2
] |
stderr = "scons: \*\*\* \[failed\d+] Error 2\n",
|
stderr = re_errors,
|
def fail_action(target = None, source = None, env = None): return 2
|
4feb688e4af7e13dfc04f99db3e0b0d2e205270c /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12817/4feb688e4af7e13dfc04f99db3e0b0d2e205270c/multiple-parents.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2321,
67,
1128,
12,
3299,
273,
599,
16,
1084,
273,
599,
16,
1550,
273,
599,
4672,
327,
576,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2321,
67,
1128,
12,
3299,
273,
599,
16,
1084,
273,
599,
16,
1550,
273,
599,
4672,
327,
576,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close()
|
if (isinstance(self.socket, ssl.SSLSocket) and self.socket._sslobj is not None): self._do_ssl_shutdown()
|
def close(self): try: if isinstance(self.socket, ssl.SSLSocket): if self.socket._sslobj is not None: self.socket.unwrap() finally: super(SSLConnection, self).close()
|
1ed3d171f04d0572132f528b514b20d186bd005e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8125/1ed3d171f04d0572132f528b514b20d186bd005e/test_ftplib.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240,
12,
6745,
1952,
16,
365,
2934,
4412,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1746,
12,
2890,
4672,
775,
30,
309,
1549,
12,
2890,
18,
7814,
16,
5832,
18,
1260,
25831,
4672,
309,
365,
18,
7814,
6315,
1049,
383,
441,
353,
486,
599,
30,
365,
18,
7814,
18,
318,
4113,
1435,
3095,
30,
2240,
12,
6745,
1952,
16,
365,
2934,
4412,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def _findSources(repos, callback=None):
|
def _findSources(self, repos, callback=None):
|
def _findSources(repos, callback=None): """ Method used to find all of the source components that would need to be built to build this group, including their flavor. """ return findSourcesForGroup(repos, self, callback)
|
a023d558219e13d3a60367ef226b52f871f2d3b0 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/a023d558219e13d3a60367ef226b52f871f2d3b0/grouprecipe.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4720,
8628,
12,
2890,
16,
13686,
16,
1348,
33,
7036,
4672,
3536,
2985,
1399,
358,
1104,
777,
434,
326,
1084,
4085,
716,
4102,
1608,
358,
506,
6650,
358,
1361,
333,
1041,
16,
6508,
3675,
19496,
18,
3536,
327,
1104,
8628,
1290,
1114,
12,
15564,
16,
365,
16,
1348,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4720,
8628,
12,
2890,
16,
13686,
16,
1348,
33,
7036,
4672,
3536,
2985,
1399,
358,
1104,
777,
434,
326,
1084,
4085,
716,
4102,
1608,
358,
506,
6650,
358,
1361,
333,
1041,
16,
6508,
3675,
19496,
18,
3536,
327,
1104,
8628,
1290,
1114,
12,
15564,
16,
365,
16,
1348,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def __getSubTree(tree, index): total = 0 if index == 0: return tree for child in tree: if total == index: return child try: nbrChild = IndividualTree.count(child) if nbrChild + total > index: return __getNode(child, index-total) else: total += nbrChild except: total += 1 return __getSubTree(self, index)
|
total = 0 if index == 0: return self for child in self: if total == index: return child try: nbrChild = IndividualTree.count(child) if nbrChild + total > index: return getSubTree(child, index-total) else: total += nbrChild except: total += 1
|
def __getSubTree(tree, index): total = 0 if index == 0: return tree for child in tree: if total == index: return child try: nbrChild = IndividualTree.count(child) if nbrChild + total > index: return __getNode(child, index-total) else: total += nbrChild except: total += 1
|
53f79555b4bcb3f22327d10adc6588f641221bfd /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7315/53f79555b4bcb3f22327d10adc6588f641221bfd/base.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1676,
2471,
12,
3413,
16,
770,
4672,
2078,
273,
374,
309,
770,
422,
374,
30,
327,
2151,
364,
1151,
316,
2151,
30,
309,
2078,
422,
770,
30,
327,
1151,
775,
30,
26297,
1763,
273,
24147,
2471,
18,
1883,
12,
3624,
13,
309,
26297,
1763,
397,
2078,
405,
770,
30,
327,
1001,
588,
907,
12,
3624,
16,
770,
17,
4963,
13,
469,
30,
2078,
1011,
26297,
1763,
1335,
30,
2078,
1011,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
588,
1676,
2471,
12,
3413,
16,
770,
4672,
2078,
273,
374,
309,
770,
422,
374,
30,
327,
2151,
364,
1151,
316,
2151,
30,
309,
2078,
422,
770,
30,
327,
1151,
775,
30,
26297,
1763,
273,
24147,
2471,
18,
1883,
12,
3624,
13,
309,
26297,
1763,
397,
2078,
405,
770,
30,
327,
1001,
588,
907,
12,
3624,
16,
770,
17,
4963,
13,
469,
30,
2078,
1011,
26297,
1763,
1335,
30,
2078,
1011,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.assertRaises(apsw.AbortError, blobro.read, 2)
|
def check_unchanged(): self.assertEqual(_fixup(buf[0]), BYTES(r"\x44")) self.assertEqual(_fixup(buf[1]), BYTES(r"\x55")) self.assertEqual(_fixup(buf[2]), BYTES(r"\x66")) self.assertEqual(_fixup(buf[3]), BYTES(r"\x77")) self.assertEqual(len(buf), 4)
|
a8ad9b57c969f6eae876f52887c05f5cfeb653a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/993/a8ad9b57c969f6eae876f52887c05f5cfeb653a0/tests.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
866,
67,
4384,
2330,
13332,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
20,
65,
3631,
26214,
12,
86,
12691,
92,
6334,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
21,
65,
3631,
26214,
12,
86,
12691,
92,
2539,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
22,
65,
3631,
26214,
12,
86,
12691,
92,
6028,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
23,
65,
3631,
26214,
12,
86,
12691,
92,
4700,
6,
3719,
365,
18,
11231,
5812,
12,
1897,
12,
4385,
3631,
1059,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
866,
67,
4384,
2330,
13332,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
20,
65,
3631,
26214,
12,
86,
12691,
92,
6334,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
21,
65,
3631,
26214,
12,
86,
12691,
92,
2539,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
22,
65,
3631,
26214,
12,
86,
12691,
92,
6028,
6,
3719,
365,
18,
11231,
5812,
24899,
904,
416,
12,
4385,
63,
23,
65,
3631,
26214,
12,
86,
12691,
92,
4700,
6,
3719,
365,
18,
11231,
5812,
12,
1897,
12,
4385,
3631,
1059,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
box = (int(x_diff), int(y_diff), int(x-x_diff), int(y-y_diff))
|
box = (int(x_diff), int(y_diff), int(x_diff+new_width), int(y_diff+new_height))
|
def create_size(self, photosize): if self.size_exists(photosize): return if not os.path.isdir(self.cache_path()): os.makedirs(self.cache_path()) try: im = Image.open(self.get_image_filename()) except IOError: return if im.size == photosize.size(): shutil.copy(self.get_image_filename(), self._get_SIZE_path(photosize)) return cur_width, cur_height = im.size new_width, new_height = photosize.size() if photosize.crop: ratio = max(float(new_width)/cur_width,float(new_height)/cur_height) x = (cur_width * ratio) y = (cur_height * ratio) xd = abs(new_width - x) yd = abs(new_height - y) x_diff = int(xd / 2) y_diff = int(yd / 2) if self.crop_from == 'top': box = (int(x_diff), 0, int(x-x_diff), new_height) elif self.crop_from == 'left': box = (0, int(y_diff), new_width, int(y-y_diff)) elif self.crop_from == 'bottom': box = (int(x_diff), int(yd), int(x-x_diff), int(y)) # y - yd = new_height elif self.crop_from == 'right': box = (int(xd), int(y_diff), int(x), int(y-y_diff)) # x - xd = new_width else: box = (int(x_diff), int(y_diff), int(x-x_diff), int(y-y_diff)) resized = im.resize((int(x), int(y)), Image.ANTIALIAS).crop(box) else: if not new_width == 0 and not new_height == 0: if cur_width > cur_height: ratio = float(new_width)/cur_width else: ratio = float(new_height)/cur_height else: if new_width == 0: ratio = float(new_height)/cur_height else: ratio = float(new_width)/cur_width resized = im.resize((int(cur_width*ratio), int(cur_height*ratio)), Image.ANTIALIAS) # Paletted images can not be filtered. # TODO: look into converting the image, applying the filter and then converting back. if resized.palette is None: if self.filter_set is not None: filter_set = self.filter_set.filters.all() elif photosize.filter_set is not None: filter_set = list(photosize.filter_set.filters.all()) else: filter_set = None if filter_set is not None: for f in filter_set: filter = getattr(ImageFilter, f.name, None) if filter is not None: try: resized = resized.filter(filter) except ValueError: pass resized_filename = getattr(self, "get_%s_path" % photosize.name)() try: if im.format == 'JPEG': resized.save(resized_filename, 'JPEG', quality=photosize.quality, optimize=True) else: resized.save(resized_filename) except IOError, e: if os.path.isfile(resized_filename): os.unlink(resized_filename) raise e
|
2b1c8ab9545b0315a6723fbdbba41e94b2e6411e /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/10711/2b1c8ab9545b0315a6723fbdbba41e94b2e6411e/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1467,
12,
2890,
16,
18185,
554,
4672,
309,
365,
18,
1467,
67,
1808,
12,
29121,
554,
4672,
327,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
2493,
67,
803,
1435,
4672,
1140,
18,
81,
9477,
10539,
12,
2890,
18,
2493,
67,
803,
10756,
775,
30,
709,
273,
3421,
18,
3190,
12,
2890,
18,
588,
67,
2730,
67,
3459,
10756,
1335,
8340,
30,
327,
309,
709,
18,
1467,
422,
18185,
554,
18,
1467,
13332,
11060,
18,
3530,
12,
2890,
18,
588,
67,
2730,
67,
3459,
9334,
365,
6315,
588,
67,
4574,
67,
803,
12,
29121,
554,
3719,
327,
662,
67,
2819,
16,
662,
67,
4210,
273,
709,
18,
1467,
394,
67,
2819,
16,
394,
67,
4210,
273,
18185,
554,
18,
1467,
1435,
309,
18185,
554,
18,
13758,
30,
7169,
273,
943,
12,
5659,
12,
2704,
67,
2819,
13176,
1397,
67,
2819,
16,
5659,
12,
2704,
67,
4210,
13176,
1397,
67,
4210,
13,
619,
273,
261,
1397,
67,
2819,
380,
7169,
13,
677,
273,
261,
1397,
67,
4210,
380,
7169,
13,
20009,
273,
2417,
12,
2704,
67,
2819,
300,
619,
13,
677,
72,
273,
2417,
12,
2704,
67,
4210,
300,
677,
13,
619,
67,
5413,
273,
509,
12,
7669,
342,
576,
13,
677,
67,
5413,
273,
509,
12,
93,
72,
342,
576,
13,
309,
365,
18,
13758,
67,
2080,
422,
296,
3669,
4278,
3919,
273,
261,
474,
12,
92,
67,
5413,
3631,
374,
16,
509,
12,
92,
17,
92,
67,
5413,
3631,
394,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
1467,
12,
2890,
16,
18185,
554,
4672,
309,
365,
18,
1467,
67,
1808,
12,
29121,
554,
4672,
327,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
2493,
67,
803,
1435,
4672,
1140,
18,
81,
9477,
10539,
12,
2890,
18,
2493,
67,
803,
10756,
775,
30,
709,
273,
3421,
18,
3190,
12,
2890,
18,
588,
67,
2730,
67,
3459,
10756,
1335,
8340,
30,
327,
309,
709,
18,
1467,
422,
18185,
554,
18,
1467,
13332,
11060,
18,
3530,
12,
2890,
18,
588,
67,
2730,
67,
3459,
9334,
365,
6315,
588,
67,
4574,
67,
803,
12,
29121,
554,
3719,
327,
662,
67,
2819,
16,
662,
67,
4210,
273,
709,
18,
1467,
394,
67,
2819,
16,
394,
2
] |
return (self.byDefaultMap is not None
|
return (self.byDefaultMap is not None and troveTup not in self.referencedByUnclonedMap
|
def troveInfoNeedsErase(self, mark, troveTup): kind = mark[0] if kind != V_REFTRV: # we only erase trove references - all other types # just let remain with their old, uncloned values. # This could change. return False return (self.byDefaultMap is not None and troveTup not in self.byDefaultMap)
|
e843c33c6ada7595981dd6a3700e12604fe1ae91 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8747/e843c33c6ada7595981dd6a3700e12604fe1ae91/clone.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
23432,
537,
966,
26419,
41,
5648,
12,
2890,
16,
2267,
16,
23432,
537,
56,
416,
4672,
3846,
273,
2267,
63,
20,
65,
309,
3846,
480,
776,
67,
10771,
4349,
58,
30,
468,
732,
1338,
22038,
23432,
537,
5351,
300,
777,
1308,
1953,
468,
2537,
2231,
7232,
598,
3675,
1592,
16,
6301,
80,
8184,
924,
18,
468,
1220,
3377,
2549,
18,
327,
1083,
327,
261,
2890,
18,
1637,
1868,
863,
353,
486,
599,
471,
23432,
537,
56,
416,
486,
316,
365,
18,
20883,
858,
984,
830,
8184,
863,
471,
23432,
537,
56,
416,
486,
316,
365,
18,
1637,
1868,
863,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
23432,
537,
966,
26419,
41,
5648,
12,
2890,
16,
2267,
16,
23432,
537,
56,
416,
4672,
3846,
273,
2267,
63,
20,
65,
309,
3846,
480,
776,
67,
10771,
4349,
58,
30,
468,
732,
1338,
22038,
23432,
537,
5351,
300,
777,
1308,
1953,
468,
2537,
2231,
7232,
598,
3675,
1592,
16,
6301,
80,
8184,
924,
18,
468,
1220,
3377,
2549,
18,
327,
1083,
327,
261,
2890,
18,
1637,
1868,
863,
353,
486,
599,
471,
23432,
537,
56,
416,
486,
316,
365,
18,
20883,
858,
984,
830,
8184,
863,
471,
23432,
537,
56,
416,
486,
316,
365,
18,
1637,
1868,
863,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self._name = 'List<%s>' % ITEMTYPE
|
def __init__(self, ITEMTYPE=None): self._ITEMTYPE = ITEMTYPE self._name = 'List<%s>' % ITEMTYPE self._null = _null_list(self) if ITEMTYPE is not None: self._init_methods()
|
20c02f778335cfe2c5b08aeb62dc35326fc9b579 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6934/20c02f778335cfe2c5b08aeb62dc35326fc9b579/ootype.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
25504,
2399,
33,
7036,
4672,
365,
6315,
12674,
2399,
273,
25504,
2399,
365,
6315,
2011,
273,
389,
2011,
67,
1098,
12,
2890,
13,
309,
25504,
2399,
353,
486,
599,
30,
365,
6315,
2738,
67,
5163,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
25504,
2399,
33,
7036,
4672,
365,
6315,
12674,
2399,
273,
25504,
2399,
365,
6315,
2011,
273,
389,
2011,
67,
1098,
12,
2890,
13,
309,
25504,
2399,
353,
486,
599,
30,
365,
6315,
2738,
67,
5163,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
bugs_number = [] for filename in os.listdir(install_file_path): if filename.endswith(pypt_bug_file_format): bugs_number.append(filename) if bugs_number: list_bugs() display_options() response = get_response() while True: if response == "?": display_options() response = get_response()
|
if bug_parse_required is True: bugs_number = [] for filename in os.listdir(install_file_path): if filename.endswith(pypt_bug_file_format): bugs_number.append(filename)
|
def list_bugs(): log.msg("\n\nFollowing are the list of bugs present.\n") for each_bug in bugs_number.keys(): bug_num = each_bug.split('.')[1] bug_subject = bugs_number[each_bug] log.msg("%s\t%s\n" % (bug_num, bug_subject) )
|
bf27eda3758a3b77fdeff5b846a63c1c8feb3962 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12499/bf27eda3758a3b77fdeff5b846a63c1c8feb3962/pypt_core.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
67,
19381,
13332,
613,
18,
3576,
31458,
82,
64,
82,
8328,
310,
854,
326,
666,
434,
22398,
3430,
8403,
82,
7923,
364,
1517,
67,
925,
316,
22398,
67,
2696,
18,
2452,
13332,
7934,
67,
2107,
273,
1517,
67,
925,
18,
4939,
2668,
1093,
25146,
21,
65,
7934,
67,
7857,
273,
22398,
67,
2696,
63,
13798,
67,
925,
65,
613,
18,
3576,
27188,
87,
64,
88,
9,
87,
64,
82,
6,
738,
261,
925,
67,
2107,
16,
7934,
67,
7857,
13,
262,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
613,
18,
3576,
31458,
82,
64,
82,
8328,
310,
854,
326,
666,
434,
22398,
3430,
8403,
82,
7923,
364,
1517,
67,
925,
316,
22398,
67,
2696,
18,
2452,
13332,
7934,
67,
2107,
273,
1517,
67,
925,
18,
4939,
2668,
1093,
25146,
21,
65,
7934,
67,
7857,
273,
22398,
67,
2696,
63,
13798,
67,
925,
65,
613,
18,
3576,
27188,
87,
64,
88,
9,
87,
64,
82,
6,
738,
261,
925,
67,
2107,
16,
7934,
67,
7857,
13,
262,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
(0.10010010001000)
|
(0, 10010010001000)
|
def lyndon_factorization(self): r""" Returns the Lyndon factorization of self. The *Lyndon factorization* of a finite word `w` is the unique factorization of `w` as a non-increasing product of Lyndon words, i.e., `w = l_1\cdots l_n` where each `l_i` is a Lyndon word and `l_1\geq \cdots \geq l_n`. See for instance [1]. OUTPUT:
|
5d95314847705862dc3fe746c7aff44f4caaa2bf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/5d95314847705862dc3fe746c7aff44f4caaa2bf/word.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
1375,
91,
68,
353,
326,
3089,
5578,
1588,
434,
1375,
91,
68,
487,
279,
1661,
17,
267,
1793,
11730,
3017,
434,
511,
878,
19752,
4511,
16,
277,
18,
73,
12990,
1375,
91,
273,
328,
67,
21,
64,
4315,
6968,
328,
67,
82,
68,
1625,
1517,
1375,
80,
67,
77,
68,
353,
279,
511,
878,
19752,
2076,
471,
1375,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
328,
878,
19752,
67,
6812,
1588,
12,
2890,
4672,
436,
8395,
2860,
326,
511,
878,
19752,
5578,
1588,
434,
365,
18,
225,
1021,
380,
48,
878,
19752,
5578,
1588,
14,
434,
279,
25922,
2076,
1375,
91,
68,
353,
326,
3089,
5578,
1588,
434,
1375,
91,
68,
487,
279,
1661,
17,
267,
1793,
11730,
3017,
434,
511,
878,
19752,
4511,
16,
277,
18,
73,
12990,
1375,
91,
273,
328,
67,
21,
64,
4315,
6968,
328,
67,
82,
68,
1625,
1517,
1375,
80,
67,
77,
68,
353,
279,
511,
878,
19752,
2076,
471,
1375,
80,
67,
21,
64,
908,
85,
521,
4315,
6968,
521,
908,
85,
328,
67,
82,
8338,
2164,
364,
791,
306,
21,
8009,
225,
11550,
30,
2,
-100
] |
raise RuntimeError, 'expected "%s", "%s", "%s", "%s",or "%s" at index %d but got: %s' % (TdbqLiteral.IS, TdbqLiteral.EQUAL, TdbqLiteral.NOT_EQUAL, TdbqLiteral.MATCHES, TdbqLiteral.DOES_NOT_MATCH, oper.index(), oper.translate())
|
raise RuntimeError, 'expected "%s", "%s", "%s", "%s" or "%s" at index %d but got: %s' % (TdbqLiteral.IS, TdbqLiteral.EQUAL, TdbqLiteral.NOT_EQUAL, TdbqLiteral.MATCHES, TdbqLiteral.DOES_NOT_MATCH, oper.index(), oper.translate())
|
def __expression(self): '''expression : TdbqToken.PAREN_OPEN or_expression TdbqToken.PAREN_CLOSE | TdbqToken.IDENTIFIER TdbqToken.IS TdbqToken.NOT? ( TdbqToken.SET | TdbqToken.STRING ) | TdbqToken.IDENTIFIER ( TdbqToken.EQUAL | TdbqToken.NOT_EQUAL | TdbqToken.MATCHES | TdbqToken.DOES_NOT_MATCH ) TdbqToken.STRING ;''' if self.__accept(TdbqToken.PAREN_OPEN): self.__or_expression() self.__expect(TdbqToken.PAREN_CLOSE, self.__input[self.__ind].index()) return # Identifier ident = self.__input[self.__ind] self.__expect(TdbqToken.IDENTIFIER, ident.index()) func_ident = str_to_lambda_au(ident.value()) if func_ident is None: raise RuntimeError, 'bad identifier at index %d: %s' % (ident.index(), ident.value()) # Operator, or "is" and optional "not" oper = self.__input[self.__ind] opertyp = oper.type() if self.__accept(TdbqToken.IS): if self.__accept(TdbqToken.NOT): opertyp = TdbqToken.NOT_EQUAL else: opertyp = TdbqToken.EQUAL elif opertyp in [TdbqToken.EQUAL, TdbqToken.NOT_EQUAL, TdbqToken.MATCHES, TdbqToken.DOES_NOT_MATCH]: self.__expect(opertyp, oper.index()) else: raise RuntimeError, 'expected "%s", "%s", "%s", "%s",or "%s" at index %d but got: %s' % (TdbqLiteral.IS, TdbqLiteral.EQUAL, TdbqLiteral.NOT_EQUAL, TdbqLiteral.MATCHES, TdbqLiteral.DOES_NOT_MATCH, oper.index(), oper.translate())
|
6f28484b019d00ef3a706af71fd3242ba769df33 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/766/6f28484b019d00ef3a706af71fd3242ba769df33/tdbq.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
8692,
12,
2890,
4672,
9163,
8692,
294,
17050,
85,
1345,
18,
15111,
67,
11437,
578,
67,
8692,
17050,
85,
1345,
18,
15111,
67,
13384,
571,
17050,
85,
1345,
18,
16606,
17050,
85,
1345,
18,
5127,
17050,
85,
1345,
18,
4400,
35,
261,
17050,
85,
1345,
18,
4043,
571,
17050,
85,
1345,
18,
5804,
262,
571,
17050,
85,
1345,
18,
16606,
261,
17050,
85,
1345,
18,
12853,
571,
17050,
85,
1345,
18,
4400,
67,
12853,
571,
17050,
85,
1345,
18,
11793,
3991,
571,
17050,
85,
1345,
18,
3191,
3991,
67,
4400,
67,
11793,
262,
17050,
85,
1345,
18,
5804,
274,
26418,
309,
365,
16186,
9436,
12,
56,
1966,
85,
1345,
18,
15111,
67,
11437,
4672,
365,
16186,
280,
67,
8692,
1435,
365,
16186,
12339,
12,
56,
1966,
85,
1345,
18,
15111,
67,
13384,
16,
365,
16186,
2630,
63,
2890,
16186,
728,
8009,
1615,
10756,
327,
225,
468,
10333,
3390,
273,
365,
16186,
2630,
63,
2890,
16186,
728,
65,
365,
16186,
12339,
12,
56,
1966,
85,
1345,
18,
16606,
16,
3390,
18,
1615,
10756,
1326,
67,
6392,
273,
609,
67,
869,
67,
14661,
67,
8377,
12,
6392,
18,
1132,
10756,
309,
1326,
67,
6392,
353,
599,
30,
1002,
7265,
16,
296,
8759,
2756,
622,
770,
738,
72,
30,
738,
87,
11,
738,
261,
6392,
18,
1615,
9334,
3390,
18,
1132,
10756,
225,
468,
11097,
16,
578,
315,
291,
6,
471,
3129,
315,
902,
6,
2255,
273,
365,
16186,
2630,
63,
2890,
16186,
728,
65,
320,
824,
84,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
8692,
12,
2890,
4672,
9163,
8692,
294,
17050,
85,
1345,
18,
15111,
67,
11437,
578,
67,
8692,
17050,
85,
1345,
18,
15111,
67,
13384,
571,
17050,
85,
1345,
18,
16606,
17050,
85,
1345,
18,
5127,
17050,
85,
1345,
18,
4400,
35,
261,
17050,
85,
1345,
18,
4043,
571,
17050,
85,
1345,
18,
5804,
262,
571,
17050,
85,
1345,
18,
16606,
261,
17050,
85,
1345,
18,
12853,
571,
17050,
85,
1345,
18,
4400,
67,
12853,
571,
17050,
85,
1345,
18,
11793,
3991,
571,
17050,
85,
1345,
18,
3191,
3991,
67,
4400,
67,
11793,
262,
17050,
85,
1345,
18,
5804,
274,
26418,
309,
365,
16186,
9436,
12,
56,
1966,
85,
1345,
18,
15111,
67,
11437,
4672,
365,
16186,
280,
2
] |
path = path.replace('/', os.sep)
|
path = self._absnorm(path)
|
def _list_dir(self, path, pattern=None, pattern_type='simple', absolute=False): path = path.replace('/', os.sep) if not os.path.isdir(path): raise DataError("Directory '%s' does not exist" % path) items = os.listdir(path) if pattern: items = BUILTIN._filter_lines(items, pattern, pattern_type) items.sort() if utils.to_boolean(absolute, true_strs=['absolute'], default=False): path = utils.normpath(path) items = [ os.path.join(path,item) for item in items ] return items
|
4e92df2860c270b97129fb5577b1caec2faab8a2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6988/4e92df2860c270b97129fb5577b1caec2faab8a2/OperatingSystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1098,
67,
1214,
12,
2890,
16,
589,
16,
1936,
33,
7036,
16,
1936,
67,
723,
2218,
9647,
2187,
4967,
33,
8381,
4672,
589,
273,
365,
6315,
5113,
7959,
12,
803,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1002,
1910,
668,
2932,
2853,
1995,
87,
11,
1552,
486,
1005,
6,
738,
589,
13,
1516,
273,
1140,
18,
1098,
1214,
12,
803,
13,
309,
1936,
30,
1516,
273,
10937,
2627,
56,
706,
6315,
2188,
67,
3548,
12,
3319,
16,
1936,
16,
1936,
67,
723,
13,
1516,
18,
3804,
1435,
309,
2990,
18,
869,
67,
6494,
12,
12547,
16,
638,
67,
24432,
33,
3292,
12547,
17337,
805,
33,
8381,
4672,
589,
273,
2990,
18,
7959,
803,
12,
803,
13,
1516,
273,
306,
1140,
18,
803,
18,
5701,
12,
803,
16,
1726,
13,
364,
761,
316,
1516,
308,
327,
1516,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1098,
67,
1214,
12,
2890,
16,
589,
16,
1936,
33,
7036,
16,
1936,
67,
723,
2218,
9647,
2187,
4967,
33,
8381,
4672,
589,
273,
365,
6315,
5113,
7959,
12,
803,
13,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
803,
4672,
1002,
1910,
668,
2932,
2853,
1995,
87,
11,
1552,
486,
1005,
6,
738,
589,
13,
1516,
273,
1140,
18,
1098,
1214,
12,
803,
13,
309,
1936,
30,
1516,
273,
10937,
2627,
56,
706,
6315,
2188,
67,
3548,
12,
3319,
16,
1936,
16,
1936,
67,
723,
13,
1516,
18,
3804,
1435,
309,
2990,
18,
869,
67,
6494,
12,
12547,
16,
638,
67,
24432,
33,
3292,
12547,
17337,
805,
33,
8381,
4672,
589,
273,
2990,
18,
7959,
2
] |
import __main__ __main__.__dict__.clear() __main__.__dict__.update({'__name__':'__main__'}) require(dist_spec)[0].metadata.run_script(script_name, __main__.__dict__)
|
ns = sys._getframe(1).f_globals name = ns['__name__'] ns.clear() ns['__name__'] = name require(dist_spec)[0].metadata.run_script(script_name, ns) run_main = run_script
|
def run_main(dist_spec, script_name): """Locate distribution `dist_spec` and run its `script_name` script""" import __main__ __main__.__dict__.clear() __main__.__dict__.update({'__name__':'__main__'}) require(dist_spec)[0].metadata.run_script(script_name, __main__.__dict__)
|
6a241540966aab371e48413a7f8ace8d2257aa6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/495/6a241540966aab371e48413a7f8ace8d2257aa6f/pkg_resources.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5254,
12,
4413,
67,
2793,
16,
2728,
67,
529,
4672,
3536,
1333,
340,
7006,
1375,
4413,
67,
2793,
68,
471,
1086,
2097,
1375,
4263,
67,
529,
68,
2728,
8395,
3153,
273,
2589,
6315,
588,
3789,
12,
21,
2934,
74,
67,
16227,
508,
273,
3153,
3292,
972,
529,
972,
3546,
3153,
18,
8507,
1435,
3153,
3292,
972,
529,
972,
3546,
273,
508,
2583,
12,
4413,
67,
2793,
25146,
20,
8009,
4165,
18,
2681,
67,
4263,
12,
4263,
67,
529,
16,
3153,
13,
225,
1086,
67,
5254,
273,
1086,
67,
4263,
6647,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
67,
5254,
12,
4413,
67,
2793,
16,
2728,
67,
529,
4672,
3536,
1333,
340,
7006,
1375,
4413,
67,
2793,
68,
471,
1086,
2097,
1375,
4263,
67,
529,
68,
2728,
8395,
3153,
273,
2589,
6315,
588,
3789,
12,
21,
2934,
74,
67,
16227,
508,
273,
3153,
3292,
972,
529,
972,
3546,
3153,
18,
8507,
1435,
3153,
3292,
972,
529,
972,
3546,
273,
508,
2583,
12,
4413,
67,
2793,
25146,
20,
8009,
4165,
18,
2681,
67,
4263,
12,
4263,
67,
529,
16,
3153,
13,
225,
1086,
67,
5254,
273,
1086,
67,
4263,
6647,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
print m
|
def footer(**map): yield self.t("footer", **map)
|
55da75345ebeff110bc62a1da01a64434540c9bd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/55da75345ebeff110bc62a1da01a64434540c9bd/hgweb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9860,
12,
636,
1458,
4672,
2824,
365,
18,
88,
2932,
14723,
3113,
2826,
1458,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9860,
12,
636,
1458,
4672,
2824,
365,
18,
88,
2932,
14723,
3113,
2826,
1458,
13,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
ws = environ.get('wsgi.websocket')
|
ws = environ.pop('wsgi.websocket')
|
def __call__(self, environ, start_response): client = environ[CLIENT_KEY] g = client.get_greenlet() if not g: # new greenlet g = greenlet.greenlet(self.app) client.set_greenlet(g) c = Continuation(client) environ[CONTINUATION_KEY] = c
|
c69e897ff4f08edeed98630174273730d30b2f68 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5908/c69e897ff4f08edeed98630174273730d30b2f68/websocket.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
1004,
273,
5473,
63,
11935,
67,
3297,
65,
314,
273,
1004,
18,
588,
67,
11571,
1810,
1435,
309,
486,
314,
30,
468,
394,
10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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
5473,
16,
787,
67,
2740,
4672,
1004,
273,
5473,
63,
11935,
67,
3297,
65,
314,
273,
1004,
18,
588,
67,
11571,
1810,
1435,
309,
486,
314,
30,
468,
394,
10004,
1810,
314,
273,
10004,
1810,
18,
11571,
1810,
12,
2890,
18,
2910,
13,
1004,
18,
542,
67,
11571,
1810,
12,
75,
13,
276,
273,
1816,
23946,
12,
2625,
13,
5473,
63,
6067,
706,
57,
2689,
67,
3297,
65,
273,
276,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
EXAMPLE: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: W = a2.lattice().weyl_group() sage: mu = a2(2,1,0) sage: nu = sum(mu.weyl_group_action(w) for w in W) sage: nu a2(0,1,2) + a2(0,2,1) + a2(1,0,2) + a2(1,2,0) + a2(2,0,1) + a2(2,1,0) sage: nu.character() -2*A2(1,1,1) + A2(2,1,0)
|
EXAMPLES: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: W = a2.lattice().weyl_group() sage: mu = a2(2,1,0) sage: nu = sum(mu.weyl_group_action(w) for w in W) sage: nu a2(0,1,2) + a2(0,2,1) + a2(1,0,2) + a2(1,2,0) + a2(2,0,1) + a2(2,1,0) sage: nu.character() -2*A2(1,1,1) + A2(2,1,0)
|
def character(self): """ Assuming that self is invariant under the Weyl group, this will express it as a linear combination of characters. If self is not Weyl group invariant, this method will not terminate. EXAMPLE: sage: A2 = WeylCharacterRing(['A',2]) sage: a2 = WeightRing(A2) sage: W = a2.lattice().weyl_group() sage: mu = a2(2,1,0) sage: nu = sum(mu.weyl_group_action(w) for w in W) sage: nu a2(0,1,2) + a2(0,2,1) + a2(1,0,2) + a2(1,2,0) + a2(2,0,1) + a2(2,1,0) sage: nu.character() -2*A2(1,1,1) + A2(2,1,0) """ return WeylCharacter(self._parent._parent, self._parent._parent.char_from_weights(self._mdict), self._mdict)
|
da4d6149538661041003f964c0d06f212d52f0f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/da4d6149538661041003f964c0d06f212d52f0f5/weyl_characters.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3351,
12,
2890,
4672,
3536,
4725,
21249,
716,
365,
353,
22514,
3613,
326,
678,
402,
80,
1041,
16,
333,
903,
16947,
518,
487,
279,
9103,
10702,
434,
3949,
18,
971,
365,
353,
486,
678,
402,
80,
1041,
22514,
16,
333,
707,
903,
486,
10850,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
15437,
10369,
12,
37,
22,
13,
272,
410,
30,
678,
273,
279,
22,
18,
80,
24966,
7675,
91,
402,
80,
67,
1655,
1435,
272,
410,
30,
4129,
273,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
273,
2142,
12,
13297,
18,
91,
402,
80,
67,
1655,
67,
1128,
12,
91,
13,
364,
341,
316,
678,
13,
272,
410,
30,
9244,
279,
22,
12,
20,
16,
21,
16,
22,
13,
397,
279,
22,
12,
20,
16,
22,
16,
21,
13,
397,
279,
22,
12,
21,
16,
20,
16,
22,
13,
397,
279,
22,
12,
21,
16,
22,
16,
20,
13,
397,
279,
22,
12,
22,
16,
20,
16,
21,
13,
397,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
18,
11560,
1435,
300,
22,
14,
37,
22,
12,
21,
16,
21,
16,
21,
13,
397,
432,
22,
12,
22,
16,
21,
16,
20,
13,
3536,
327,
678,
402,
80,
7069,
12,
2890,
6315,
2938,
6315,
2938,
16,
365,
6315,
2938,
6315,
2938,
18,
3001,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3351,
12,
2890,
4672,
3536,
4725,
21249,
716,
365,
353,
22514,
3613,
326,
678,
402,
80,
1041,
16,
333,
903,
16947,
518,
487,
279,
9103,
10702,
434,
3949,
18,
971,
365,
353,
486,
678,
402,
80,
1041,
22514,
16,
333,
707,
903,
486,
10850,
18,
225,
5675,
8900,
11386,
30,
272,
410,
30,
432,
22,
273,
678,
402,
80,
7069,
10369,
12,
3292,
37,
2187,
22,
5717,
272,
410,
30,
279,
22,
273,
15437,
10369,
12,
37,
22,
13,
272,
410,
30,
678,
273,
279,
22,
18,
80,
24966,
7675,
91,
402,
80,
67,
1655,
1435,
272,
410,
30,
4129,
273,
279,
22,
12,
22,
16,
21,
16,
20,
13,
272,
410,
30,
9244,
273,
2142,
12,
13297,
2
] |
g = G(self.gens()[2])
|
g = G(self.gens()[2])
|
def F(self): G = self.group()
|
c4436c8abac791e198815503e74478ec5cbb6c54 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/c4436c8abac791e198815503e74478ec5cbb6c54/cubegroup.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
478,
12,
2890,
4672,
611,
273,
365,
18,
1655,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
478,
12,
2890,
4672,
611,
273,
365,
18,
1655,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
self.first_toggle = True
|
def __init__(self): self.usb_devices = [] self.tmp_swapdir = "" self.tmp_overlaydir = "" self.puel = False self.splash = None self.first_toggle = True self.do_not_update = False self.env = self.update_env()
|
a71fd501b6f910af85a30de85185063ed8b203cf /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1208/a71fd501b6f910af85a30de85185063ed8b203cf/osbackend.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25525,
67,
12506,
565,
273,
5378,
365,
18,
5645,
67,
22270,
1214,
565,
273,
1408,
365,
18,
5645,
67,
17312,
1214,
273,
1408,
365,
18,
11938,
292,
6647,
273,
1083,
365,
18,
13106,
961,
540,
273,
599,
365,
18,
2896,
67,
902,
67,
2725,
225,
273,
1083,
225,
365,
18,
3074,
273,
365,
18,
2725,
67,
3074,
1435,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
25525,
67,
12506,
565,
273,
5378,
365,
18,
5645,
67,
22270,
1214,
565,
273,
1408,
365,
18,
5645,
67,
17312,
1214,
273,
1408,
365,
18,
11938,
292,
6647,
273,
1083,
365,
18,
13106,
961,
540,
273,
599,
365,
18,
2896,
67,
902,
67,
2725,
225,
273,
1083,
225,
365,
18,
3074,
273,
365,
18,
2725,
67,
3074,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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
] |
|
iplist.append(ip)
|
if ip in bhip: if ip in ports: iplist.append(ip) iplist.append(bhip[ip]) else: iplist.append(ip)
|
def getASNlist_cymru(list): ASNlist = [] s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(("whois.cymru.com",43)) s.send("begin\r\n"+"\r\n".join(list)+"\r\nend\r\n") r = "" while 1: l = s.recv(8192) if l == "": break r += l s.close() for l in r.splitlines()[1:]: asn,ip,desc = map(str.strip, l.split("|")) if asn == "NA": continue asn = int(asn) ASNlist.append((ip,asn,desc)) return ASNlist
|
d3077b31b527f51a50f26ce248da866a657b9544 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7311/d3077b31b527f51a50f26ce248da866a657b9544/scapy.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
22269,
1098,
67,
2431,
81,
8653,
12,
1098,
4672,
18598,
1098,
273,
5378,
272,
273,
2987,
18,
7814,
12,
7814,
18,
6799,
67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12,
2932,
3350,
19606,
18,
2431,
81,
8653,
18,
832,
3113,
8942,
3719,
272,
18,
4661,
2932,
10086,
64,
86,
64,
82,
6,
9078,
64,
86,
64,
82,
9654,
5701,
12,
1098,
13,
9078,
64,
86,
64,
82,
409,
64,
86,
64,
82,
7923,
436,
273,
1408,
1323,
404,
30,
328,
273,
272,
18,
18334,
12,
28,
15561,
13,
309,
328,
422,
1408,
30,
898,
436,
1011,
328,
272,
18,
4412,
1435,
364,
328,
316,
436,
18,
4939,
3548,
1435,
63,
21,
30,
14542,
12211,
16,
625,
16,
5569,
273,
852,
12,
701,
18,
6406,
16,
328,
18,
4939,
2932,
22317,
3719,
309,
12211,
422,
315,
11277,
6877,
1324,
12211,
273,
509,
12,
31432,
13,
18598,
1098,
18,
6923,
12443,
625,
16,
31432,
16,
5569,
3719,
327,
18598,
1098,
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,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67,
18819,
16,
2987,
18,
3584,
3507,
67,
13693,
13,
272,
18,
3612,
12,
2932,
3350,
19606,
18,
2431,
81,
8653,
18,
832,
3113,
8942,
3719,
272,
18,
4661,
2932,
10086,
64,
86,
64,
82,
6,
9078,
64,
86,
64,
82,
9654,
5701,
12,
1098,
13,
9078,
64,
86,
64,
82,
409,
64,
86,
64,
82,
7923,
436,
273,
1408,
1323,
404,
30,
328,
273,
272,
18,
18334,
12,
28,
15561,
13,
309,
328,
422,
1408,
30,
898,
436,
1011,
328,
272,
18,
4412,
1435,
364,
328,
316,
436,
18,
4939,
3548,
1435,
63,
21,
2
] |
globals.update(vars())
|
globals().update(vars())
|
def do_imports(self): try: from mercurial.__version__ import version from mercurial import hg, ui, cmdutil except ImportError: pass
|
4338058b6c9050f594e35747f2ec2621d5622f30 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/833/4338058b6c9050f594e35747f2ec2621d5622f30/setuptools_hg.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
21350,
12,
2890,
4672,
775,
30,
628,
4045,
1397,
649,
16186,
1589,
972,
1930,
1177,
628,
4045,
1397,
649,
1930,
22576,
16,
5915,
16,
24884,
1335,
11308,
30,
1342,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
21350,
12,
2890,
4672,
775,
30,
628,
4045,
1397,
649,
16186,
1589,
972,
1930,
1177,
628,
4045,
1397,
649,
1930,
22576,
16,
5915,
16,
24884,
1335,
11308,
30,
1342,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
locale = locale.getdefaultlocale()
|
locale = _locale.getdefaultlocale()
|
def __init__(self, firstweekday=0, locale=None): TextCalendar.__init__(self, firstweekday) if locale is None: locale = locale.getdefaultlocale() self.locale = locale
|
cd469a0757f6a55b468e50bf09177c79ce0782a5 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/cd469a0757f6a55b468e50bf09177c79ce0782a5/calendar.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
33,
20,
16,
2573,
33,
7036,
4672,
3867,
7335,
16186,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
13,
309,
2573,
353,
599,
30,
2573,
273,
389,
6339,
18,
588,
1886,
6339,
1435,
365,
18,
6339,
273,
2573,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
33,
20,
16,
2573,
33,
7036,
4672,
3867,
7335,
16186,
2738,
972,
12,
2890,
16,
1122,
10741,
2881,
13,
309,
2573,
353,
599,
30,
2573,
273,
389,
6339,
18,
588,
1886,
6339,
1435,
365,
18,
6339,
273,
2573,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.