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
|
|---|---|---|---|---|---|---|
Subwidgets Class ---------- ----- btns StdButtonBox fsbox FileSelectBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixFileSelectDialog', ['options'], cnf, kw) self.subwidget_list['btns'] = _dummyStdButtonBox(self, 'btns') self.subwidget_list['fsbox'] = _dummyFileSelectBox(self, 'fsbox')
|
Subwidgets Class ---------- ----- btns StdButtonBox fsbox FileSelectBox""" def __init__(self, master, cnf={}, **kw): TixWidget.__init__(self, master, 'tixFileSelectDialog', ['options'], cnf, kw) self.subwidget_list['btns'] = _dummyStdButtonBox(self, 'btns') self.subwidget_list['fsbox'] = _dummyFileSelectBox(self, 'fsbox')
|
def invoke(self):
|
86af7ef7e3f4448abc89aa941517a84075d99a38 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/86af7ef7e3f4448abc89aa941517a84075d99a38/Tix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4356,
12,
2890,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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.dump_children(element, output, list_level=list_level)
|
self.dump_children(element, output, list_level=list_level)
|
def dump_children(self, list, output, list_level = -1): if list.text: output.append(list.text)
|
ac41eeba50a29c9fd21ae17bc66b910ea7d1d577 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4103/ac41eeba50a29c9fd21ae17bc66b910ea7d1d577/latex.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
5906,
12,
2890,
16,
666,
16,
876,
16,
666,
67,
2815,
273,
300,
21,
4672,
309,
666,
18,
955,
30,
876,
18,
6923,
12,
1098,
18,
955,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4657,
67,
5906,
12,
2890,
16,
666,
16,
876,
16,
666,
67,
2815,
273,
300,
21,
4672,
309,
666,
18,
955,
30,
876,
18,
6923,
12,
1098,
18,
955,
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
] |
def __init__(data = None)
|
def __init__(data = None):
|
def __init__(data = None) if data == None: quickfix.IntField.__init__(self, 445) else quickfix.IntField.__init__(self, 445, data)
|
484890147d4b23aac4b9d0e85e84fceab7e137c3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8819/484890147d4b23aac4b9d0e85e84fceab7e137c3/quickfix_fields.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
892,
273,
599,
4672,
309,
501,
422,
599,
30,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
7950,
13,
469,
9549,
904,
18,
1702,
974,
16186,
2738,
972,
12,
2890,
16,
1059,
7950,
16,
501,
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
] |
broken = nuninst[arch][:]
|
nuninst[arch + "+all"] = [x for x in nuninst_comp[arch + "+all"] if x in binaries[arch][0]] broken = nuninst[arch + "+all"][:]
|
def iter_packages(self, packages, selected, hint=False, nuninst=None): """Iter on the list of actions and apply them one-by-one
|
333b76f04c83e940fd1667457dc7d9c0a58c6aa6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2784/333b76f04c83e940fd1667457dc7d9c0a58c6aa6/britney.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1400,
67,
10308,
12,
2890,
16,
5907,
16,
3170,
16,
7380,
33,
8381,
16,
290,
318,
8591,
33,
7036,
4672,
3536,
2360,
603,
326,
666,
434,
4209,
471,
2230,
2182,
1245,
17,
1637,
17,
476,
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
] |
func.WriteHandlerValidation(file)
|
def WriteImmediateHandlerImplementation (self, func, file): """Overrriden from TypeHandler.""" func.WriteHandlerValidation(file) file.Write(" DeleteGLObjects<GL%sHelper>(n, %s);\n" % (func.original_name, func.GetLastOriginalArg().name))
|
f542468aabd3f9a507d2438f7a635134fd3dca43 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5060/f542468aabd3f9a507d2438f7a635134fd3dca43/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1503,
13621,
261,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
225,
2504,
11261,
4710,
32,
11261,
9,
87,
2276,
34,
12,
82,
16,
738,
87,
20472,
82,
6,
738,
261,
644,
18,
8830,
67,
529,
16,
1326,
18,
967,
3024,
8176,
4117,
7675,
529,
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,
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1503,
12123,
585,
18,
3067,
2932,
225,
2504,
11261,
4710,
32,
11261,
9,
87,
2276,
34,
12,
82,
16,
738,
87,
20472,
82,
6,
738,
261,
644,
18,
8830,
67,
529,
16,
1326,
18,
967,
3024,
8176,
4117,
7675,
529,
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
] |
|
(Q,Q_err2) = axis_manip.wavelength_to_scalar_Q(l_f[0], l_f[1], angle/2.0, angle_err2/2.0)
|
Q = axis_manip.wavelength_to_scalar_Q(l_f[0], l_f[1], angle / 2.0, angle_err2 / 2.0)
|
def create_2D_dist(som,*args,**kwargs): """ This function takes a SOM of single spectrum with energy transfer axes and rebins those axes to a given axis and converts the spectra into a single I(Q,E) spectrum. Parameters: ---------- -> som is the input SOM with energy transfer axis SOs -> *args is a mandatory list of axes for rebinning. There is a particular order to them. They should be present in the following order: Without errors 1. Energy transfer 2. Momentum transfer With errors 1. Energy transfer 2. Energy transfer error^2 3. Momentum transfer 4. Momentum transfer error ^2 -> **kwargs is a dictionary of optional keywords that pass information to the function. Here are the currently accepted keywords: - withXVar=<string>. The string will either be True or False. If the keyword is not present, the default value will be False - data_type=<string> The string can be either histogram, density or coordinate. If the keyword is not present, the default value will be histogram - so_id=<identifier> The identifier represents a number, string, tuple or other object that describes the resulting SO - y_label=<string> This is a string that sets the y axis label - y_units=<string> This is a string that sets the y axis units - x_labels=<list of strings> This is a list of strings that sets the individual x axes labels - x_units=<list of string> This is a list of strings that sets the individual x axes units Returns: ------- <- A SOM with a single 2D SO with E and Q axes Exceptions: ---------- <- RuntimeError is raised if the parameter given to the keyword argument withXVar is not True or False <- RuntimeError is raised if the parameter given to the keyword argument data_type is not histogram or density or coordinate <- RuntimeError is raised is the number of given arguments (x-axes) is not either 2 (no errors) or 4 (with errors) """ import common_lib import hlr_utils import nessi_list import SOM # Setup some variables dim = 2 N_y = [] N_tot = 1 N_args = len(args) # Check withXVar keyword argument and also check number of given args. # Set xvar and Q_pos (position of the momentum transfer axis in the args # list) to the appropriate values try: value = kwargs["withXVar"] if value.lower() == "true": if N_args != 4: raise RuntimeError, "Since you have requested x errors, 4 x "\ +"axes must be provided." else: xvar = True Q_pos = 2 elif value.lower() == "false": if N_args != 2: raise RuntimeError, "Since you did not requested x errors, 2 "\ +"x axes must be provided." else: xvar = False Q_pos = 1 else: raise RuntimeError, "Do not understand given parameter %s" % \ value except KeyError: if N_args != 2: raise RuntimeError, "Since you did not requested x errors, 2 "\ +"x axes must be provided." else: xvar = False Q_pos = 1 # Check dataType keyword argument. An offset will be set to 1 for the # histogram type and 0 for either density or coordinate try: type = kwargs["data_type"] if type.lower() == "histogram": offset = 1 elif type.lower() == "density" or type.lower() == "coordinate": offset = 0 else: raise RuntimeError, "Do not understand data type given: %s" % \ type # Default is offset for histogram except KeyError: offset = 1 so_dim = SOM.SO(dim) for i in range(dim): # Set the x-axis arguments from the *args list into the new SO if not xvar: # Axis positions are 1 (Q) and 0 (E) position = dim-i-1 so_dim.axis[i].val = args[position] else: # Axis positions are 2 (Q), 3 (eQ), 0 (E), 1 (eE) position = dim-2*i so_dim.axis[i].val = args[position] so_dim.axis[i].var = args[position+1] # Set individual value axis sizes (not x-axis size) N_y.append(len(args[position]) - offset) # Calculate total 2D array size N_tot = N_tot * N_y[-1] # Create y and var_y lists from total 2D size so_dim.y = nessi_list.NessiList(N_tot) so_dim.var_y = nessi_list.NessiList(N_tot) # Rebin data to E axis som1 = common_lib.rebin_axis_1D(som, args[0]) som = None del som inst = som1.attr_list.instrument lambda_final = som1.attr_list["Wavelength_final"] import array_manip import axis_manip for i in range(hlr_utils.get_length(som1)): # Find Q for pixel so = hlr_utils.get_value(som1,i,"SOM","all") (angle,angle_err2) = hlr_utils.get_parameter("polar",so,inst) l_f = hlr_utils.get_special(lambda_final, so) (Q,Q_err2) = axis_manip.wavelength_to_scalar_Q(l_f[0], l_f[1], angle/2.0, angle_err2/2.0) # Find Q value in given momentum transfer axis index = -1 for j in range(N_y[0]): if Q >= args[Q_pos][j] and Q < args[Q_pos][j+1]: index = j break if index != -1: start = index * N_y[1] finish = (index + 1) * N_y[1] length = finish - start + 1 val = hlr_utils.get_value(som1, i, "SOM") err2 = hlr_utils.get_err2(som1, i, "SOM") (so_dim.y, so_dim.var_y) = array_manip.add_ncerr(so_dim.y, so_dim.var_y, val, err2, a_start=start, b_size=length) # If the Q value is not found in the given axis, do nothing and # continue else: pass # Check for so_id keyword argument if kwargs.has_key("so_id"): so_dim.id = kwargs["so_id"] else: so_dim.id = 0 comb_som = SOM.SOM() comb_som.copyAttributes(som1) # Check for y_label keyword argument if kwargs.has_key("y_label"): comb_som.setYLabel(kwargs["y_label"]) else: comb_som.setYLabel("Counts") # Check for y_units keyword argument if kwargs.has_key("y_units"): comb_som.setYUnits(kwargs["y_units"]) else: comb_som.setYUnits("Counts / THz A^-1") # Check for x_labels keyword argument if kwargs.has_key("x_labels"): comb_som.setAllAxisLabels(kwargs["x_labels"]) else: comb_som.setAllAxisLabels(["Momentum transfer","Energy transfer"]) # Check for x_units keyword argument if kwargs.has_key("x_units"): comb_som.setAllAxisUnits(kwargs["x_units"]) else: comb_som.setAllAxisUnits(["A^-1","THz"]) comb_som.append(so_dim) return comb_som
|
8c0e478ff0fa2abc2e5d85a427bbaf1028f81580 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/763/8c0e478ff0fa2abc2e5d85a427bbaf1028f81580/hlr_create_2D_dist.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
22,
40,
67,
4413,
12,
87,
362,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
12929,
7412,
6515,
471,
283,
11862,
5348,
6515,
358,
279,
864,
2654,
471,
7759,
326,
23242,
354,
1368,
279,
2202,
467,
12,
53,
16,
41,
13,
17970,
18,
225,
7012,
30,
12181,
317,
4737,
353,
326,
810,
348,
1872,
598,
12929,
7412,
2654,
7460,
87,
317,
380,
1968,
353,
279,
11791,
666,
434,
6515,
364,
283,
4757,
2093,
18,
225,
6149,
353,
279,
6826,
1353,
358,
2182,
18,
16448,
1410,
506,
3430,
316,
326,
3751,
1353,
30,
27287,
1334,
404,
18,
512,
1224,
7797,
7412,
576,
18,
490,
7970,
379,
7412,
3423,
1334,
404,
18,
512,
1224,
7797,
7412,
576,
18,
512,
1224,
7797,
7412,
555,
66,
22,
890,
18,
490,
7970,
379,
7412,
1059,
18,
490,
7970,
379,
7412,
555,
3602,
22,
225,
317,
2826,
4333,
353,
279,
3880,
434,
3129,
7093,
716,
1342,
1779,
358,
326,
445,
18,
13743,
854,
326,
4551,
8494,
7093,
30,
300,
598,
60,
1537,
27127,
1080,
18652,
1021,
533,
903,
3344,
506,
1053,
578,
1083,
18,
971,
326,
4932,
353,
486,
3430,
16,
326,
805,
460,
903,
506,
1083,
300,
501,
67,
723,
27127,
1080,
34,
1021,
533,
848,
506,
3344,
8892,
16,
12142,
578,
7799,
18,
971,
326,
4932,
353,
486,
3430,
16,
326,
805,
460,
903,
506,
8892,
300,
1427,
67,
350,
27127,
5644,
34,
1021,
2756,
8686,
279,
1300,
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,
22,
40,
67,
4413,
12,
87,
362,
16,
14,
1968,
16,
636,
4333,
4672,
3536,
1220,
445,
5530,
279,
348,
1872,
434,
2202,
17970,
598,
12929,
7412,
6515,
471,
283,
11862,
5348,
6515,
358,
279,
864,
2654,
471,
7759,
326,
23242,
354,
1368,
279,
2202,
467,
12,
53,
16,
41,
13,
17970,
18,
225,
7012,
30,
12181,
317,
4737,
353,
326,
810,
348,
1872,
598,
12929,
7412,
2654,
7460,
87,
317,
380,
1968,
353,
279,
11791,
666,
434,
6515,
364,
283,
4757,
2093,
18,
225,
6149,
353,
279,
6826,
1353,
358,
2182,
18,
16448,
1410,
506,
3430,
316,
326,
3751,
1353,
30,
27287,
1334,
404,
18,
512,
1224,
7797,
7412,
576,
18,
490,
7970,
379,
7412,
2
] |
remvd = remvd and tagn_('%(items)s removed', '%(items)s removed',
|
remvd = remvd and tagn_("%(items)s removed", "%(items)s removed",
|
def _render_property_diff(self, req, ticket, field, old, new, resource_new=None): rendered = None # per type special rendering of diffs type_ = None for f in ticket.fields: if f['name'] == field: type_ = f['type'] break if type_ == 'checkbox': rendered = new == '1' and _('set') or _('unset') elif type_ == 'textarea': if not resource_new: rendered = _('modified') else: href = get_resource_url(self.env, resource_new, req.href, action='diff') # TRANSLATOR: modified ('diff') (link) diff = tag.a(_('diff'), href=href) rendered = tag_('modified (%(diff)s)', diff=diff)
|
8a7505f666e8590328936fd32f0bc362d6e2a6a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2831/8a7505f666e8590328936fd32f0bc362d6e2a6a0/web_ui.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
5902,
67,
4468,
67,
5413,
12,
2890,
16,
1111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
618,
67,
273,
599,
364,
284,
316,
9322,
18,
2821,
30,
309,
284,
3292,
529,
3546,
422,
652,
30,
618,
67,
273,
284,
3292,
723,
3546,
898,
309,
618,
67,
422,
296,
12017,
4278,
7935,
273,
394,
422,
296,
21,
11,
471,
389,
2668,
542,
6134,
578,
389,
2668,
18579,
6134,
1327,
618,
67,
422,
296,
16701,
4278,
309,
486,
1058,
67,
2704,
30,
7935,
273,
389,
2668,
7342,
6134,
469,
30,
3897,
273,
336,
67,
3146,
67,
718,
12,
2890,
18,
3074,
16,
1058,
67,
2704,
16,
1111,
18,
7547,
16,
1301,
2218,
5413,
6134,
468,
14996,
4559,
3575,
30,
4358,
7707,
5413,
6134,
261,
1232,
13,
3122,
273,
1047,
18,
69,
24899,
2668,
5413,
19899,
3897,
33,
7547,
13,
7935,
273,
1047,
67,
2668,
7342,
6142,
12,
5413,
13,
87,
13,
2187,
3122,
33,
5413,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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111,
16,
9322,
16,
652,
16,
1592,
16,
394,
16,
1058,
67,
2704,
33,
7036,
4672,
7935,
273,
599,
468,
1534,
618,
4582,
9782,
434,
15250,
618,
67,
273,
599,
364,
284,
316,
9322,
18,
2821,
30,
309,
284,
3292,
529,
3546,
422,
652,
30,
618,
67,
273,
284,
3292,
723,
3546,
898,
309,
618,
67,
422,
296,
12017,
4278,
7935,
273,
394,
422,
296,
21,
11,
471,
389,
2668,
542,
6134,
578,
389,
2668,
18579,
6134,
1327,
618,
67,
422,
296,
16701,
4278,
309,
486,
1058,
67,
2704,
30,
7935,
273,
389,
2668,
7342,
6134,
469,
30,
3897,
273,
336,
67,
3146,
67,
718,
12,
2890,
18,
3074,
2
] |
class GLcharHandler(TypeHandler):
|
class GLcharHandler(CustomHandler):
|
def WriteImmediateFormatTest(self, func, file): """Overrriden from TypeHandler.""" file.Write("TEST(GLES2FormatTest, %s) {\n" % func.name) file.Write(" const int kSomeBaseValueToTestWith = 51;\n") file.Write(" static %s data[] = {\n" % func.info.data_type) for v in range(0, func.info.count * 2): file.Write(" static_cast<%s>(kSomeBaseValueToTestWith + %d),\n" % (func.info.data_type, v)) file.Write(" };\n") file.Write(" int8 buf[256] = { 0, };\n") file.Write(" %s& cmd = *static_cast<%s*>(static_cast<void*>(&buf));\n" % (func.name, func.name)) file.Write(" void* next_cmd = cmd.Set(\n") file.Write(" &cmd") args = func.GetCmdArgs() value = 1 for arg in args: file.Write(",\n static_cast<%s>(%d)" % (arg.type, value)) value += 1 file.Write(",\n data);\n") args = func.GetCmdArgs() value = 1 file.Write(" EXPECT_EQ(static_cast<uint32>(%s::kCmdId),\n" % func.name) file.Write(" cmd.header.command);\n") file.Write(" EXPECT_EQ(sizeof(cmd) +\n") file.Write(" RoundSizeToMultipleOfEntries(sizeof(data)),\n") file.Write(" cmd.header.size * 4u);\n") file.Write(" EXPECT_EQ(static_cast<char*>(next_cmd),\n") file.Write(" reinterpret_cast<char*>(&cmd) + sizeof(cmd) +\n") file.Write(" RoundSizeToMultipleOfEntries(sizeof(data)));\n") for arg in args: file.Write(" EXPECT_EQ(static_cast<%s>(%d), cmd.%s);\n" % (arg.type, value, arg.name)) value += 1 file.Write(" // TODO(gman): Check that data was inserted;\n") file.Write("}\n") file.Write("\n")
|
a115074299ce0ef525addadc3040aeb6715c121a /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5060/a115074299ce0ef525addadc3040aeb6715c121a/build_gles2_cmd_buffer.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
18890,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
2932,
225,
1866,
509,
417,
17358,
2171,
620,
774,
4709,
1190,
273,
21119,
9747,
82,
7923,
585,
18,
3067,
2932,
225,
760,
738,
87,
501,
8526,
273,
18890,
82,
6,
738,
1326,
18,
1376,
18,
892,
67,
723,
13,
364,
331,
316,
1048,
12,
20,
16,
1326,
18,
1376,
18,
1883,
380,
576,
4672,
585,
18,
3067,
2932,
565,
760,
67,
4155,
32,
9,
87,
34,
12,
79,
17358,
2171,
620,
774,
4709,
1190,
397,
738,
72,
3631,
64,
82,
6,
738,
261,
644,
18,
1376,
18,
892,
67,
723,
16,
331,
3719,
585,
18,
3067,
2932,
225,
289,
9747,
82,
7923,
585,
18,
3067,
2932,
225,
509,
28,
1681,
63,
5034,
65,
273,
288,
374,
16,
289,
9747,
82,
7923,
585,
18,
3067,
2932,
225,
738,
87,
10,
1797,
273,
380,
3845,
67,
4155,
32,
9,
87,
14,
34,
12,
3845,
67,
4155,
32,
6459,
14,
34,
12,
10,
4385,
10019,
64,
82,
6,
738,
261,
644,
18,
529,
16,
1326,
18,
529,
3719,
585,
18,
3067,
2932,
225,
918,
14,
1024,
67,
4172,
273,
1797,
18,
694,
4713,
82,
7923,
585,
18,
3067,
2932,
1377,
473,
4172,
7923,
833,
273,
1326,
18,
967,
5931,
2615,
1435,
460,
273,
404,
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,
2598,
22651,
1630,
4709,
12,
2890,
16,
1326,
16,
585,
4672,
3536,
22042,
1691,
275,
628,
1412,
1503,
12123,
585,
18,
3067,
2932,
16961,
12,
43,
11386,
22,
1630,
4709,
16,
738,
87,
13,
18890,
82,
6,
738,
1326,
18,
529,
13,
585,
18,
3067,
2932,
225,
1866,
509,
417,
17358,
2171,
620,
774,
4709,
1190,
273,
21119,
9747,
82,
7923,
585,
18,
3067,
2932,
225,
760,
738,
87,
501,
8526,
273,
18890,
82,
6,
738,
1326,
18,
1376,
18,
892,
67,
723,
13,
364,
331,
316,
1048,
12,
20,
16,
1326,
18,
1376,
18,
1883,
380,
576,
4672,
585,
18,
3067,
2932,
565,
760,
67,
4155,
32,
9,
87,
34,
12,
79,
17358,
2171,
620,
774,
4709,
2
] |
harvested_document_table.c.source_id.add() harvested_document_table.c.package_id.add()
|
harvested_document_table.c.guid.create() harvested_document_table.c.source_id.create() harvested_document_table.c.package_id.create()
|
def upgrade(): harvested_document_table.c.url.drop() harvested_document_table.c.source_id.add() harvested_document_table.c.package_id.add()
|
42cb40085b6dad762f4f944a29dabb1b3bf0eaf8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/265/42cb40085b6dad762f4f944a29dabb1b3bf0eaf8/027_adjust_harvester.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
13332,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
718,
18,
7285,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
14066,
18,
2640,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
3168,
67,
350,
18,
2640,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
5610,
67,
350,
18,
2640,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8400,
13332,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
718,
18,
7285,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
14066,
18,
2640,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
3168,
67,
350,
18,
2640,
1435,
17895,
90,
3149,
67,
5457,
67,
2121,
18,
71,
18,
5610,
67,
350,
18,
2640,
1435,
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
] |
tokenlist[ikey] = (dictvalue,i)
|
tokenlist[ikey] = ParseResultsWithOffset(dictvalue,i)
|
def postParse( self, instring, loc, tokenlist ): for i,tok in enumerate(tokenlist): ikey = _ustr(tok[0]).strip() if len(tok)==1: tokenlist[ikey] = ("",i) elif len(tok)==2 and not isinstance(tok[1],ParseResults): tokenlist[ikey] = (tok[1],i) else: dictvalue = tok.copy() #ParseResults(i) del dictvalue[0] if len(dictvalue)!= 1 or (isinstance(dictvalue,ParseResults) and dictvalue.keys()): tokenlist[ikey] = (dictvalue,i) else: tokenlist[ikey] = (dictvalue[0],i)
|
650d792a37f78360ec5c808bdf6777fcbadd8761 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12364/650d792a37f78360ec5c808bdf6777fcbadd8761/pyparsing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
3201,
12,
365,
16,
316,
1080,
16,
1515,
16,
1147,
1098,
262,
30,
364,
277,
16,
17692,
316,
4241,
12,
2316,
1098,
4672,
277,
856,
273,
389,
27008,
12,
17692,
63,
20,
65,
2934,
6406,
1435,
309,
562,
12,
17692,
13,
631,
21,
30,
1147,
1098,
63,
77,
856,
65,
273,
7566,
3113,
77,
13,
1327,
562,
12,
17692,
13,
631,
22,
471,
486,
1549,
12,
17692,
63,
21,
6487,
3201,
3447,
4672,
1147,
1098,
63,
77,
856,
65,
273,
261,
17692,
63,
21,
6487,
77,
13,
469,
30,
2065,
1132,
273,
946,
18,
3530,
1435,
468,
3201,
3447,
12,
77,
13,
1464,
2065,
1132,
63,
20,
65,
309,
562,
12,
1576,
1132,
13,
5,
33,
404,
578,
261,
291,
1336,
12,
1576,
1132,
16,
3201,
3447,
13,
471,
2065,
1132,
18,
2452,
1435,
4672,
1147,
1098,
63,
77,
856,
65,
273,
2884,
3447,
1190,
2335,
12,
1576,
1132,
16,
77,
13,
469,
30,
1147,
1098,
63,
77,
856,
65,
273,
261,
1576,
1132,
63,
20,
6487,
77,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1603,
3201,
12,
365,
16,
316,
1080,
16,
1515,
16,
1147,
1098,
262,
30,
364,
277,
16,
17692,
316,
4241,
12,
2316,
1098,
4672,
277,
856,
273,
389,
27008,
12,
17692,
63,
20,
65,
2934,
6406,
1435,
309,
562,
12,
17692,
13,
631,
21,
30,
1147,
1098,
63,
77,
856,
65,
273,
7566,
3113,
77,
13,
1327,
562,
12,
17692,
13,
631,
22,
471,
486,
1549,
12,
17692,
63,
21,
6487,
3201,
3447,
4672,
1147,
1098,
63,
77,
856,
65,
273,
261,
17692,
63,
21,
6487,
77,
13,
469,
30,
2065,
1132,
273,
946,
18,
3530,
1435,
468,
3201,
3447,
12,
77,
13,
1464,
2065,
1132,
63,
20,
65,
309,
562,
12,
1576,
1132,
13,
5,
33,
404,
2
] |
grouplist = Group.objects.get(courseoffering = course)
|
grouplist = Group.objects.filter(courseoffering = course)
|
def groupmanage(request, course_slug): course = CourseOffering.objects.get(slug=course_slug) p = get_object_or_404(Person, userid = request.user.username) m = get_object_or_404(Member, person = p, offering=course) try: grouplist = Group.objects.get(courseoffering = course) except: grouplist = None memberlist = GroupMember.objects.none() if m.role == 'STUD': gs = Group.objects.filter(courseoffering=course, groupmember__student=m) g = None if gs is not None: try: g = gs.get(confirmed=True) except: g = None if g is not None: memberlist = GroupMember.objects.filter(group = g) else: memberlist = None return render_to_response('groups/student.html', {'course_slug':course_slug, 'groups':gs, 'group':g,'memberlist':memberlist,'grouplist':grouplist}, context_instance = RequestContext(request)) elif m.role == 'INST': return render_to_response('groups/instructor.html', {'course_slug':course_slug, 'grouplist':grouplist}, context_instance = RequestContext(request))
|
578435e10c42fce3db52080e16d33cc371a37bfb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6634/578435e10c42fce3db52080e16d33cc371a37bfb/views.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1041,
12633,
12,
2293,
16,
4362,
67,
6436,
4672,
4362,
273,
385,
3117,
17800,
18,
6911,
18,
588,
12,
6436,
33,
5566,
67,
6436,
13,
293,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
8346,
16,
6709,
273,
590,
18,
1355,
18,
5053,
13,
312,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
4419,
16,
6175,
273,
293,
16,
10067,
310,
33,
5566,
13,
775,
30,
314,
14004,
17842,
273,
3756,
18,
6911,
18,
2188,
12,
5566,
23322,
310,
273,
4362,
13,
1335,
30,
314,
14004,
17842,
273,
599,
3140,
1098,
273,
3756,
4419,
18,
6911,
18,
6102,
1435,
309,
312,
18,
4615,
422,
296,
882,
12587,
4278,
10763,
273,
3756,
18,
6911,
18,
2188,
12,
5566,
23322,
310,
33,
5566,
16,
1041,
5990,
972,
26240,
33,
81,
13,
314,
273,
599,
309,
10763,
353,
486,
599,
30,
775,
30,
314,
273,
10763,
18,
588,
12,
21606,
33,
5510,
13,
1335,
30,
314,
273,
599,
309,
314,
353,
486,
599,
30,
3140,
1098,
273,
3756,
4419,
18,
6911,
18,
2188,
12,
1655,
273,
314,
13,
469,
30,
3140,
1098,
273,
599,
327,
1743,
67,
869,
67,
2740,
2668,
4650,
19,
26240,
18,
2620,
2187,
13666,
5566,
67,
6436,
4278,
5566,
67,
6436,
16,
296,
4650,
4278,
564,
16,
296,
1655,
4278,
75,
11189,
5990,
1098,
4278,
5990,
1098,
11189,
75,
14004,
17842,
4278,
75,
14004,
17842,
5779,
819,
67,
1336,
273,
20479,
12,
2293,
3719,
1327,
312,
18,
4615,
422,
296,
19784,
4278,
327,
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,
1041,
12633,
12,
2293,
16,
4362,
67,
6436,
4672,
4362,
273,
385,
3117,
17800,
18,
6911,
18,
588,
12,
6436,
33,
5566,
67,
6436,
13,
293,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
8346,
16,
6709,
273,
590,
18,
1355,
18,
5053,
13,
312,
273,
336,
67,
1612,
67,
280,
67,
11746,
12,
4419,
16,
6175,
273,
293,
16,
10067,
310,
33,
5566,
13,
775,
30,
314,
14004,
17842,
273,
3756,
18,
6911,
18,
2188,
12,
5566,
23322,
310,
273,
4362,
13,
1335,
30,
314,
14004,
17842,
273,
599,
3140,
1098,
273,
3756,
4419,
18,
6911,
18,
6102,
1435,
309,
312,
18,
4615,
422,
296,
882,
12587,
4278,
10763,
273,
3756,
18,
6911,
18,
2188,
12,
2
] |
(-59997896/67387681 : -641260644409/553185473329 : 1)
|
(-59997896/67387681 : 88075171080/553185473329 : 1)
|
def padic_height_pairing_matrix(self, p, prec=20, height=None, check_hypotheses=True): r""" Computes the cyclotomic $p$-adic height pairing matrix of this curve with respect to the basis self.gens() for the Mordell-Weil group for a given odd prime p of good ordinary reduction.
|
490bf41219e08182aa07ee3edf473cac45224f99 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/490bf41219e08182aa07ee3edf473cac45224f99/ell_rational_field.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24721,
271,
84,
8,
17,
20333,
2072,
3082,
310,
3148,
434,
333,
8882,
598,
8762,
358,
326,
10853,
365,
18,
23730,
1435,
364,
326,
490,
517,
1165,
17,
3218,
330,
1041,
364,
279,
864,
14800,
17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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4627,
335,
67,
4210,
67,
6017,
310,
67,
5667,
12,
2890,
16,
293,
16,
13382,
33,
3462,
16,
2072,
33,
7036,
16,
866,
67,
76,
879,
10370,
281,
281,
33,
5510,
4672,
436,
8395,
14169,
281,
326,
6143,
830,
352,
24721,
271,
84,
8,
17,
20333,
2072,
3082,
310,
3148,
434,
333,
8882,
598,
8762,
358,
326,
10853,
365,
18,
23730,
1435,
364,
326,
490,
517,
1165,
17,
3218,
330,
1041,
364,
279,
864,
14800,
17014,
293,
434,
7494,
4642,
2101,
20176,
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
] |
elif fn.endswith("~") or fn.endswith("-bak") or ".pbl" in fn:
|
elif fn.endswith("~") or fn.endswith("-bak") or \ ".pbl" in fn or ".exe" in fn or ".com" in fn or \ ".bat" in fn or ".scr" in fn or ".sh":
|
def put_dir(name, path): data = wmldata.DataSub("dir") data.set_text_val("name", name) for fn in glob.glob(path + "/*"): if os.path.isdir(fn): sub = put_dir(os.path.basename(fn), fn) elif fn.endswith("~") or fn.endswith("-bak") or ".pbl" in fn: continue else: sub = put_file(os.path.basename(fn), file(fn)) data.insert(sub) return data
|
c5e9d097a82111d8042351a6f4a20d904ef5b91d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9355/c5e9d097a82111d8042351a6f4a20d904ef5b91d/campaignserver_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
1214,
12,
529,
16,
589,
4672,
501,
273,
341,
781,
892,
18,
751,
1676,
2932,
1214,
7923,
501,
18,
542,
67,
955,
67,
1125,
2932,
529,
3113,
508,
13,
364,
2295,
316,
4715,
18,
10581,
12,
803,
397,
2206,
7388,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
4293,
4672,
720,
273,
1378,
67,
1214,
12,
538,
18,
803,
18,
13909,
12,
4293,
3631,
2295,
13,
1327,
2295,
18,
5839,
1918,
2932,
98,
7923,
578,
2295,
18,
5839,
1918,
2932,
17,
31170,
7923,
578,
521,
3552,
84,
3083,
6,
316,
2295,
578,
3552,
14880,
6,
316,
2295,
578,
3552,
832,
6,
316,
2295,
578,
521,
3552,
28260,
6,
316,
2295,
578,
3552,
24638,
6,
316,
2295,
578,
3552,
674,
6877,
1324,
469,
30,
720,
273,
1378,
67,
768,
12,
538,
18,
803,
18,
13909,
12,
4293,
3631,
585,
12,
4293,
3719,
501,
18,
6387,
12,
1717,
13,
327,
501,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1378,
67,
1214,
12,
529,
16,
589,
4672,
501,
273,
341,
781,
892,
18,
751,
1676,
2932,
1214,
7923,
501,
18,
542,
67,
955,
67,
1125,
2932,
529,
3113,
508,
13,
364,
2295,
316,
4715,
18,
10581,
12,
803,
397,
2206,
7388,
4672,
309,
1140,
18,
803,
18,
291,
1214,
12,
4293,
4672,
720,
273,
1378,
67,
1214,
12,
538,
18,
803,
18,
13909,
12,
4293,
3631,
2295,
13,
1327,
2295,
18,
5839,
1918,
2932,
98,
7923,
578,
2295,
18,
5839,
1918,
2932,
17,
31170,
7923,
578,
521,
3552,
84,
3083,
6,
316,
2295,
578,
3552,
14880,
6,
316,
2295,
578,
3552,
832,
6,
316,
2295,
578,
521,
3552,
28260,
6,
316,
2295,
578,
3552,
24638,
6,
316,
2
] |
"""%(table, less))
|
"""%(table_name, less))
|
def drop_column(self, table, col_name): """ Takes a while, thanks to SQLite...
|
85d02cb25b26fc015382d67ed0b0b5b5529e5568 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/85d02cb25b26fc015382d67ed0b0b5b5529e5568/database.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3640,
67,
2827,
12,
2890,
16,
1014,
16,
645,
67,
529,
4672,
3536,
23004,
279,
1323,
16,
286,
19965,
358,
16192,
2777,
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
] |
name = object.__name__
|
realname = object.__name__ name = name or realname
|
def docclass(self, object): """Produce text documentation for a given class object.""" name = object.__name__ bases = object.__bases__
|
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,
997,
1106,
12,
2890,
16,
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
2863,
529,
273,
733,
16186,
529,
972,
508,
273,
508,
578,
2863,
529,
8337,
273,
733,
16186,
18602,
972,
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,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
733,
4672,
3536,
25884,
977,
7323,
364,
279,
864,
667,
733,
12123,
2863,
529,
273,
733,
16186,
529,
972,
508,
273,
508,
578,
2863,
529,
8337,
273,
733,
16186,
18602,
972,
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
] |
def NotestFullUpdateWipeStateful(self):
|
def testFullUpdateWipeStateful(self):
|
def NotestFullUpdateWipeStateful(self): """Tests if we can update after cleaning the stateful partition.
|
f38f249eb440154afdc1e6ac647fdbd20f170077 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9626/f38f249eb440154afdc1e6ac647fdbd20f170077/cros_au_test_harness.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5080,
1891,
59,
3151,
1119,
2706,
12,
2890,
4672,
3536,
14650,
309,
732,
848,
1089,
1839,
24225,
326,
28188,
3590,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
5080,
1891,
59,
3151,
1119,
2706,
12,
2890,
4672,
3536,
14650,
309,
732,
848,
1089,
1839,
24225,
326,
28188,
3590,
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
] |
if not int(event_var['es_userteam']) == 3: return
|
def player_spawn(event_var): userid = event_var['userid'] if isSpectator(userid): return if isDead(userid): return # Check to see if this player is a CT if not int(event_var['es_userteam']) == 3: return # Are we in a map that has a bombzone? if not len(es.createentitylist('func_bomb_target')): return # Do we want to give a defuser? if not int(gg_player_defuser): return # Make sure the player doesn't already have a defuser if not getPlayer(userid).defuser: getPlayer(userid).defuser = 1
|
b5a79e9be4b89eb33754e23ead57e63dfd80751d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4555/b5a79e9be4b89eb33754e23ead57e63dfd80751d/gg_map_obj.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7291,
67,
1752,
9533,
12,
2575,
67,
1401,
4672,
6709,
273,
871,
67,
1401,
3292,
8339,
3546,
225,
309,
11604,
1181,
639,
12,
8339,
4672,
327,
225,
309,
353,
11852,
12,
8339,
4672,
327,
225,
468,
2073,
358,
2621,
309,
333,
7291,
353,
279,
21088,
309,
486,
509,
12,
2575,
67,
1401,
3292,
281,
67,
1355,
10035,
19486,
422,
890,
30,
327,
225,
468,
12520,
732,
316,
279,
852,
716,
711,
279,
324,
16659,
3486,
35,
309,
486,
562,
12,
281,
18,
2640,
1096,
1098,
2668,
644,
67,
70,
16659,
67,
3299,
26112,
30,
327,
225,
468,
2256,
732,
2545,
358,
8492,
279,
1652,
1355,
35,
309,
486,
509,
12,
14253,
67,
14872,
67,
536,
1355,
4672,
327,
225,
468,
4344,
3071,
326,
7291,
3302,
1404,
1818,
1240,
279,
1652,
1355,
309,
486,
1689,
6363,
12,
8339,
2934,
536,
1355,
30,
1689,
6363,
12,
8339,
2934,
536,
1355,
273,
404,
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,
7291,
67,
1752,
9533,
12,
2575,
67,
1401,
4672,
6709,
273,
871,
67,
1401,
3292,
8339,
3546,
225,
309,
11604,
1181,
639,
12,
8339,
4672,
327,
225,
309,
353,
11852,
12,
8339,
4672,
327,
225,
468,
2073,
358,
2621,
309,
333,
7291,
353,
279,
21088,
309,
486,
509,
12,
2575,
67,
1401,
3292,
281,
67,
1355,
10035,
19486,
422,
890,
30,
327,
225,
468,
12520,
732,
316,
279,
852,
716,
711,
279,
324,
16659,
3486,
35,
309,
486,
562,
12,
281,
18,
2640,
1096,
1098,
2668,
644,
67,
70,
16659,
67,
3299,
26112,
30,
327,
225,
468,
2256,
732,
2545,
358,
8492,
279,
1652,
1355,
35,
309,
486,
509,
12,
14253,
67,
14872,
67,
536,
1355,
4672,
327,
2
] |
|
self.tk.call('tixSetSilent', self._w, value)
|
self.tk.call('tixSetSilent', self._w, value)
|
def set_silent(self, value):
|
b0e44d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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
444,
67,
21862,
12,
2890,
16,
460,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 __init__(self, requirements = []):
|
def __init__(self, requirements=None): if requirements == None: requirements = []
|
def __init__(self, requirements = []): self.requirements = requirements
|
644d652a9515f003700691b3487169186c9a453d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1098/644d652a9515f003700691b3487169186c9a453d/qualification.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8433,
33,
7036,
4672,
309,
8433,
422,
599,
30,
8433,
273,
5378,
365,
18,
16175,
273,
8433,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
8433,
33,
7036,
4672,
309,
8433,
422,
599,
30,
8433,
273,
5378,
365,
18,
16175,
273,
8433,
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
] |
"named %s, but the package name is %s.
|
"named %s, but the package name is %s. "
|
def CheckSharedLibraryNamingPolicy(pkg_data, error_mgr, logger, messenger): pkgname = pkg_data["basic_stats"]["pkgname"] shared_libs = set(su.GetSharedLibs(pkg_data)) linkable_shared_libs = [] for binary_info in pkg_data["binaries_dump_info"]: if binary_info["path"] in shared_libs: if su.IsLibraryLinkable(binary_info["path"]): # It is a shared library and other projects might link to it. if "soname" in binary_info and binary_info["soname"]: soname = binary_info["soname"] else: soname = os.path.split(binary_info["path"])[1] linkable_shared_libs.append((soname, binary_info)) check_names = True if len(linkable_shared_libs) > 1: sonames = [x[0] for x in linkable_shared_libs] multilib_pkgname = su.MakePackageNameBySonameCollection(sonames) if not multilib_pkgname: error_mgr.ReportError( "non-uniform-lib-versions-in-package", "sonames=%s" % sorted(set(sonames))) messenger.Message( "Package %s contains shared libraries with sonames that " "don't have compatible versions: %s. This means that " "they are best placed in own packages, with each package " "named after library name and version. " % (pkgname, sonames)) # If the sonames aren't uniform, there's no point in trying to match # sonames versus pkgname. check_names = False else: if multilib_pkgname != pkgname: error_mgr.ReportError( "shared-lib-pkgname-mismatch", "sonames=%s " "pkgname=%s " "expected=%s " % (sorted(set(sonames)), pkgname, multilib_pkgname)) messenger.Message( "The collection of sonames (%s) " "is expected to be in package " "named %s, but the package name is %s. "More information: " "http://wiki.opencsw.org/checkpkg-error-tags" % (sonames, multilib_pkgname, pkgname)) if check_names: for soname, binary_info in linkable_shared_libs: tmp = su.MakePackageNameBySoname(soname) policy_pkgname_list, policy_catalogname_list = tmp if pkgname not in policy_pkgname_list: error_mgr.ReportError( "shared-lib-pkgname-mismatch", "file=%s " "soname=%s " "pkgname=%s " "expected=%s" "More information: " "http://wiki.opencsw.org/checkpkg-error-tags" % (binary_info["path"], soname, pkgname, policy_pkgname_list)) suggested_pkgname = policy_pkgname_list[0] messenger.SuggestGarLine( "PACKAGES += %s" % suggested_pkgname) messenger.SuggestGarLine( "PKGFILES_%s += %s" % (suggested_pkgname, binary_info["path"])) lib_basename, lib_filename = os.path.split(binary_info["path"]) messenger.SuggestGarLine( "PKGFILES_%s += %s/%s.*" % (suggested_pkgname, lib_basename, soname)) messenger.OneTimeMessage( soname, "This shared library (%s) is in a directory indicating that it " "is likely to be linked to by other programs. If this is the " "case, the library is best packaged separately, in a package " "with a library-specific name. Examples of such names include: " "%s. If this library is not meant to be linked to by other " "packages, it's best moved to a 'private' directory. " "For example, instead of /opt/csw/lib/foo.so, " "try /opt/csw/lib/projectname/foo.so. " "More information: http://wiki.opencsw.org/checkpkg-error-tags" % (binary_info["path"], policy_pkgname_list))
|
ec6734f34bdc7813e85eebe06f874cfabd4ea1ca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3137/ec6734f34bdc7813e85eebe06f874cfabd4ea1ca/package_checks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2073,
7887,
9313,
24102,
2582,
12,
10657,
67,
892,
16,
555,
67,
13552,
16,
1194,
16,
31086,
4672,
29348,
273,
3475,
67,
892,
9614,
13240,
67,
5296,
6,
6362,
6,
10657,
529,
11929,
5116,
67,
21571,
273,
444,
12,
26560,
18,
967,
7887,
5664,
87,
12,
10657,
67,
892,
3719,
1692,
429,
67,
11574,
67,
21571,
273,
5378,
364,
3112,
67,
1376,
316,
3475,
67,
892,
9614,
4757,
5646,
67,
8481,
67,
1376,
11929,
30,
309,
3112,
67,
1376,
9614,
803,
11929,
316,
5116,
67,
21571,
30,
309,
1597,
18,
2520,
9313,
2098,
429,
12,
8578,
67,
1376,
9614,
803,
11929,
4672,
468,
2597,
353,
279,
5116,
5313,
471,
1308,
10137,
4825,
1692,
358,
518,
18,
309,
315,
816,
339,
6,
316,
3112,
67,
1376,
471,
3112,
67,
1376,
9614,
816,
339,
11929,
30,
18882,
339,
273,
3112,
67,
1376,
9614,
816,
339,
11929,
469,
30,
18882,
339,
273,
1140,
18,
803,
18,
4939,
12,
8578,
67,
1376,
9614,
803,
6,
5717,
63,
21,
65,
1692,
429,
67,
11574,
67,
21571,
18,
6923,
12443,
816,
339,
16,
3112,
67,
1376,
3719,
866,
67,
1973,
273,
1053,
309,
562,
12,
1232,
429,
67,
11574,
67,
21571,
13,
405,
404,
30,
18882,
753,
273,
306,
92,
63,
20,
65,
364,
619,
316,
1692,
429,
67,
11574,
67,
21571,
65,
1778,
330,
495,
67,
10657,
529,
273,
1597,
18,
6464,
18308,
858,
55,
265,
339,
2532,
12,
816,
753,
13,
309,
486,
1778,
330,
495,
67,
10657,
529,
30,
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,
2073,
7887,
9313,
24102,
2582,
12,
10657,
67,
892,
16,
555,
67,
13552,
16,
1194,
16,
31086,
4672,
29348,
273,
3475,
67,
892,
9614,
13240,
67,
5296,
6,
6362,
6,
10657,
529,
11929,
5116,
67,
21571,
273,
444,
12,
26560,
18,
967,
7887,
5664,
87,
12,
10657,
67,
892,
3719,
1692,
429,
67,
11574,
67,
21571,
273,
5378,
364,
3112,
67,
1376,
316,
3475,
67,
892,
9614,
4757,
5646,
67,
8481,
67,
1376,
11929,
30,
309,
3112,
67,
1376,
9614,
803,
11929,
316,
5116,
67,
21571,
30,
309,
1597,
18,
2520,
9313,
2098,
429,
12,
8578,
67,
1376,
9614,
803,
11929,
4672,
468,
2597,
353,
279,
5116,
5313,
471,
1308,
10137,
4825,
1692,
358,
518,
18,
309,
315,
2
] |
pass
|
if method not in self._debug_ignore_list : if self._debug > 3 : print "NCBIXML: Ignored: " + method self._debug_ignore_list.append(method)
|
def startElement(self, name, attr): """Found XML start tag
|
222c25b5ffb6f82620be0e71c5d11e486994dbfb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/7167/222c25b5ffb6f82620be0e71c5d11e486994dbfb/NCBIXML.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
1604,
4672,
3536,
2043,
3167,
787,
1047,
2,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
13591,
12,
2890,
16,
508,
16,
1604,
4672,
3536,
2043,
3167,
787,
1047,
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
] |
result.addError(self,self.__exc_info())
|
result.addError(self,sys.exc_info())
|
def __call__(self, result=None): if result is None: result = self.defaultTestResult() result.startTest(self) testMethod = getattr(self, self.__testMethodName) try: try: self.setUp() except: result.addError(self,self.__exc_info()) return
|
17a781bc69d73326455ca7f129bdf57528f4ad8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8546/17a781bc69d73326455ca7f129bdf57528f4ad8b/unittest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
365,
16186,
3813,
11666,
13,
775,
30,
775,
30,
365,
18,
542,
1211,
1435,
1335,
30,
563,
18,
1289,
668,
12,
2890,
16,
9499,
18,
10075,
67,
1376,
10756,
327,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
1991,
972,
12,
2890,
16,
563,
33,
7036,
4672,
309,
563,
353,
599,
30,
563,
273,
365,
18,
1886,
4709,
1253,
1435,
563,
18,
1937,
4709,
12,
2890,
13,
1842,
1305,
273,
3869,
12,
2890,
16,
365,
16186,
3813,
11666,
13,
775,
30,
775,
30,
365,
18,
542,
1211,
1435,
1335,
30,
563,
18,
1289,
668,
12,
2890,
16,
9499,
18,
10075,
67,
1376,
10756,
327,
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
] |
if hasattr(platform, 'mac_ver') and platform.mac_ver()[0][:4] < '10.6':
|
if hasattr(platform, 'mac_ver') and platform.mac_ver()[0][:4] == '10.5':
|
def GenerateBrowserCommandLine(self, browser_path, extra_args, profile_dir, url): """Generates the command line for a process to run Browser
|
fba02dc5081cbae8f91bdd2d4051308e7ad3f2c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12156/fba02dc5081cbae8f91bdd2d4051308e7ad3f2c1/ffprocess_mac.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6654,
9132,
21391,
12,
2890,
16,
4748,
67,
803,
16,
2870,
67,
1968,
16,
3042,
67,
1214,
16,
880,
4672,
3536,
6653,
326,
1296,
980,
364,
279,
1207,
358,
1086,
15408,
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,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,
1296,
980,
364,
279,
1207,
358,
1086,
15408,
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
] |
if os.path.exists(info):
|
if os.path.exists(info):
|
def get_info(name): """ Get info for a locally installed campaign. If expects a direct path to the info.cfg file. """ if not os.path.exists(name): return None, None p = wmlparser.Parser(None) p.parse_file(name) info = wmldata.DataSub("WML") p.parse_top(info) uploads = info.get_or_create_sub("info").get_text_val("uploads", "") version = info.get_or_create_sub("info").get_text_val("version", "") return uploads, version
|
2f63e47f8260b9331767ef9c983bda3eb6df2759 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9355/2f63e47f8260b9331767ef9c983bda3eb6df2759/campaigns_client.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
3536,
968,
1123,
364,
279,
13760,
5876,
8965,
18,
971,
10999,
279,
2657,
589,
358,
326,
1123,
18,
7066,
585,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
529,
4672,
327,
599,
16,
599,
293,
273,
341,
781,
4288,
18,
2678,
12,
7036,
13,
293,
18,
2670,
67,
768,
12,
529,
13,
1123,
273,
341,
781,
892,
18,
751,
1676,
2932,
59,
1495,
7923,
293,
18,
2670,
67,
3669,
12,
1376,
13,
18427,
273,
1123,
18,
588,
67,
280,
67,
2640,
67,
1717,
2932,
1376,
20387,
588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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
1376,
12,
529,
4672,
3536,
968,
1123,
364,
279,
13760,
5876,
8965,
18,
971,
10999,
279,
2657,
589,
358,
326,
1123,
18,
7066,
585,
18,
3536,
309,
486,
1140,
18,
803,
18,
1808,
12,
529,
4672,
327,
599,
16,
599,
293,
273,
341,
781,
4288,
18,
2678,
12,
7036,
13,
293,
18,
2670,
67,
768,
12,
529,
13,
1123,
273,
341,
781,
892,
18,
751,
1676,
2932,
59,
1495,
7923,
293,
18,
2670,
67,
3669,
12,
1376,
13,
18427,
273,
1123,
18,
588,
67,
280,
67,
2640,
67,
1717,
2932,
1376,
20387,
588,
67,
955,
67,
1125,
2932,
27717,
3113,
1408,
13,
1177,
273,
1123,
18,
588,
67,
280,
67,
2640,
67,
1717,
2932,
1376,
20387,
2
] |
self.__punct_property.icon = IBUS_PINYIN_LOCATION + "/icons/full-punct.svg"
|
self.__punct_property.icon = path.join(IBUS_PINYIN_LOCATION, "icons", "full-punct.svg")
|
def __refresh_properties(self): if self.__mode == 1: # refresh mode self.__status_property.icon = IBUS_PINYIN_LOCATION + "/icons/chinese.svg" self.__status_property.label = _(u"CN") self.__status_property.tooltip = _(u"Switch to English mode") else: self.__status_property.icon = IBUS_PINYIN_LOCATION + "/icons/english.svg" self.__status_property.label = _(u"EN") self.__status_property.tooltip = _(u"Switch to Chinese mode")
|
a135c88d75f76711683993abaa040c03ba7a39f5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/471/a135c88d75f76711683993abaa040c03ba7a39f5/pinyin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9144,
67,
4738,
12,
2890,
4672,
309,
365,
16186,
3188,
422,
404,
30,
468,
4460,
1965,
365,
16186,
2327,
67,
4468,
18,
3950,
273,
467,
3000,
55,
67,
52,
31853,
706,
67,
15277,
397,
2206,
14516,
19,
343,
25331,
18,
11451,
6,
365,
16186,
2327,
67,
4468,
18,
1925,
273,
389,
12,
89,
6,
12821,
7923,
365,
16186,
2327,
67,
4468,
18,
19798,
273,
389,
12,
89,
6,
10200,
358,
24151,
1965,
7923,
469,
30,
365,
16186,
2327,
67,
4468,
18,
3950,
273,
467,
3000,
55,
67,
52,
31853,
706,
67,
15277,
397,
2206,
14516,
19,
275,
13740,
18,
11451,
6,
365,
16186,
2327,
67,
4468,
18,
1925,
273,
389,
12,
89,
6,
1157,
7923,
365,
16186,
2327,
67,
4468,
18,
19798,
273,
389,
12,
89,
6,
10200,
358,
1680,
25331,
1965,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
9144,
67,
4738,
12,
2890,
4672,
309,
365,
16186,
3188,
422,
404,
30,
468,
4460,
1965,
365,
16186,
2327,
67,
4468,
18,
3950,
273,
467,
3000,
55,
67,
52,
31853,
706,
67,
15277,
397,
2206,
14516,
19,
343,
25331,
18,
11451,
6,
365,
16186,
2327,
67,
4468,
18,
1925,
273,
389,
12,
89,
6,
12821,
7923,
365,
16186,
2327,
67,
4468,
18,
19798,
273,
389,
12,
89,
6,
10200,
358,
24151,
1965,
7923,
469,
30,
365,
16186,
2327,
67,
4468,
18,
3950,
273,
467,
3000,
55,
67,
52,
31853,
706,
67,
15277,
397,
2206,
14516,
19,
275,
13740,
18,
11451,
6,
365,
16186,
2327,
67,
4468,
18,
1925,
273,
389,
12,
89,
6,
1157,
7923,
365,
16186,
2
] |
raise _('The unlink method is not implemented on this object !')
|
raise NotImplementedError(_('The unlink method is not implemented on this object !'))
|
def unlink(self, cr, uid, ids, context=None): raise _('The unlink method is not implemented on this object !')
|
3f71dc76c6ecde0acad529b68c21ad9f1df0aff8 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7397/3f71dc76c6ecde0acad529b68c21ad9f1df0aff8/orm.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1002,
389,
2668,
1986,
8255,
707,
353,
486,
8249,
603,
333,
733,
401,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8255,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
33,
7036,
4672,
1002,
389,
2668,
1986,
8255,
707,
353,
486,
8249,
603,
333,
733,
401,
6134,
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
] |
self.out.write(" virtual void SendContents(Atlas::Bridge* b);\n")
|
self.out.write(" virtual void SendContents(Atlas::Bridge* b) const;\n")
|
def interface(self, obj): print "Output of interface for:" outfile = self.outdir + '/' + self.classname + ".h" print outfile self.out = open(outfile + ".tmp", "w") if outdir != ".": self.header(['Atlas', 'Objects', outdir, self.classname, "H"]) else: self.header(['Atlas', 'Objects', self.classname, "H"]) for parent in obj.attr['parents'].value: self.out.write('#include "') if parent == "root": self.out.write('../') self.out.write(classize(parent) + '.h"\n') self.out.write("\n\n") if outdir != ".": self.ns_open(['Atlas', 'Objects', outdir]) else: self.ns_open(['Atlas', 'Objects']) self.out.write("\n") self.out.write("/** " + obj.attr['description'].value + "\n") self.out.write("\n") self.out.write(obj.attr['long_description'].value + "\n\n") self.out.write("*/\n") self.out.write("class " + self.classname) parentlist = map(lambda parent:"public " + classize(parent), \ obj.attr['parents'].value) if len(parentlist) > 0: self.out.write(" : ") self.out.write(string.join(parentlist, ", ")) self.out.write("\n{\n") self.out.write("public:\n") self.constructors_if(obj) self.doc(4, "Default destructor.") self.out.write(" virtual ~" + self.classname + "() { }\n") self.out.write("\n") self.doc(4, "Create a new instance of " + self.classname + ".") self.out.write(" static " + self.classname + " Instantiate();\n") self.out.write("\n") static_attrs = filter(lambda attr,obj=obj:(not attr.name in descr_attrs) \ and (not find_in_parents(obj.attr['parents'].value, attr.name)), \ obj.attr_list) if len(static_attrs) > 0: self.doc(4, 'Check whether the attribute "name" exists.') self.out.write(" virtual bool HasAttr(const std::string& name)"\ + "const;\n") self.doc(4, 'Retrieve the attribute "name". Throws ' \ +'NoSuchAttrException if it does') self.doc(4, 'not exist.') self.out.write(" virtual Atlas::Message::Object GetAttr(") self.out.write("const std::string& name)\n") self.out.write(" const throw (NoSuchAttrException);\n") self.doc(4, 'Set the attribute "name" to the value given by' \ + '"attr"') self.out.write(" virtual void SetAttr(const std::string& name,\n") self.out.write(" ") self.out.write("const Atlas::Message::Object& attr);\n") self.doc(4, 'Remove the attribute "name". This will not work for '\ + 'static attributes.') self.out.write(" virtual void RemoveAttr(") self.out.write("const std::string& name);\n") self.out.write("\n") self.doc(4, 'Send the contents of this object to a Bridge.') self.out.write(" virtual void SendContents(Atlas::Bridge* b);\n") self.out.write("\n") self.doc(4, 'Convert this object to a Message::Object.') self.out.write(" virtual Atlas::Message::Object AsObject() const;\n") self.out.write("\n") for attr in static_attrs: self.doc(4, 'Set the "%s" attribute.' % attr.name) self.out.write(" inline void Set" + classize(attr.name)) self.out.write('(' + cpp_param_type[attr.type] + ' val);\n') self.out.write('\n') for attr in static_attrs: self.doc(4, 'Retrieve the "%s" attribute.' % attr.name) self.out.write(' inline %s Get' % cpp_param_type[attr.type]) self.out.write(classize(attr.name) + '() const;\n') self.doc(4, 'Retrieve the "%s" attribute as a non-const reference.' % attr.name) self.out.write(' inline %s Get' % cpp_param_type2[attr.type]) self.out.write(classize(attr.name) + '();\n') self.out.write('\n') self.out.write("protected:\n") if len(static_attrs) > 0: for attr in static_attrs: self.out.write(' %s attr_%s;\n' % (cpp_type[attr.type], attr.name)) self.out.write('\n') for attr in static_attrs: self.out.write(" inline void Send" + classize(attr.name)) self.out.write('(Atlas::Bridge*) const;\n') self.out.write('\n') self.out.write("};\n\n") if len(static_attrs) > 0: self.out.write('//\n// Inlined member functions follow.\n//\n\n') self.static_inline_sets(obj, static_attrs) self.static_inline_gets(obj, static_attrs) self.static_inline_sends(obj, static_attrs) self.out.write('\n') if outdir != ".": self.ns_close(['Atlas', 'Objects', outdir]) self.footer(['Atlas', 'Objects', outdir, self.classname, "H"]) else: self.ns_close(['Atlas', 'Objects']) self.footer(['Atlas', 'Objects', self.classname, "H"]) self.out.close() if os.access(outfile, os.F_OK): if cmp.cmp(outfile + ".tmp", outfile) == 0: os.remove(outfile) os.rename(outfile + ".tmp", outfile) else: print "Output file same as existing one, not updating" os.remove(outfile + ".tmp") else: os.rename(outfile + ".tmp", outfile)
|
9735567828cceff0576f75d0dc23ff6b13b4f601 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12931/9735567828cceff0576f75d0dc23ff6b13b4f601/gen_cc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1560,
12,
2890,
16,
1081,
4672,
1172,
315,
1447,
434,
1560,
364,
2773,
8756,
273,
365,
18,
659,
1214,
397,
2023,
397,
365,
18,
18340,
397,
3552,
76,
6,
1172,
8756,
365,
18,
659,
273,
1696,
12,
26050,
397,
3552,
5645,
3113,
315,
91,
7923,
309,
15398,
480,
4585,
30,
365,
18,
3374,
12,
3292,
861,
9521,
2187,
296,
4710,
2187,
15398,
16,
365,
18,
18340,
16,
315,
44,
6,
5717,
469,
30,
365,
18,
3374,
12,
3292,
861,
9521,
2187,
296,
4710,
2187,
365,
18,
18340,
16,
315,
44,
6,
5717,
364,
982,
316,
1081,
18,
1747,
3292,
12606,
29489,
1132,
30,
365,
18,
659,
18,
2626,
2668,
7,
6702,
2491,
13,
309,
982,
422,
315,
3085,
6877,
365,
18,
659,
18,
2626,
2668,
838,
2473,
13,
365,
18,
659,
18,
2626,
12,
1106,
554,
12,
2938,
13,
397,
2418,
76,
12691,
82,
6134,
365,
18,
659,
18,
2626,
31458,
82,
64,
82,
7923,
309,
15398,
480,
4585,
30,
365,
18,
2387,
67,
3190,
12,
3292,
861,
9521,
2187,
296,
4710,
2187,
15398,
5717,
469,
30,
365,
18,
2387,
67,
3190,
12,
3292,
861,
9521,
2187,
296,
4710,
19486,
365,
18,
659,
18,
2626,
31458,
82,
7923,
365,
18,
659,
18,
2626,
2932,
26873,
315,
397,
1081,
18,
1747,
3292,
3384,
29489,
1132,
397,
1548,
82,
7923,
365,
18,
659,
18,
2626,
31458,
82,
7923,
365,
18,
659,
18,
2626,
12,
2603,
18,
1747,
3292,
5748,
67,
3384,
29489,
1132,
397,
1548,
82,
64,
82,
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,
1560,
12,
2890,
16,
1081,
4672,
1172,
315,
1447,
434,
1560,
364,
2773,
8756,
273,
365,
18,
659,
1214,
397,
2023,
397,
365,
18,
18340,
397,
3552,
76,
6,
1172,
8756,
365,
18,
659,
273,
1696,
12,
26050,
397,
3552,
5645,
3113,
315,
91,
7923,
309,
15398,
480,
4585,
30,
365,
18,
3374,
12,
3292,
861,
9521,
2187,
296,
4710,
2187,
15398,
16,
365,
18,
18340,
16,
315,
44,
6,
5717,
469,
30,
365,
18,
3374,
12,
3292,
861,
9521,
2187,
296,
4710,
2187,
365,
18,
18340,
16,
315,
44,
6,
5717,
364,
982,
316,
1081,
18,
1747,
3292,
12606,
29489,
1132,
30,
365,
18,
659,
18,
2626,
2668,
7,
6702,
2491,
13,
309,
982,
422,
315,
3085,
2
] |
def SetSegmentType(segea, type):
|
def SetSegmentType(segea, segtype):
|
def SetSegmentType(segea, type): """ Set segment type @param segea: any address within segment @param type: new segment type: @return: !=0 - ok """ seg = idaapi.getseg(segea) if not seg: return False seg.type = type return seg.update()
|
244a3cd02a580c0095170004ec30e922f0d1a8a6 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6984/244a3cd02a580c0095170004ec30e922f0d1a8a6/idc.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4131,
559,
12,
307,
908,
69,
16,
2291,
723,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
632,
2463,
30,
480,
20,
300,
1529,
3536,
2291,
273,
612,
69,
2425,
18,
588,
5680,
12,
307,
908,
69,
13,
225,
309,
486,
2291,
30,
327,
1083,
225,
2291,
18,
723,
273,
618,
327,
2291,
18,
2725,
1435,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1000,
4131,
559,
12,
307,
908,
69,
16,
2291,
723,
4672,
3536,
1000,
3267,
618,
225,
632,
891,
695,
908,
69,
30,
1281,
1758,
3470,
3267,
632,
891,
618,
30,
394,
3267,
618,
30,
225,
632,
2463,
30,
480,
20,
300,
1529,
3536,
2291,
273,
612,
69,
2425,
18,
588,
5680,
12,
307,
908,
69,
13,
225,
309,
486,
2291,
30,
327,
1083,
225,
2291,
18,
723,
273,
618,
327,
2291,
18,
2725,
1435,
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
] |
self.assertEqual(d.items(), [])
|
self.assertEqual(set(d.items()), set())
|
def test_items(self): d = {} self.assertEqual(d.items(), [])
|
8bf08b39d5891e323e83e126df578c383352fb98 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12029/8bf08b39d5891e323e83e126df578c383352fb98/test_dict.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3319,
12,
2890,
4672,
302,
273,
2618,
365,
18,
11231,
5812,
12,
72,
18,
3319,
9334,
5378,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3319,
12,
2890,
4672,
302,
273,
2618,
365,
18,
11231,
5812,
12,
72,
18,
3319,
9334,
5378,
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
] |
def stat(self,statType, fromDT, toDT, message, layoutID, scheduleID, mediaID): abstract
|
def stat(self,statType, fromDT, toDT, tag, layoutID, scheduleID, mediaID): abstract
|
def stat(self,statType, fromDT, toDT, message, layoutID, scheduleID, mediaID): abstract
|
5c8d4110bbeaa26351f10ba8e247d948fef80858 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/5464/5c8d4110bbeaa26351f10ba8e247d948fef80858/XiboClient.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
12,
2890,
16,
5642,
559,
16,
628,
9081,
16,
358,
9081,
16,
883,
16,
3511,
734,
16,
4788,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
610,
12,
2890,
16,
5642,
559,
16,
628,
9081,
16,
358,
9081,
16,
883,
16,
3511,
734,
16,
4788,
734,
16,
3539,
734,
4672,
8770,
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
] |
print ' if ((p = getenv("GIMP_COMPOSITE"))) {' print ' gimp_composite_options.use = atol(p);' print ' g_printerr("Using new image composite functions\n");' print ' }' print '' print ' if (!gimp_composite_options.initialised) {'
|
print ' if (! gimp_composite_options.initialised)' print ' {'
|
def gimp_composite_init(function_tables): for o in function_tables: print 'extern void %s_init();' % (functionnameify(o[0])) pass print '' print 'void' print 'gimp_composite_init()' print '{' print ' char *p;' print '' print ' if ((p = getenv("GIMP_COMPOSITE"))) {' print ' gimp_composite_options.use = atol(p);' print ' g_printerr("Using new image composite functions\n");' print ' }' print '' print ' if (!gimp_composite_options.initialised) {' for o in function_tables: print ' %s_init();' % (functionnameify(o[0])) pass print ' gimp_composite_options.initialised = 1;' print ' }' print '}' pass
|
73af860ff4a9ad2d64dbee32023a1ec49e63a340 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11058/73af860ff4a9ad2d64dbee32023a1ec49e63a340/make-gimp-composite-dispatch.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
314,
14532,
67,
27676,
67,
2738,
12,
915,
67,
9373,
4672,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
338,
798,
918,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,
63,
20,
22643,
1342,
225,
1172,
875,
1172,
296,
6459,
11,
1172,
296,
75,
14532,
67,
27676,
67,
2738,
11866,
1172,
9790,
1172,
296,
225,
1149,
380,
84,
4359,
1172,
875,
225,
1172,
296,
225,
309,
16051,
314,
14532,
67,
27676,
67,
2116,
18,
6769,
5918,
2506,
1172,
296,
565,
13666,
225,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
565,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,
63,
20,
22643,
1342,
225,
1172,
296,
565,
314,
14532,
67,
27676,
67,
2116,
18,
6769,
5918,
273,
404,
4359,
1172,
296,
225,
27770,
1172,
9571,
1342,
225,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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67,
2738,
12,
915,
67,
9373,
4672,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
338,
798,
918,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,
63,
20,
22643,
1342,
225,
1172,
875,
1172,
296,
6459,
11,
1172,
296,
75,
14532,
67,
27676,
67,
2738,
11866,
1172,
9790,
1172,
296,
225,
1149,
380,
84,
4359,
1172,
875,
225,
1172,
296,
225,
309,
16051,
314,
14532,
67,
27676,
67,
2116,
18,
6769,
5918,
2506,
1172,
296,
565,
13666,
225,
364,
320,
316,
445,
67,
9373,
30,
1172,
296,
565,
738,
87,
67,
2738,
1435,
4359,
738,
261,
915,
529,
1164,
12,
83,
63,
20,
22643,
1342,
225,
1172,
296,
2
] |
address += str(tools.ustr(add.country_id.name.encode('ascii','replace')))
|
address += tools.ustr(add.country_id.name)
|
def GetMap(self, cr, uid, ids, context={}): res = {} res_inv = {} res_cus = {} address = ' ' coordinates = [] addresslist = [] country_list = [] coordinates_text = ' ' number_customer=0 number_supplier=0 colors = ['9f8080ff', '9f0000ff']
|
7804a8b91c64352d8cb758b580b6e9243f736b09 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7339/7804a8b91c64352d8cb758b580b6e9243f736b09/google_earth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
863,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
400,
273,
2618,
400,
67,
5768,
273,
2618,
400,
67,
71,
407,
273,
2618,
1758,
273,
296,
296,
5513,
273,
5378,
1758,
1098,
273,
5378,
5251,
67,
1098,
273,
5378,
5513,
67,
955,
273,
296,
296,
1300,
67,
10061,
33,
20,
1300,
67,
2859,
5742,
33,
20,
5740,
273,
10228,
29,
74,
3672,
3672,
1403,
2187,
296,
29,
74,
2787,
1403,
3546,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
968,
863,
12,
2890,
16,
4422,
16,
4555,
16,
3258,
16,
819,
12938,
4672,
400,
273,
2618,
400,
67,
5768,
273,
2618,
400,
67,
71,
407,
273,
2618,
1758,
273,
296,
296,
5513,
273,
5378,
1758,
1098,
273,
5378,
5251,
67,
1098,
273,
5378,
5513,
67,
955,
273,
296,
296,
1300,
67,
10061,
33,
20,
1300,
67,
2859,
5742,
33,
20,
5740,
273,
10228,
29,
74,
3672,
3672,
1403,
2187,
296,
29,
74,
2787,
1403,
3546,
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
] |
return Map(nodes, edges, geomap.cellImage.size() * scale)
|
if labelImageSize == None: labelImageSize = geomap.cellImage.size() * scale return Map(nodes, edges, labelImageSize)
|
def pixelMap2subPixelMap(geomap, scale = 1.0, offset = Vector2(0, 0)): nodes, edges = pixelMapData(geomap, offset, scale) return Map(nodes, edges, geomap.cellImage.size() * scale)
|
8a4b243de44be7b611228d95d7601eef8d0040d7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/10394/8a4b243de44be7b611228d95d7601eef8d0040d7/pixelmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4957,
863,
22,
1717,
9037,
863,
12,
10049,
438,
16,
3159,
273,
404,
18,
20,
16,
1384,
273,
5589,
22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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4957,
863,
22,
1717,
9037,
863,
12,
10049,
438,
16,
3159,
273,
404,
18,
20,
16,
1384,
273,
5589,
22,
12,
20,
16,
374,
3719,
30,
2199,
16,
5231,
273,
4957,
863,
751,
12,
10049,
438,
16,
1384,
16,
3159,
13,
309,
1433,
28576,
422,
599,
30,
1433,
28576,
273,
7364,
438,
18,
3855,
2040,
18,
1467,
1435,
380,
3159,
327,
1635,
12,
4690,
16,
5231,
16,
1433,
28576,
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
] |
def outlier_utils(args):
|
def run(command_name, args):
|
def outlier_utils(args): if len(args)==0: print_help() elif ( "--help" in args ): print_help() elif ( "--h" in args ): print_help() elif ("-h" in args ): print_help() else: log = multi_out() if (not "--quiet" in args): log.register(label="stdout", file_object=sys.stdout) string_buffer = StringIO() string_buffer_plots = StringIO() log.register(label="log_buffer", file_object=string_buffer) phil_objects = [] argument_interpreter = libtbx.phil.command_line.argument_interpreter( master_params=master_params, home_scope="outlier_detection") for arg in args: command_line_params = None arg_is_processed = False # is it a file? if arg=="--quiet": arg_is_processed = True if (os.path.isfile(arg)): ## is this a file name? # check if it is a phil file try: command_line_params = iotbx.phil.parse(file_name=arg) if command_line_params is not None: phil_objects.append(command_line_params) arg_is_processed = True except KeyboardInterrupt: raise except : pass else: try: command_line_params = argument_interpreter.process(arg=arg) if command_line_params is not None: phil_objects.append(command_line_params) arg_is_processed = True except KeyboardInterrupt: raise except : pass if not arg_is_processed: print >> log, "##----------------------------------------------##" print >> log, "## Unknown file or keyword:", arg print >> log, "##----------------------------------------------##" print >> log raise Sorry("Unknown file or keyword: %s" % arg) effective_params = master_params.fetch(sources=phil_objects) params = effective_params.extract() # now get the unit cell from the pdb file hkl_xs = None if params.outlier_utils.input.xray_data.file_name is not None: hkl_xs = crystal_symmetry_from_any.extract_from( file_name=params.outlier_utils.input.xray_data.file_name) pdb_xs = None if params.outlier_utils.input.model.file_name is not None: pdb_xs = crystal_symmetry_from_any.extract_from( file_name=params.outlier_utils.input.model.file_name) phil_xs = crystal.symmetry( unit_cell=params.outlier_utils.input.unit_cell, space_group_info=params.outlier_utils.input.space_group ) combined_xs = select_crystal_symmetry( None,phil_xs, [pdb_xs],[hkl_xs]) # inject the unit cell and symmetry in the phil scope please params.outlier_utils.input.unit_cell = combined_xs.unit_cell() params.outlier_utils.input.space_group = \ sgtbx.space_group_info( group = combined_xs.space_group() ) new_params = master_params.format(python_object=params) new_params.show(out=log) if params.outlier_utils.input.unit_cell is None: raise Sorry("unit cell not specified") if params.outlier_utils.input.space_group is None: raise Sorry("space group not specified") if params.outlier_utils.input.xray_data.file_name is None: raise Sorry("Xray data not specified") if params.outlier_utils.input.model.file_name is None: print "PDB file not specified. Basic wilson outlier rejections only." #----------------------------------------------------------- # # step 1: read in the reflection file # phil_xs = crystal.symmetry( unit_cell=params.outlier_utils.input.unit_cell, space_group_info=params.outlier_utils.input.space_group ) xray_data_server = reflection_file_utils.reflection_file_server( crystal_symmetry = phil_xs, force_symmetry = True, reflection_files=[]) miller_array = None miller_array = xray_data_server.get_xray_data( file_name = params.outlier_utils.input.xray_data.file_name, labels = params.outlier_utils.input.xray_data.obs_labels, ignore_all_zeros = True, parameter_scope = 'outlier_utils.input.xray_data', parameter_name = 'obs_labels' ) info = miller_array.info() miller_array = miller_array.map_to_asu() miller_array = miller_array.select( miller_array.indices() != (0,0,0)) miller_array = miller_array.select( miller_array.data() > 0 ) if miller_array.sigmas() is not None: miller_array = miller_array.select( miller_array.sigmas() > 0 ) if (miller_array.is_xray_intensity_array()): miller_array = miller_array.f_sq_as_f() elif (miller_array.is_complex_array()): miller_array = abs(miller_array) miller_array.set_info(info) merged_anomalous=False if miller_array.anomalous_flag(): miller_array = miller_array.average_bijvoet_mates().set_observation_type( miller_array ) merged_anomalous=True miller_array = miller_array.map_to_asu() # get the free reflections please free_flags = None if params.outlier_utils.input.xray_data.free_flags is None: free_flags = miller_array.generate_r_free_flags( fraction=params.outlier_utils.\ additional_parameters.free_flag_generation.fraction, max_free=params.outlier_utils.\ additional_parameters.free_flag_generation.max_number, lattice_symmetry_max_delta=params.outlier_utils.\ additional_parameters.free_flag_generation.lattice_symmetry_max_delta, use_lattice_symmetry=params.outlier_utils.\ additional_parameters.free_flag_generation.use_lattice_symmetry ) else: free_flags = xray_data_server.get_xray_data( file_name = params.outlier_utils.input.xray_data.file_name, labels = params.outlier_utils.input.xray_data.free_flags, ignore_all_zeros = True, parameter_scope = 'outlier_utils.input.xray_data', parameter_name = 'free_flags' ) if miller_array.anomalous_flag(): free_flags = free_flags.miller_array.average_bijvoet_mates() merged_anomalous=True free_flags = free_flags.common_set( miller_array ) free_flags = free_flags.customized_copy( data = flex.bool( free_flags.data()== 1 )) free_flags = free_flags.common_set( miller_array ).map_to_asu() free_flags, miller_array = free_flags.common_sets( miller_array ) print >> log print >> log, "Summary info of observed data" print >> log, "=============================" miller_array.show_summary(f=log) if merged_anomalous: print >> log, "For outlier detection purposes, the Bijvoet pairs have been merged." print >> log print >> log, "Constructing an outlier manager" print >> log, "===============================" print >> log outlier_manager = outlier_rejection.outlier_manager( miller_array, out=log) basic_array = None extreme_array = None model_based_array = None basic_array = outlier_manager.basic_wilson_outliers( p_basic_wilson = params.outlier_utils.outlier_detection.\ parameters.basic_wilson.level, return_array = True) extreme_array = outlier_manager.extreme_wilson_outliers( p_extreme_wilson = params.outlier_utils.outlier_detection.parameters.\ extreme_wilson.level, return_array = True) #---------------------------------------------------------------- # Step 2: get an xray structure from the PDB file # if params.outlier_utils.input.model.file_name is not None: model = xray_structure.from_pdb( file_name=params.outlier_utils.input.model.file_name, crystal_symmetry=phil_xs, force_symmetry=True) print >> log, "Atomic model summary" print >> log, "====================" model.show_summary(f=log) print >> log # please make an f_model object for bulk solvent scaling etc etc f_model_object = f_model.manager( f_obs = miller_array, r_free_flags = free_flags, xray_structure = model ) print >> log, "Bulk solvent scaling of the data" print >> log, "================================" print >> log, "Maximum likelihood bulk solvent scaling." print >> log f_model_object.update_solvent_and_scale(out=log) b_cart = f_model_object.b_cart() k_sol = f_model_object.k_sol() b_sol = f_model_object.b_sol() ls_scale = 1.0/f_model_object.scale_k1() print >> log print >> log, "The observed data is scaled by a multiplier" print >> log, "equal to %5.2e"%(ls_scale) print >> log, "This brings the data to an approximate absolute scale." # update the outlier object please outlier_manager.apply_scale_to_original_data( ls_scale) free_flags = free_flags.common_set( outlier_manager.miller_obs ) # redo the f model object please f_model_object = f_model.manager( f_obs = outlier_manager.miller_obs, r_free_flags = free_flags, xray_structure = model) # reset the bulk solvent parameters please f_model_object.update_core(b_cart=b_cart, k_sol=k_sol, b_sol=b_sol) f_model_data = f_model_object.f_model() plot_out = StringIO() # get alphas and betas please alpha,beta = f_model_object.alpha_beta() # get suspected outliers model_based_array = outlier_manager.model_based_outliers( f_model_data, alpha, beta, level=params.outlier_utils.outlier_detection.parameters.model_based.level, return_array=True, plot_out=plot_out) #check what needs to be put out please if params.outlier_utils.output.hklout is not None: if params.outlier_utils.outlier_detection.protocol == "model": if params.outlier_utils.input.model.file_name == None: print >> log, "Model based rejections requested. No model was supplied." print >> log, "Switching to writing out rejections based on extreme value Wilson statistics." params.outlier_utils.outlier_detection.protocol="extreme" output_array = None print >> log if params.outlier_utils.outlier_detection.protocol == "basic": print >> log, "Outliers found by the basic wilson statistics" print >> log, "protocol will be written out." output_array = basic_array new_set_of_free_flags = free_flags.common_set( basic_array ) if params.outlier_utils.outlier_detection.protocol == "extreme": print >> log, "Outliers found by the extreme value wilson statistics" print >> log, "protocol will be written out." output_array = extreme_array new_set_of_free_flags = free_flags.common_set( extreme_array ) if params.outlier_utils.outlier_detection.protocol == "model": print >> log, "Outliers found by the model based" print >> log, "protocol will be written out to the file:" print >> log, params.outlier_utils.output.hklout print >> log output_array = model_based_array new_set_of_free_flags = free_flags.common_set( model_based_array ) mtz_dataset = output_array.as_mtz_dataset( column_root_label="FOBS") mtz_dataset = mtz_dataset.add_miller_array( miller_array = new_set_of_free_flags, column_root_label = "Free_R_Flag" ) mtz_dataset.mtz_object().write( file_name=params.outlier_utils.output.hklout) if params.outlier_utils.output.logfile is not None: final_log = StringIO() print >> final_log, string_buffer.getvalue() print >> final_log print >> final_log, plot_out.getvalue() outfile = open( params.outlier_utils.output.logfile, 'w' ) outfile.write( final_log.getvalue() ) print >> log print >> log, "A logfile named %s was created."%( params.outlier_utils.output.logfile) print >> log, "This logfile contains the screen output and" print >> log, "(possibly) some ccp4 style loggraph plots"
|
95ea40706150efdd497c59bd7453515caa13e6e4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/696/95ea40706150efdd497c59bd7453515caa13e6e4/remove_outliers.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1086,
12,
3076,
67,
529,
16,
833,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
7566,
17,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
469,
30,
613,
273,
3309,
67,
659,
1435,
309,
261,
902,
5238,
20380,
6,
316,
833,
4672,
613,
18,
4861,
12,
1925,
1546,
10283,
3113,
585,
67,
1612,
33,
9499,
18,
10283,
13,
533,
67,
4106,
273,
15777,
1435,
533,
67,
4106,
67,
13214,
273,
15777,
1435,
613,
18,
4861,
12,
1925,
1546,
1330,
67,
4106,
3113,
585,
67,
1612,
33,
1080,
67,
4106,
13,
225,
1844,
330,
67,
6911,
273,
5378,
1237,
67,
2761,
11599,
273,
2561,
18587,
92,
18,
844,
330,
18,
3076,
67,
1369,
18,
3446,
67,
2761,
11599,
12,
4171,
67,
2010,
33,
7525,
67,
2010,
16,
6382,
67,
4887,
1546,
659,
9800,
67,
27515,
7923,
225,
364,
1501,
316,
833,
30,
1296,
67,
1369,
67,
2010,
273,
599,
1501,
67,
291,
67,
11005,
273,
1083,
468,
353,
518,
279,
585,
35,
309,
1501,
31713,
413,
20380,
6877,
1501,
67,
291,
67,
11005,
273,
1053,
309,
261,
538,
18,
803,
18,
291,
768,
12,
3175,
3719,
30,
7541,
353,
333,
279,
585,
508,
35,
468,
866,
309,
518,
353,
279,
1844,
330,
585,
775,
30,
1296,
67,
1369,
67,
2010,
273,
30956,
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,
1086,
12,
3076,
67,
529,
16,
833,
4672,
309,
562,
12,
1968,
13,
631,
20,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
5201,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
261,
5238,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
1327,
7566,
17,
76,
6,
316,
833,
262,
30,
1172,
67,
5201,
1435,
469,
30,
613,
273,
3309,
67,
659,
1435,
309,
261,
902,
5238,
20380,
6,
316,
833,
4672,
613,
18,
4861,
12,
1925,
1546,
10283,
3113,
585,
67,
1612,
33,
9499,
18,
10283,
13,
533,
67,
4106,
273,
15777,
1435,
533,
67,
4106,
67,
13214,
273,
15777,
1435,
613,
18,
4861,
12,
1925,
1546,
1330,
67,
4106,
3113,
585,
67,
2
] |
default = set(self._site.family.disambig('_default'))
|
try: default = set(self._site.family.disambig('_default')) except KeyError: default = set(u'Disambig')
|
def isDisambig(self, get_Index=True): """Return True if this is a disambiguation page, False otherwise.
|
aa521c91b2ce11be34010ff73fd32b99743e8eda /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4404/aa521c91b2ce11be34010ff73fd32b99743e8eda/wikipedia.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1669,
2536,
360,
12,
2890,
16,
336,
67,
1016,
33,
5510,
4672,
3536,
990,
1053,
309,
333,
353,
279,
1015,
26011,
367,
1363,
16,
1083,
3541,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
353,
1669,
2536,
360,
12,
2890,
16,
336,
67,
1016,
33,
5510,
4672,
3536,
990,
1053,
309,
333,
353,
279,
1015,
26011,
367,
1363,
16,
1083,
3541,
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
] |
self.__redraw ()
|
if self.__offscreen: self.__update_from_offscreen () else: self.__redraw ()
|
def __handle_expose_event (self, self_, event):
|
8d5093e4a2340e29c99296ea4204ff46670eb549 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12310/8d5093e4a2340e29c99296ea4204ff46670eb549/Timeline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
4110,
67,
338,
4150,
67,
2575,
261,
2890,
16,
365,
67,
16,
871,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
open('tmp/tiff57.tif','w').write(open('data/byte.tif').read())
|
open('tmp/tiff57.tif','wb').write(open('data/byte.tif', 'rb').read())
|
def tiff_write_57(): drv = gdal.GetDriverByName( 'GTiff' ) md = drv.GetMetadata() # Expected to fail with libtiff < 4.0 as it needs TIFFUnsetField, so skip it if string.find(md['DMD_CREATIONOPTIONLIST'],'BigTIFF') == -1: return 'skip' # copy a file to tmp dir to modify. open('tmp/tiff57.tif','w').write(open('data/byte.tif').read()) # open and set a non-northup geotransform. ds = gdal.Open('tmp/tiff57.tif',gdal.GA_Update) ds.SetGeoTransform([100,1,3,200,3,1]) ds = None ds = gdal.Open('tmp/tiff57.tif') gt = ds.GetGeoTransform() ds = None if gt != (100,1,3,200,3,1): print gt gdaltest.post_reason( 'did not get expected geotransform, perhaps unset is not working?' ) return 'fail' gdal.GetDriverByName('GTiff').Delete('tmp/tiff57.tif') return 'success'
|
35934889d5ed539bbdd1a35e3dcba778d841c9b4 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/10289/35934889d5ed539bbdd1a35e3dcba778d841c9b4/tiff_write.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
268,
3048,
67,
2626,
67,
10321,
13332,
225,
302,
4962,
273,
15551,
287,
18,
967,
4668,
5911,
12,
296,
16506,
3048,
11,
262,
3481,
273,
302,
4962,
18,
967,
2277,
1435,
468,
13219,
358,
2321,
598,
2561,
88,
3048,
411,
1059,
18,
20,
487,
518,
4260,
27491,
13250,
974,
16,
1427,
2488,
518,
309,
533,
18,
4720,
12,
1264,
3292,
40,
6188,
67,
5458,
2689,
7425,
7085,
3546,
11189,
9901,
56,
16962,
6134,
422,
300,
21,
30,
327,
296,
7457,
11,
225,
468,
1610,
279,
585,
358,
1853,
1577,
358,
5612,
18,
1696,
2668,
5645,
19,
88,
3048,
10321,
18,
26922,
17023,
9464,
16063,
2626,
12,
3190,
2668,
892,
19,
7229,
18,
26922,
2187,
296,
6731,
16063,
896,
10756,
225,
468,
1696,
471,
444,
279,
1661,
17,
82,
7825,
416,
7856,
6547,
18,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
5645,
19,
88,
3048,
10321,
18,
26922,
2187,
19016,
287,
18,
25043,
67,
1891,
13,
3780,
18,
694,
12447,
4059,
3816,
6625,
16,
21,
16,
23,
16,
6976,
16,
23,
16,
21,
5717,
3780,
273,
599,
225,
3780,
273,
15551,
287,
18,
3678,
2668,
5645,
19,
88,
3048,
10321,
18,
26922,
6134,
9879,
273,
3780,
18,
967,
12447,
4059,
1435,
3780,
273,
599,
225,
309,
9879,
480,
261,
6625,
16,
21,
16,
23,
16,
6976,
16,
23,
16,
21,
4672,
1172,
9879,
15551,
2390,
395,
18,
2767,
67,
10579,
12,
296,
14044,
486,
336,
2665,
7856,
6547,
16,
26282,
2646,
353,
486,
5960,
4899,
262,
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,
268,
3048,
67,
2626,
67,
10321,
13332,
225,
302,
4962,
273,
15551,
287,
18,
967,
4668,
5911,
12,
296,
16506,
3048,
11,
262,
3481,
273,
302,
4962,
18,
967,
2277,
1435,
468,
13219,
358,
2321,
598,
2561,
88,
3048,
411,
1059,
18,
20,
487,
518,
4260,
27491,
13250,
974,
16,
1427,
2488,
518,
309,
533,
18,
4720,
12,
1264,
3292,
40,
6188,
67,
5458,
2689,
7425,
7085,
3546,
11189,
9901,
56,
16962,
6134,
422,
300,
21,
30,
327,
296,
7457,
11,
225,
468,
1610,
279,
585,
358,
1853,
1577,
358,
5612,
18,
1696,
2668,
5645,
19,
88,
3048,
10321,
18,
26922,
17023,
9464,
16063,
2626,
12,
3190,
2668,
892,
19,
7229,
18,
26922,
2187,
296,
6731,
16063,
896,
2
] |
finalDict['TotalRecords'] = len(records) return S_OK(finalDict)
|
finalDict['TotalRecords'] = len( records ) return S_OK( finalDict )
|
def getUserSummaryWeb(self,selectDict, sortList, startItem, maxItems): """ Get the summary of user jobs in a standard form for the Web portal. Pagination and global sorting is supported. """
|
99c1bc850ba087890925b3180df206f65bb1d4b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12864/99c1bc850ba087890925b3180df206f65bb1d4b3/JobDB.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
729,
6550,
316,
279,
4529,
646,
364,
326,
2999,
11899,
18,
16942,
471,
2552,
9602,
353,
3260,
18,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
4735,
4733,
4079,
12,
2890,
16,
4025,
5014,
16,
1524,
682,
16,
787,
1180,
16,
943,
3126,
4672,
3536,
968,
326,
4916,
434,
729,
6550,
316,
279,
4529,
646,
364,
326,
2999,
11899,
18,
16942,
471,
2552,
9602,
353,
3260,
18,
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,
-100,
-100,
-100,
-100,
-100
] |
args.append( "'%s'" % (arg.replace("'", '%c%c%c%c%c' % (0x27,0x22,0x27,0x22,0x27))) )
|
args.append( arg )
|
def infof( self, format, *args ): line = format % args self._file.write( line ) cfg.infof( '%s', line )
|
1b493e75d8e0b99789847ab53ff3127b336cb1fb /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/13161/1b493e75d8e0b99789847ab53ff3127b336cb1fb/configure.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1123,
74,
12,
365,
16,
740,
16,
380,
1968,
262,
30,
980,
273,
740,
738,
833,
365,
6315,
768,
18,
2626,
12,
980,
262,
2776,
18,
1376,
74,
12,
1995,
87,
2187,
980,
262,
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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,
365,
6315,
768,
18,
2626,
12,
980,
262,
2776,
18,
1376,
74,
12,
1995,
87,
2187,
980,
262,
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
] |
mimetype = mimetypes.guess_type(path)[0]
|
if force_mimetype : mimetype = force_mimetype else : mimetype = mimetypes.guess_type(path)[0]
|
def get_media_internal (request, path, use_cache=True) : # get media type mimetype = mimetypes.guess_type(path)[0] contents = get_mime_handler(mimetype)(request, file(path, "rb"), path=path) return ( contents, mimetype, 200, rfc822.formatdate(os.stat(path)[stat.ST_MTIME]), )
|
118e8e2c4fddd63f6cf6650853c68cb0b173aa7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/118e8e2c4fddd63f6cf6650853c68cb0b173aa7b/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5829,
67,
7236,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
13,
294,
468,
336,
3539,
618,
309,
2944,
67,
22571,
294,
12595,
273,
2944,
67,
22571,
469,
294,
12595,
273,
20369,
15180,
18,
20885,
67,
723,
12,
803,
25146,
20,
65,
225,
2939,
273,
336,
67,
11757,
67,
4176,
12,
22571,
21433,
2293,
16,
585,
12,
803,
16,
315,
6731,
6,
3631,
589,
33,
803,
13,
225,
327,
261,
2939,
16,
12595,
16,
4044,
16,
16590,
24532,
18,
2139,
712,
12,
538,
18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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,
336,
67,
5829,
67,
7236,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
13,
294,
468,
336,
3539,
618,
309,
2944,
67,
22571,
294,
12595,
273,
2944,
67,
22571,
469,
294,
12595,
273,
20369,
15180,
18,
20885,
67,
723,
12,
803,
25146,
20,
65,
225,
2939,
273,
336,
67,
11757,
67,
4176,
12,
22571,
21433,
2293,
16,
585,
12,
803,
16,
315,
6731,
6,
3631,
589,
33,
803,
13,
225,
327,
261,
2939,
16,
12595,
16,
4044,
16,
16590,
24532,
18,
2139,
712,
12,
538,
18,
5642,
12,
803,
25146,
5642,
18,
882,
67,
49,
4684,
65,
3631,
262,
282,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return washer.wash(value, allowed_attribute_whitelist=[], allowed_tag_whitelist=[] )
|
try: return washer.wash(value, allowed_attribute_whitelist=[], allowed_tag_whitelist=[] ) except HTMLParseError: return cgi.escape(value)
|
def escape_field(value, mode=0): """ Utility function used to escape the value of a field in given mode. - mode 0: no escaping - mode 1: escaping all HTML/XML characters (escaped chars are shown as escaped) - mode 2: escaping unsafe HTML tags to avoid XSS, but keep basic one (such as <br />) Escaped tags are removed. - mode 3: mix of mode 1 and mode 2. If field_value starts with <!--HTML-->, then use mode 2. Else use mode 1. - mode 4: escaping all HTML/XML tags (escaped tags are removed) - mode 5: same as 2, but allows more tags, like <img> - mode 6: same as 3, but allows more tags, like <img> """ if mode == 1: return cgi.escape(value) elif mode in [2, 5]: allowed_attribute_whitelist = cfg_html_buffer_allowed_attribute_whitelist allowed_tag_whitelist = cfg_html_buffer_allowed_tag_whitelist + \ ['class'] if mode == 5: allowed_attribute_whitelist += ['src', 'alt', 'width', 'height', 'style'] allowed_tag_whitelist += ['img'] return washer.wash(value, allowed_attribute_whitelist=\ allowed_attribute_whitelist, allowed_tag_whitelist= \ allowed_tag_whitelist ) elif mode in [3, 6]: if value.lstrip(' \n').startswith(html_field): allowed_attribute_whitelist = cfg_html_buffer_allowed_attribute_whitelist allowed_tag_whitelist = cfg_html_buffer_allowed_tag_whitelist + \ ['class'] if mode == 6: allowed_attribute_whitelist += ['src', 'alt', 'width', 'height', 'style'] allowed_tag_whitelist += ['img'] return washer.wash(value, allowed_attribute_whitelist=\ allowed_attribute_whitelist, allowed_tag_whitelist=\ allowed_tag_whitelist ) else: return cgi.escape(value) elif mode == 4: return washer.wash(value, allowed_attribute_whitelist=[], allowed_tag_whitelist=[] ) else: return value
|
d37904acbe4c5b7ec0d9d2fcabebfe1b7742dba8 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/12027/d37904acbe4c5b7ec0d9d2fcabebfe1b7742dba8/bibformat_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
1518,
12,
1132,
16,
1965,
33,
20,
4672,
3536,
13134,
445,
1399,
358,
4114,
326,
460,
434,
279,
652,
316,
864,
1965,
18,
225,
300,
1965,
374,
30,
1158,
20604,
300,
1965,
404,
30,
20604,
777,
3982,
19,
4201,
3949,
261,
16502,
5230,
854,
12188,
487,
8345,
13,
300,
1965,
576,
30,
20604,
7127,
3982,
2342,
358,
4543,
1139,
1260,
16,
1496,
3455,
5337,
1245,
261,
87,
2648,
487,
411,
2848,
20954,
13,
512,
1017,
5994,
2342,
854,
3723,
18,
300,
1965,
890,
30,
6843,
434,
1965,
404,
471,
1965,
576,
18,
971,
652,
67,
1132,
2542,
598,
5719,
413,
4870,
413,
20401,
1508,
999,
1965,
576,
18,
16289,
999,
1965,
404,
18,
300,
1965,
1059,
30,
20604,
777,
3982,
19,
4201,
2342,
261,
16502,
2342,
854,
3723,
13,
300,
1965,
1381,
30,
1967,
487,
576,
16,
1496,
5360,
1898,
2342,
16,
3007,
411,
6081,
34,
300,
1965,
1666,
30,
1967,
487,
890,
16,
1496,
5360,
1898,
2342,
16,
3007,
411,
6081,
34,
3536,
309,
1965,
422,
404,
30,
327,
276,
10052,
18,
6939,
12,
1132,
13,
1327,
1965,
316,
306,
22,
16,
1381,
14542,
2935,
67,
4589,
67,
20409,
273,
2776,
67,
2620,
67,
4106,
67,
8151,
67,
4589,
67,
20409,
2935,
67,
2692,
67,
20409,
273,
2776,
67,
2620,
67,
4106,
67,
8151,
67,
2692,
67,
20409,
397,
521,
10228,
1106,
3546,
309,
1965,
422,
1381,
30,
2935,
67,
4589,
67,
20409,
1011,
10228,
4816,
2187,
296,
2390,
2187,
296,
2819,
2187,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4114,
67,
1518,
12,
1132,
16,
1965,
33,
20,
4672,
3536,
13134,
445,
1399,
358,
4114,
326,
460,
434,
279,
652,
316,
864,
1965,
18,
225,
300,
1965,
374,
30,
1158,
20604,
300,
1965,
404,
30,
20604,
777,
3982,
19,
4201,
3949,
261,
16502,
5230,
854,
12188,
487,
8345,
13,
300,
1965,
576,
30,
20604,
7127,
3982,
2342,
358,
4543,
1139,
1260,
16,
1496,
3455,
5337,
1245,
261,
87,
2648,
487,
411,
2848,
20954,
13,
512,
1017,
5994,
2342,
854,
3723,
18,
300,
1965,
890,
30,
6843,
434,
1965,
404,
471,
1965,
576,
18,
971,
652,
67,
1132,
2542,
598,
5719,
413,
4870,
413,
20401,
1508,
999,
1965,
576,
18,
16289,
999,
1965,
404,
18,
300,
1965,
1059,
2
] |
raises(ImportError "__import__('uu', globals(), locals(), [])")
|
raises(ImportError, "__import__('uu', globals(), locals(), [])")
|
def test_bad_pyc(self): import zipimport import sys m0 = ord(self.test_pyc[0]) m0 ^= 0x04 test_pyc = chr(m0) + self.test_pyc[1:] self.writefile(self, "uu.pyc", test_pyc) raises(ImportError "__import__('uu', globals(), locals(), [])") assert 'uu' not in sys.modules
|
91c6b9d32753f7f155f105d803022fcb179766f2 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/6934/91c6b9d32753f7f155f105d803022fcb179766f2/test_zipimport.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
8759,
67,
2074,
71,
12,
2890,
4672,
1930,
3144,
5666,
1930,
2589,
312,
20,
273,
4642,
12,
2890,
18,
3813,
67,
2074,
71,
63,
20,
5717,
312,
20,
10352,
374,
92,
3028,
1842,
67,
2074,
71,
273,
4513,
12,
81,
20,
13,
397,
365,
18,
3813,
67,
2074,
71,
63,
21,
26894,
365,
18,
2626,
768,
12,
2890,
16,
315,
24286,
18,
2074,
71,
3113,
1842,
67,
2074,
71,
13,
14183,
12,
5010,
668,
16,
10425,
5666,
972,
2668,
24286,
2187,
10941,
9334,
8985,
9334,
5378,
2225,
13,
1815,
296,
24286,
11,
486,
316,
2589,
18,
6400,
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,
1842,
67,
8759,
67,
2074,
71,
12,
2890,
4672,
1930,
3144,
5666,
1930,
2589,
312,
20,
273,
4642,
12,
2890,
18,
3813,
67,
2074,
71,
63,
20,
5717,
312,
20,
10352,
374,
92,
3028,
1842,
67,
2074,
71,
273,
4513,
12,
81,
20,
13,
397,
365,
18,
3813,
67,
2074,
71,
63,
21,
26894,
365,
18,
2626,
768,
12,
2890,
16,
315,
24286,
18,
2074,
71,
3113,
1842,
67,
2074,
71,
13,
14183,
12,
5010,
668,
16,
10425,
5666,
972,
2668,
24286,
2187,
10941,
9334,
8985,
9334,
5378,
2225,
13,
1815,
296,
24286,
11,
486,
316,
2589,
18,
6400,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def schedule(self): """ send messages to new peers, if necessary """ if self.finished: return l = self.found.values() l.sort(self.sort) for node in l[:K]: if node.id == self.target: self.finished=1 return self.callback([node]) if (not self.queried.has_key(node.id)) and node.id != self.table.node.id: df = node.findNode(self.target, self.table.node.senderDict()) df.addCallbacks(self.handleGotNodes, self.makeMsgFailed(node)) self.outstanding = self.outstanding + 1 self.queried[node.id] = 1 if self.outstanding >= const.CONCURRENT_REQS: break assert(self.outstanding) >=0 if self.outstanding == 0: self.finished=1 reactor.callFromThread(self.callback, l[:K])
|
def schedule(self): """ send messages to new peers, if necessary """ if self.finished: return l = self.found.values() l.sort(self.sort)
|
def schedule(self):
|
815cbec78a6e942fe1dd3e3ef1b578ab1c471873 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/665/815cbec78a6e942fe1dd3e3ef1b578ab1c471873/actions.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4788,
12,
2890,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
template, company_id, context=context,
|
company_id, context=context,
|
def create_tax_code(self, cursor, user, template, company_id, context=None, template2tax_code=None, parent_id=False): ''' Create recursively tax codes based on template.
|
e86c36fdb94ed128bdaad6eec9e91c5862a4c57d /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9290/e86c36fdb94ed128bdaad6eec9e91c5862a4c57d/tax.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
8066,
67,
710,
12,
2890,
16,
3347,
16,
729,
16,
1542,
16,
9395,
67,
350,
16,
819,
33,
7036,
16,
1542,
22,
8066,
67,
710,
33,
7036,
16,
982,
67,
350,
33,
8381,
4672,
9163,
1788,
8536,
5320,
6198,
2511,
603,
1542,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
8066,
67,
710,
12,
2890,
16,
3347,
16,
729,
16,
1542,
16,
9395,
67,
350,
16,
819,
33,
7036,
16,
1542,
22,
8066,
67,
710,
33,
7036,
16,
982,
67,
350,
33,
8381,
4672,
9163,
1788,
8536,
5320,
6198,
2511,
603,
1542,
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
] |
parameterName = classes[i][1]
|
parameterName = classes[i][0]
|
def __updateChildUIs( self ) : classes = self.parameter.getClasses( True ) # delete any uis for parameters which have disappeared parameterNamesSet = set( [ c[1] for c in classes ] ) for parameterName in self.__childUIs.keys() : if parameterName not in parameterNamesSet : maya.cmds.deleteUI( self.__childUIs[parameterName]._topLevelUI() ) del self.__childUIs[parameterName] # and create or reorder uis for remaining parameters attachForm = [ ( self.__addButton, "left", 20 + IECoreMaya.CompoundParameterUI._labelIndent( self.__kw["hierarchyDepth"] + 1 ) ), ( self.__addButton, "bottom", 5 ), ] attachControl = [] attachNone = [] prevChildUI = None for i in range( 0, len( classes ) ) : parameterName = classes[i][1] childUI = self.__childUIs.get( parameterName, None ) if childUI : # delete it if it's not the right sort any more if childUI.__className!=classes[i][2] or childUI.__classVersion!=classes[i][3] : maya.cmds.deleteUI( childUI._topLevelUI() ) childUI = None if not childUI : with IECoreMaya.UITemplate( "attributeEditorTemplate" ) : maya.cmds.setParent( self.__formLayout ) childUI = ChildUI( self.parameter[parameterName], **self.__kw ) childUI.__className = classes[i][2] childUI.__classVersion = classes[i][3] self.__childUIs[parameterName] = childUI attachForm += [ ( childUI._topLevelUI(), "left", 0 ), ( childUI._topLevelUI(), "right", 0 ), ] if i==0 : attachForm.append( ( childUI._topLevelUI(), "top", 5 ) ) else : attachControl.append( ( childUI._topLevelUI(), "top", 0, prevChildUI._topLevelUI() ) ) attachNone.append( ( childUI._topLevelUI(), "bottom" ) ) prevChildUI = childUI
|
519835b54d3869fcd55ad2b4a1c9117b1550acc6 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9042/519835b54d3869fcd55ad2b4a1c9117b1550acc6/ClassVectorParameterUI.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2725,
1763,
57,
2520,
12,
365,
262,
294,
225,
3318,
273,
365,
18,
6775,
18,
588,
4818,
12,
1053,
262,
225,
468,
1430,
1281,
582,
291,
364,
1472,
1492,
1240,
1015,
438,
347,
2258,
225,
1569,
1557,
694,
273,
444,
12,
306,
276,
63,
21,
65,
364,
276,
316,
3318,
308,
262,
364,
15524,
316,
365,
16186,
3624,
57,
2520,
18,
2452,
1435,
294,
309,
15524,
486,
316,
1569,
1557,
694,
294,
2026,
69,
18,
24680,
18,
3733,
5370,
12,
365,
16186,
3624,
57,
2520,
63,
6775,
461,
65,
6315,
3669,
2355,
5370,
1435,
262,
1464,
365,
16186,
3624,
57,
2520,
63,
6775,
461,
65,
225,
468,
471,
752,
578,
19427,
582,
291,
364,
4463,
1472,
225,
3306,
1204,
273,
306,
261,
365,
16186,
1289,
3616,
16,
315,
4482,
3113,
4200,
397,
10897,
4670,
49,
528,
69,
18,
16835,
1662,
5370,
6315,
1925,
7790,
12,
365,
16186,
9987,
9614,
17937,
6148,
11929,
397,
404,
262,
262,
16,
261,
365,
16186,
1289,
3616,
16,
315,
9176,
3113,
1381,
262,
16,
308,
3306,
3367,
273,
5378,
3306,
7036,
273,
5378,
2807,
1763,
5370,
273,
599,
364,
277,
316,
1048,
12,
374,
16,
562,
12,
3318,
262,
262,
294,
225,
15524,
273,
3318,
63,
77,
6362,
20,
65,
225,
1151,
5370,
273,
365,
16186,
3624,
57,
2520,
18,
588,
12,
15524,
16,
599,
262,
309,
1151,
5370,
294,
468,
1430,
518,
309,
518,
1807,
486,
326,
2145,
1524,
1281,
1898,
309,
1151,
5370,
16186,
12434,
5,
33,
4701,
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,
2725,
1763,
57,
2520,
12,
365,
262,
294,
225,
3318,
273,
365,
18,
6775,
18,
588,
4818,
12,
1053,
262,
225,
468,
1430,
1281,
582,
291,
364,
1472,
1492,
1240,
1015,
438,
347,
2258,
225,
1569,
1557,
694,
273,
444,
12,
306,
276,
63,
21,
65,
364,
276,
316,
3318,
308,
262,
364,
15524,
316,
365,
16186,
3624,
57,
2520,
18,
2452,
1435,
294,
309,
15524,
486,
316,
1569,
1557,
694,
294,
2026,
69,
18,
24680,
18,
3733,
5370,
12,
365,
16186,
3624,
57,
2520,
63,
6775,
461,
65,
6315,
3669,
2355,
5370,
1435,
262,
1464,
365,
16186,
3624,
57,
2520,
63,
6775,
461,
65,
225,
468,
471,
752,
578,
19427,
582,
291,
364,
4463,
1472,
225,
2
] |
self._selection_changed()
|
cursel = int(self.listbox.curselection()[0]) self._change_start(self.completions[cursel])
|
def listupdate_event(self, event): if not self.is_active(): return self.userwantswindow = True self._selection_changed()
|
4caee3e62f43c46b049bd7e1bacc6e03cf1f633f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3187/4caee3e62f43c46b049bd7e1bacc6e03cf1f633f/AutoCompleteWindow.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
2725,
67,
2575,
12,
2890,
16,
871,
4672,
309,
486,
365,
18,
291,
67,
3535,
13332,
327,
365,
18,
1355,
91,
4388,
5668,
273,
1053,
365,
6315,
10705,
67,
6703,
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,
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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
666,
2725,
67,
2575,
12,
2890,
16,
871,
4672,
309,
486,
365,
18,
291,
67,
3535,
13332,
327,
365,
18,
1355,
91,
4388,
5668,
273,
1053,
365,
6315,
10705,
67,
6703,
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
] |
1/0
|
1./0
|
def f(p): 1/0
|
33715f480fc70c2d6211595f77c5fb72a0d256c5 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/8125/33715f480fc70c2d6211595f77c5fb72a0d256c5/test_profilehooks.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
404,
19,
20,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
284,
12,
84,
4672,
404,
19,
20,
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,
-100,
-100,
-100
] |
byte_size = height * pitch
|
def _wrap_bitmap_bits_in_array(bitmap, shape, dtype): """Return an ndarray view on the data in a FreeImage bitmap. Only valid for as long as the bitmap is loaded (if single page) / locked in memory (if multipage). """ pitch = _FI.FreeImage_GetPitch(bitmap) height = shape[-1] byte_size = height * pitch itemsize = dtype.itemsize if len(shape) == 3: strides = (itemsize, shape[0]*itemsize, pitch) else: strides = (itemsize, pitch) bits = _FI.FreeImage_GetBits(bitmap) class DummyArray: __array_interface__ = { 'data': (bits, False), 'strides': strides, 'typestr': dtype.str, 'shape': tuple(shape), } # Still segfaulting on 64-bit machine because of illegal memory access return numpy.array(DummyArray())
|
30b4ff227457ee1922da64123d4c9bf09abcf91f /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12573/30b4ff227457ee1922da64123d4c9bf09abcf91f/freeimage_plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
4113,
67,
3682,
1458,
67,
6789,
67,
267,
67,
1126,
12,
3682,
1458,
16,
2179,
16,
3182,
4672,
3536,
990,
392,
8304,
1476,
603,
326,
501,
316,
279,
15217,
2040,
9389,
18,
5098,
923,
364,
487,
1525,
487,
326,
9389,
353,
4203,
261,
430,
2202,
1363,
13,
342,
8586,
316,
3778,
261,
430,
14421,
410,
2934,
225,
3536,
14486,
273,
389,
1653,
18,
9194,
2040,
67,
967,
52,
1437,
12,
3682,
1458,
13,
2072,
273,
2179,
18919,
21,
65,
761,
1467,
273,
3182,
18,
1726,
1467,
225,
309,
562,
12,
4867,
13,
422,
890,
30,
21626,
273,
261,
1726,
1467,
16,
2179,
63,
20,
5772,
1726,
1467,
16,
14486,
13,
469,
30,
21626,
273,
261,
1726,
1467,
16,
14486,
13,
4125,
273,
389,
1653,
18,
9194,
2040,
67,
967,
6495,
12,
3682,
1458,
13,
225,
667,
28622,
1076,
30,
1001,
1126,
67,
5831,
972,
273,
288,
296,
892,
4278,
261,
6789,
16,
1083,
3631,
296,
701,
4369,
4278,
21626,
16,
296,
2352,
313,
4278,
3182,
18,
701,
16,
296,
4867,
4278,
3193,
12,
4867,
3631,
289,
225,
468,
934,
737,
2291,
643,
310,
603,
5178,
17,
3682,
5228,
2724,
434,
16720,
3778,
2006,
225,
327,
3972,
18,
1126,
12,
20094,
1076,
10756,
225,
2,
0,
0,
0,
0,
0,
0,
0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
18,
5098,
923,
364,
487,
1525,
487,
326,
9389,
353,
4203,
261,
430,
2202,
1363,
13,
342,
8586,
316,
3778,
261,
430,
14421,
410,
2934,
225,
3536,
14486,
273,
389,
1653,
18,
9194,
2040,
67,
967,
52,
1437,
12,
3682,
1458,
13,
2072,
273,
2179,
18919,
21,
65,
761,
1467,
273,
3182,
18,
1726,
1467,
225,
309,
562,
12,
4867,
13,
422,
890,
30,
21626,
273,
261,
1726,
1467,
16,
2179,
63,
20,
5772,
1726,
1467,
16,
14486,
13,
469,
30,
21626,
273,
261,
1726,
1467,
2
] |
|
lines[0] = "
|
lines[0] = "
|
def write(self, file): if self.comments: file.write(self.comments) if (isinstance(self.msgid, MessageID) and self.msgid != self.msgid.default) or ( isinstance(self.msgid, Message) and self.msgid.default is not None): default = self.msgid.default.strip() lines = normalize(default).split("\n") lines[0] = "# Default: %s\n" % lines[0] for i in range(1, len(lines)): lines[i] = "# %s\n" % lines[i] file.write("".join(lines)) file.write('msgid %s\n' % normalize(self.msgid)) file.write('msgstr ""\n') file.write('\n')
|
62c8758173e77db1c2eb56c52650f838fe49bbfc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/9527/62c8758173e77db1c2eb56c52650f838fe49bbfc/extract.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
4672,
309,
365,
18,
9231,
30,
585,
18,
2626,
12,
2890,
18,
9231,
13,
309,
261,
291,
1336,
12,
2890,
18,
3576,
350,
16,
2350,
734,
13,
471,
365,
18,
3576,
350,
480,
365,
18,
3576,
350,
18,
1886,
13,
578,
261,
1549,
12,
2890,
18,
3576,
350,
16,
2350,
13,
471,
365,
18,
3576,
350,
18,
1886,
353,
486,
599,
4672,
805,
273,
365,
18,
3576,
350,
18,
1886,
18,
6406,
1435,
2362,
273,
3883,
12,
1886,
2934,
4939,
31458,
82,
7923,
2362,
63,
20,
65,
273,
6619,
2989,
30,
738,
87,
64,
82,
6,
738,
2362,
63,
20,
65,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
3548,
3719,
30,
2362,
63,
77,
65,
273,
6619,
225,
738,
87,
64,
82,
6,
738,
2362,
63,
77,
65,
585,
18,
2626,
2932,
9654,
5701,
12,
3548,
3719,
585,
18,
2626,
2668,
3576,
350,
738,
87,
64,
82,
11,
738,
3883,
12,
2890,
18,
3576,
350,
3719,
585,
18,
2626,
2668,
27439,
313,
1408,
64,
82,
6134,
585,
18,
2626,
2668,
64,
82,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1045,
12,
2890,
16,
585,
4672,
309,
365,
18,
9231,
30,
585,
18,
2626,
12,
2890,
18,
9231,
13,
309,
261,
291,
1336,
12,
2890,
18,
3576,
350,
16,
2350,
734,
13,
471,
365,
18,
3576,
350,
480,
365,
18,
3576,
350,
18,
1886,
13,
578,
261,
1549,
12,
2890,
18,
3576,
350,
16,
2350,
13,
471,
365,
18,
3576,
350,
18,
1886,
353,
486,
599,
4672,
805,
273,
365,
18,
3576,
350,
18,
1886,
18,
6406,
1435,
2362,
273,
3883,
12,
1886,
2934,
4939,
31458,
82,
7923,
2362,
63,
20,
65,
273,
6619,
2989,
30,
738,
87,
64,
82,
6,
738,
2362,
63,
20,
65,
364,
277,
316,
1048,
12,
21,
16,
562,
12,
3548,
3719,
30,
2
] |
ProperlyCloseFilesTestCase.numberRounds = resource.getrlimit(resource.RLIMIT_NOFILE)[0] + 10
|
numRounds = resource.getrlimit(resource.RLIMIT_NOFILE)[0] + 10 ProperlyCloseFilesTestCase.numberRounds = numRounds
|
def testWriteNotificationRaises(self): self.client.writeConnectionLost = self.aBug self.client.transport.loseWriteConnection() spinUntil(lambda :self.client.closed) log.flushErrors(RuntimeError)
|
68998e21ef533677da748f03432912990acb38b1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12595/68998e21ef533677da748f03432912990acb38b1/test_tcp.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3067,
4386,
12649,
6141,
12,
2890,
4672,
365,
18,
2625,
18,
2626,
1952,
19024,
273,
365,
18,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
3067,
4386,
12649,
6141,
12,
2890,
4672,
365,
18,
2625,
18,
2626,
1952,
19024,
273,
365,
18,
69,
19865,
365,
18,
2625,
18,
13049,
18,
2061,
3067,
1952,
1435,
12490,
9716,
12,
14661,
294,
2890,
18,
2625,
18,
12204,
13,
613,
18,
11330,
4229,
12,
5576,
668,
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
] |
path_iterator = [(os.path.dirname(top_path), [], [os.path.basename(top_path)])]
|
path_iterator = [(os.path.dirname(self.top_path), [], [os.path.basename(self.top_path)])]
|
def do(self): sys.stdout.write("JOBDESC: Scanning files for keywords.\n") sys.stdout.write("MESSAGE: Loading keywords...\n") sys.stdout.flush() keywords = Keyword.objects.all()
|
76be4c9ed94775c054b500425d9dfd716593e570 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/4227/76be4c9ed94775c054b500425d9dfd716593e570/models.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
2589,
18,
10283,
18,
2626,
2932,
18321,
10964,
30,
2850,
10903,
1390,
364,
7093,
8403,
82,
7923,
2589,
18,
10283,
18,
2626,
2932,
8723,
30,
4444,
310,
7093,
2777,
64,
82,
7923,
2589,
18,
10283,
18,
11330,
1435,
7093,
273,
18317,
18,
6911,
18,
454,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
12,
2890,
4672,
2589,
18,
10283,
18,
2626,
2932,
18321,
10964,
30,
2850,
10903,
1390,
364,
7093,
8403,
82,
7923,
2589,
18,
10283,
18,
2626,
2932,
8723,
30,
4444,
310,
7093,
2777,
64,
82,
7923,
2589,
18,
10283,
18,
11330,
1435,
7093,
273,
18317,
18,
6911,
18,
454,
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
] |
ioctl(self.dev, 0x3701, struct.pack("HH", address, data))
|
ioctl(self.dev, 0x3701, struct.pack("HB", address, data))
|
def poke(self, address, data): """Store the given address/data pair""" ioctl(self.dev, 0x3701, struct.pack("HH", address, data))
|
9eacd11461486285270fae6a3dfa621a6fbf2100 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6757/9eacd11461486285270fae6a3dfa621a6fbf2100/rcpod.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
293,
3056,
12,
2890,
16,
1758,
16,
501,
4672,
3536,
2257,
326,
864,
1758,
19,
892,
3082,
8395,
2527,
12930,
12,
2890,
18,
5206,
16,
374,
92,
6418,
1611,
16,
1958,
18,
2920,
2932,
17500,
3113,
1758,
16,
501,
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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257,
326,
864,
1758,
19,
892,
3082,
8395,
2527,
12930,
12,
2890,
18,
5206,
16,
374,
92,
6418,
1611,
16,
1958,
18,
2920,
2932,
17500,
3113,
1758,
16,
501,
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
] |
type -- type of the s.d. code; one of 1,2,3, or 4.
|
typ -- type of the s.d. code; one of 1,2,3, or 4.
|
def sd_zeta_polynomial(C,type=1): r""" Returns the Duursma zeta function of a self-dual code using the construction in [D].
|
24267b4dbde13a19b59225e71b0b95cf6a68a709 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/9890/24267b4dbde13a19b59225e71b0b95cf6a68a709/linear_code.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
316,
306,
40,
8009,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
8349,
67,
94,
1066,
67,
3915,
13602,
12,
39,
16,
723,
33,
21,
4672,
436,
8395,
2860,
326,
463,
89,
25152,
2540,
998,
1066,
445,
434,
279,
365,
17,
72,
1462,
981,
1450,
326,
16171,
316,
306,
40,
8009,
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
] |
O_opts[o_arg] = True
|
opts[o_arg] = True
|
def _parse_options(o_str): opts = {} if not o_str: return opts o_args = o_str.split(',') for o_arg in o_args: o_arg = o_arg.strip() try: o_key, o_val = o_arg.split('=') o_key = o_key.strip() o_val = o_val.strip() except ValueError: O_opts[o_arg] = True else: O_opts[o_key] = o_val return opts
|
dad05e84c38c47fe4b429bb298a8d307fb964d01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/6148/dad05e84c38c47fe4b429bb298a8d307fb964d01/cmdline.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2670,
67,
2116,
12,
83,
67,
701,
4672,
1500,
273,
2618,
309,
486,
320,
67,
701,
30,
327,
1500,
320,
67,
1968,
273,
320,
67,
701,
18,
4939,
12,
2187,
6134,
364,
320,
67,
3175,
316,
320,
67,
1968,
30,
320,
67,
3175,
273,
320,
67,
3175,
18,
6406,
1435,
775,
30,
320,
67,
856,
16,
320,
67,
1125,
273,
320,
67,
3175,
18,
4939,
2668,
2218,
13,
320,
67,
856,
273,
320,
67,
856,
18,
6406,
1435,
320,
67,
1125,
273,
320,
67,
1125,
18,
6406,
1435,
1335,
2068,
30,
1500,
63,
83,
67,
3175,
65,
273,
1053,
469,
30,
531,
67,
4952,
63,
83,
67,
856,
65,
273,
320,
67,
1125,
327,
1500,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2670,
67,
2116,
12,
83,
67,
701,
4672,
1500,
273,
2618,
309,
486,
320,
67,
701,
30,
327,
1500,
320,
67,
1968,
273,
320,
67,
701,
18,
4939,
12,
2187,
6134,
364,
320,
67,
3175,
316,
320,
67,
1968,
30,
320,
67,
3175,
273,
320,
67,
3175,
18,
6406,
1435,
775,
30,
320,
67,
856,
16,
320,
67,
1125,
273,
320,
67,
3175,
18,
4939,
2668,
2218,
13,
320,
67,
856,
273,
320,
67,
856,
18,
6406,
1435,
320,
67,
1125,
273,
320,
67,
1125,
18,
6406,
1435,
1335,
2068,
30,
1500,
63,
83,
67,
3175,
65,
273,
1053,
469,
30,
531,
67,
4952,
63,
83,
67,
856,
65,
273,
320,
67,
1125,
327,
1500,
282,
2,
-100
] |
asyncore.loop(use_poll=self.usepoll)
|
asyncore.loop(use_poll=self.usepoll, count=300, timeout=.01)
|
def test_simple_producer(self): s = echo_server() s.start() time.sleep(0.5) # Give server time to initialize c = echo_client('\n') data = "hello world\nI'm not dead yet!\n" p = asynchat.simple_producer(data+SERVER_QUIT, buffer_size=8) c.push_with_producer(p) asyncore.loop(use_poll=self.usepoll)#, count=5, timeout=5) s.join()
|
dc11e0c6f75ccb21dc266afee4f3afbdf3db4198 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8125/dc11e0c6f75ccb21dc266afee4f3afbdf3db4198/test_asynchat.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9647,
67,
11776,
2750,
12,
2890,
4672,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
22374,
1438,
813,
358,
4046,
276,
273,
3376,
67,
2625,
2668,
64,
82,
6134,
501,
273,
315,
23711,
9117,
64,
82,
45,
17784,
486,
8363,
4671,
24440,
82,
6,
293,
273,
487,
2515,
270,
18,
9647,
67,
11776,
2750,
12,
892,
15,
4370,
67,
3500,
1285,
16,
1613,
67,
1467,
33,
28,
13,
276,
18,
6206,
67,
1918,
67,
11776,
2750,
12,
84,
13,
4326,
479,
18,
6498,
12,
1202,
67,
13835,
33,
2890,
18,
1202,
13835,
13,
7,
16,
1056,
33,
25,
16,
2021,
33,
25,
13,
272,
18,
5701,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
9647,
67,
11776,
2750,
12,
2890,
4672,
272,
273,
3376,
67,
3567,
1435,
272,
18,
1937,
1435,
813,
18,
19607,
12,
20,
18,
25,
13,
468,
22374,
1438,
813,
358,
4046,
276,
273,
3376,
67,
2625,
2668,
64,
82,
6134,
501,
273,
315,
23711,
9117,
64,
82,
45,
17784,
486,
8363,
4671,
24440,
82,
6,
293,
273,
487,
2515,
270,
18,
9647,
67,
11776,
2750,
12,
892,
15,
4370,
67,
3500,
1285,
16,
1613,
67,
1467,
33,
28,
13,
276,
18,
6206,
67,
1918,
67,
11776,
2750,
12,
84,
13,
4326,
479,
18,
6498,
12,
1202,
67,
13835,
33,
2890,
18,
1202,
13835,
13,
7,
16,
1056,
33,
25,
16,
2021,
33,
25,
13,
272,
18,
2
] |
self.block_size = 4096 self.max_block = 100
|
self.block_size = block_size self.max_block = block_count
|
def __init__(self, file, file_size): self.file = file self.file_size = file_size self.block_size = 4096 self.max_block = 100 self.blocks = {}
|
fd111dc80b6122bcd7074fc0a60484ba18098368 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2280/fd111dc80b6122bcd7074fc0a60484ba18098368/file.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
585,
16,
585,
67,
1467,
4672,
365,
18,
768,
273,
585,
365,
18,
768,
67,
1467,
273,
585,
67,
1467,
365,
18,
2629,
67,
1467,
273,
1203,
67,
1467,
365,
18,
1896,
67,
2629,
273,
1203,
67,
1883,
365,
18,
7996,
273,
2618,
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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896,
67,
2629,
273,
1203,
67,
1883,
365,
18,
7996,
273,
2618,
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
] |
def __init__(self, order=None, params=None, dtype=0):
|
def __init__(self, order, params=None, dtype=0):
|
def __init__(self, order=None, params=None, dtype=0): functional.__init__(self, name="evenpoly", order=order, params= params, dtype=dtype) if params is None: self.set_parameters([v+1. for v in self.parameters()])
|
181fc45332a548d05739eb951d6b72074ad435a8 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7472/181fc45332a548d05739eb951d6b72074ad435a8/functional.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1353,
16,
859,
33,
7036,
16,
3182,
33,
20,
4672,
18699,
16186,
2738,
972,
12,
2890,
16,
508,
1546,
16728,
16353,
3113,
1353,
33,
1019,
16,
859,
33,
859,
16,
3182,
33,
8972,
13,
309,
859,
353,
599,
30,
365,
18,
542,
67,
3977,
3816,
90,
15,
21,
18,
364,
331,
316,
365,
18,
3977,
1435,
5717,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1353,
16,
859,
33,
7036,
16,
3182,
33,
20,
4672,
18699,
16186,
2738,
972,
12,
2890,
16,
508,
1546,
16728,
16353,
3113,
1353,
33,
1019,
16,
859,
33,
859,
16,
3182,
33,
8972,
13,
309,
859,
353,
599,
30,
365,
18,
542,
67,
3977,
3816,
90,
15,
21,
18,
364,
331,
316,
365,
18,
3977,
1435,
5717,
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
] |
0, 0, 0)
|
0, 0, 0)
|
def resize(self, newsize): self.check_valid() self.check_resizeable() if _POSIX: if not has_mremap: msg = "mmap: resizing not available -- no mremap()" raise REnvironmentError(msg) # resize the underlying file first try: os.ftruncate(self.fd, newsize) except OSError, e: raise REnvironmentError(os.strerror(e.errno)) # now resize the mmap newdata = c_mremap(self.getptr(0), self.size, newsize, MREMAP_MAYMOVE or 0) self.setdata(newdata, newsize) elif _MS_WINDOWS: # disconnect the mapping self.unmapview() CloseHandle(self.map_handle)
|
f53cdc52815837ae3e6f65a826fcb8f8fb920d3f /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/6934/f53cdc52815837ae3e6f65a826fcb8f8fb920d3f/rmmap.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
12,
2890,
16,
394,
1467,
4672,
365,
18,
1893,
67,
877,
1435,
225,
365,
18,
1893,
67,
15169,
429,
1435,
225,
309,
389,
2419,
31773,
30,
309,
486,
711,
67,
81,
266,
1458,
30,
1234,
273,
315,
81,
1458,
30,
400,
6894,
486,
2319,
1493,
1158,
312,
266,
1458,
10031,
1002,
534,
5494,
668,
12,
3576,
13,
225,
468,
7041,
326,
6808,
585,
1122,
775,
30,
1140,
18,
74,
27201,
12,
2890,
18,
8313,
16,
394,
1467,
13,
1335,
10002,
16,
425,
30,
1002,
534,
5494,
668,
12,
538,
18,
701,
1636,
12,
73,
18,
19088,
3719,
225,
468,
2037,
7041,
326,
30749,
394,
892,
273,
276,
67,
81,
266,
1458,
12,
2890,
18,
588,
6723,
12,
20,
3631,
365,
18,
1467,
16,
394,
1467,
16,
490,
862,
8352,
67,
49,
5255,
16537,
578,
374,
13,
365,
18,
542,
892,
12,
2704,
892,
16,
394,
1467,
13,
1327,
389,
3537,
67,
31874,
30,
468,
9479,
326,
2874,
365,
18,
318,
1458,
1945,
1435,
3527,
3259,
12,
2890,
18,
1458,
67,
4110,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
7041,
12,
2890,
16,
394,
1467,
4672,
365,
18,
1893,
67,
877,
1435,
225,
365,
18,
1893,
67,
15169,
429,
1435,
225,
309,
389,
2419,
31773,
30,
309,
486,
711,
67,
81,
266,
1458,
30,
1234,
273,
315,
81,
1458,
30,
400,
6894,
486,
2319,
1493,
1158,
312,
266,
1458,
10031,
1002,
534,
5494,
668,
12,
3576,
13,
225,
468,
7041,
326,
6808,
585,
1122,
775,
30,
1140,
18,
74,
27201,
12,
2890,
18,
8313,
16,
394,
1467,
13,
1335,
10002,
16,
425,
30,
1002,
534,
5494,
668,
12,
538,
18,
701,
1636,
12,
73,
18,
19088,
3719,
225,
468,
2037,
7041,
326,
30749,
394,
892,
273,
276,
67,
81,
266,
1458,
12,
2890,
18,
588,
6723,
12,
2
] |
self.assertEqual(mod.st[0][1:],
|
self.assertEqual(revise(*mod.st[0][1:]),
|
def test_stack(self): self.assert_(len(mod.st) >= 5) self.assertEqual(mod.st[0][1:], (modfile, 16, 'eggs', [' st = inspect.stack()\n'], 0)) self.assertEqual(mod.st[1][1:], (modfile, 9, 'spam', [' eggs(b + d, c + f)\n'], 0)) self.assertEqual(mod.st[2][1:], (modfile, 43, 'argue', [' spam(a, b, c)\n'], 0)) self.assertEqual(mod.st[3][1:], (modfile, 39, 'abuse', [' self.argue(a, b, c)\n'], 0))
|
a3538ebfe3120cf7478f91bd76674234b8cffda8 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/8546/a3538ebfe3120cf7478f91bd76674234b8cffda8/test_inspect.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
3772,
12,
2890,
4672,
365,
18,
11231,
67,
12,
1897,
12,
1711,
18,
334,
13,
1545,
1381,
13,
365,
18,
11231,
5812,
12,
9083,
784,
30857,
1711,
18,
334,
63,
20,
6362,
21,
26894,
3631,
261,
1711,
768,
16,
2872,
16,
296,
1332,
564,
2187,
10228,
565,
384,
273,
5334,
18,
3772,
1435,
64,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
21,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2468,
16,
296,
1752,
301,
2187,
10228,
565,
9130,
564,
12,
70,
397,
302,
16,
276,
397,
284,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
22,
6362,
21,
30,
6487,
261,
1711,
768,
16,
21193,
16,
296,
3175,
344,
2187,
10228,
5411,
24824,
12,
69,
16,
324,
16,
276,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
23,
6362,
21,
30,
6487,
261,
1711,
768,
16,
16977,
16,
296,
378,
1202,
2187,
10228,
3639,
365,
18,
3175,
344,
12,
69,
16,
324,
16,
276,
5153,
82,
17337,
374,
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,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,
16,
2872,
16,
296,
1332,
564,
2187,
10228,
565,
384,
273,
5334,
18,
3772,
1435,
64,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
21,
6362,
21,
30,
6487,
261,
1711,
768,
16,
2468,
16,
296,
1752,
301,
2187,
10228,
565,
9130,
564,
12,
70,
397,
302,
16,
276,
397,
284,
5153,
82,
17337,
374,
3719,
365,
18,
11231,
5812,
12,
1711,
18,
334,
63,
22,
6362,
21,
30,
6487,
261,
1711,
768,
2
] |
'hg qselect [OPTION...] [GUARD...]'),
|
'hg qselect [OPTION]... [GUARD]...'),
|
def _branchtags(self): q = self.mq if not q.applied: return super(mqrepo, self)._branchtags()
|
71e846bae6c4bf70906b0dae2f96fcc5a4bb8cb9 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/11312/71e846bae6c4bf70906b0dae2f96fcc5a4bb8cb9/mq.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
7500,
4156,
12,
2890,
4672,
1043,
273,
365,
18,
11636,
309,
486,
1043,
18,
438,
3110,
30,
327,
2240,
12,
11636,
7422,
16,
365,
2934,
67,
7500,
4156,
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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,
326,
981,
30,
1652,
389,
7500,
4156,
12,
2890,
4672,
1043,
273,
365,
18,
11636,
309,
486,
1043,
18,
438,
3110,
30,
327,
2240,
12,
11636,
7422,
16,
365,
2934,
67,
7500,
4156,
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
] |
"\nSummary of tests performed:\n" \ "-----------------------------\n"
|
"\n\n-------------------\n" \ "Summary of Results:\n" \ "-------------------\n"
|
def getSummaryEmailSectionStr(inOptions): summaryEmailSectionStr = \ "\nSummary of tests performed:\n" \ "-----------------------------\n" summaryEmailSectionStr += \ getTestCaseEmailSummary(inOptions.withMpiDebug, "MPI_DEBUG") summaryEmailSectionStr += \ getTestCaseEmailSummary(inOptions.withSerialRelease, "SERIAL_RELEASE") return summaryEmailSectionStr
|
7c078c06311143fac818db16e9886cd6a1f60c3d /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/1130/7c078c06311143fac818db16e9886cd6a1f60c3d/CheckinTest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1322,
27804,
4134,
5285,
1585,
12,
267,
1320,
4672,
4916,
4134,
5285,
1585,
273,
521,
1548,
82,
64,
82,
1271,
6062,
64,
82,
6,
521,
315,
4733,
434,
10351,
5581,
82,
6,
521,
315,
1271,
6062,
64,
82,
6,
4916,
4134,
5285,
1585,
1011,
521,
29384,
2449,
4134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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,
1322,
27804,
4134,
5285,
1585,
12,
267,
1320,
4672,
4916,
4134,
5285,
1585,
273,
521,
1548,
82,
64,
82,
1271,
6062,
64,
82,
6,
521,
315,
4733,
434,
10351,
5581,
82,
6,
521,
315,
1271,
6062,
64,
82,
6,
4916,
4134,
5285,
1585,
1011,
521,
29384,
2449,
4134,
4733,
12,
267,
1320,
18,
1918,
49,
7259,
2829,
16,
315,
49,
1102,
67,
9394,
7923,
4916,
4134,
5285,
1585,
1011,
521,
29384,
2449,
4134,
4733,
12,
267,
1320,
18,
1918,
6342,
7391,
16,
315,
2123,
6365,
67,
30762,
7923,
327,
4916,
4134,
5285,
1585,
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
] |
self._data_channel.wait()
|
while True: notification = self._data_channel.wait() if notification.name == 'SIPRegistrationDidEnd': break
|
def _CH_unregister(self, command): notification_center = NotificationCenter() # Cancel any timer which would restart the registration process if self._refresh_timer is not None and self._refresh_timer.active(): self._refresh_timer.cancel() self._refresh_timer = None if self._registration is not None: self._registration.end(timeout=2) try: self._data_channel.wait() except SIPRegistrationDidNotEnd, e: notification_center.post_notification('SIPAccountRegistrationDidNotEnd', sender=self.account, data=TimestampedNotificationData(code=e.code, reason=e.reason, registration=self._registration)) else: notification_center.post_notification('SIPAccountRegistrationDidEnd', sender=self.account, data=TimestampedNotificationData(registration=self._registration)) finally: notification_center.remove_observer(self, sender=self._registration) self._registration = None command.signal()
|
acf3defabaf48767a177cbf61b78e3f5f810ebf3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5703/acf3defabaf48767a177cbf61b78e3f5f810ebf3/account.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
1792,
67,
318,
4861,
12,
2890,
16,
1296,
4672,
3851,
67,
5693,
273,
8050,
8449,
1435,
468,
10347,
1281,
5441,
1492,
4102,
7870,
326,
7914,
1207,
309,
365,
6315,
9144,
67,
12542,
353,
486,
599,
471,
365,
6315,
9144,
67,
12542,
18,
3535,
13332,
365,
6315,
9144,
67,
12542,
18,
10996,
1435,
365,
6315,
9144,
67,
12542,
273,
599,
309,
365,
6315,
14170,
353,
486,
599,
30,
365,
6315,
14170,
18,
409,
12,
4538,
33,
22,
13,
775,
30,
1323,
1053,
30,
3851,
273,
365,
6315,
892,
67,
4327,
18,
7048,
1435,
309,
3851,
18,
529,
422,
296,
17739,
7843,
18250,
1638,
4278,
898,
1335,
348,
2579,
7843,
18250,
1248,
1638,
16,
425,
30,
3851,
67,
5693,
18,
2767,
67,
9927,
2668,
17739,
3032,
7843,
18250,
1248,
1638,
2187,
5793,
33,
2890,
18,
4631,
16,
501,
33,
4921,
329,
4386,
751,
12,
710,
33,
73,
18,
710,
16,
3971,
33,
73,
18,
10579,
16,
7914,
33,
2890,
6315,
14170,
3719,
469,
30,
3851,
67,
5693,
18,
2767,
67,
9927,
2668,
17739,
3032,
7843,
18250,
1638,
2187,
5793,
33,
2890,
18,
4631,
16,
501,
33,
4921,
329,
4386,
751,
12,
14170,
33,
2890,
6315,
14170,
3719,
3095,
30,
3851,
67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,
10347,
1281,
5441,
1492,
4102,
7870,
326,
7914,
1207,
309,
365,
6315,
9144,
67,
12542,
353,
486,
599,
471,
365,
6315,
9144,
67,
12542,
18,
3535,
13332,
365,
6315,
9144,
67,
12542,
18,
10996,
1435,
365,
6315,
9144,
67,
12542,
273,
599,
309,
365,
6315,
14170,
353,
486,
599,
30,
365,
6315,
14170,
18,
409,
12,
4538,
33,
22,
13,
775,
30,
1323,
1053,
30,
3851,
273,
365,
6315,
892,
67,
4327,
18,
7048,
1435,
309,
3851,
18,
529,
422,
296,
17739,
7843,
18250,
1638,
4278,
898,
1335,
348,
2579,
7843,
18250,
1248,
1638,
16,
425,
30,
3851,
67,
5693,
2
] |
anm1s[i] += sum([m*Z_Fbasis[i]*adj[i].__int__()//adj[self.d].__int__() for i in range(self.d)])
|
anm1s[i] += sum([m*Z_Fbasis[ii]*int(adj[ii])//int(adj[self.d]) for ii in range(self.d)])
|
def __init__(self, F, m, B, a=None): r""" Initialization routine (constructor).
|
ee3306b6e27b9defe901572ea884830c55a913c3 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/9890/ee3306b6e27b9defe901572ea884830c55a913c3/totallyreal_rel.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
478,
16,
312,
16,
605,
16,
279,
33,
7036,
4672,
436,
8395,
26586,
12245,
261,
12316,
2934,
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,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
478,
16,
312,
16,
605,
16,
279,
33,
7036,
4672,
436,
8395,
26586,
12245,
261,
12316,
2934,
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
] |
self.view_main_window.connect('activate', self.minimize, self.plugin_api)
|
self.view_main_window_signal = self.view_main_window.connect(\ 'activate', \ self.minimize, \ self.plugin_api)
|
def create_static_menu(self): self.menu = gtk.Menu() self.view_main_window = gtk.CheckMenuItem(_("_View Main Window")) self.view_main_window.set_active(True) self.view_main_window.connect('activate', self.minimize, self.plugin_api) self.menu.append(self.view_main_window) # menuItem = gtk.ImageMenuItem(gtk.STOCK_ABOUT) # menuItem.connect('activate', self.about, self.plugin_api) # self.menu.append(menuItem) # self.menu.append(gtk.SeparatorMenuItem()) menuItem = gtk.ImageMenuItem(gtk.STOCK_QUIT) menuItem.connect('activate', self.exit, self.statusicon) self.menu.append(menuItem) self.menu.append(gtk.SeparatorMenuItem()) menuItem = gtk.ImageMenuItem(gtk.STOCK_ADD) menuItem.get_children()[0].set_label(_('Add _New Task')) menuItem.connect('activate', self.open_task) self.menu.append(menuItem)
|
464c5358289f97f6d870b3a41713c6ac3d79d7d4 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8234/464c5358289f97f6d870b3a41713c6ac3d79d7d4/notification_area.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
752,
67,
3845,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
273,
22718,
18,
4599,
1435,
365,
18,
1945,
67,
5254,
67,
5668,
273,
22718,
18,
1564,
12958,
24899,
2932,
67,
1767,
12740,
6076,
6,
3719,
365,
18,
1945,
67,
5254,
67,
5668,
18,
542,
67,
3535,
12,
5510,
13,
365,
18,
1945,
67,
5254,
67,
5668,
67,
10420,
273,
365,
18,
1945,
67,
5254,
67,
5668,
18,
3612,
4713,
296,
10014,
2187,
521,
365,
18,
1154,
10153,
16,
521,
365,
18,
4094,
67,
2425,
13,
365,
18,
5414,
18,
6923,
12,
2890,
18,
1945,
67,
5254,
67,
5668,
13,
468,
19711,
273,
22718,
18,
2040,
12958,
12,
4521,
79,
18,
31487,
3507,
67,
2090,
5069,
13,
468,
19711,
18,
3612,
2668,
10014,
2187,
365,
18,
21071,
16,
365,
18,
4094,
67,
2425,
13,
468,
365,
18,
5414,
18,
6923,
12,
5414,
1180,
13,
468,
365,
18,
5414,
18,
6923,
12,
4521,
79,
18,
6581,
12958,
10756,
19711,
273,
22718,
18,
2040,
12958,
12,
4521,
79,
18,
31487,
3507,
67,
3500,
1285,
13,
19711,
18,
3612,
2668,
10014,
2187,
365,
18,
8593,
16,
365,
18,
2327,
3950,
13,
365,
18,
5414,
18,
6923,
12,
5414,
1180,
13,
365,
18,
5414,
18,
6923,
12,
4521,
79,
18,
6581,
12958,
10756,
19711,
273,
22718,
18,
2040,
12958,
12,
4521,
79,
18,
31487,
3507,
67,
8355,
13,
19711,
18,
588,
67,
5906,
1435,
63,
20,
8009,
542,
67,
1925,
24899,
2668,
986,
389,
1908,
3837,
26112,
19711,
18,
3612,
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,
3845,
67,
5414,
12,
2890,
4672,
365,
18,
5414,
273,
22718,
18,
4599,
1435,
365,
18,
1945,
67,
5254,
67,
5668,
273,
22718,
18,
1564,
12958,
24899,
2932,
67,
1767,
12740,
6076,
6,
3719,
365,
18,
1945,
67,
5254,
67,
5668,
18,
542,
67,
3535,
12,
5510,
13,
365,
18,
1945,
67,
5254,
67,
5668,
67,
10420,
273,
365,
18,
1945,
67,
5254,
67,
5668,
18,
3612,
4713,
296,
10014,
2187,
521,
365,
18,
1154,
10153,
16,
521,
365,
18,
4094,
67,
2425,
13,
365,
18,
5414,
18,
6923,
12,
2890,
18,
1945,
67,
5254,
67,
5668,
13,
468,
19711,
273,
22718,
18,
2040,
12958,
12,
4521,
79,
18,
31487,
3507,
67,
2090,
5069,
13,
468,
2
] |
if join_keys != None and join_dict != None: for elem in join_keys: k = elem v = join_dict[k] if (self.already_joined.count(k) < 1): self.j = self.j.join(k,onclause=v) self.already_joined.append(k)
|
if join_dict != None: for elem in join_dict: for k,v in elem.iteritems(): if (self.already_joined.count(k) < 1): if hasattr(cls_ref,'column_conditional_join'): columns = cls_ref.column_conditional_join if columns.count(column.lower()) < 1: continue self.j = self.j.outerjoin(k,onclause=v) self.already_joined.append(k)
|
def append_results(self,cls_ref,value,column,operation): """ append_results() will take a value, column and operation from the search field, as well as the class of which the search pertains to, and will append the join and the filter needed to return the correct results.
|
8e587daf7228badc8abea580ab7d8e8cb9c6f51e /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/14755/8e587daf7228badc8abea580ab7d8e8cb9c6f51e/model.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
4717,
12,
2890,
16,
6429,
67,
1734,
16,
1132,
16,
2827,
16,
7624,
4672,
3536,
714,
67,
4717,
1435,
903,
4862,
279,
460,
16,
1057,
471,
1674,
628,
326,
1623,
652,
16,
487,
5492,
487,
326,
667,
434,
1492,
326,
1623,
24445,
4167,
358,
16,
471,
903,
714,
326,
1233,
471,
326,
1034,
3577,
358,
327,
326,
3434,
1686,
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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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
714,
67,
4717,
12,
2890,
16,
6429,
67,
1734,
16,
1132,
16,
2827,
16,
7624,
4672,
3536,
714,
67,
4717,
1435,
903,
4862,
279,
460,
16,
1057,
471,
1674,
628,
326,
1623,
652,
16,
487,
5492,
487,
326,
667,
434,
1492,
326,
1623,
24445,
4167,
358,
16,
471,
903,
714,
326,
1233,
471,
326,
1034,
3577,
358,
327,
326,
3434,
1686,
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
] |
mimetype = r.headers.getheader("content-type")
|
if force_mimetype : mimetype = force_mimetype else : mimetype = r.headers.getheader("content-type")
|
def get_media_external (request, path, use_cache=True, ) : req = urllib2.Request(path) if request.META.get("HTTP_REFERER", None) : req.add_header("Referer", request.META.get("HTTP_REFERER")) if request.META.get("HTTP_IF_MODIFIED_SINCE", None) : req.add_header( "If-Modified-Since", request.META.get("HTTP_IF_MODIFIED_SINCE") ) if request.META.get("HTTP_IF_NONE_MATCH", None) : req.add_header( "If-None-Match", request.META.get("HTTP_IF_NONE_MATCH") ) try : r = urllib2.urlopen(req) except urllib2.HTTPError, e : (contents, mimetype, status_code, last_modified, ) = ( "", None, e.code, e.headers.getheader("last-modified"), ) else : mimetype = r.headers.getheader("content-type") # save in tmp try : path = "%s/%s%s" % ( DMS_TMP_DIR, md5.new(str(random.random())).hexdigest(), mimetypes.guess_extension(mimetype), ) tmp = file(path, "w") tmp.write(r.read()) tmp.close() except : return (r.read(), mimetype, status_code, last_modified, ) last_modified = r.headers.getheader("last-modified") status_code = 200 contents = get_mime_handler(mimetype)(request, file(path, "rb"), path=path) os.remove(path) return (contents, mimetype, status_code, last_modified, )
|
118e8e2c4fddd63f6cf6650853c68cb0b173aa7b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/4349/118e8e2c4fddd63f6cf6650853c68cb0b173aa7b/__init__.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
336,
67,
5829,
67,
9375,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
16,
262,
294,
1111,
273,
11527,
22,
18,
691,
12,
803,
13,
309,
590,
18,
19294,
18,
588,
2932,
3693,
67,
30269,
654,
3113,
599,
13,
294,
1111,
18,
1289,
67,
3374,
2932,
426,
18459,
3113,
590,
18,
19294,
18,
588,
2932,
3693,
67,
30269,
654,
6,
3719,
225,
309,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
21143,
67,
55,
706,
1441,
3113,
599,
13,
294,
1111,
18,
1289,
67,
3374,
12,
315,
2047,
17,
4575,
17,
9673,
3113,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
21143,
67,
55,
706,
1441,
7923,
262,
225,
309,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
9826,
67,
11793,
3113,
599,
13,
294,
1111,
18,
1289,
67,
3374,
12,
315,
2047,
17,
7036,
17,
2060,
3113,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
9826,
67,
11793,
7923,
262,
225,
775,
294,
436,
273,
11527,
22,
18,
295,
18589,
12,
3658,
13,
1335,
11527,
22,
18,
3693,
668,
16,
425,
294,
261,
3980,
16,
12595,
16,
1267,
67,
710,
16,
1142,
67,
7342,
16,
262,
273,
261,
23453,
599,
16,
425,
18,
710,
16,
425,
18,
2485,
18,
75,
546,
18105,
2932,
2722,
17,
7342,
6,
3631,
262,
469,
294,
309,
2944,
67,
22571,
294,
12595,
273,
2944,
67,
22571,
469,
294,
12595,
273,
436,
18,
2485,
18,
75,
546,
18105,
2932,
1745,
17,
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,
5829,
67,
9375,
261,
2293,
16,
589,
16,
999,
67,
2493,
33,
5510,
16,
262,
294,
1111,
273,
11527,
22,
18,
691,
12,
803,
13,
309,
590,
18,
19294,
18,
588,
2932,
3693,
67,
30269,
654,
3113,
599,
13,
294,
1111,
18,
1289,
67,
3374,
2932,
426,
18459,
3113,
590,
18,
19294,
18,
588,
2932,
3693,
67,
30269,
654,
6,
3719,
225,
309,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
21143,
67,
55,
706,
1441,
3113,
599,
13,
294,
1111,
18,
1289,
67,
3374,
12,
315,
2047,
17,
4575,
17,
9673,
3113,
590,
18,
19294,
18,
588,
2932,
3693,
67,
5501,
67,
21143,
67,
55,
706,
1441,
7923,
262,
225,
309,
590,
18,
2
] |
logging.debug("Using preferred CE " + ceMap[long(prefSite)])
|
logging.info("Using preferred CE " + ceMap[long(prefSite)])
|
def preferredSite(self): """ Generate command line option for ngsub for submitting to a preferred site, if such exist.
|
4ef3db3cbc3340b7e68535ecf0f0d1611752f3a1 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/8887/4ef3db3cbc3340b7e68535ecf0f0d1611752f3a1/ARCSubmitter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
9119,
4956,
12,
2890,
4672,
3536,
6654,
1296,
980,
1456,
364,
290,
564,
373,
364,
4879,
1787,
358,
279,
9119,
2834,
16,
309,
4123,
1005,
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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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,
9119,
4956,
12,
2890,
4672,
3536,
6654,
1296,
980,
1456,
364,
290,
564,
373,
364,
4879,
1787,
358,
279,
9119,
2834,
16,
309,
4123,
1005,
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
] |
def update_contact(self, *args, **kargs): new_data = kargs['contact'] if hasattr(new_data, 'tel'): logger.info("updating contact") if 'name_field' in kargs.keys(): new_data.name = args[0].part_text_get(kargs['name_field']) if 'num_field' in kargs.keys(): new_data.tel = args[0].part_text_get(kargs['num_field']) args[0].signal_emit('back','back-button') else: logger.info("creating new contact contact") contacts_service = tichy.Service.get('Contacts') try: new_contact = contacts_service.create(str(new_data.name),tel=str(new_data.number)) contacts_service.add(new_contact) new_data = empty_contact() except Exception,e: logger.error("Got error in save_number : %s", e) else: args[0].signal_emit('success','back-button') args[0].signal_emit('back','back-button')
|
def save_contact(self, emission, signal, source, contact): pass
|
25918bc2efce0ef02bb9eb9b253fbd65dc59d594 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/4712/25918bc2efce0ef02bb9eb9b253fbd65dc59d594/people.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
8994,
12,
2890,
16,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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1923,
67,
8994,
12,
2890,
16,
801,
19710,
16,
4277,
16,
1084,
16,
5388,
4672,
1342,
225,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
|
_raise_invalid_type(type_, code)
|
if modname == classname: code = module_or_class else: _raise_invalid_type(type_, code)
|
def import_(name, type_='test library'): """Imports Python class/module or Java class with given name. 'name' can also be a path to the library and in that case the directory containing the lib is automatically put into sys.path and removed there afterwards. 'type_' is used in error message if importing fails. Class can either live in a module/package or be 'standalone'. In the former case tha name is something like 'MyClass' and in the latter it could be 'your.package.YourLibrary'). Python classes always live in a module but if the module name is exactly same as the class name the former also works in Python. Example: If you have a Python class 'MyLibrary' in a module 'mymodule' it must be imported with name 'mymodule.MyLibrary'. If the name of the module is also 'MyLibrary' then it is possible to use only name 'MyLibrary'. """ if os.path.exists(name): moddir, name = _split_path_to_module(name) sys.path.insert(0, moddir) pop_sys_path = True else: pop_sys_path = False if '.' in name: parts = name.split('.') modname = '.'.join(parts[:-1]) classname = parts[-1] fromlist = [str(classname)] # Unicode not generally accepted else: modname = name classname = name fromlist = [] try: try: # It seems that we get class when importing java class from file system # or from a default package of a jar file. Otherwise we get a module. module_or_class = __import__(modname, {}, {}, fromlist) except: _raise_import_failed(type_, name) finally: if pop_sys_path: sys.path.pop(0) try: code = getattr(module_or_class, classname) except AttributeError: if fromlist: _raise_no_lib_in_module(type_, modname, fromlist[0]) code = module_or_class if not isinstance(code, (ModuleType, ClassType, TypeType)): _raise_invalid_type(type_, code) try: source = module_or_class.__file__ if not source: raise AttributeError dirpath, filename = os.path.split(os.path.abspath(source)) source = os.path.join(normpath(dirpath), filename) except AttributeError: # Java classes not packaged in a jar file do not have __file__. source = '<unknown>' return code, source
|
ea4a48db078f6136536b318913449ed230f7feb7 /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/6988/ea4a48db078f6136536b318913449ed230f7feb7/importing.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1930,
67,
12,
529,
16,
618,
67,
2218,
3813,
5313,
11,
4672,
3536,
13347,
6600,
667,
19,
2978,
578,
5110,
667,
598,
864,
508,
18,
225,
296,
529,
11,
848,
2546,
506,
279,
589,
358,
326,
5313,
471,
316,
716,
648,
326,
1867,
4191,
326,
2561,
353,
6635,
1378,
1368,
2589,
18,
803,
471,
3723,
1915,
23838,
18,
225,
296,
723,
4623,
353,
1399,
316,
555,
883,
309,
25077,
6684,
18,
225,
1659,
848,
3344,
8429,
316,
279,
1605,
19,
5610,
578,
506,
296,
10145,
12451,
10332,
657,
326,
27313,
648,
286,
69,
508,
353,
5943,
3007,
296,
12062,
797,
11,
471,
316,
326,
23740,
518,
3377,
506,
296,
93,
477,
18,
5610,
18,
15446,
9313,
16063,
6600,
3318,
3712,
8429,
316,
279,
1605,
1496,
309,
326,
1605,
508,
353,
8950,
1967,
487,
326,
667,
508,
326,
27313,
2546,
6330,
316,
6600,
18,
225,
5090,
30,
971,
1846,
1240,
279,
6600,
667,
296,
12062,
9313,
11,
316,
279,
1605,
296,
4811,
2978,
11,
518,
1297,
506,
9101,
598,
508,
296,
4811,
2978,
18,
12062,
9313,
10332,
971,
326,
508,
434,
326,
1605,
353,
2546,
296,
12062,
9313,
11,
1508,
518,
353,
3323,
358,
999,
1338,
508,
296,
12062,
9313,
10332,
3536,
309,
1140,
18,
803,
18,
1808,
12,
529,
4672,
681,
1214,
16,
508,
273,
389,
4939,
67,
803,
67,
869,
67,
2978,
12,
529,
13,
2589,
18,
803,
18,
6387,
12,
20,
16,
681,
1214,
13,
1843,
67,
9499,
67,
803,
273,
1053,
469,
30,
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,
1930,
67,
12,
529,
16,
618,
67,
2218,
3813,
5313,
11,
4672,
3536,
13347,
6600,
667,
19,
2978,
578,
5110,
667,
598,
864,
508,
18,
225,
296,
529,
11,
848,
2546,
506,
279,
589,
358,
326,
5313,
471,
316,
716,
648,
326,
1867,
4191,
326,
2561,
353,
6635,
1378,
1368,
2589,
18,
803,
471,
3723,
1915,
23838,
18,
225,
296,
723,
4623,
353,
1399,
316,
555,
883,
309,
25077,
6684,
18,
225,
1659,
848,
3344,
8429,
316,
279,
1605,
19,
5610,
578,
506,
296,
10145,
12451,
10332,
657,
326,
27313,
648,
286,
69,
508,
353,
5943,
3007,
296,
12062,
797,
11,
471,
316,
326,
23740,
518,
3377,
506,
296,
93,
477,
18,
5610,
18,
15446,
9313,
16063,
6600,
2
] |
if not os.path.exists(destination): if destination.endswith(os.sep): parent = destination
|
if not os.path.exists(dest): if dest_is_dir: parent = dest
|
def _copy_file(self, source, destination): if not os.path.exists(source): raise DataError("Source file '%s' does not exist" % source) if not os.path.isfile(source): raise DataError("Source file '%s' is not a regular file" % source) if not os.path.exists(destination): if destination.endswith(os.sep): parent = destination else: parent = os.path.dirname(os.path.normpath(destination)) if not os.path.exists(parent): os.makedirs(parent) shutil.copy(source, destination)
|
8394d54a14ff248630063a73df253438178dff53 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/7408/8394d54a14ff248630063a73df253438178dff53/OperatingSystem.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
768,
12,
2890,
16,
1084,
16,
2929,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
585,
1995,
87,
11,
1552,
486,
1005,
6,
738,
1084,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
585,
1995,
87,
11,
353,
486,
279,
6736,
585,
6,
738,
1084,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
10488,
4672,
309,
1570,
67,
291,
67,
1214,
30,
982,
273,
1570,
469,
30,
982,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7959,
803,
12,
10590,
3719,
309,
486,
1140,
18,
803,
18,
1808,
12,
2938,
4672,
1140,
18,
81,
9477,
10539,
12,
2938,
13,
11060,
18,
3530,
12,
3168,
16,
2929,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3530,
67,
768,
12,
2890,
16,
1084,
16,
2929,
4672,
309,
486,
1140,
18,
803,
18,
1808,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
585,
1995,
87,
11,
1552,
486,
1005,
6,
738,
1084,
13,
309,
486,
1140,
18,
803,
18,
291,
768,
12,
3168,
4672,
1002,
1910,
668,
2932,
1830,
585,
1995,
87,
11,
353,
486,
279,
6736,
585,
6,
738,
1084,
13,
309,
486,
1140,
18,
803,
18,
1808,
12,
10488,
4672,
309,
1570,
67,
291,
67,
1214,
30,
982,
273,
1570,
469,
30,
982,
273,
1140,
18,
803,
18,
12287,
12,
538,
18,
803,
18,
7959,
803,
12,
10590,
3719,
309,
486,
1140,
18,
803,
18,
1808,
12,
2938,
4672,
1140,
18,
81,
2
] |
def setCookie(request, u):
|
def setCookie(request, u, cookie_name='MOIN_ID', cookie_string=None):
|
def setCookie(request, u): """ Set cookie for the user obj u cfg.cookie_lifetime and the user 'remember_me' setting set the lifetime of the cookie. lifetime in int hours, see table: value cookie lifetime ---------------------------------------------------------------- = 0 forever, ignoring user 'remember_me' setting > 0 n hours, or forever if user checked 'remember_me' < 0 -n hours, ignoring user 'remember_me' setting """ # Calculate cookie maxage and expires lifetime = int(request.cfg.cookie_lifetime) * 3600 forever = 10*365*24*3600 # 10 years now = time.time() if not lifetime: maxage = forever elif lifetime > 0: if u.remember_me: maxage = forever else: maxage = lifetime elif lifetime < 0: maxage = (-lifetime) expires = now + maxage cookie = makeCookie(request, u.id, maxage, expires) # Set cookie request.setHttpHeader(cookie) # IMPORTANT: Prevent caching of current page and cookie request.disableHttpCaching()
|
52d72a54d36dd3229ef30015f18438b64a2efc64 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/888/52d72a54d36dd3229ef30015f18438b64a2efc64/auth.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26793,
12,
2293,
16,
582,
16,
3878,
67,
529,
2218,
5980,
706,
67,
734,
2187,
3878,
67,
1080,
33,
7036,
4672,
3536,
1000,
3878,
364,
326,
729,
1081,
582,
225,
2776,
18,
8417,
67,
17155,
471,
326,
729,
296,
28155,
67,
3501,
11,
3637,
444,
326,
12486,
434,
326,
3878,
18,
12486,
316,
509,
7507,
16,
2621,
1014,
30,
225,
460,
282,
3878,
12486,
13420,
18753,
273,
374,
565,
21238,
16,
14398,
729,
296,
28155,
67,
3501,
11,
3637,
405,
374,
565,
290,
7507,
16,
578,
21238,
309,
729,
5950,
296,
28155,
67,
3501,
11,
411,
374,
565,
300,
82,
7507,
16,
14398,
729,
296,
28155,
67,
3501,
11,
3637,
3536,
468,
9029,
3878,
943,
410,
471,
7368,
12486,
273,
509,
12,
2293,
18,
7066,
18,
8417,
67,
17155,
13,
380,
12396,
21238,
273,
1728,
14,
5718,
25,
14,
3247,
14,
5718,
713,
468,
1728,
11387,
2037,
273,
813,
18,
957,
1435,
309,
486,
12486,
30,
943,
410,
273,
21238,
1327,
12486,
405,
374,
30,
309,
582,
18,
28155,
67,
3501,
30,
943,
410,
273,
21238,
469,
30,
943,
410,
273,
12486,
1327,
12486,
411,
374,
30,
943,
410,
273,
24927,
17155,
13,
7368,
273,
2037,
397,
943,
410,
225,
3878,
273,
1221,
6151,
12,
2293,
16,
582,
18,
350,
16,
943,
410,
16,
7368,
13,
468,
1000,
3878,
590,
18,
542,
2940,
1864,
12,
8417,
13,
468,
21840,
6856,
30,
19412,
11393,
434,
783,
1363,
471,
3878,
590,
18,
8394,
2940,
17712,
1435,
225,
2,
0
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
26793,
12,
2293,
16,
582,
16,
3878,
67,
529,
2218,
5980,
706,
67,
734,
2187,
3878,
67,
1080,
33,
7036,
4672,
3536,
1000,
3878,
364,
326,
729,
1081,
582,
225,
2776,
18,
8417,
67,
17155,
471,
326,
729,
296,
28155,
67,
3501,
11,
3637,
444,
326,
12486,
434,
326,
3878,
18,
12486,
316,
509,
7507,
16,
2621,
1014,
30,
225,
460,
282,
3878,
12486,
13420,
18753,
273,
374,
565,
21238,
16,
14398,
729,
296,
28155,
67,
3501,
11,
3637,
405,
374,
565,
290,
7507,
16,
578,
21238,
309,
729,
5950,
296,
28155,
67,
3501,
11,
411,
374,
565,
300,
82,
7507,
16,
14398,
729,
296,
28155,
67,
3501,
11,
3637,
3536,
468,
9029,
3878,
943,
410,
471,
7368,
2
] |
gid_psutil = psutil.Process(self.pid).uid
|
gid_psutil = psutil.Process(self.pid).gid
|
def test_process_gid(self): gid_ps = ps("ps --no-headers -o rgid -p %s" %self.pid) gid_psutil = psutil.Process(self.pid).uid self.assertEqual(gid_ps, gid_psutil)
|
dc94cf78d771e4eb6561060d656fd50babd50c2b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/7296/dc94cf78d771e4eb6561060d656fd50babd50c2b/_posix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2567,
67,
15780,
12,
2890,
4672,
11399,
67,
1121,
273,
4250,
2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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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
2567,
67,
15780,
12,
2890,
4672,
11399,
67,
1121,
273,
4250,
2932,
1121,
1493,
2135,
17,
2485,
300,
83,
14524,
350,
300,
84,
738,
87,
6,
738,
2890,
18,
6610,
13,
11399,
67,
1121,
1367,
273,
27024,
18,
2227,
12,
2890,
18,
6610,
2934,
15780,
365,
18,
11231,
5812,
12,
15780,
67,
1121,
16,
11399,
67,
1121,
1367,
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
] |
path = path + tail
|
path += tail
|
def expandvars(path): """Expand shell variables of form $var and ${var}. Unknown variables are left unchanged.""" global _varprog if '$' not in path: return path if not _varprog: import re _varprog = re.compile(r'\$(\w+|\{[^}]*\})') i = 0 while True: m = _varprog.search(path, i) if not m: break i, j = m.span(0) name = m.group(1) if name[:1] == '{' and name[-1:] == '}': name = name[1:-1] if name in os.environ: tail = path[j:] path = path[:i] + os.environ[name] i = len(path) path = path + tail else: i = j return path
|
3ee13a55a709833ffc7258daf6b67bc26a7e3a01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3187/3ee13a55a709833ffc7258daf6b67bc26a7e3a01/posixpath.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
4699,
12,
803,
4672,
3536,
12271,
5972,
3152,
434,
646,
271,
1401,
471,
3531,
1401,
5496,
225,
9077,
3152,
854,
2002,
14827,
12123,
2552,
389,
1401,
14654,
309,
11874,
486,
316,
589,
30,
327,
589,
309,
486,
389,
1401,
14654,
30,
1930,
283,
389,
1401,
14654,
273,
283,
18,
11100,
12,
86,
8314,
8,
4713,
91,
15,
8960,
95,
5969,
97,
27759,
17644,
13,
277,
273,
374,
1323,
1053,
30,
312,
273,
389,
1401,
14654,
18,
3072,
12,
803,
16,
277,
13,
309,
486,
312,
30,
898,
277,
16,
525,
273,
312,
18,
3969,
12,
20,
13,
508,
273,
312,
18,
1655,
12,
21,
13,
309,
508,
10531,
21,
65,
422,
9790,
471,
508,
18919,
21,
26894,
422,
9571,
30,
508,
273,
508,
63,
21,
30,
17,
21,
65,
309,
508,
316,
1140,
18,
28684,
30,
5798,
273,
589,
63,
78,
26894,
589,
273,
589,
10531,
77,
65,
397,
1140,
18,
28684,
63,
529,
65,
277,
273,
562,
12,
803,
13,
589,
1011,
5798,
469,
30,
277,
273,
525,
327,
589,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4542,
4699,
12,
803,
4672,
3536,
12271,
5972,
3152,
434,
646,
271,
1401,
471,
3531,
1401,
5496,
225,
9077,
3152,
854,
2002,
14827,
12123,
2552,
389,
1401,
14654,
309,
11874,
486,
316,
589,
30,
327,
589,
309,
486,
389,
1401,
14654,
30,
1930,
283,
389,
1401,
14654,
273,
283,
18,
11100,
12,
86,
8314,
8,
4713,
91,
15,
8960,
95,
5969,
97,
27759,
17644,
13,
277,
273,
374,
1323,
1053,
30,
312,
273,
389,
1401,
14654,
18,
3072,
12,
803,
16,
277,
13,
309,
486,
312,
30,
898,
277,
16,
525,
273,
312,
18,
3969,
12,
20,
13,
508,
273,
312,
18,
1655,
12,
21,
13,
309,
508,
10531,
21,
65,
422,
9790,
471,
508,
18919,
21,
26894,
2
] |
muleh rsi, flags=(OF,CF)
|
muleh ah, flags=(OF,CF)
|
def macroop MUL_B_P
|
8842581024d216a07539150bf665ece64520e35c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/7385/8842581024d216a07539150bf665ece64520e35c/multiply_and_divide.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
11522,
556,
490,
1506,
67,
38,
67,
52,
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,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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,
-100,
-100,
-100
] |
elif o in ('--scons'):
|
elif o in ('--scons',):
|
def do_run(self, argv): """ """ run_number_list = [None]
|
67b8280e3e3a5fcdde21a536adf595f1d889e4da /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12817/67b8280e3e3a5fcdde21a536adf595f1d889e4da/scons-time.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2681,
12,
2890,
16,
5261,
4672,
3536,
3536,
1086,
67,
2696,
67,
1098,
273,
306,
7036,
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,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
2681,
12,
2890,
16,
5261,
4672,
3536,
3536,
1086,
67,
2696,
67,
1098,
273,
306,
7036,
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,
-100,
-100,
-100,
-100
] |
print >> sys.stdout, get_keywords_from_text(text_lines, output_mode=_OPTIONS["output_mode"], output_limit=_OPTIONS["output_limit"], spires=_OPTIONS["spires"], match_mode=_OPTIONS["match_mode"], with_explicit=_OPTIONS["with_explicit"])
|
print >> sys.stdout, get_keywords_from_text(text_lines, output_mode=_OPTIONS["output_mode"], output_limit=_OPTIONS["output_limit"], spires=_OPTIONS["spires"], match_mode=_OPTIONS["match_mode"], with_explicit=_OPTIONS["with_explicit"])
|
def main(): """Main function """ read_options(sys.argv[1:]) # Ontology check if _OPTIONS["check_ontology"]: print >> sys.stdout, ("Checking ontology file %s" % _OPTIONS["ontology_file"]) # End of ontology check. # Initialize cache get_regular_expressions(_OPTIONS["ontology_file"], _OPTIONS["rebuild_cache"], _OPTIONS["no_cache"]) for entry in _OPTIONS["text_files"]: text_lines = None source = "" if os.path.isdir(entry): for filename in os.listdir(entry): if (os.path.isfile(entry + filename) and is_pdf(entry + filename)): source = filename text_lines = text_lines_from_local_file(entry + filename) elif os.path.isfile(entry): text_lines = text_lines_from_local_file(entry) source = os.path.basename(entry) else: # Treat as a URL. text_lines = text_lines_from_url(entry) source = entry.split("/")[-1] if text_lines is not None: print >> sys.stdout, source print >> sys.stdout, get_keywords_from_text(text_lines, output_mode=_OPTIONS["output_mode"], output_limit=_OPTIONS["output_limit"], spires=_OPTIONS["spires"], match_mode=_OPTIONS["match_mode"], with_explicit=_OPTIONS["with_explicit"])
|
b7a42590308deb38aca52c76bec6ae7be3ae88f5 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2594/b7a42590308deb38aca52c76bec6ae7be3ae88f5/bibclassify_cli.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
13332,
3536,
6376,
445,
3536,
855,
67,
2116,
12,
9499,
18,
19485,
63,
21,
30,
5717,
225,
468,
29683,
866,
309,
389,
12422,
9614,
1893,
67,
1580,
4676,
11929,
30,
1172,
1671,
2589,
18,
10283,
16,
7566,
14294,
21598,
585,
738,
87,
6,
738,
389,
12422,
9614,
1580,
4676,
67,
768,
6,
5717,
468,
4403,
434,
21598,
866,
18,
225,
468,
9190,
1247,
336,
67,
16819,
67,
21480,
24899,
12422,
9614,
1580,
4676,
67,
768,
6,
6487,
389,
12422,
9614,
266,
3510,
67,
2493,
6,
6487,
389,
12422,
9614,
2135,
67,
2493,
6,
5717,
225,
364,
1241,
316,
389,
12422,
9614,
955,
67,
2354,
11929,
30,
977,
67,
3548,
273,
599,
1084,
273,
1408,
309,
1140,
18,
803,
18,
291,
1214,
12,
4099,
4672,
364,
1544,
316,
1140,
18,
1098,
1214,
12,
4099,
4672,
309,
261,
538,
18,
803,
18,
291,
768,
12,
4099,
397,
1544,
13,
471,
353,
67,
7699,
12,
4099,
397,
1544,
3719,
30,
1084,
273,
1544,
977,
67,
3548,
273,
977,
67,
3548,
67,
2080,
67,
3729,
67,
768,
12,
4099,
397,
1544,
13,
1327,
1140,
18,
803,
18,
291,
768,
12,
4099,
4672,
977,
67,
3548,
273,
977,
67,
3548,
67,
2080,
67,
3729,
67,
768,
12,
4099,
13,
1084,
273,
1140,
18,
803,
18,
13909,
12,
4099,
13,
469,
30,
468,
26564,
487,
279,
1976,
18,
977,
67,
3548,
273,
977,
67,
3548,
67,
2080,
67,
718,
12,
4099,
13,
1084,
273,
1241,
18,
4939,
2932,
4898,
13,
18919,
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,
2774,
13332,
3536,
6376,
445,
3536,
855,
67,
2116,
12,
9499,
18,
19485,
63,
21,
30,
5717,
225,
468,
29683,
866,
309,
389,
12422,
9614,
1893,
67,
1580,
4676,
11929,
30,
1172,
1671,
2589,
18,
10283,
16,
7566,
14294,
21598,
585,
738,
87,
6,
738,
389,
12422,
9614,
1580,
4676,
67,
768,
6,
5717,
468,
4403,
434,
21598,
866,
18,
225,
468,
9190,
1247,
336,
67,
16819,
67,
21480,
24899,
12422,
9614,
1580,
4676,
67,
768,
6,
6487,
389,
12422,
9614,
266,
3510,
67,
2493,
6,
6487,
389,
12422,
9614,
2135,
67,
2493,
6,
5717,
225,
364,
1241,
316,
389,
12422,
9614,
955,
67,
2354,
11929,
30,
977,
67,
3548,
273,
599,
1084,
273,
1408,
309,
1140,
18,
2
] |
def populate_inspiral_tables(MBTA_frame, UID, set_keys = MBTA_set_keys, \ process_id = 'process:process_id:0', \ event_id_dict = insp_event_id_dict, \ coinc_event_id_base=InspiralCoincIdBase):
|
def populate_inspiral_tables(MBTA_frame, set_keys = MBTA_set_keys, \ event_id_dict = insp_event_id_dict):
|
def populate_inspiral_tables(MBTA_frame, UID, set_keys = MBTA_set_keys, \ process_id = 'process:process_id:0', \ event_id_dict = insp_event_id_dict, \ coinc_event_id_base=InspiralCoincIdBase): """ create xml file and populate the SnglInspiral and CoincInspiral tables from a coinc .gwf file from MBTA xmldoc: xml file to append the tables to MBTA_frame: frame file to get info about triggers from set_keys: columns in the SnglInspiral Table to set process_id: process_id event_id_dict: {ifo:event_id} dictionary to assign event_id's coinc_event_id: coinc_event_id detectors: detectors participating in the coinc returns xmldoc and contents of the comment field """ #initialize xml document xmldoc = ligolw.Document() xmldoc.appendChild(ligolw.LIGO_LW()) #dictionaries to store about individual triggers end_time_s = {} end_time_ns = {} snr = {} mass1 = {} mass2 = {} Deff = {} mchirp = {} eta = {} #extract the information from the frame file events = Fr.frgetevent(MBTA_frame) #get the ifos from the event name for event in events: if 'MbtaHLV' in event['name']: detectors = H1L1V1_detlist elif 'MbtaHL' in event['name']: detectors = H1L1_detlist elif 'MbtaHV' in event['name']: detectors = H1V1_detlist elif 'MbtaH' in event['name']: detectors = H1_detlist elif 'MbtaLV' in event['name']: detectors = L1V1_detlist elif 'MbtaL' in event['name']: detectors = L1_detlist elif 'MbtaV' in event['name']: detectors = V1_detlist else: raise ValueError, "Invalid FrEvent name" log_data = event['comment'] + '\n' far = [line.split(':')[1].split()[0] for line in log_data.splitlines() if \ 'False Alarm Rate' in line][0] for ifo in detectors: end_time_s[ifo], end_time_ns[ifo] = str(event[ifo+':end_time']).split('.') snr[ifo] = float(event[ifo+':SNR']) mass1[ifo] = float(event[ifo+':mass1']) mass2[ifo] = float(event[ifo+':mass2']) mchirp[ifo], eta[ifo] = compute_mchirp_eta(mass1[ifo],mass2[ifo]) Deff[ifo] = float(event[ifo+':eff_distance']) #fill the SnglInspiralTable sin_table = lsctables.New(lsctables.SnglInspiralTable) xmldoc.childNodes[0].appendChild(sin_table) for ifo in detectors: row = sin_table.RowType() row.ifo = ifo row.search = 'MBTA' row.end_time = int(end_time_s[ifo]) row.end_time_ns = int(end_time_ns[ifo]) row.mass1 = mass1[ifo] row.mass2 = mass2[ifo] row.mchirp = mchirp[ifo] row.mtotal = mass1[ifo] + mass2[ifo] row.eta = eta[ifo] row.snr = snr[ifo] row.eff_distance = Deff[ifo] row.event_id = event_id_dict[ifo] row.process_id = process_id row.channel = '' #zero out the rest of the columns #should work in chi2 and chi2cut for key in sin_table.validcolumns.keys(): if key not in set_keys: setattr(row,key,None) sin_table.append(row) #CoincInspiralTable #using the conventions found in: #https://www.lsc-group.phys.uwm.edu/ligovirgo/cbcnote/S6Plan/ #090505160219S6PlanningNotebookCoinc_and_Experiment_Tables_ihope_implementation? #highlight=%28coinc%29|%28table%29 if len(detectors) < 2: return xmldoc, log_data, detectors coinc_event_id = coinc_event_id_base + str(UID) cin_table = lsctables.New(lsctables.CoincInspiralTable) xmldoc.childNodes[0].appendChild(cin_table) row = cin_table.RowType() row.set_ifos(detectors) row.coinc_event_id = coinc_event_id row.end_time = int(end_time_s['H1']) row.end_time_ns = int(end_time_ns['H1']) row.mass = (sum(mass1.values()) + sum(mass2.values()))/3 row.mchirp = sum(mchirp.values())/3 #the snr here is really the snr NOT effective snr row.snr = pow(sum([x*x for x in snr.values()]),0.5) #far is triggers/day row.false_alarm_rate = float(far) row.combined_far = 0 cin_table.append(row) return xmldoc, log_data, detectors
|
eef4ba73b78b2df6877b14e65982a2b0927a899b /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/3589/eef4ba73b78b2df6877b14e65982a2b0927a899b/utils.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
67,
350,
67,
1576,
4672,
3536,
752,
2025,
585,
471,
6490,
326,
348,
3368,
80,
382,
1752,
481,
287,
471,
28932,
71,
382,
1752,
481,
287,
4606,
628,
279,
13170,
71,
263,
75,
15581,
585,
628,
17897,
9833,
2025,
2434,
30,
2025,
585,
358,
714,
326,
4606,
358,
17897,
9833,
67,
3789,
30,
2623,
585,
358,
336,
1123,
2973,
11752,
628,
444,
67,
2452,
30,
2168,
316,
326,
348,
3368,
80,
382,
1752,
481,
287,
3555,
358,
444,
1207,
67,
350,
30,
1207,
67,
350,
871,
67,
350,
67,
1576,
30,
288,
20299,
30,
2575,
67,
350,
97,
3880,
358,
2683,
871,
67,
350,
1807,
13170,
71,
67,
2575,
67,
350,
30,
13170,
71,
67,
2575,
67,
350,
13826,
87,
30,
13826,
87,
30891,
1776,
316,
326,
13170,
71,
225,
1135,
2025,
2434,
471,
2939,
434,
326,
2879,
652,
3536,
468,
11160,
2025,
1668,
2025,
2434,
273,
16917,
355,
91,
18,
2519,
1435,
2025,
2434,
18,
6923,
1763,
12,
80,
360,
355,
91,
18,
2053,
16387,
67,
48,
59,
10756,
468,
72,
14336,
358,
1707,
2973,
7327,
11752,
679,
67,
957,
67,
87,
273,
2618,
679,
67,
957,
67,
2387,
273,
2618,
29248,
273,
2618,
8039,
21,
273,
2618,
8039,
22,
273,
2618,
1505,
1403,
273,
2618,
312,
343,
481,
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,
6490,
67,
267,
1752,
481,
287,
67,
9373,
12,
7969,
9833,
67,
3789,
16,
444,
67,
2452,
273,
17897,
9833,
67,
542,
67,
2452,
16,
521,
871,
67,
350,
67,
1576,
273,
316,
1752,
67,
2575,
67,
350,
67,
1576,
4672,
3536,
752,
2025,
585,
471,
6490,
326,
348,
3368,
80,
382,
1752,
481,
287,
471,
28932,
71,
382,
1752,
481,
287,
4606,
628,
279,
13170,
71,
263,
75,
15581,
585,
628,
17897,
9833,
2025,
2434,
30,
2025,
585,
358,
714,
326,
4606,
358,
17897,
9833,
67,
3789,
30,
2623,
585,
358,
336,
1123,
2973,
11752,
628,
444,
67,
2452,
30,
2168,
316,
326,
348,
3368,
80,
382,
1752,
481,
287,
3555,
358,
444,
1207,
67,
350,
30,
2
] |
lines, lineno = inspect.getsourcelines(obj)
|
lines, lineno = getsourcelines(obj)
|
def do_source(self, arg): """source expression Try to get source code for the given object and display it. """ try: obj = self._getval(arg) except: return try: lines, lineno = inspect.getsourcelines(obj) except (IOError, TypeError) as err: self.error(err) return self._print_lines(lines, lineno, [], -1, -1)
|
5ed2b5a92ab4f5c4c8ad77ec95a4f7add3083432 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8546/5ed2b5a92ab4f5c4c8ad77ec95a4f7add3083432/pdb.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3168,
12,
2890,
16,
1501,
4672,
3536,
3168,
2652,
6161,
358,
336,
1084,
981,
364,
326,
864,
733,
471,
2562,
518,
18,
3536,
775,
30,
1081,
273,
365,
6315,
588,
1125,
12,
3175,
13,
1335,
30,
327,
775,
30,
2362,
16,
7586,
273,
5571,
477,
2183,
1465,
12,
2603,
13,
1335,
261,
4294,
668,
16,
3580,
13,
487,
393,
30,
365,
18,
1636,
12,
370,
13,
327,
365,
6315,
1188,
67,
3548,
12,
3548,
16,
7586,
16,
5378,
16,
300,
21,
16,
300,
21,
13,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
741,
67,
3168,
12,
2890,
16,
1501,
4672,
3536,
3168,
2652,
6161,
358,
336,
1084,
981,
364,
326,
864,
733,
471,
2562,
518,
18,
3536,
775,
30,
1081,
273,
365,
6315,
588,
1125,
12,
3175,
13,
1335,
30,
327,
775,
30,
2362,
16,
7586,
273,
5571,
477,
2183,
1465,
12,
2603,
13,
1335,
261,
4294,
668,
16,
3580,
13,
487,
393,
30,
365,
18,
1636,
12,
370,
13,
327,
365,
6315,
1188,
67,
3548,
12,
3548,
16,
7586,
16,
5378,
16,
300,
21,
16,
300,
21,
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
] |
if not os.path.isdir(self.build_dir): self.warn("'%s' does not exist -- cannot test" % self.build_dir) return
|
def test (self): if not os.path.isdir(self.build_dir): self.warn("'%s' does not exist -- cannot test" % self.build_dir) return
|
c7a3ef46174a0d7c40995ec52d364bb4d93cd945 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/97/c7a3ef46174a0d7c40995ec52d364bb4d93cd945/di_test.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
261,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
3510,
67,
1214,
4672,
365,
18,
8935,
29823,
9,
87,
11,
1552,
486,
1005,
1493,
2780,
1842,
6,
738,
365,
18,
3510,
67,
1214,
13,
327,
2,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
261,
2890,
4672,
309,
486,
1140,
18,
803,
18,
291,
1214,
12,
2890,
18,
3510,
67,
1214,
4672,
365,
18,
8935,
29823,
9,
87,
11,
1552,
486,
1005,
1493,
2780,
1842,
6,
738,
365,
18,
3510,
67,
1214,
13,
327,
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
] |
|
captxt = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR)
|
captxt = self._frame.GetDockArt().GetColour(wx.aui.AUI_DOCKART_INACTIVE_CAPTION_TEXT_COLOUR)
|
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) capgrad = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_GRADIENT_COLOUR) self._inactive_caption_gradient_color.SetBitmapLabel(self.CreateColorBitmap(capgrad)) captxt = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_TEXT_COLOUR) self._inactive_caption_text_color.SetBitmapLabel(self.CreateColorBitmap(captxt)) acap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_ACTIVE_CAPTION_COLOUR) self._active_caption_color.SetBitmapLabel(self.CreateColorBitmap(acap)) acapgrad = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_ACTIVE_CAPTION_GRADIENT_COLOUR) self._active_caption_gradient_color.SetBitmapLabel(self.CreateColorBitmap(acapgrad)) acaptxt = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_ACTIVE_CAPTION_TEXT_COLOUR) self._active_caption_text_color.SetBitmapLabel(self.CreateColorBitmap(acaptxt)) sash = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_SASH_COLOUR) self._sash_color.SetBitmapLabel(self.CreateColorBitmap(sash)) border = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BORDER_COLOUR) self._border_color.SetBitmapLabel(self.CreateColorBitmap(border)) gripper = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_GRIPPER_COLOUR) self._gripper_color.SetBitmapLabel(self.CreateColorBitmap(gripper))
|
de824c0c9cec70a6369d011fb635c8ba12bdacea /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de824c0c9cec70a6369d011fb635c8ba12bdacea/AUI_DockingWindowMgr.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2315,
12570,
12,
2890,
4672,
225,
22723,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
4928,
67,
8720,
20166,
67,
3865,
1502,
1099,
13,
365,
6315,
9342,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
24600,
3719,
225,
3523,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
4928,
67,
706,
13301,
67,
3587,
3725,
67,
3865,
1502,
1099,
13,
365,
6315,
27366,
67,
15386,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
5909,
3719,
225,
3523,
9974,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
4928,
67,
706,
13301,
67,
3587,
3725,
67,
6997,
17708,
2222,
67,
3865,
1502,
1099,
13,
365,
6315,
27366,
67,
15386,
67,
20219,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
5909,
9974,
3719,
225,
9656,
15239,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
3191,
3507,
4928,
67,
706,
13301,
67,
3587,
3725,
67,
5151,
67,
3865,
1502,
1099,
13,
365,
6315,
27366,
67,
15386,
67,
955,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
71,
1657,
15239,
3719,
225,
1721,
438,
273,
365,
6315,
3789,
18,
967,
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,
2315,
12570,
12,
2890,
4672,
225,
22723,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
4928,
67,
8720,
20166,
67,
3865,
1502,
1099,
13,
365,
6315,
9342,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
24600,
3719,
225,
3523,
273,
365,
6315,
3789,
18,
967,
40,
975,
4411,
7675,
967,
26404,
12,
27226,
18,
69,
4881,
18,
37,
5370,
67,
4928,
67,
706,
13301,
67,
3587,
3725,
67,
3865,
1502,
1099,
13,
365,
6315,
27366,
67,
15386,
67,
3266,
18,
694,
12224,
2224,
12,
2890,
18,
1684,
2957,
12224,
12,
5909,
3719,
225,
3523,
9974,
273,
365,
6315,
3789,
18,
2
] |
if 0 : buildPackage( "flac",
|
if 1 : buildPackage( "flac",
|
def buildPackage(name, uri, checkVersion, downloadUri, tarballName, buildCommand, srcdir=None, deps="", pinnedVersion = None, ) : print "Module:", name subst = dict( sandbox = sandbox, prefix = prefix, target = target, sfmirror = sfmirror, apachemirror = apachemirror, name = name, pinned = pinnedVersion if pinnedVersion else "None", ) availableVersion = output(checkVersion).strip() availableVersion or die("No online version found for the package\n Command used:\n%s" % checkVersion) print "Found version: '%s'" % availableVersion if (pinnedVersion and pinnedVersion != availableVersion) : warning("Package: Pinning to version %s, although version %s is available" % (pinnedVersion, availableVersion)) version = pinnedVersion if pinnedVersion else availableVersion subst.update ( version = version, majorversion = ".".join(version.split(".")[:1]), minorversion = ".".join(version.split(".")[:2]), ) subst.update( tarball = tarballName % subst, srcdir = ("%(sandbox)s/src/" + (srcdir or "%(name)s-%(version)s/")) % subst, ) print "srcdir:", subst['srcdir'] download(downloadUri % subst) extractSource(subst['tarball']) patches = glob.glob(scriptRelative("mingw-"+name+"*")) patches.sort() print patches for patch in patches : applyPatch(subst['srcdir'], patch, level=1) run(buildCommand % subst)
|
9516624bdaf457fb48cb287da6115af5d509bbca /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/1456/9516624bdaf457fb48cb287da6115af5d509bbca/setup_mingw.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1361,
2261,
12,
529,
16,
2003,
16,
866,
1444,
16,
4224,
3006,
16,
29441,
461,
16,
1361,
2189,
16,
1705,
1214,
33,
7036,
16,
8740,
1546,
3113,
26193,
1444,
273,
599,
16,
262,
294,
1172,
315,
3120,
2773,
16,
508,
27750,
273,
2065,
12,
15202,
273,
15202,
16,
1633,
273,
1633,
16,
1018,
273,
1018,
16,
9033,
27197,
273,
9033,
27197,
16,
513,
497,
351,
8299,
273,
513,
497,
351,
8299,
16,
508,
273,
508,
16,
26193,
273,
26193,
1444,
309,
26193,
1444,
469,
315,
7036,
3113,
262,
2319,
1444,
273,
876,
12,
1893,
1444,
2934,
6406,
1435,
2319,
1444,
578,
10387,
2932,
2279,
12365,
1177,
1392,
364,
326,
2181,
64,
82,
3498,
1399,
5581,
82,
9,
87,
6,
738,
866,
1444,
13,
1172,
315,
2043,
1177,
30,
1995,
87,
4970,
738,
2319,
1444,
309,
261,
13097,
11748,
1444,
471,
26193,
1444,
480,
2319,
1444,
13,
294,
3436,
2932,
2261,
30,
14999,
2093,
358,
1177,
738,
87,
16,
26347,
1177,
738,
87,
353,
2319,
6,
738,
261,
13097,
11748,
1444,
16,
2319,
1444,
3719,
1177,
273,
26193,
1444,
309,
26193,
1444,
469,
2319,
1444,
27750,
18,
2725,
261,
1177,
273,
1177,
16,
7888,
1589,
273,
4585,
18,
5701,
12,
1589,
18,
4939,
2932,
1199,
13,
10531,
21,
65,
3631,
8439,
1589,
273,
4585,
18,
5701,
12,
1589,
18,
4939,
2932,
1199,
13,
10531,
22,
65,
3631,
262,
225,
27750,
18,
2725,
12,
29441,
273,
29441,
461,
738,
27750,
16,
1705,
1214,
273,
7566,
17105,
27004,
13,
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,
1361,
2261,
12,
529,
16,
2003,
16,
866,
1444,
16,
4224,
3006,
16,
29441,
461,
16,
1361,
2189,
16,
1705,
1214,
33,
7036,
16,
8740,
1546,
3113,
26193,
1444,
273,
599,
16,
262,
294,
1172,
315,
3120,
2773,
16,
508,
27750,
273,
2065,
12,
15202,
273,
15202,
16,
1633,
273,
1633,
16,
1018,
273,
1018,
16,
9033,
27197,
273,
9033,
27197,
16,
513,
497,
351,
8299,
273,
513,
497,
351,
8299,
16,
508,
273,
508,
16,
26193,
273,
26193,
1444,
309,
26193,
1444,
469,
315,
7036,
3113,
262,
2319,
1444,
273,
876,
12,
1893,
1444,
2934,
6406,
1435,
2319,
1444,
578,
10387,
2932,
2279,
12365,
1177,
1392,
364,
326,
2181,
64,
82,
3498,
1399,
5581,
82,
9,
87,
2
] |
font1 = font.nametofont("TkDefaultFont") font2 = font.nametofont("TkDefaultFont")
|
fontname = "TkDefaultFont" try: f = font.Font(name=fontname, exists=True) except tkinter._tkinter.TclError: f = font.Font(name=fontname, exists=False) font1 = font.nametofont(fontname) font2 = font.nametofont(fontname)
|
def test_font_eq(self): font1 = font.nametofont("TkDefaultFont") font2 = font.nametofont("TkDefaultFont") self.assertIsNot(font1, font2) self.assertEqual(font1, font2) self.assertNotEqual(font1, font1.copy()) self.assertNotEqual(font1, 0)
|
a8515f0503a5f094ffcf5a26bfae0ea5e480c0b3 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/12029/a8515f0503a5f094ffcf5a26bfae0ea5e480c0b3/test_font.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5776,
67,
11253,
12,
2890,
4672,
3512,
529,
273,
315,
56,
79,
1868,
5711,
6,
775,
30,
284,
273,
3512,
18,
5711,
12,
529,
33,
5776,
529,
16,
1704,
33,
5510,
13,
1335,
13030,
2761,
6315,
16099,
2761,
18,
56,
830,
668,
30,
284,
273,
3512,
18,
5711,
12,
529,
33,
5776,
529,
16,
1704,
33,
8381,
13,
3512,
21,
273,
3512,
18,
17808,
278,
792,
1580,
12,
5776,
529,
13,
3512,
22,
273,
3512,
18,
17808,
278,
792,
1580,
12,
5776,
529,
13,
365,
18,
11231,
28041,
12,
5776,
21,
16,
3512,
22,
13,
365,
18,
11231,
5812,
12,
5776,
21,
16,
3512,
22,
13,
365,
18,
11231,
1248,
5812,
12,
5776,
21,
16,
3512,
21,
18,
3530,
10756,
365,
18,
11231,
1248,
5812,
12,
5776,
21,
16,
374,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
5776,
67,
11253,
12,
2890,
4672,
3512,
529,
273,
315,
56,
79,
1868,
5711,
6,
775,
30,
284,
273,
3512,
18,
5711,
12,
529,
33,
5776,
529,
16,
1704,
33,
5510,
13,
1335,
13030,
2761,
6315,
16099,
2761,
18,
56,
830,
668,
30,
284,
273,
3512,
18,
5711,
12,
529,
33,
5776,
529,
16,
1704,
33,
8381,
13,
3512,
21,
273,
3512,
18,
17808,
278,
792,
1580,
12,
5776,
529,
13,
3512,
22,
273,
3512,
18,
17808,
278,
792,
1580,
12,
5776,
529,
13,
365,
18,
11231,
28041,
12,
5776,
21,
16,
3512,
22,
13,
365,
18,
11231,
5812,
12,
5776,
21,
16,
3512,
22,
13,
365,
18,
11231,
1248,
5812,
12,
5776,
21,
16,
3512,
2
] |
voutput += "%s,Recid:%s,Score:%s<br>" % (i,reclist[len(reclist) - i][0],reclist[len(reclist) - i][1])
|
voutput += "%s,Recid:%s,Score:%s<br>" % (i,reclist[len(reclist) - i][0],reclist[len(reclist) - i][1])
|
def rank_method_stat(rank_method_code, reclist, lwords): """Shows some statistics about the searchresult. rank_method_code - name field from rnkMETHOD reclist - a list of sorted and ranked records lwords - the words in the query""" global voutput if len(reclist) > 20: j = 20 else: j = len(reclist) voutput += "<br>Rank statistics:<br>" for i in range(1, j + 1): voutput += "%s,Recid:%s,Score:%s<br>" % (i,reclist[len(reclist) - i][0],reclist[len(reclist) - i][1]) for (term, table) in lwords: term_recs = run_sql("""SELECT hitlist FROM %s WHERE term=%s""", (table, term)) if term_recs: term_recs = deserialize_via_marshal(term_recs[0][0]) if term_recs.has_key(reclist[len(reclist) - i][0]): voutput += "%s-%s / " % (term, term_recs[reclist[len(reclist) - i][0]]) voutput += "<br>" voutput += "<br>Score variation:<br>" count = {} for i in range(0, len(reclist)): count[reclist[i][1]] = count.get(reclist[i][1], 0) + 1 i = 100 while i >= 0: if count.has_key(i): voutput += "%s-%s<br>" % (i, count[i]) i -= 1
|
65057a59d7844e5dc821df793923e70a6a071b3b /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/65057a59d7844e5dc821df793923e70a6a071b3b/bibrank_record_sorter.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
6171,
67,
2039,
67,
5642,
12,
11500,
67,
2039,
67,
710,
16,
283,
830,
376,
16,
328,
3753,
4672,
3536,
24548,
2690,
7691,
2973,
326,
1623,
2088,
18,
6171,
67,
2039,
67,
710,
300,
508,
652,
628,
20594,
79,
5327,
283,
830,
376,
300,
279,
666,
434,
3115,
471,
6171,
329,
3853,
328,
3753,
300,
326,
4511,
316,
326,
843,
8395,
225,
2552,
331,
2844,
309,
562,
12,
266,
830,
376,
13,
405,
4200,
30,
525,
273,
4200,
469,
30,
525,
273,
562,
12,
266,
830,
376,
13,
225,
331,
2844,
1011,
3532,
2848,
34,
12925,
7691,
22292,
2848,
2984,
364,
277,
316,
1048,
12,
21,
16,
525,
397,
404,
4672,
331,
2844,
1011,
2213,
87,
16,
5650,
350,
5319,
87,
16,
7295,
5319,
87,
32,
2848,
2984,
738,
261,
77,
16,
266,
830,
376,
63,
1897,
12,
266,
830,
376,
13,
300,
277,
6362,
20,
6487,
266,
830,
376,
63,
1897,
12,
266,
830,
376,
13,
300,
277,
6362,
21,
5717,
364,
261,
6408,
16,
1014,
13,
316,
328,
3753,
30,
2481,
67,
266,
2143,
273,
1086,
67,
4669,
2932,
3660,
4803,
6800,
1098,
4571,
738,
87,
4852,
2481,
5095,
87,
3660,
3113,
261,
2121,
16,
2481,
3719,
309,
2481,
67,
266,
2143,
30,
2481,
67,
266,
2143,
273,
7673,
67,
21985,
67,
3108,
12,
6408,
67,
266,
2143,
63,
20,
6362,
20,
5717,
309,
2481,
67,
266,
2143,
18,
5332,
67,
856,
12,
266,
830,
376,
63,
1897,
12,
266,
830,
376,
13,
300,
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,
6171,
67,
2039,
67,
5642,
12,
11500,
67,
2039,
67,
710,
16,
283,
830,
376,
16,
328,
3753,
4672,
3536,
24548,
2690,
7691,
2973,
326,
1623,
2088,
18,
6171,
67,
2039,
67,
710,
300,
508,
652,
628,
20594,
79,
5327,
283,
830,
376,
300,
279,
666,
434,
3115,
471,
6171,
329,
3853,
328,
3753,
300,
326,
4511,
316,
326,
843,
8395,
225,
2552,
331,
2844,
309,
562,
12,
266,
830,
376,
13,
405,
4200,
30,
525,
273,
4200,
469,
30,
525,
273,
562,
12,
266,
830,
376,
13,
225,
331,
2844,
1011,
3532,
2848,
34,
12925,
7691,
22292,
2848,
2984,
364,
277,
316,
1048,
12,
21,
16,
525,
397,
404,
4672,
331,
2844,
1011,
2213,
87,
16,
5650,
2
] |
except KeyboardInterrupt: print "Process was interrupted." print "The first unfinished subject is:",sa.firstSubject().pl().asasciilink()
|
except: sa.dump('interwiki.dump')
|
def compareLanguages(old, new): removing = [] adding = [] modifying = [] for code in old.keys(): if code not in new.keys(): removing.append(code) elif old[code] != new[code]: modifying.append(code) for code2 in new.keys(): if code2 not in old.keys(): adding.append(code2) s = "" if adding: s = s + " %s:" % (msg[msglang][0]) + ",".join(adding) if removing: s = s + " %s:" % (msg[msglang][1]) + ",".join(removing) if modifying: s = s + " %s:" % (msg[msglang][2]) + ",".join(modifying) return s,removing
|
4588b7cf8686140936dfc837887f2e33792c2da7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4404/4588b7cf8686140936dfc837887f2e33792c2da7/interwiki.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12912,
12,
1673,
16,
394,
4672,
9427,
273,
5378,
6534,
273,
5378,
21920,
273,
5378,
364,
981,
316,
1592,
18,
2452,
13332,
309,
981,
486,
316,
394,
18,
2452,
13332,
9427,
18,
6923,
12,
710,
13,
1327,
1592,
63,
710,
65,
480,
394,
63,
710,
14542,
21920,
18,
6923,
12,
710,
13,
225,
364,
981,
22,
316,
394,
18,
2452,
13332,
309,
981,
22,
486,
316,
1592,
18,
2452,
13332,
6534,
18,
6923,
12,
710,
22,
13,
272,
273,
1408,
309,
6534,
30,
272,
273,
272,
397,
315,
738,
87,
2773,
738,
261,
3576,
63,
3576,
4936,
6362,
20,
5717,
397,
5753,
18,
5701,
12,
3439,
13,
309,
9427,
30,
272,
273,
272,
397,
315,
738,
87,
2773,
738,
261,
3576,
63,
3576,
4936,
6362,
21,
5717,
397,
5753,
18,
5701,
12,
2764,
13767,
13,
309,
21920,
30,
272,
273,
272,
397,
315,
738,
87,
2773,
738,
261,
3576,
63,
3576,
4936,
6362,
22,
5717,
397,
5753,
18,
5701,
12,
17042,
310,
13,
327,
272,
16,
2764,
13767,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
3400,
12912,
12,
1673,
16,
394,
4672,
9427,
273,
5378,
6534,
273,
5378,
21920,
273,
5378,
364,
981,
316,
1592,
18,
2452,
13332,
309,
981,
486,
316,
394,
18,
2452,
13332,
9427,
18,
6923,
12,
710,
13,
1327,
1592,
63,
710,
65,
480,
394,
63,
710,
14542,
21920,
18,
6923,
12,
710,
13,
225,
364,
981,
22,
316,
394,
18,
2452,
13332,
309,
981,
22,
486,
316,
1592,
18,
2452,
13332,
6534,
18,
6923,
12,
710,
22,
13,
272,
273,
1408,
309,
6534,
30,
272,
273,
272,
397,
315,
738,
87,
2773,
738,
261,
3576,
63,
3576,
4936,
6362,
20,
5717,
397,
5753,
18,
5701,
12,
3439,
13,
309,
9427,
30,
272,
273,
272,
397,
315,
738,
87,
2
] |
elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache % self.parent().prime_pow(halt - right.valuation()):
|
elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache.lift() % self.parent().prime_pow(halt - right.valuation()):
|
def __cmp__(self, right, halt = None): if halt is None: halt = self.parent().halting_parameter() #print "self = %s, type = %s"%(self, type(self)) #print "right = %s, type = %s"%(right, type(right)) if self.valuation() < right.valuation(): return -1 elif self.valuation() > right.valuation(): return 1 elif self.valuation() is infinity and right.valuation() is infinity: return 0 #comparing valuations can throw an exception if self and right are both congruent to zero modulo p^halt, but we want this to be passed upstream. We now know that the valuations are equal and both less than halt, so both have type Integer now rather than Valuation. if self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) < right._cache % self.parent().prime_pow(halt - right.valuation()): return -1 elif self._cache.lift() % self.parent().prime_pow(halt - self.valuation()) > right._cache % self.parent().prime_pow(halt - right.valuation()): return 1 if self._cache != right._cache: #According to spec, we only compare up to halt. We now know that self and right are equal up to halt, but unequal above. In order to maintain consistency with previous calls to __cmp__, we throw an exception here. raise PrecisionError, "I'm supposed to tell you these are equal, because they're congruent modulo p^halt, but " jump = 1 start = min(self.precision_absolute(), right.precision_absolute()) end = halt - start while jump <= end: self.set_precision_absolute(start + jump) right.set_precision_absolute(start + jump) if self._cache != right._cache: if self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return -1 elif self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return 1 jump = 2 * jump self.set_precision_absolute(halt) right.set_precision_absolute(halt) if self._cache != right._cache: if self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return -1 elif self._cache.lift() % self.parent().prime_pow(start + jump) < right._cache.lift() % self.parent().prime_pow(start + jump): return 1 return 0
|
c453742d8b2d37c307d396c85a9147db93687af6 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9417/c453742d8b2d37c307d396c85a9147db93687af6/padic_lazy_element.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
87,
16,
618,
273,
738,
87,
6,
17105,
2890,
16,
618,
12,
2890,
3719,
468,
1188,
315,
4083,
273,
738,
87,
16,
618,
273,
738,
87,
6,
17105,
4083,
16,
618,
12,
4083,
3719,
309,
365,
18,
4531,
367,
1435,
411,
2145,
18,
4531,
367,
13332,
327,
300,
21,
1327,
365,
18,
4531,
367,
1435,
405,
2145,
18,
4531,
367,
13332,
327,
404,
1327,
365,
18,
4531,
367,
1435,
353,
27272,
471,
2145,
18,
4531,
367,
1435,
353,
27272,
30,
327,
374,
468,
832,
12583,
21748,
1012,
848,
604,
392,
1520,
309,
365,
471,
2145,
854,
3937,
356,
3197,
10744,
358,
3634,
26109,
293,
66,
76,
2390,
16,
1496,
732,
2545,
333,
358,
506,
2275,
13505,
18,
225,
1660,
2037,
5055,
716,
326,
21748,
1012,
854,
3959,
471,
3937,
5242,
2353,
18389,
16,
1427,
3937,
1240,
618,
2144,
2037,
9178,
2353,
776,
700,
367,
18,
309,
365,
6315,
2493,
18,
80,
2136,
1435,
738,
365,
18,
2938,
7675,
16382,
67,
23509,
12,
76,
2390,
300,
365,
18,
4531,
367,
10756,
411,
2145,
6315,
2493,
738,
365,
18,
2938,
7675,
16382,
67,
23509,
12,
76,
2390,
300,
2145,
18,
4531,
367,
1435,
4672,
327,
300,
21,
1327,
365,
6315,
2493,
18,
80,
2136,
1435,
738,
365,
18,
2938,
7675,
16382,
67,
23509,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9625,
972,
12,
2890,
16,
2145,
16,
18389,
273,
599,
4672,
309,
18389,
353,
599,
30,
18389,
273,
365,
18,
2938,
7675,
22314,
1787,
67,
6775,
1435,
468,
1188,
315,
2890,
273,
738,
87,
16,
618,
273,
738,
87,
6,
17105,
2890,
16,
618,
12,
2890,
3719,
468,
1188,
315,
4083,
273,
738,
87,
16,
618,
273,
738,
87,
6,
17105,
4083,
16,
618,
12,
4083,
3719,
309,
365,
18,
4531,
367,
1435,
411,
2145,
18,
4531,
367,
13332,
327,
300,
21,
1327,
365,
18,
4531,
367,
1435,
405,
2145,
18,
4531,
367,
13332,
327,
404,
1327,
365,
18,
4531,
367,
1435,
353,
27272,
471,
2145,
18,
4531,
367,
1435,
353,
27272,
30,
327,
374,
468,
832,
2
] |
of TF-8 characters, without possible mis-truncation in the middle
|
of UTF-8 characters, without possible mis-truncation in the middle
|
def wash_index_term(term, max_char_length=50): """ Return washed form of the index term TERM that would be suitable for storing into idxWORD* tables. I.e., lower the TERM, and truncate it safely to MAX_CHAR_LENGTH UTF-8 characters (meaning, in principle, 4*MAX_CHAR_LENGTH bytes). The function works by an internal conversion of TERM, when needed, from its input Python UTF-8 binary string format into Python Unicode format, and then truncating it safely to the given number of TF-8 characters, without possible mis-truncation in the middle of a multi-byte UTF-8 character that could otherwise happen if we would have been working with UTF-8 binary representation directly. Note that MAX_CHAR_LENGTH corresponds to the length of the term column in idxINDEX* tables. """ washed_term = unicode(term, 'utf-8').lower() if len(washed_term) <= max_char_length: # no need to truncate the term, because it will fit # nicely even if it uses four-byte UTF-8 characters return washed_term.encode('utf-8') else: # truncate the term in a safe position: return washed_term[:max_char_length].encode('utf-8')
|
5a4d8f5a5db8b9a24d079a4865bc85865b4e3e5b /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/2139/5a4d8f5a5db8b9a24d079a4865bc85865b4e3e5b/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
341,
961,
67,
1615,
67,
6408,
12,
6408,
16,
943,
67,
3001,
67,
2469,
33,
3361,
4672,
3536,
2000,
341,
13912,
646,
434,
326,
770,
2481,
20772,
49,
716,
4102,
506,
10631,
364,
15729,
1368,
2067,
7952,
14,
4606,
18,
225,
467,
18,
73,
12990,
2612,
326,
20772,
49,
16,
471,
10310,
518,
15303,
358,
4552,
67,
7305,
67,
7096,
6380,
17,
28,
3949,
261,
7079,
310,
16,
316,
846,
9523,
2444,
16,
1059,
14,
6694,
67,
7305,
67,
7096,
1731,
2934,
225,
1021,
445,
6330,
635,
392,
2713,
4105,
434,
20772,
49,
16,
1347,
3577,
16,
628,
2097,
810,
6600,
6380,
17,
28,
3112,
533,
740,
1368,
6600,
9633,
740,
16,
471,
1508,
6956,
1776,
518,
15303,
358,
326,
864,
1300,
434,
6380,
17,
28,
3949,
16,
2887,
3323,
7524,
17,
23558,
367,
316,
326,
7689,
434,
279,
3309,
17,
7229,
6380,
17,
28,
3351,
716,
3377,
3541,
5865,
309,
732,
4102,
1240,
2118,
5960,
598,
6380,
17,
28,
3112,
4335,
5122,
18,
225,
3609,
716,
4552,
67,
7305,
67,
7096,
13955,
358,
326,
769,
434,
326,
2481,
1057,
316,
2067,
9199,
14,
4606,
18,
3536,
341,
13912,
67,
6408,
273,
5252,
12,
6408,
16,
296,
3158,
17,
28,
16063,
8167,
1435,
309,
562,
12,
91,
13912,
67,
6408,
13,
1648,
943,
67,
3001,
67,
2469,
30,
468,
1158,
1608,
358,
10310,
326,
2481,
16,
2724,
518,
903,
4845,
468,
11562,
2357,
5456,
309,
518,
4692,
12792,
17,
7229,
6380,
17,
28,
3949,
327,
341,
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,
341,
961,
67,
1615,
67,
6408,
12,
6408,
16,
943,
67,
3001,
67,
2469,
33,
3361,
4672,
3536,
2000,
341,
13912,
646,
434,
326,
770,
2481,
20772,
49,
716,
4102,
506,
10631,
364,
15729,
1368,
2067,
7952,
14,
4606,
18,
225,
467,
18,
73,
12990,
2612,
326,
20772,
49,
16,
471,
10310,
518,
15303,
358,
4552,
67,
7305,
67,
7096,
6380,
17,
28,
3949,
261,
7079,
310,
16,
316,
846,
9523,
2444,
16,
1059,
14,
6694,
67,
7305,
67,
7096,
1731,
2934,
225,
1021,
445,
6330,
635,
392,
2713,
4105,
434,
20772,
49,
16,
1347,
3577,
16,
628,
2097,
810,
6600,
6380,
17,
28,
3112,
533,
740,
1368,
6600,
9633,
740,
16,
471,
1508,
6956,
1776,
518,
15303,
2
] |
self.fileSize = -1
|
self.fileSize = ''
|
def __init__(self): self.done = 0 self.file = '' self.fileSize = -1 self.activity = '' self.status = '' self.progress = '' self.downloadTo = '' self.downRate = '---' self.upRate = '---' self.errors = []
|
475bc2502a2632d7599dddb0ed5ed686f6cf773d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4538/475bc2502a2632d7599dddb0ed5ed686f6cf773d/btdownloadcurses.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8734,
273,
374,
365,
18,
768,
273,
875,
365,
18,
768,
1225,
273,
875,
365,
18,
9653,
273,
875,
365,
18,
2327,
273,
875,
365,
18,
8298,
273,
875,
365,
18,
7813,
774,
273,
875,
365,
18,
2378,
4727,
273,
3534,
6627,
365,
18,
416,
4727,
273,
3534,
6627,
365,
18,
4324,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
4672,
365,
18,
8734,
273,
374,
365,
18,
768,
273,
875,
365,
18,
768,
1225,
273,
875,
365,
18,
9653,
273,
875,
365,
18,
2327,
273,
875,
365,
18,
8298,
273,
875,
365,
18,
7813,
774,
273,
875,
365,
18,
2378,
4727,
273,
3534,
6627,
365,
18,
416,
4727,
273,
3534,
6627,
365,
18,
4324,
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
] |
Resolution.*?<br>\s+(?P<resolution>\S+)
|
resolution.*?<br>\s+(?P<resolution>\S+)
|
def strip_tags(s): while '<' in s and '>' in s: s = str(s[:s.find('<')]) + str(s[s.find('>')+1:]) return s
|
e8fe9b90fe8c3b2a631e37b6e97e0ae67ab54887 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/3104/e8fe9b90fe8c3b2a631e37b6e97e0ae67ab54887/plugin.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2569,
67,
4156,
12,
87,
4672,
1323,
9138,
316,
272,
471,
7481,
316,
272,
30,
272,
273,
609,
12,
87,
10531,
87,
18,
4720,
2668,
32,
6134,
5717,
397,
609,
12,
87,
63,
87,
18,
4720,
2668,
1870,
27921,
21,
30,
5717,
327,
272,
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,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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
] |
if users>0:
|
if len(users) > 0:
|
def getUserFullName(self, p_username, acl_folder): #return the email of the given user id users = acl_folder.findUser(search_param='uid', search_term=p_username) if users>0: return unicode(users[0].get('cn', ''), 'iso-8859-1').encode('utf-8') else: return ''
|
a3395f61f0214ce1a9633e9de61434ad970e0240 /local1/tlutelli/issta_data/temp/all_python//python/2008_temp/2008/3287/a3395f61f0214ce1a9633e9de61434ad970e0240/plugLDAPUserFolder.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
19223,
12,
2890,
16,
293,
67,
5053,
16,
7895,
67,
5609,
4672,
468,
2463,
326,
2699,
434,
326,
864,
729,
612,
3677,
273,
7895,
67,
5609,
18,
4720,
1299,
12,
3072,
67,
891,
2218,
1911,
2187,
1623,
67,
6408,
33,
84,
67,
5053,
13,
309,
562,
12,
5577,
13,
405,
374,
30,
327,
5252,
12,
5577,
63,
20,
8009,
588,
2668,
10305,
2187,
875,
3631,
296,
9699,
17,
17258,
17,
21,
16063,
3015,
2668,
3158,
17,
28,
6134,
469,
30,
327,
875,
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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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
4735,
19223,
12,
2890,
16,
293,
67,
5053,
16,
7895,
67,
5609,
4672,
468,
2463,
326,
2699,
434,
326,
864,
729,
612,
3677,
273,
7895,
67,
5609,
18,
4720,
1299,
12,
3072,
67,
891,
2218,
1911,
2187,
1623,
67,
6408,
33,
84,
67,
5053,
13,
309,
562,
12,
5577,
13,
405,
374,
30,
327,
5252,
12,
5577,
63,
20,
8009,
588,
2668,
10305,
2187,
875,
3631,
296,
9699,
17,
17258,
17,
21,
16063,
3015,
2668,
3158,
17,
28,
6134,
469,
30,
327,
875,
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
] |
logger.info("[favoritos.py] mainlist")
|
logger.info("[favoritos.py] mainlist")
|
def mainlist(params,url,category): logger.info("[favoritos.py] mainlist") import xbmctools # Crea un listado con las entradas de favoritos if usingsamba: ficheros = samba.get_files(BOOKMARK_PATH) else: ficheros = os.listdir(BOOKMARK_PATH) ficheros.sort() for fichero in ficheros: try: # Lee el bookmark titulo,thumbnail,plot,server,url = readbookmark(fichero) # Crea la entrada # En la categora va el nombre del fichero para poder borrarlo xbmctools.addnewvideo( CHANNELNAME , "play" , os.path.join( BOOKMARK_PATH, fichero ) , server , titulo , url , thumbnail, plot ) except: pass # Label (top-right)... xbmcplugin.setPluginCategory( handle=int( sys.argv[ 1 ] ), category=category ) xbmcplugin.addSortMethod( handle=int( sys.argv[ 1 ] ), sortMethod=xbmcplugin.SORT_METHOD_NONE ) xbmcplugin.endOfDirectory( handle=int( sys.argv[ 1 ] ), succeeded=True )
|
cbf56e6d608cebe07c475b175224048b25f3957e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/2004/cbf56e6d608cebe07c475b175224048b25f3957e/favoritos.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1098,
12,
2010,
16,
718,
16,
4743,
4672,
1194,
18,
1376,
2932,
63,
19731,
280,
305,
538,
18,
2074,
65,
2774,
1098,
7923,
225,
1930,
15970,
81,
299,
8192,
225,
468,
5799,
69,
640,
666,
6821,
356,
27596,
31976,
361,
345,
443,
18552,
305,
538,
309,
584,
899,
2536,
69,
30,
284,
1354,
4345,
273,
272,
2536,
69,
18,
588,
67,
2354,
12,
28163,
12693,
67,
4211,
13,
469,
30,
284,
1354,
4345,
273,
1140,
18,
1098,
1214,
12,
28163,
12693,
67,
4211,
13,
284,
1354,
4345,
18,
3804,
1435,
364,
284,
1354,
2439,
316,
284,
1354,
4345,
30,
225,
775,
30,
468,
511,
1340,
415,
13696,
268,
305,
26478,
16,
14904,
16,
4032,
16,
3567,
16,
718,
273,
855,
3618,
3355,
12,
74,
1354,
2439,
13,
225,
468,
5799,
69,
7125,
31976,
16524,
468,
1374,
7125,
276,
1287,
10610,
14162,
415,
12457,
6073,
1464,
284,
1354,
2439,
12602,
3713,
264,
324,
280,
86,
297,
383,
15970,
81,
299,
8192,
18,
1289,
2704,
9115,
12,
27417,
1985,
269,
315,
1601,
6,
269,
1140,
18,
803,
18,
5701,
12,
9784,
3141,
12693,
67,
4211,
16,
284,
1354,
2439,
262,
269,
1438,
269,
268,
305,
26478,
269,
880,
269,
9134,
16,
3207,
262,
1335,
30,
1342,
225,
468,
5287,
261,
3669,
17,
4083,
13,
2777,
15970,
13952,
4094,
18,
542,
3773,
4457,
12,
1640,
33,
474,
12,
2589,
18,
19485,
63,
404,
308,
262,
16,
3150,
33,
4743,
262,
15970,
13952,
4094,
18,
1289,
4416,
1305,
12,
2
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2774,
1098,
12,
2010,
16,
718,
16,
4743,
4672,
1194,
18,
1376,
2932,
63,
19731,
280,
305,
538,
18,
2074,
65,
2774,
1098,
7923,
225,
1930,
15970,
81,
299,
8192,
225,
468,
5799,
69,
640,
666,
6821,
356,
27596,
31976,
361,
345,
443,
18552,
305,
538,
309,
584,
899,
2536,
69,
30,
284,
1354,
4345,
273,
272,
2536,
69,
18,
588,
67,
2354,
12,
28163,
12693,
67,
4211,
13,
469,
30,
284,
1354,
4345,
273,
1140,
18,
1098,
1214,
12,
28163,
12693,
67,
4211,
13,
284,
1354,
4345,
18,
3804,
1435,
364,
284,
1354,
2439,
316,
284,
1354,
4345,
30,
225,
775,
30,
468,
511,
1340,
415,
13696,
268,
305,
26478,
16,
14904,
16,
4032,
16,
3567,
16,
2
] |
self.process.grassenv=self.grassEnv.grassenv
|
def __init__(self, serverSettings, grassSettings, process,formvalues,method): """ Initialization of the Execute request
|
c3855002844abce2ea80d30885fe9f5603e71c57 /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/10967/c3855002844abce2ea80d30885fe9f5603e71c57/execute.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
1438,
2628,
16,
3821,
428,
2628,
16,
1207,
16,
687,
2372,
16,
2039,
4672,
3536,
26586,
434,
326,
7903,
590,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1001,
2738,
972,
12,
2890,
16,
1438,
2628,
16,
3821,
428,
2628,
16,
1207,
16,
687,
2372,
16,
2039,
4672,
3536,
26586,
434,
326,
7903,
590,
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
] |
|
log.log( "<directive>COM.tokenparser(), ID '%s' cmd '%s' rule '%s' action '%s'" % (self.state.ID, self.args.cmd, self.args.rule, self.args.actionList), 8 )
|
log.log( "<directive>COM.tokenparser(): ID '%s' cmd '%s' rule '%s'" % (self.state.ID, self.args.cmd, self.args.rule), 8 )
|
def tokenparser(self, toklist, toktypes, indent):
|
bc8dd24780027d732ae1f00fe01174be6240ac13 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/3643/bc8dd24780027d732ae1f00fe01174be6240ac13/common.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1147,
4288,
12,
2890,
16,
946,
1098,
16,
946,
2352,
16,
3504,
4672,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1147,
4288,
12,
2890,
16,
946,
1098,
16,
946,
2352,
16,
3504,
4672,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-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 __init__(self, n, q):
|
def __init__(self, n, q, name='a'):
|
def __init__(self, n, q): """ INPUT: n -- positive integer; the degree q -- prime power; the size of the ground field
|
f5e431c71f8b59df3f8c5c258afa59632134296c /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/9890/f5e431c71f8b59df3f8c5c258afa59632134296c/permgroup_named.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
290,
16,
1043,
16,
508,
2218,
69,
11,
4672,
3536,
12943,
30,
290,
1493,
6895,
3571,
31,
326,
10782,
1043,
1493,
17014,
7212,
31,
326,
963,
434,
326,
19209,
652,
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,
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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,
1001,
2738,
972,
12,
2890,
16,
290,
16,
1043,
16,
508,
2218,
69,
11,
4672,
3536,
12943,
30,
290,
1493,
6895,
3571,
31,
326,
10782,
1043,
1493,
17014,
7212,
31,
326,
963,
434,
326,
19209,
652,
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
] |
codec.write_uint8(mask) codec.write_uint8(20) codec.write_str8(self._schema.getKey().getPackageName()) codec.write_str8(self._schema.getKey().getClassName()) codec.write_bin128(self._schema.getKey().getHash())
|
codec.write_uint8(mask)
|
def _encodeUnmanaged(self, codec): # emit presence masks for optional properties mask = 0 bit = 0 for prop, value in self._properties: if prop.optional: if bit == 0: bit = 1 if value: mask |= bit bit = bit << 1 if bit == 256: bit = 0 codec.write_uint8(mask) mask = 0 if bit != 0: codec.write_uint8(mask)
|
c1ec4e0243b47bf4bb140a6ed17ef0d71009820c /local1/tlutelli/issta_data/temp/all_python//python/2009_temp/2009/197/c1ec4e0243b47bf4bb140a6ed17ef0d71009820c/console.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3015,
984,
19360,
12,
2890,
16,
9196,
4672,
468,
3626,
9805,
20931,
364,
3129,
1790,
3066,
273,
374,
2831,
225,
273,
374,
364,
2270,
16,
460,
316,
365,
6315,
4738,
30,
309,
2270,
18,
10444,
30,
309,
2831,
422,
374,
30,
2831,
273,
404,
309,
460,
30,
3066,
5626,
2831,
2831,
273,
2831,
2296,
404,
309,
2831,
422,
8303,
30,
2831,
273,
374,
9196,
18,
2626,
67,
11890,
28,
12,
4455,
13,
3066,
273,
374,
309,
2831,
480,
374,
30,
9196,
18,
2626,
67,
11890,
28,
12,
4455,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
3015,
984,
19360,
12,
2890,
16,
9196,
4672,
468,
3626,
9805,
20931,
364,
3129,
1790,
3066,
273,
374,
2831,
225,
273,
374,
364,
2270,
16,
460,
316,
365,
6315,
4738,
30,
309,
2270,
18,
10444,
30,
309,
2831,
422,
374,
30,
2831,
273,
404,
309,
460,
30,
3066,
5626,
2831,
2831,
273,
2831,
2296,
404,
309,
2831,
422,
8303,
30,
2831,
273,
374,
9196,
18,
2626,
67,
11890,
28,
12,
4455,
13,
3066,
273,
374,
309,
2831,
480,
374,
30,
9196,
18,
2626,
67,
11890,
28,
12,
4455,
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
] |
counts[change] += 1 return counts['+'], counts['-']
|
found = True return found
|
def display(fn, rev, states, prevstates): counts = {'-': 0, '+': 0} filerevmatches = {} if not opts['all']: a, b, r = prevstates, states, rev else: a, b, r = states, prevstates, prev.get(fn, -1) for change, l in difflinestates(a, b): cols = [fn, str(r)] if opts['line_number']: cols.append(str(l.linenum)) if opts['all']: cols.append(change) if opts['user']: cols.append(ui.shortuser(get(r)[1])) if opts['files_with_matches']: c = (fn, r) if c in filerevmatches: continue filerevmatches[c] = 1 else: cols.append(l.line) ui.write(sep.join(cols), eol) counts[change] += 1 return counts['+'], counts['-']
|
68d8aa6f8792bba0d73e8b285df038642e32a5c5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/11312/68d8aa6f8792bba0d73e8b285df038642e32a5c5/commands.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
6880,
273,
13666,
17,
4278,
374,
16,
15126,
4278,
374,
97,
661,
822,
90,
8436,
273,
2618,
309,
486,
1500,
3292,
454,
3546,
30,
279,
16,
324,
16,
436,
273,
2807,
7992,
16,
5493,
16,
5588,
469,
30,
279,
16,
324,
16,
436,
273,
5493,
16,
2807,
7992,
16,
2807,
18,
588,
12,
4293,
16,
300,
21,
13,
364,
2549,
16,
328,
316,
1901,
2242,
267,
395,
815,
12,
69,
16,
324,
4672,
5347,
273,
306,
4293,
16,
609,
12,
86,
25887,
309,
1500,
3292,
1369,
67,
2696,
3546,
30,
5347,
18,
6923,
12,
701,
12,
80,
18,
7511,
7924,
3719,
309,
1500,
3292,
454,
3546,
30,
5347,
18,
6923,
12,
3427,
13,
309,
1500,
3292,
1355,
3546,
30,
5347,
18,
6923,
12,
4881,
18,
6620,
1355,
12,
588,
12,
86,
25146,
21,
22643,
309,
1500,
3292,
2354,
67,
1918,
67,
8436,
3546,
30,
276,
273,
261,
4293,
16,
436,
13,
309,
276,
316,
661,
822,
90,
8436,
30,
1324,
661,
822,
90,
8436,
63,
71,
65,
273,
404,
469,
30,
5347,
18,
6923,
12,
80,
18,
1369,
13,
5915,
18,
2626,
12,
10814,
18,
5701,
12,
6842,
3631,
14775,
13,
6880,
63,
3427,
65,
1011,
404,
327,
6880,
3292,
15,
17337,
6880,
3292,
17,
3546,
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,
2562,
12,
4293,
16,
5588,
16,
5493,
16,
2807,
7992,
4672,
6880,
273,
13666,
17,
4278,
374,
16,
15126,
4278,
374,
97,
661,
822,
90,
8436,
273,
2618,
309,
486,
1500,
3292,
454,
3546,
30,
279,
16,
324,
16,
436,
273,
2807,
7992,
16,
5493,
16,
5588,
469,
30,
279,
16,
324,
16,
436,
273,
5493,
16,
2807,
7992,
16,
2807,
18,
588,
12,
4293,
16,
300,
21,
13,
364,
2549,
16,
328,
316,
1901,
2242,
267,
395,
815,
12,
69,
16,
324,
4672,
5347,
273,
306,
4293,
16,
609,
12,
86,
25887,
309,
1500,
3292,
1369,
67,
2696,
3546,
30,
5347,
18,
6923,
12,
701,
12,
80,
18,
7511,
7924,
3719,
309,
1500,
3292,
454,
3546,
30,
2
] |
def test_AuthorizedAsTag(self): self.doTestAndCheck(conn_tag, self.t2) def test_AuthorizedAsAdmin(self): self.doTestAndCheck(conn_admin, self.t2)
|
def test_AuthorizedAsTagDbSpelling(self): self.doTestAndCheck(conn_tag, self.t1_) def test_AuthorizedAsAdminDbSpelling(self): self.doTestAndCheck(conn_admin, self.t1_) def doTestAndCheck12X(self, conn): response = conn.request_put(self.tx, headers=jsonheader, body=C12_tx) self.failUnlessEqual('204', response[u'headers']['status']) response = conn_none.request_get(self.c, headers=jsonheader) self.failUnlessEqual('200', response[u'headers']['status']) j1 = JSONDecoder().decode(response[u'body']) self.failUnlessEqual(j1, C1234_tx_r) response = conn_none.request_get(self.tx, headers=jsonheader) self.failUnlessEqual('200', response[u'headers']['status']) j1 = JSONDecoder().decode(response[u'body']) self.failUnlessEqual(j1, C12_tx_r) def test_AuthorizedAsTagNewTagSpecOwner(self): self.doTestAndCheck12X(conn_tag) def test_AuthorizedAsAdminNewTagSpecOwner(self): self.doTestAndCheck12X(conn_admin) def doTestAndCheckNewTagUnspecifiedOwner(self, conn): response = conn.request_post(self.tx, headers=jsonheader, body=C12_full) self.failUnlessEqual('400', response[u'headers']['status']) self.failIf(response[u'body'].find("Tag ownership for TX undefined in db and payload") == -1) def test_AuthorizedAsTagNewTagUnspecifiedOwner(self): self.doTestAndCheckNewTagUnspecifiedOwner(conn_tag) def test_AuthorizedAsAdminNewTagUnspecifiedOwner(self): self.doTestAndCheckNewTagUnspecifiedOwner(conn_admin)
|
def test_AuthorizedAsTag(self): self.doTestAndCheck(conn_tag, self.t2)
|
ef4cc693560ff5a4ceaa722f54845ea97fce9b0b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/6226/ef4cc693560ff5a4ceaa722f54845ea97fce9b0b/cftest.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1842,
67,
15341,
1463,
1805,
12,
2890,
4672,
365,
18,
2896,
4709,
31151,
12,
4646,
67,
2692,
16,
365,
18,
88,
22,
13,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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
] |
this = apply(_quickfix.new_MiscFeeBasis, args)
|
this = _quickfix.new_MiscFeeBasis(*args)
|
def __init__(self, *args): this = apply(_quickfix.new_MiscFeeBasis, args) try: self.this.append(this) except: self.this = this
|
7e632099fd421880c8c65fb0cf610d338d115ee9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8819/7e632099fd421880c8c65fb0cf610d338d115ee9/quickfix.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1001,
2738,
972,
12,
2890,
16,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
11729,
71,
14667,
11494,
291,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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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
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
380,
1968,
4672,
333,
273,
389,
19525,
904,
18,
2704,
67,
11729,
71,
14667,
11494,
291,
30857,
1968,
13,
775,
30,
365,
18,
2211,
18,
6923,
12,
2211,
13,
1335,
30,
365,
18,
2211,
273,
333,
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
] |
pos=wxPoint(88, 59), size=wxSize(16, 16), style=0)
|
pos=wxPoint(88, 70), size=wxSize(16, 16), style=0)
|
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_STCSTYLEEDITDLG, name='STCStyleEditDlg', parent=prnt, pos=wxPoint(583, 291), size=wxSize(459, 482), style=wxWANTS_CHARS | wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER, title=self.stc_title) self._init_utils() self.SetClientSize(wxSize(451, 455)) self.SetAutoLayout(true) self.SetSizeHints(425, 400, -1, -1) self.Center(wxBOTH) EVT_SIZE(self, self.OnStcstyleeditdlgSize)
|
aac0471ac41eaa175cbaa05604248123746b2b22 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/4325/aac0471ac41eaa175cbaa05604248123746b2b22/STCStyleEditor.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776,
8914,
43,
16,
508,
2218,
882,
39,
2885,
4666,
40,
23623,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
8204,
23,
16,
576,
12416,
3631,
963,
33,
27226,
1225,
12,
24,
6162,
16,
9934,
22,
3631,
2154,
33,
27226,
59,
6856,
55,
67,
21666,
571,
7075,
5280,
67,
2565,
18683,
67,
15066,
571,
7075,
862,
4574,
67,
38,
7954,
16,
2077,
33,
2890,
18,
334,
71,
67,
2649,
13,
365,
6315,
2738,
67,
5471,
1435,
365,
18,
694,
1227,
1225,
12,
27226,
1225,
12,
7950,
21,
16,
1059,
2539,
3719,
365,
18,
694,
4965,
3744,
12,
3767,
13,
365,
18,
694,
1225,
13368,
12,
24,
2947,
16,
7409,
16,
300,
21,
16,
300,
21,
13,
365,
18,
8449,
12,
91,
20029,
18307,
13,
27917,
67,
4574,
12,
2890,
16,
365,
18,
1398,
510,
71,
4060,
4619,
5761,
75,
1225,
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
] |
[
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] |
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
389,
2738,
67,
16277,
87,
12,
2890,
16,
846,
496,
4672,
468,
4374,
707,
16,
2727,
1404,
3874,
7075,
6353,
16186,
2738,
972,
12,
2890,
16,
612,
33,
27226,
734,
67,
882,
39,
15066,
10776,
8914,
43,
16,
508,
2218,
882,
39,
2885,
4666,
40,
23623,
2187,
982,
33,
683,
496,
16,
949,
33,
27226,
2148,
12,
8204,
23,
16,
576,
12416,
3631,
963,
33,
27226,
1225,
12,
24,
6162,
16,
9934,
22,
3631,
2154,
33,
27226,
59,
6856,
55,
67,
21666,
571,
7075,
5280,
67,
2565,
18683,
67,
15066,
571,
7075,
862,
4574,
67,
38,
7954,
16,
2077,
33,
2890,
18,
334,
71,
67,
2649,
13,
365,
6315,
2738,
67,
5471,
1435,
365,
18,
694,
1227,
1225,
2
] |
class POLYPOLYGON(POLYPOLYLINE):
|
class _POLYPOLYGON(_POLYPOLYLINE):
|
def str_extra(self): txt=StringIO() start=0 for n in range(self.nPolys): txt.write("\tPolygon %d: %d points\n" % (n,self.aPolyCounts[n])) txt.write("\t\t%s\n" % str(self.aptl[start:start+self.aPolyCounts[n]])) start+=self.aPolyCounts[n] return txt.getvalue()
|
688318604ffe18a54bb261a3bde4bf6e1784a8de /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/8136/688318604ffe18a54bb261a3bde4bf6e1784a8de/pyemf.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
609,
67,
7763,
12,
2890,
4672,
6463,
33,
780,
4294,
1435,
787,
33,
20,
364,
290,
316,
1048,
12,
2890,
18,
82,
5850,
1900,
4672,
6463,
18,
2626,
31458,
88,
11787,
738,
72,
30,
738,
72,
3143,
64,
82,
6,
738,
261,
82,
16,
2890,
18,
69,
12487,
9211,
63,
82,
22643,
6463,
18,
2626,
31458,
88,
64,
88,
9,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
1657,
80,
63,
1937,
30,
1937,
15,
2890,
18,
69,
12487,
9211,
63,
82,
13563,
3719,
787,
15,
33,
2890,
18,
69,
12487,
9211,
63,
82,
65,
225,
327,
6463,
18,
588,
1132,
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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
6,
738,
261,
82,
16,
2890,
18,
69,
12487,
9211,
63,
82,
22643,
6463,
18,
2626,
31458,
88,
64,
88,
9,
87,
64,
82,
6,
738,
609,
12,
2890,
18,
1657,
80,
63,
1937,
30,
1937,
15,
2890,
18,
69,
12487,
9211,
63,
82,
13563,
3719,
787,
15,
33,
2890,
18,
69,
12487,
9211,
63,
82,
65,
225,
327,
6463,
18,
588,
1132,
1435,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern=''):
|
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern='', print_header_p=True, print_footer_p=True):
|
def print_records(req, recIDs, jrec=1, rg=10, format='hb', ot='', ln=cdslang, relevances=[], relevances_prologue="(", relevances_epilogue="%%)", decompress=zlib.decompress, search_pattern=''): """Prints list of records 'recIDs' formatted accoding to 'format' in groups of 'rg' starting from 'jrec'. Assumes that the input list 'recIDs' is sorted in reverse order, so it counts records from tail to head. A value of 'rg=-9999' means to print all records: to be used with care. Print also list of RELEVANCES for each record (if defined), in between RELEVANCE_PROLOGUE and RELEVANCE_EPILOGUE. """ # load the right message language _ = gettext_set_language(ln) # sanity checking: if req is None: return # get user id (for formatting based on priviledge) uid = getUid(req) if len(recIDs): nb_found = len(recIDs) if rg == -9999: # print all records rg = nb_found else: rg = abs(rg) if jrec < 1: # sanity checks jrec = 1 if jrec > nb_found: jrec = max(nb_found-rg+1, 1) # will print records from irec_max to irec_min excluded: irec_max = nb_found - jrec irec_min = nb_found - jrec - rg if irec_min < 0: irec_min = -1 if irec_max >= nb_found: irec_max = nb_found - 1 #req.write("%s:%d-%d" % (recIDs, irec_min, irec_max)) if format.startswith('x'): # we are doing XML output: first choose XML envelope: if format.startswith('xm'): format_prologue = websearch_templates.tmpl_xml_marc_prologue() format_epilogue = websearch_templates.tmpl_xml_marc_epilogue() elif format.startswith('xn'): format_prologue = websearch_templates.tmpl_xml_nlm_prologue() format_epilogue = websearch_templates.tmpl_xml_nlm_epilogue() elif format.startswith('xr'): format_prologue = websearch_templates.tmpl_xml_rss_prologue() format_epilogue = websearch_templates.tmpl_xml_rss_epilogue() else: format_prologue = websearch_templates.tmpl_xml_default_prologue() format_epilogue = websearch_templates.tmpl_xml_default_epilogue() # now that XML envelope is chosen, do it: recIDs_to_print = [recIDs[x] for x in range(irec_max, irec_min, -1)] req.write(format_records(recIDs_to_print, format, prologue=format_prologue, epilogue=format_epilogue, ln=ln, search_pattern=search_pattern, record_separator="\n", uid=uid)) elif format.startswith('t') or str(format[0:3]).isdigit(): # we are doing plain text output: for irec in range(irec_max, irec_min, -1): x = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid) req.write(x) if x: req.write('\n') elif format == 'excel': recIDs_to_print = [recIDs[x] for x in range(irec_max, irec_min, -1)] create_excel(recIDs=recIDs_to_print, req=req, ln=ln) else: # we are doing HTML output: if format == 'hp' or format.startswith("hb_") or format.startswith("hd_"): # portfolio and on-the-fly formats: for irec in range(irec_max, irec_min, -1): req.write(print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid)) elif format.startswith("hb"): # HTML brief format: rows = [] for irec in range(irec_max, irec_min, -1): temp = { 'number' : jrec+irec_max-irec, 'recid' : recIDs[irec], } if relevances and relevances[irec]: temp['relevance'] = relevances[irec] else: temp['relevance'] = '' temp['record'] = print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid) rows.append(temp) req.write(websearch_templates.tmpl_records_format_htmlbrief( ln = ln, weburl = weburl, rows = rows, relevances_prologue = relevances_prologue, relevances_epilogue = relevances_epilogue, )) else: # HTML detailed format: # print other formatting choices: rows = [] for irec in range(irec_max, irec_min, -1): temp = { 'record' : print_record(recIDs[irec], format, ot, ln, search_pattern=search_pattern, uid=uid), 'recid' : recIDs[irec], 'creationdate': '', 'modifydate' : '', } if record_exists(recIDs[irec])==1: temp['creationdate'] = get_creation_date(recIDs[irec]) temp['modifydate'] = get_modification_date(recIDs[irec]) if CFG_EXPERIMENTAL_FEATURES: r = calculate_cited_by_list(recIDs[irec]) if r: temp ['citinglist'] = r temp ['citationhistory'] = create_citation_history_graph_and_box(recIDs[irec], ln) r = calculate_co_cited_with_list(recIDs[irec]) if r: temp ['cociting'] = r if CFG_BIBRANK_SHOW_DOWNLOAD_GRAPHS: r = calculate_reading_similarity_list(recIDs[irec], "downloads") if r: temp ['downloadsimilarity'] = r temp ['downloadhistory'] = create_download_history_graph_and_box(recIDs[irec], ln) # Get comments and reviews for this record if exist # FIXME: templatize me if CFG_WEBCOMMENT_ALLOW_COMMENTS or CFG_WEBCOMMENT_ALLOW_REVIEWS: from invenio.webcomment import get_first_comments_or_remarks (comments, reviews) = get_first_comments_or_remarks(recID=recIDs[irec], ln=ln, nb_comments=CFG_WEBCOMMENT_NB_COMMENTS_IN_DETAILED_VIEW, nb_reviews=CFG_WEBCOMMENT_NB_REVIEWS_IN_DETAILED_VIEW) temp['comments'] = comments temp['reviews'] = reviews r = calculate_reading_similarity_list(recIDs[irec], "pageviews") if r: temp ['viewsimilarity'] = r rows.append(temp) req.write(websearch_templates.tmpl_records_format_other( ln = ln, weburl = weburl, url_argd = req.argd, rows = rows, format = format, )) else: print_warning(req, _("Use different search terms."))
|
0462fb48e82b03c43123c816fc8396276d7c691e /local1/tlutelli/issta_data/temp/all_python//python/2007_temp/2007/12027/0462fb48e82b03c43123c816fc8396276d7c691e/search_engine.py
|
[
1,
8585,
326,
22398,
316,
326,
981,
30,
1652,
1172,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
525,
3927,
33,
21,
16,
14524,
33,
2163,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
6707,
90,
6872,
22850,
6487,
6707,
90,
6872,
67,
685,
1330,
344,
1546,
2932,
16,
6707,
90,
6872,
67,
881,
21947,
344,
1546,
11438,
2225,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
2218,
2187,
1172,
67,
3374,
67,
84,
33,
5510,
16,
1172,
67,
14723,
67,
84,
33,
5510,
4672,
3536,
15402,
666,
434,
3853,
296,
3927,
5103,
11,
4955,
4078,
4751,
358,
296,
2139,
11,
316,
3252,
434,
296,
26876,
11,
5023,
628,
296,
78,
3927,
10332,
25374,
716,
326,
810,
666,
296,
3927,
5103,
11,
353,
3115,
316,
4219,
1353,
16,
1427,
518,
6880,
3853,
628,
5798,
358,
910,
18,
432,
460,
434,
296,
26876,
29711,
7991,
11,
4696,
358,
1172,
777,
3853,
30,
358,
506,
1399,
598,
7671,
18,
3038,
2546,
666,
434,
2438,
900,
58,
4722,
55,
364,
1517,
1409,
261,
430,
2553,
3631,
316,
3086,
2438,
900,
58,
4722,
67,
3373,
4842,
1821,
471,
2438,
900,
58,
4722,
67,
41,
1102,
4842,
1821,
18,
3536,
225,
468,
1262,
326,
2145,
883,
2653,
389,
273,
24972,
67,
542,
67,
4923,
12,
2370,
13,
225,
468,
16267,
6728,
30,
309,
1111,
353,
599,
30,
327,
225,
468,
336,
729,
612,
261,
1884,
10407,
2511,
603,
6015,
1411,
908,
13,
4555,
273,
31652,
12,
3658,
13,
225,
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,
1172,
67,
7094,
12,
3658,
16,
1950,
5103,
16,
525,
3927,
33,
21,
16,
14524,
33,
2163,
16,
740,
2218,
76,
70,
2187,
15835,
2218,
2187,
7211,
33,
4315,
2069,
539,
16,
6707,
90,
6872,
22850,
6487,
6707,
90,
6872,
67,
685,
1330,
344,
1546,
2932,
16,
6707,
90,
6872,
67,
881,
21947,
344,
1546,
11438,
2225,
16,
16824,
33,
94,
2941,
18,
323,
14706,
16,
1623,
67,
4951,
2218,
2187,
1172,
67,
3374,
67,
84,
33,
5510,
16,
1172,
67,
14723,
67,
84,
33,
5510,
4672,
3536,
15402,
666,
434,
3853,
296,
3927,
5103,
11,
4955,
4078,
4751,
358,
296,
2139,
11,
316,
3252,
434,
296,
26876,
11,
5023,
628,
296,
78,
3927,
10332,
25374,
716,
326,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.